Skip to content

Commit

Permalink
Merge pull request #134 from Microsoft/users/tedchamb/dev
Browse files Browse the repository at this point in the history
regenerate clients after fix to query parameter names for complex model types.
  • Loading branch information
tedchamb authored Oct 23, 2018
2 parents 80681ed + e273d14 commit 2ffa787
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 177 deletions.
54 changes: 27 additions & 27 deletions vsts/vsts/git/v4_0/git_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor=
query_parameters['name'] = self._serialize.query('name', name, 'str')
if base_version_descriptor is not None:
if base_version_descriptor.version_type is not None:
query_parameters['baseVersionDescriptor.VersionType'] = base_version_descriptor.version_type
query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type
if base_version_descriptor.version is not None:
query_parameters['baseVersionDescriptor.Version'] = base_version_descriptor.version
query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version
if base_version_descriptor.version_options is not None:
query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options
query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options
response = self._send(http_method='GET',
location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3',
version='4.0',
Expand All @@ -227,11 +227,11 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None
query_parameters = {}
if base_version_descriptor is not None:
if base_version_descriptor.version_type is not None:
query_parameters['baseVersionDescriptor.VersionType'] = base_version_descriptor.version_type
query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type
if base_version_descriptor.version is not None:
query_parameters['baseVersionDescriptor.Version'] = base_version_descriptor.version
query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version
if base_version_descriptor.version_options is not None:
query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options
query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options
response = self._send(http_method='GET',
location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3',
version='4.0',
Expand Down Expand Up @@ -452,18 +452,18 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t
query_parameters['searchCriteria.toDate'] = search_criteria.to_date
if search_criteria.item_version is not None:
if search_criteria.item_version.version_type is not None:
query_parameters['search_criteria.item_version.VersionType'] = search_criteria.item_version.version_type
query_parameters['searchCriteria.itemVersion.versionType'] = search_criteria.item_version.version_type
if search_criteria.item_version.version is not None:
query_parameters['search_criteria.item_version.Version'] = search_criteria.item_version.version
query_parameters['searchCriteria.itemVersion.version'] = search_criteria.item_version.version
if search_criteria.item_version.version_options is not None:
query_parameters['search_criteria.item_version.VersionOptions'] = search_criteria.item_version.version_options
query_parameters['searchCriteria.itemVersion.versionOptions'] = search_criteria.item_version.version_options
if search_criteria.compare_version is not None:
if search_criteria.compare_version.version_type is not None:
query_parameters['search_criteria.compare_version.VersionType'] = search_criteria.compare_version.version_type
query_parameters['searchCriteria.compareVersion.versionType'] = search_criteria.compare_version.version_type
if search_criteria.compare_version.version is not None:
query_parameters['search_criteria.compare_version.Version'] = search_criteria.compare_version.version
query_parameters['searchCriteria.compareVersion.version'] = search_criteria.compare_version.version
if search_criteria.compare_version.version_options is not None:
query_parameters['search_criteria.compare_version.VersionOptions'] = search_criteria.compare_version.version_options
query_parameters['searchCriteria.compareVersion.versionOptions'] = search_criteria.compare_version.version_options
if search_criteria.from_commit_id is not None:
query_parameters['searchCriteria.fromCommitId'] = search_criteria.from_commit_id
if search_criteria.to_commit_id is not None:
Expand Down Expand Up @@ -810,11 +810,11 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion
query_parameters['download'] = self._serialize.query('download', download, 'bool')
if version_descriptor is not None:
if version_descriptor.version_type is not None:
query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type
query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type
if version_descriptor.version is not None:
query_parameters['versionDescriptor.Version'] = version_descriptor.version
query_parameters['versionDescriptor.version'] = version_descriptor.version
if version_descriptor.version_options is not None:
query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options
query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options
response = self._send(http_method='GET',
location_id='fb93c0db-47ed-4a31-8c20-47552878fb44',
version='4.0',
Expand Down Expand Up @@ -856,11 +856,11 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r
query_parameters['download'] = self._serialize.query('download', download, 'bool')
if version_descriptor is not None:
if version_descriptor.version_type is not None:
query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type
query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type
if version_descriptor.version is not None:
query_parameters['versionDescriptor.Version'] = version_descriptor.version
query_parameters['versionDescriptor.version'] = version_descriptor.version
if version_descriptor.version_options is not None:
query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options
query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options
response = self._send(http_method='GET',
location_id='fb93c0db-47ed-4a31-8c20-47552878fb44',
version='4.0',
Expand Down Expand Up @@ -902,11 +902,11 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve
query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool')
if version_descriptor is not None:
if version_descriptor.version_type is not None:
query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type
query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type
if version_descriptor.version is not None:
query_parameters['versionDescriptor.Version'] = version_descriptor.version
query_parameters['versionDescriptor.version'] = version_descriptor.version
if version_descriptor.version_options is not None:
query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options
query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options
response = self._send(http_method='GET',
location_id='fb93c0db-47ed-4a31-8c20-47552878fb44',
version='4.0',
Expand Down Expand Up @@ -949,11 +949,11 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu
query_parameters['download'] = self._serialize.query('download', download, 'bool')
if version_descriptor is not None:
if version_descriptor.version_type is not None:
query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type
query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type
if version_descriptor.version is not None:
query_parameters['versionDescriptor.Version'] = version_descriptor.version
query_parameters['versionDescriptor.version'] = version_descriptor.version
if version_descriptor.version_options is not None:
query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options
query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options
response = self._send(http_method='GET',
location_id='fb93c0db-47ed-4a31-8c20-47552878fb44',
version='4.0',
Expand Down Expand Up @@ -995,11 +995,11 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur
query_parameters['download'] = self._serialize.query('download', download, 'bool')
if version_descriptor is not None:
if version_descriptor.version_type is not None:
query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type
query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type
if version_descriptor.version is not None:
query_parameters['versionDescriptor.Version'] = version_descriptor.version
query_parameters['versionDescriptor.version'] = version_descriptor.version
if version_descriptor.version_options is not None:
query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options
query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options
response = self._send(http_method='GET',
location_id='fb93c0db-47ed-4a31-8c20-47552878fb44',
version='4.0',
Expand Down
Loading

0 comments on commit 2ffa787

Please sign in to comment.