Title: run_pipeline discards needed parameters · Issue #331 · microsoft/azure-devops-python-api · GitHub
Open Graph Title: run_pipeline discards needed parameters · Issue #331 · microsoft/azure-devops-python-api
X Title: run_pipeline discards needed parameters · Issue #331 · microsoft/azure-devops-python-api
Description: azure-devops/azure/devops/v6_0/pipelines/pipelines_client.py takes the parameter run_parameters and then sets the variable content via content = self._serialize.body(run_parameters, 'RunPipelineParameters') In doing so it discards templa...
Open Graph Description: azure-devops/azure/devops/v6_0/pipelines/pipelines_client.py takes the parameter run_parameters and then sets the variable content via content = self._serialize.body(run_parameters, 'RunPipelinePar...
X Description: azure-devops/azure/devops/v6_0/pipelines/pipelines_client.py takes the parameter run_parameters and then sets the variable content via content = self._serialize.body(run_parameters, 'RunPipelin...
Opengraph URL: https://github.com/microsoft/azure-devops-python-api/issues/331
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"run_pipeline discards needed parameters","articleBody":"azure-devops/azure/devops/v6_0/pipelines/pipelines_client.py takes the parameter `run_parameters` and then sets the variable content via\r\n```python\r\n content = self._serialize.body(run_parameters, 'RunPipelineParameters')\r\n```\r\nIn doing so it discards **templateParameters** (along with previewRun, stagesToSkip, and yamlOverride), but my concern is with templateParameters.\r\n\r\nIf I'm tracing things correctly, the problem is in the class **RunPipelineParameters** in azure-devops/azure/devops/v6_0/pipelines/models.py which only maps resources and variables:\r\n\r\n```python\r\nclass RunPipelineParameters(Model):\r\n \"\"\"\r\n :param resources:\r\n :type resources: :class:`RunResourcesParameters \u003cazure.devops.v6_0.pipelines.models.RunResourcesParameters\u003e`\r\n :param variables:\r\n :type variables: dict\r\n \"\"\"\r\n\r\n _attribute_map = {\r\n 'resources': {'key': 'resources', 'type': 'RunResourcesParameters'},\r\n 'variables': {'key': 'variables', 'type': '{Variable}'}\r\n }\r\n\r\n def __init__(self, resources=None, variables=None):\r\n super(RunPipelineParameters, self).__init__()\r\n self.resources = resources\r\n self.variables = variables\r\n```","author":{"url":"https://github.com/kenhia","@type":"Person","name":"kenhia"},"datePublished":"2020-05-25T16:45:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/331/azure-devops-python-api/issues/331"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ffd92aa8-15a8-1252-d30c-0caa8dae746f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF4E:86085:B7CA1:EAB6B:697E1369 |
| html-safe-nonce | 8546177e05f3f8b4dab33bb8cb1ff1bc0edf9f7b79bb3959eaa7b09c68b15a24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjRFOjg2MDg1OkI3Q0ExOkVBQjZCOjY5N0UxMzY5IiwidmlzaXRvcl9pZCI6IjI1MDE2NTM5MjAwODI2OTUwMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 68b7f252cea2361e748deb500c3b526d3da61759db154a1026d2329065b4720f |
| hovercard-subject-tag | issue:624398560 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/azure-devops-python-api/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ae16fda3b5c95e764e23ca12d8e4b4220850658393db6f477d2862f4574ce5a/microsoft/azure-devops-python-api/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ae16fda3b5c95e764e23ca12d8e4b4220850658393db6f477d2862f4574ce5a/microsoft/azure-devops-python-api/issues/331 |
| og:image:alt | azure-devops/azure/devops/v6_0/pipelines/pipelines_client.py takes the parameter run_parameters and then sets the variable content via content = self._serialize.body(run_parameters, 'RunPipelinePar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kenhia |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/azure-devops-python-api git https://github.com/microsoft/azure-devops-python-api.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 107710074 |
| octolytics-dimension-repository_nwo | microsoft/azure-devops-python-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 107710074 |
| octolytics-dimension-repository_network_root_nwo | microsoft/azure-devops-python-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width