Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,61 @@ def delete(
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response

def cancel_pipeline_run(
self, resource_group_name, factory_name, run_id, custom_headers=None, raw=False, **operation_config):
"""Cancel a pipeline run by its run ID.

:param resource_group_name: The resource group name.
:type resource_group_name: str
:param factory_name: The factory name.
:type factory_name: str
:param run_id: The pipeline run identifier.
:type run_id: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: None or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if
raw=true
:rtype: None or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises:
:class:`ErrorResponseException<azure.mgmt.datafactory.models.ErrorResponseException>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/cancelpipelinerun/{runId}'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'factoryName': self._serialize.url("factory_name", factory_name, 'str', max_length=63, min_length=3, pattern=r'^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$'),
'runId': self._serialize.url("run_id", run_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)

if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
184 changes: 183 additions & 1 deletion azure-mgmt-datafactory/build.json
Original file line number Diff line number Diff line change
@@ -1 +1,183 @@
{"autorest": "1.2.2", "date": "2017-09-22T16:20:05Z", "version": ""}
{
"autorest": [
{
"resolvedInfo": null,
"packageMetadata": {
"name": "@microsoft.azure/autorest-core",
"version": "2.0.4147",
"engines": {
"node": ">=7.10.0"
},
"dependencies": {},
"optionalDependencies": {},
"devDependencies": {
"@microsoft.azure/async-io": "~1.0.21",
"@microsoft.azure/extension": "~1.1.5",
"@types/commonmark": "^0.27.0",
"@types/jsonpath": "^0.1.29",
"@types/node": "^8.0.28",
"@types/pify": "0.0.28",
"@types/source-map": "^0.5.0",
"@types/yargs": "^8.0.2",
"commonmark": "^0.27.0",
"file-url": "^2.0.2",
"get-uri": "^2.0.0",
"jsonpath": "^0.2.11",
"linq-es2015": "^2.4.25",
"mocha": "3.4.2",
"mocha-typescript": "1.1.5",
"pify": "^3.0.0",
"safe-eval": "^0.3.0",
"shx": "^0.2.2",
"source-map": "^0.5.6",
"source-map-support": "^0.4.15",
"strip-bom": "^3.0.0",
"typescript": "2.4.1",
"untildify": "^3.0.2",
"urijs": "^1.18.10",
"vscode-jsonrpc": "^3.3.1",
"yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz",
"yargs": "^8.0.2"
},
"bundleDependencies": false,
"peerDependencies": {},
"deprecated": false,
"_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core",
"_shasum": "cfad16a831757f2f55e53bf56669d126cd36113a",
"_shrinkwrap": null,
"bin": null,
"_id": "@microsoft.azure/autorest-core@2.0.4147",
"_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core",
"_requested": {
"type": "directory",
"where": "/git-restapi",
"raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core",
"rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core",
"saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core",
"fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core"
},
"_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core",
"_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4147/node_modules/@microsoft.azure/autorest-core"
},
"extensionManager": {
"installationPath": "/root/.autorest",
"dotnetPath": "/root/.dotnet"
},
"installationPath": "/root/.autorest"
},
{
"resolvedInfo": null,
"packageMetadata": {
"name": "@microsoft.azure/autorest.modeler",
"version": "2.0.18",
"dependencies": {
"dotnet-2.0.0": "^1.1.0"
},
"optionalDependencies": {},
"devDependencies": {
"coffee-script": "^1.11.1",
"dotnet-sdk-2.0.0": "^1.1.1",
"gulp": "^3.9.1",
"gulp-filter": "^5.0.0",
"gulp-line-ending-corrector": "^1.0.1",
"iced-coffee-script": "^108.0.11",
"marked": "^0.3.6",
"marked-terminal": "^2.0.0",
"moment": "^2.17.1",
"run-sequence": "*",
"shx": "^0.2.2",
"through2-parallel": "^0.1.3",
"yargs": "^8.0.2",
"yarn": "^1.0.2"
},
"bundleDependencies": false,
"peerDependencies": {},
"deprecated": false,
"_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler",
"_shasum": "b8e853f83b99b2a37ad534cb8463da5de4b11418",
"_shrinkwrap": null,
"bin": null,
"_id": "@microsoft.azure/autorest.modeler@2.0.18",
"_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler",
"_requested": {
"type": "directory",
"where": "/git-restapi",
"raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler",
"rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler",
"saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler",
"fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler"
},
"_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler",
"_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler"
},
"extensionManager": {
"installationPath": "/root/.autorest",
"dotnetPath": "/root/.dotnet"
},
"installationPath": "/root/.autorest"
},
{
"resolvedInfo": null,
"packageMetadata": {
"name": "@microsoft.azure/autorest.python",
"version": "2.0.13",
"dependencies": {
"dotnet-2.0.0": "^1.1.0"
},
"optionalDependencies": {},
"devDependencies": {
"@microsoft.azure/autorest.testserver": "^1.9.0",
"autorest": "^2.0.0",
"coffee-script": "^1.11.1",
"dotnet-sdk-2.0.0": "^1.1.1",
"gulp": "^3.9.1",
"gulp-filter": "^5.0.0",
"gulp-line-ending-corrector": "^1.0.1",
"iced-coffee-script": "^108.0.11",
"marked": "^0.3.6",
"marked-terminal": "^2.0.0",
"moment": "^2.17.1",
"run-sequence": "*",
"shx": "^0.2.2",
"through2-parallel": "^0.1.3",
"yargs": "^8.0.2",
"yarn": "^1.0.2"
},
"bundleDependencies": false,
"peerDependencies": {},
"deprecated": false,
"_resolved": "/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python",
"_shasum": "ddbbf3e3f1f90ae4132b687cfa8450425ab4ffcd",
"_shrinkwrap": null,
"bin": null,
"_id": "@microsoft.azure/autorest.python@2.0.13",
"_from": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python",
"_requested": {
"type": "directory",
"where": "/git-restapi",
"raw": "/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python",
"rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python",
"saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python",
"fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python"
},
"_spec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python",
"_where": "/root/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python"
},
"extensionManager": {
"installationPath": "/root/.autorest",
"dotnetPath": "/root/.dotnet"
},
"installationPath": "/root/.autorest"
}
],
"autorest_bootstrap": {
"dependencies": {
"autorest": {
"version": "2.0.4147",
"from": "autorest@latest",
"resolved": "https://registry.npmjs.org/autorest/-/autorest-2.0.4147.tgz"
}
}
},
"date": "2017-10-03T20:54:19Z"
}