diff --git a/azure-devops/azure/devops/client.py b/azure-devops/azure/devops/client.py index f3508da5..5c0c02b3 100644 --- a/azure-devops/azure/devops/client.py +++ b/azure-devops/azure/devops/client.py @@ -69,7 +69,8 @@ def _send_request(self, request, headers=None, content=None, media_type=None, ** 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'): + query_parameters=None, content=None, media_type='application/json', accept_media_type='application/json', + additional_headers=None): request = self._create_request_message(http_method=http_method, location_id=location_id, route_values=route_values, @@ -88,6 +89,9 @@ def _send(self, http_method, location_id, version, route_values=None, # Construct headers headers = {'Content-Type': media_type + '; charset=utf-8', 'Accept': accept_media_type + ';api-version=' + negotiated_version} + if additional_headers is not None: + for key in additional_headers: + headers[key] = str(additional_headers[key]) 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/azure-devops/azure/devops/released/wiki/wiki_client.py b/azure-devops/azure/devops/released/wiki/wiki_client.py index 16660993..362c794e 100644 --- a/azure-devops/azure/devops/released/wiki/wiki_client.py +++ b/azure-devops/azure/devops/released/wiki/wiki_client.py @@ -109,12 +109,16 @@ def create_or_update_page(self, parameters, project, wiki_identifier, path, vers query_parameters['path'] = self._serialize.query('path', path, 'str') if comment is not None: query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + additional_headers = {} + if version is not None: + additional_headers['If-Match'] = version 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, + additional_headers=additional_headers, content=content) response_object = models.WikiPageResponse() response_object.page = self._deserialize('WikiPage', response) diff --git a/azure-devops/azure/devops/v5_0/dashboard/dashboard_client.py b/azure-devops/azure/devops/v5_0/dashboard/dashboard_client.py index e85c7f73..3c119430 100644 --- a/azure-devops/azure/devops/v5_0/dashboard/dashboard_client.py +++ b/azure-devops/azure/devops/v5_0/dashboard/dashboard_client.py @@ -347,10 +347,14 @@ def get_widgets(self, team_context, dashboard_id, eTag=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') + additional_headers = {} + if eTag is not None: + additional_headers['ETag'] = eTag response = self._send(http_method='GET', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', version='5.0-preview.2', - route_values=route_values) + route_values=route_values, + additional_headers=additional_headers) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) response_object.eTag = response.headers.get('ETag') @@ -422,11 +426,15 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=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') + additional_headers = {} + if eTag is not None: + additional_headers['ETag'] = eTag content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PUT', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', version='5.0-preview.2', route_values=route_values, + additional_headers=additional_headers, content=content) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) @@ -499,11 +507,15 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=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') + additional_headers = {} + if eTag is not None: + additional_headers['ETag'] = eTag content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PATCH', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', version='5.0-preview.2', route_values=route_values, + additional_headers=additional_headers, content=content) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v5_0/gallery/gallery_client.py b/azure-devops/azure/devops/v5_0/gallery/gallery_client.py index c03e4f6a..cba43fa7 100644 --- a/azure-devops/azure/devops/v5_0/gallery/gallery_client.py +++ b/azure-devops/azure/devops/v5_0/gallery/gallery_client.py @@ -160,11 +160,15 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='7529171f-a002-4180-93ba-685f358a0482', version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -195,11 +199,15 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -230,11 +238,15 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset query_parameters = {} if account_token is not None: query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='506aff36-2622-4f70-8063-77cce6366d20', version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -490,6 +502,9 @@ 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') + additional_headers = {} + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -499,6 +514,7 @@ def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_na location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', version='5.0-preview.1', route_values=route_values, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) @@ -547,6 +563,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') + additional_headers = {} + if product is not None: + additional_headers['X-Market-UploadFileProduct'] = product + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -556,6 +577,7 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', version='5.0-preview.1', route_values=route_values, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) @@ -595,6 +617,9 @@ 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') + additional_headers = {} + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -604,6 +629,7 @@ def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_nam location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', version='5.0-preview.1', route_values=route_values, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) @@ -748,11 +774,15 @@ def query_extensions(self, extension_query, account_token=None, account_token_he query_parameters = {} if account_token is not None: query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header content = self._serialize.body(extension_query, 'ExtensionQuery') response = self._send(http_method='POST', location_id='eb9d5ee1-6d43-456b-b80e-8a96fbc014b6', version='5.0-preview.1', query_parameters=query_parameters, + additional_headers=additional_headers, content=content) return self._deserialize('ExtensionQueryResult', response) @@ -897,11 +927,15 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', version='5.0-preview.2', route_values=route_values, - query_parameters=query_parameters) + query_parameters=query_parameters, + additional_headers=additional_headers) return self._deserialize('PublishedExtension', response) def update_extension(self, upload_stream, publisher_name, extension_name, bypass_scope_check=None, **kwargs): @@ -1047,11 +1081,15 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -1088,11 +1126,15 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='364415a1-0077-4a41-a7a0-06edd4497492', version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -1158,6 +1200,9 @@ 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') + additional_headers = {} + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -1168,6 +1213,7 @@ def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('{str}', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v5_0/wiki/wiki_client.py b/azure-devops/azure/devops/v5_0/wiki/wiki_client.py index 345a3413..6f0d72c9 100644 --- a/azure-devops/azure/devops/v5_0/wiki/wiki_client.py +++ b/azure-devops/azure/devops/v5_0/wiki/wiki_client.py @@ -109,12 +109,16 @@ def create_or_update_page(self, parameters, project, wiki_identifier, path, vers query_parameters['path'] = self._serialize.query('path', path, 'str') if comment is not None: query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + additional_headers = {} + if version is not None: + additional_headers['If-Match'] = version 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, + additional_headers=additional_headers, content=content) response_object = models.WikiPageResponse() response_object.page = self._deserialize('WikiPage', response) 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 72149ff3..580b25bb 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 @@ -29,7 +29,7 @@ def create_agent_group(self, group): """CreateAgentGroup. [Preview API] :param :class:` ` group: Agent group to be created - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(group, 'AgentGroup') response = self._send(http_method='POST', @@ -111,7 +111,7 @@ def get_application(self, application_id): """GetApplication. [Preview API] :param str application_id: Filter by APM application identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if application_id is not None: @@ -183,7 +183,7 @@ def get_counter_samples(self, counter_sample_query_details, test_run_id): [Preview API] :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: @@ -203,7 +203,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: @@ -241,7 +241,7 @@ def get_plugin(self, type): """GetPlugin. [Preview API] :param str type: Currently ApplicationInsights is the only available plugin type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if type is not None: @@ -266,7 +266,7 @@ def get_load_test_result(self, test_run_id): """GetLoadTestResult. [Preview API] :param str test_run_id: The test run identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -281,7 +281,7 @@ def create_test_definition(self, test_definition): """CreateTestDefinition. [Preview API] :param :class:` ` test_definition: Test definition to be created - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='POST', @@ -294,7 +294,7 @@ def get_test_definition(self, test_definition_id): """GetTestDefinition. [Preview API] :param str test_definition_id: The test definition identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_definition_id is not None: @@ -330,7 +330,7 @@ def update_test_definition(self, test_definition): """UpdateTestDefinition. [Preview API] :param :class:` ` test_definition: - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='PUT', @@ -343,7 +343,7 @@ def create_test_drop(self, web_test_drop): """CreateTestDrop. [Preview API] :param :class:` ` web_test_drop: Test drop to be created - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(web_test_drop, 'TestDrop') response = self._send(http_method='POST', @@ -356,7 +356,7 @@ def get_test_drop(self, test_drop_id): """GetTestDrop. [Preview API] :param str test_drop_id: The test drop identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_drop_id is not None: @@ -371,7 +371,7 @@ def create_test_run(self, web_test_run): """CreateTestRun. [Preview API] :param :class:` ` web_test_run: - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(web_test_run, 'TestRun') response = self._send(http_method='POST', @@ -384,7 +384,7 @@ def get_test_run(self, test_run_id): """GetTestRun. [Preview API] :param str test_run_id: Unique ID of the test run - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: diff --git a/azure-devops/azure/devops/v5_1/dashboard/dashboard_client.py b/azure-devops/azure/devops/v5_1/dashboard/dashboard_client.py index fe7cd5e9..dd46bdae 100644 --- a/azure-devops/azure/devops/v5_1/dashboard/dashboard_client.py +++ b/azure-devops/azure/devops/v5_1/dashboard/dashboard_client.py @@ -347,10 +347,14 @@ def get_widgets(self, team_context, dashboard_id, eTag=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') + additional_headers = {} + if eTag is not None: + additional_headers['ETag'] = eTag response = self._send(http_method='GET', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', version='5.1-preview.2', - route_values=route_values) + route_values=route_values, + additional_headers=additional_headers) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) response_object.eTag = response.headers.get('ETag') @@ -422,11 +426,15 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=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') + additional_headers = {} + if eTag is not None: + additional_headers['ETag'] = eTag content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PUT', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', version='5.1-preview.2', route_values=route_values, + additional_headers=additional_headers, content=content) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) @@ -499,11 +507,15 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=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') + additional_headers = {} + if eTag is not None: + additional_headers['ETag'] = eTag content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PATCH', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', version='5.1-preview.2', route_values=route_values, + additional_headers=additional_headers, content=content) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) 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 ee6c3f8c..5a98015e 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 @@ -54,7 +54,7 @@ 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:` ` + :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_1/feature_availability/feature_availability_client.py b/azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py index a776ffa2..db2a4dc4 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 @@ -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: @@ -114,7 +114,7 @@ def update_feature_flag(self, state, name, user_email=None, check_feature_exists :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_1/feature_management/feature_management_client.py b/azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py index 6f930b6a..31c7b701 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 @@ -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: @@ -81,7 +81,7 @@ def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason :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: @@ -136,7 +136,7 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam :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: @@ -165,7 +165,7 @@ 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:` ` + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', @@ -179,7 +179,7 @@ def query_feature_states_for_default_scope(self, query, user_scope): [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:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -199,7 +199,7 @@ def query_feature_states_for_named_scope(self, query, user_scope, scope_name, sc :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_1/gallery/gallery_client.py b/azure-devops/azure/devops/v5_1/gallery/gallery_client.py index a2675013..933beb41 100644 --- a/azure-devops/azure/devops/v5_1/gallery/gallery_client.py +++ b/azure-devops/azure/devops/v5_1/gallery/gallery_client.py @@ -160,11 +160,15 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='7529171f-a002-4180-93ba-685f358a0482', version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -195,11 +199,15 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -230,11 +238,15 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset query_parameters = {} if account_token is not None: query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='506aff36-2622-4f70-8063-77cce6366d20', version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -490,6 +502,9 @@ 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') + additional_headers = {} + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -499,6 +514,7 @@ def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_na location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', version='5.1-preview.1', route_values=route_values, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) @@ -547,6 +563,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') + additional_headers = {} + if product is not None: + additional_headers['X-Market-UploadFileProduct'] = product + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -556,6 +577,7 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', version='5.1-preview.1', route_values=route_values, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) @@ -595,6 +617,9 @@ 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') + additional_headers = {} + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -604,6 +629,7 @@ def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_nam location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', version='5.1-preview.1', route_values=route_values, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) @@ -748,11 +774,15 @@ def query_extensions(self, extension_query, account_token=None, account_token_he query_parameters = {} if account_token is not None: query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header content = self._serialize.body(extension_query, 'ExtensionQuery') response = self._send(http_method='POST', location_id='eb9d5ee1-6d43-456b-b80e-8a96fbc014b6', version='5.1-preview.1', query_parameters=query_parameters, + additional_headers=additional_headers, content=content) return self._deserialize('ExtensionQueryResult', response) @@ -897,11 +927,15 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', version='5.1-preview.2', route_values=route_values, - query_parameters=query_parameters) + query_parameters=query_parameters, + additional_headers=additional_headers) return self._deserialize('PublishedExtension', response) def update_extension(self, upload_stream, publisher_name, extension_name, bypass_scope_check=None, **kwargs): @@ -1047,11 +1081,15 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -1088,11 +1126,15 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty 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') + additional_headers = {} + if account_token_header is not None: + additional_headers['X-Market-AccountToken'] = account_token_header response = self._send(http_method='GET', location_id='364415a1-0077-4a41-a7a0-06edd4497492', version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -1158,6 +1200,9 @@ 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') + additional_headers = {} + if file_name is not None: + additional_headers['X-Market-UploadFileName'] = file_name if "callback" in kwargs: callback = kwargs["callback"] else: @@ -1168,6 +1213,7 @@ def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, + additional_headers=additional_headers, content=content, media_type='application/octet-stream') return self._deserialize('{str}', self._unwrap_collection(response)) 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 c50a99a7..88d7a1d1 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 @@ -30,7 +30,7 @@ def add_group_entitlement(self, group_entitlement, rule_option=None): [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:` ` + :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: @@ -97,7 +97,7 @@ def update_group_entitlement(self, document, group_id, rule_option=None): :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: @@ -174,7 +174,7 @@ 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:` ` + :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: @@ -212,7 +212,7 @@ def update_user_entitlements(self, document, do_not_send_invite_for_new_users=No [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:` ` + :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: @@ -259,7 +259,7 @@ def update_user_entitlement(self, document, user_id): [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:` ` + :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_1/nuget/nuget_client.py b/azure-devops/azure/devops/v5_1/nuget/nuget_client.py index 564926ac..2c866664 100644 --- a/azure-devops/azure/devops/v5_1/nuget/nuget_client.py +++ b/azure-devops/azure/devops/v5_1/nuget/nuget_client.py @@ -107,7 +107,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p :param str package_name: Name of the package. :param str package_version: Version of the package. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -156,7 +156,7 @@ def delete_package_version(self, feed_id, package_name, package_version, project :param str package_name: Name of the package to delete. :param str package_version: Version of the package to delete. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -181,7 +181,7 @@ def get_package_version(self, feed_id, package_name, package_version, project=No :param str package_version: Version of the package. :param str project: Project ID or project name :param bool show_deleted: True to include deleted packages in the response. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: 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 index 8236d553..368d74e1 100644 --- 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 @@ -29,7 +29,7 @@ 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:` ` + :rtype: :class:` ` """ query_parameters = {} if ip is not None: @@ -43,7 +43,7 @@ def get_geo_region(self, ip): def get_regions(self): """GetRegions. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='b129ca90-999d-47bb-ab37-0dcf784ee633', 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 index fefada77..7fe81130 100644 --- 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 @@ -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_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 9b2326d7..9d83f1b9 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 @@ -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: @@ -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: 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 a1ddc0df..668e616e 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 @@ -31,7 +31,7 @@ def execute_service_endpoint_request(self, service_endpoint_request, project, en :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: @@ -53,7 +53,7 @@ def create_service_endpoint(self, endpoint, project): [Preview API] Create a service endpoint. :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: @@ -186,7 +186,7 @@ def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None :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_1/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py index 30c2fd4d..af582ffd 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 @@ -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): [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: @@ -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: @@ -123,7 +123,7 @@ def update_subscription_diagnostics(self, update_parameters, subscription_id): [Preview API] :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): [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: @@ -174,7 +174,7 @@ def get_notification(self, subscription_id, notification_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: @@ -217,7 +217,7 @@ 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:` ` + :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') response = self._send(http_method='POST', @@ -231,7 +231,7 @@ def query_input_values(self, input_values_query, publisher_id): [Preview API] :param :class:` ` input_values_query: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -248,7 +248,7 @@ 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:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -273,7 +273,7 @@ def query_publishers(self, query): """QueryPublishers. [Preview API] Query for service hook publishers. :param :class:` ` query: - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') response = self._send(http_method='POST', @@ -286,7 +286,7 @@ def create_subscription(self, subscription): """CreateSubscription. [Preview API] Create a subscription. :param :class:` ` subscription: Subscription to be created. - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='POST', @@ -312,7 +312,7 @@ 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:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -352,7 +352,7 @@ def replace_subscription(self, subscription, subscription_id=None): [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: @@ -369,7 +369,7 @@ def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. [Preview API] Query for service hook subscriptions. :param :class:` ` query: - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') response = self._send(http_method='POST', @@ -383,7 +383,7 @@ def create_test_notification(self, test_notification, use_real_data=None): [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:` ` + :rtype: :class:` ` """ query_parameters = {} if use_real_data is not None: 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 bf67f983..e1129f8a 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 @@ -29,7 +29,7 @@ def add_agent_cloud(self, agent_cloud): """AddAgentCloud. [Preview API] :param :class:` ` agent_cloud: - :rtype: :class:` ` + :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: @@ -93,7 +93,7 @@ def add_agent(self, agent, pool_id): [Preview API] Adds an agent to a pool. You probably don't want to call this endpoint directly. Instead, [configure an agent](https://docs.microsoft.com/azure/devops/pipelines/agents/agents) using the agent download package. :param :class:` ` agent: Details about the agent being added :param int pool_id: The agent pool in which to add the agent - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -131,7 +131,7 @@ def get_agent(self, pool_id, agent_id, include_capabilities=None, include_assign :param bool include_assigned_request: Whether to include details about the agent's current work :param bool include_last_completed_request: Whether to include details about the agents' most recent completed work :param [str] property_filters: Filter which custom properties will be returned - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -198,7 +198,7 @@ def replace_agent(self, agent, pool_id, agent_id): :param :class:` ` agent: Updated details about the replacing agent :param int pool_id: The agent pool to use :param int agent_id: The agent to replace - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -219,7 +219,7 @@ def update_agent(self, agent, pool_id, agent_id): :param :class:` ` agent: Updated details about the agent :param int pool_id: The agent pool to use :param int agent_id: The agent to update - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -239,7 +239,7 @@ def add_deployment_group(self, deployment_group, project): [Preview API] Create a deployment group. :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: @@ -275,7 +275,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: @@ -336,7 +336,7 @@ def update_deployment_group(self, deployment_group, project, deployment_group_id :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: @@ -355,7 +355,7 @@ def add_agent_pool(self, pool): """AddAgentPool. [Preview API] Create an agent pool. :param :class:` ` pool: Details about the new agent pool - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(pool, 'TaskAgentPool') response = self._send(http_method='POST', @@ -383,7 +383,7 @@ def get_agent_pool(self, pool_id, properties=None, action_filter=None): :param int pool_id: An agent pool ID :param [str] properties: Agent pool properties (comma-separated) :param str action_filter: Filter by whether the calling user has use or manage permissions - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -450,7 +450,7 @@ def update_agent_pool(self, pool, pool_id): [Preview API] Update properties on an agent pool :param :class:` ` pool: Updated agent pool details :param int pool_id: The agent pool to update - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -469,7 +469,7 @@ def add_agent_queue(self, queue, project=None, authorize_pipelines=None): :param :class:` ` queue: Details about the queue to create :param str project: Project ID or project name :param bool authorize_pipelines: Automatically authorize this queue when using YAML - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -508,7 +508,7 @@ def get_agent_queue(self, queue_id, project=None, action_filter=None): :param int queue_id: The agent queue to get information about :param str project: Project ID or project name :param str action_filter: Filter by whether the calling user has use or manage permissions - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -637,7 +637,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: @@ -734,7 +734,7 @@ def add_task_group(self, task_group, project): [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:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -812,7 +812,7 @@ def update_task_group(self, task_group, project, task_group_id=None): :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: @@ -832,7 +832,7 @@ def add_variable_group(self, group, project): [Preview API] Add a variable group. :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: @@ -866,7 +866,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: @@ -938,7 +938,7 @@ def update_variable_group(self, group, project, group_id): :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_1/test_plan/test_plan_client.py b/azure-devops/azure/devops/v5_1/test_plan/test_plan_client.py index d3029f74..0f8689ef 100644 --- a/azure-devops/azure/devops/v5_1/test_plan/test_plan_client.py +++ b/azure-devops/azure/devops/v5_1/test_plan/test_plan_client.py @@ -30,7 +30,7 @@ def create_test_configuration(self, test_configuration_create_update_parameters, [Preview API] Create a test configuration. :param :class:` ` test_configuration_create_update_parameters: TestConfigurationCreateUpdateParameters :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_test_configuration_by_id(self, project, test_configuration_id): [Preview API] Get a test configuration :param str project: Project ID or project name :param int test_configuration_id: ID of the test configuration to get. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -105,7 +105,7 @@ def update_test_configuration(self, test_configuration_create_update_parameters, :param :class:` ` test_configuration_create_update_parameters: TestConfigurationCreateUpdateParameters :param str project: Project ID or project name :param int test_configuartion_id: ID of the test configuration to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -127,7 +127,7 @@ def create_test_plan(self, test_plan_create_params, project): [Preview API] Create a test plan. :param :class:` ` test_plan_create_params: A testPlanCreateParams object.TestPlanCreateParams :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -161,7 +161,7 @@ def get_test_plan_by_id(self, project, plan_id): [Preview API] Get a test plan by Id. :param str project: Project ID or project name :param int plan_id: ID of the test plan to get. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -209,7 +209,7 @@ def update_test_plan(self, test_plan_update_params, project, plan_id): :param :class:` ` test_plan_update_params: A testPlanUpdateParams object.TestPlanUpdateParams :param str project: Project ID or project name :param int plan_id: ID of the test plan to be updated. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -274,7 +274,7 @@ def create_test_suite(self, test_suite_create_params, project, plan_id): :param :class:` ` test_suite_create_params: Parameters for suite creation :param str project: Project ID or project name :param int plan_id: ID of the test plan that contains the suites. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -315,7 +315,7 @@ def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): :param int plan_id: ID of the test plan that contains the suites. :param int suite_id: ID of the suite to get. :param str expand: Include the children suites and testers details - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -370,7 +370,7 @@ def update_test_suite(self, test_suite_update_params, project, plan_id, 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 parent suite. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -558,7 +558,7 @@ def clone_test_plan(self, clone_request_body, project, deep_clone=None): :param :class:` ` clone_request_body: Plan Clone Request Body detail TestPlanCloneRequest :param str project: Project ID or project name :param bool deep_clone: Clones all the associated test cases as well - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -580,7 +580,7 @@ def get_clone_information(self, project, clone_operation_id): [Preview API] Get clone information. :param str project: Project ID or project name :param int clone_operation_id: Operation ID returned when we queue a clone operation - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -679,7 +679,7 @@ def clone_test_suite(self, clone_request_body, project, deep_clone=None): :param :class:` ` clone_request_body: Suite Clone Request Body detail TestSuiteCloneRequest :param str project: Project ID or project name :param bool deep_clone: Clones all the associated test cases as well - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -701,7 +701,7 @@ def get_suite_clone_information(self, project, clone_operation_id): [Preview API] Get clone information. :param str project: Project ID or project name :param int clone_operation_id: Operation ID returned when we queue a clone operation - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -719,7 +719,7 @@ def create_test_variable(self, test_variable_create_update_parameters, project): [Preview API] Create a test variable. :param :class:` ` test_variable_create_update_parameters: TestVariableCreateUpdateParameters :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -753,7 +753,7 @@ def get_test_variable_by_id(self, project, test_variable_id): [Preview API] Get a test variable by its ID. :param str project: Project ID or project name :param int test_variable_id: ID of the test variable to get. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -792,7 +792,7 @@ def update_test_variable(self, test_variable_create_update_parameters, project, :param :class:` ` test_variable_create_update_parameters: TestVariableCreateUpdateParameters :param str project: Project ID or project name :param int test_variable_id: ID of the test variable to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: 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 6be7fde6..f1d7ca8e 100644 --- a/azure-devops/azure/devops/v5_1/universal/universal_client.py +++ b/azure-devops/azure/devops/v5_1/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: @@ -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: 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 0cfb47ac..005b172e 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 @@ -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_1/wiki/wiki_client.py b/azure-devops/azure/devops/v5_1/wiki/wiki_client.py index f63adcb0..6f324907 100644 --- a/azure-devops/azure/devops/v5_1/wiki/wiki_client.py +++ b/azure-devops/azure/devops/v5_1/wiki/wiki_client.py @@ -109,12 +109,16 @@ def create_or_update_page(self, parameters, project, wiki_identifier, path, vers query_parameters['path'] = self._serialize.query('path', path, 'str') if comment is not None: query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + additional_headers = {} + if version is not None: + additional_headers['If-Match'] = version 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, + additional_headers=additional_headers, content=content) response_object = models.WikiPageResponse() response_object.page = self._deserialize('WikiPage', response) @@ -424,12 +428,16 @@ def update_page_by_id(self, parameters, project, wiki_identifier, id, version, c query_parameters = {} if comment is not None: query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + additional_headers = {} + if version is not None: + additional_headers['If-Match'] = version 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, + additional_headers=additional_headers, content=content) response_object = models.WikiPageResponse() response_object.page = self._deserialize('WikiPage', response) 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 e2d3b74f..6eb23537 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 @@ -50,7 +50,7 @@ def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): [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:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -71,7 +71,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: @@ -213,7 +213,7 @@ def create_or_update_classification_node(self, posted_node, project, structure_g :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: @@ -261,7 +261,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: @@ -287,7 +287,7 @@ def update_classification_node(self, posted_node, project, structure_group, 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. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -310,7 +310,7 @@ def add_comment(self, request, project, work_item_id): :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:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -352,7 +352,7 @@ def get_comment(self, project, work_item_id, comment_id, include_deleted=None, e :param int comment_id: Id of the comment to return. :param bool include_deleted: Specify if the deleted comment should be retrieved. :param str expand: Specifies the additional data retrieval options for work item comments. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -383,7 +383,7 @@ def get_comments(self, project, work_item_id, top=None, continuation_token=None, :param bool include_deleted: Specify if the deleted comments should be retrieved. :param str expand: Specifies the additional data retrieval options for work item comments. :param str order: Order in which the comments should be returned. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -416,7 +416,7 @@ def get_comments_batch(self, project, work_item_id, ids, include_deleted=None, e :param [int] ids: Comma-separated list of comment ids to return. :param bool include_deleted: Specify if the deleted comments should be retrieved. :param str expand: Specifies the additional data retrieval options for work item comments. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -445,7 +445,7 @@ def update_comment(self, request, project, work_item_id, comment_id): :param str project: Project ID or project name :param int work_item_id: Id of a work item. :param int comment_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -469,7 +469,7 @@ def create_comment_reaction(self, project, work_item_id, comment_id, reaction_ty :param int work_item_id: WorkItem ID :param int comment_id: Comment ID :param CommentReactionType reaction_type: Type of the reaction - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -493,7 +493,7 @@ def delete_comment_reaction(self, project, work_item_id, comment_id, reaction_ty :param int work_item_id: WorkItem ID :param int comment_id: Comment ID :param CommentReactionType reaction_type: Type of the reaction - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -538,7 +538,7 @@ def get_comment_version(self, project, work_item_id, comment_id, version): :param int work_item_id: :param int comment_id: :param int version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -581,7 +581,7 @@ def create_field(self, work_item_field, project=None): [Preview API] Create a new field. :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: @@ -615,7 +615,7 @@ def get_field(self, field_name_or_ref_name, project=None): [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: @@ -655,7 +655,7 @@ def create_query(self, posted_query, project, query, validate_wiql_only=None): :param str project: Project ID or project name :param str query: The parent id or path under which the query is to be created. :param bool validate_wiql_only: If you only want to validate your WIQL query without actually creating one, set it to true. Default is false. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -724,7 +724,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: @@ -753,7 +753,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: @@ -781,7 +781,7 @@ def update_query(self, query_update, project, query, undelete_descendants=None): :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: @@ -839,7 +839,7 @@ def get_deleted_work_item(self, id, project=None): [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: @@ -894,7 +894,7 @@ def restore_work_item(self, payload, id, project=None): :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: @@ -916,7 +916,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: @@ -969,7 +969,7 @@ def create_template(self, template, team_context): [Preview API] Creates a template :param :class:` ` template: Template contents :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1065,7 +1065,7 @@ def get_template(self, team_context, template_id): [Preview API] Gets the template with specified id :param :class:` ` team_context: The team context for the operation :param str template_id: Template Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1098,7 +1098,7 @@ def replace_template(self, template_content, team_context, template_id): :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 @@ -1133,7 +1133,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: @@ -1181,7 +1181,7 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): :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 @@ -1261,7 +1261,7 @@ def query_by_id(self, id, team_context=None, time_precision=None, top=None): :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 @@ -1300,7 +1300,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: @@ -1391,7 +1391,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: @@ -1418,7 +1418,7 @@ def get_relation_type(self, relation): """GetRelationType. [Preview API] Gets the work item relation type definition. :param str relation: The relation name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if relation is not None: @@ -1454,7 +1454,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: @@ -1499,7 +1499,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token :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: @@ -1526,7 +1526,7 @@ def read_reporting_discussions(self, project=None, continuation_token=None, max_ :param str project: Project ID or project name :param str continuation_token: :param int max_page_size: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1553,7 +1553,7 @@ def create_work_item(self, document, project, type, validate_only=None, bypass_r :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:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1587,7 +1587,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: @@ -1614,7 +1614,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. Please note: the destroy action is PERMANENT and cannot be undone. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1639,7 +1639,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: @@ -1705,7 +1705,7 @@ def update_work_item(self, document, id, project=None, validate_only=None, bypas :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:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1788,7 +1788,7 @@ def get_work_item_type_category(self, project, category): [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:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1806,7 +1806,7 @@ def get_work_item_type(self, project, type): [Preview API] 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: @@ -1864,7 +1864,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_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 1130c919..2151c623 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 @@ -30,7 +30,7 @@ def create_process_behavior(self, behavior, process_id): [Preview API] Creates a single behavior in the given process. :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: @@ -108,7 +108,7 @@ def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): :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: @@ -130,7 +130,7 @@ def create_control_in_group(self, control, process_id, wit_ref_name, group_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 group_id: The ID of the group to add the control to. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -156,7 +156,7 @@ def move_control_to_group(self, control, process_id, wit_ref_name, group_id, con :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: @@ -209,7 +209,7 @@ def update_control(self, control, process_id, wit_ref_name, group_id, control_id :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: @@ -234,7 +234,7 @@ def add_field_to_work_item_type(self, field, process_id, wit_ref_name): :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: @@ -314,7 +314,7 @@ def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref :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: @@ -339,7 +339,7 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): :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: @@ -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: @@ -406,7 +406,7 @@ def move_group_to_section(self, group, process_id, wit_ref_name, page_id, sectio :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: @@ -465,7 +465,7 @@ def update_group(self, group, process_id, wit_ref_name, page_id, section_id, gro :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: @@ -508,7 +508,7 @@ def create_list(self, picklist): """CreateList. [Preview API] Creates a picklist. :param :class:` ` picklist: Picklist - :rtype: :class:` ` + :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: @@ -560,7 +560,7 @@ def update_list(self, picklist, list_id): [Preview API] Updates a list. :param :class:` ` picklist: :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -579,7 +579,7 @@ def add_page(self, page, process_id, wit_ref_name): :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: @@ -619,7 +619,7 @@ def update_page(self, page, process_id, wit_ref_name): :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: @@ -638,7 +638,7 @@ def create_new_process(self, create_request): """CreateNewProcess. [Preview API] Creates a process. :param :class:` ` create_request: CreateProcessModel. - :rtype: :class:` ` + :rtype: :class:` ` """ content = self._serialize.body(create_request, 'CreateProcessModel') response = self._send(http_method='POST', @@ -665,7 +665,7 @@ def edit_process(self, update_request, process_type_id): [Preview API] Edit a process of a specific ID. :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: @@ -719,7 +719,7 @@ def add_process_work_item_type_rule(self, process_rule_create, process_id, wit_r :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: @@ -799,7 +799,7 @@ def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_n :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: @@ -822,7 +822,7 @@ def create_state_definition(self, state_model, process_id, wit_ref_name): :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: @@ -902,7 +902,7 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat :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: @@ -926,7 +926,7 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i :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: @@ -948,7 +948,7 @@ def create_process_work_item_type(self, work_item_type, process_id): [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:` ` + :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: @@ -1026,7 +1026,7 @@ def update_process_work_item_type(self, work_item_type_update, process_id, wit_r :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: @@ -1047,7 +1047,7 @@ def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_ :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: @@ -1126,7 +1126,7 @@ def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_f :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_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 index 783a7124..3e5bf0a9 100644 --- a/azure-devops/azure/devops/v5_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: @@ -87,7 +87,7 @@ def import_process_template(self, upload_stream, ignore_warnings=None, replace_e :param object upload_stream: Stream to upload :param bool ignore_warnings: Ignores validation warnings. Default value is false. :param bool replace_existing_template: Replaces the existing template. Default value is true. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'Import' @@ -114,7 +114,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: