Skip to content

Commit 3697262

Browse files
author
SDK Automation
committed
Generated from 1e3ee87586e181de5cf81141896a89fe8f7120f0
lint
1 parent 28b4562 commit 3697262

File tree

2 files changed

+67
-2
lines changed

2 files changed

+67
-2
lines changed

sdk/datafactory/arm-datafactory/src/models/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21892,8 +21892,8 @@ export interface WebHookActivity {
2189221892
*/
2189321893
authentication?: WebActivityAuthentication;
2189421894
/**
21895-
* When set to true, statusCode, output and error in callback request body will be consumed by
21896-
* activity. The activity can be marked as failed by setting statusCode >= 400 in callback
21895+
* When set to true, statusCode, output and error in callback request body will be consumed by
21896+
* activity. The activity can be marked as failed by setting statusCode >= 400 in callback
2189721897
* request. Default is false. Type: boolean (or Expression with resultType boolean).
2189821898
*/
2189921899
reportStatusOnCallBack?: any;

sdk/datafactory/arm-datafactory/src/operations/triggerRuns.ts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,46 @@ export class TriggerRuns {
6666
callback);
6767
}
6868

69+
/**
70+
* Cancel a single trigger instance by runId.
71+
* @param resourceGroupName The resource group name.
72+
* @param factoryName The factory name.
73+
* @param triggerName The trigger name.
74+
* @param runId The pipeline run identifier.
75+
* @param [options] The optional parameters
76+
* @returns Promise<msRest.RestResponse>
77+
*/
78+
cancel(resourceGroupName: string, factoryName: string, triggerName: string, runId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
79+
/**
80+
* @param resourceGroupName The resource group name.
81+
* @param factoryName The factory name.
82+
* @param triggerName The trigger name.
83+
* @param runId The pipeline run identifier.
84+
* @param callback The callback
85+
*/
86+
cancel(resourceGroupName: string, factoryName: string, triggerName: string, runId: string, callback: msRest.ServiceCallback<void>): void;
87+
/**
88+
* @param resourceGroupName The resource group name.
89+
* @param factoryName The factory name.
90+
* @param triggerName The trigger name.
91+
* @param runId The pipeline run identifier.
92+
* @param options The optional parameters
93+
* @param callback The callback
94+
*/
95+
cancel(resourceGroupName: string, factoryName: string, triggerName: string, runId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
96+
cancel(resourceGroupName: string, factoryName: string, triggerName: string, runId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
97+
return this.client.sendOperationRequest(
98+
{
99+
resourceGroupName,
100+
factoryName,
101+
triggerName,
102+
runId,
103+
options
104+
},
105+
cancelOperationSpec,
106+
callback);
107+
}
108+
69109
/**
70110
* Query trigger runs.
71111
* @param resourceGroupName The resource group name.
@@ -130,6 +170,31 @@ const rerunOperationSpec: msRest.OperationSpec = {
130170
serializer
131171
};
132172

173+
const cancelOperationSpec: msRest.OperationSpec = {
174+
httpMethod: "POST",
175+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel",
176+
urlParameters: [
177+
Parameters.subscriptionId,
178+
Parameters.resourceGroupName,
179+
Parameters.factoryName,
180+
Parameters.triggerName,
181+
Parameters.runId
182+
],
183+
queryParameters: [
184+
Parameters.apiVersion
185+
],
186+
headerParameters: [
187+
Parameters.acceptLanguage
188+
],
189+
responses: {
190+
200: {},
191+
default: {
192+
bodyMapper: Mappers.CloudError
193+
}
194+
},
195+
serializer
196+
};
197+
133198
const queryByFactoryOperationSpec: msRest.OperationSpec = {
134199
httpMethod: "POST",
135200
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns",

0 commit comments

Comments
 (0)