Skip to content

Commit

Permalink
[AutoPR datafactory/resource-manager] [Datafactory] Add Webhook Activ…
Browse files Browse the repository at this point in the history
…ity to Azure Data Factory (#912)

* Generated from 30ce8a5d068ff6b375d77746ce44810802593ade

remove timeout as required

* Generated from 0d3bebe04c8ee34399f725a3581ba55cebff214f

combine and update web auth definitions

* Generated from dafb0014942f618644438753c10df85ea504ccfa

revert auth type enum change
  • Loading branch information
AutorestCI authored Jan 10, 2019
1 parent 520827d commit 0f6b392
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
70 changes: 69 additions & 1 deletion packages/@azure/arm-datafactory/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14383,7 +14383,7 @@ export interface CopyActivity {
/**
* Contains the possible cases for ControlActivity.
*/
export type ControlActivityUnion = ControlActivity | AppendVariableActivity | SetVariableActivity | FilterActivity | UntilActivity | WaitActivity | ForEachActivity | IfConditionActivity | ExecutePipelineActivity;
export type ControlActivityUnion = ControlActivity | AppendVariableActivity | SetVariableActivity | FilterActivity | UntilActivity | WaitActivity | ForEachActivity | IfConditionActivity | WebHookActivity | ExecutePipelineActivity;

/**
* @interface
Expand Down Expand Up @@ -14708,6 +14708,66 @@ export interface IfConditionActivity {
ifFalseActivities?: ActivityUnion[];
}

/**
* @interface
* An interface representing WebHookActivity.
* WebHook activity.
*
*/
export interface WebHookActivity {
/**
* @member {string} type Polymorphic Discriminator
*/
type: "WebHook";
/**
* @member {string} name Activity name.
*/
name: string;
/**
* @member {string} [description] Activity description.
*/
description?: string;
/**
* @member {ActivityDependency[]} [dependsOn] Activity depends on condition.
*/
dependsOn?: ActivityDependency[];
/**
* @member {UserProperty[]} [userProperties] Activity user properties.
*/
userProperties?: UserProperty[];
/**
* @member {any} url WebHook activity target endpoint and path. Type: string
* (or Expression with resultType string).
*/
url: any;
/**
* @member {any} [timeout] Specifies the timeout within which the webhook
* should be called back. If there is no value specified, it takes the value
* of TimeSpan.FromMinutes(10) which is 10 minutes as default. Type: string
* (or Expression with resultType string), pattern:
* ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
timeout?: any;
/**
* @member {any} [headers] Represents the headers that will be sent to the
* request. For example, to set the language and type on a request: "headers"
* : { "Accept-Language": "en-us", "Content-Type": "application/json" }.
* Type: string (or Expression with resultType string).
*/
headers?: any;
/**
* @member {any} [body] Represents the payload that will be sent to the
* endpoint. Required for POST/PUT method, not allowed for GET method Type:
* string (or Expression with resultType string).
*/
body?: any;
/**
* @member {WebActivityAuthentication} [authentication] Authentication method
* used for calling the endpoint.
*/
authentication?: WebActivityAuthentication;
}

/**
* @interface
* An interface representing ExecutePipelineActivity.
Expand Down Expand Up @@ -16534,6 +16594,14 @@ export type PolybaseSettingsRejectType = 'value' | 'percentage';
*/
export type SapCloudForCustomerSinkWriteBehavior = 'Insert' | 'Update';

/**
* Defines values for WebHookActivityMethod.
* Possible values include: 'POST'
* @readonly
* @enum {string}
*/
export type WebHookActivityMethod = 'POST';

/**
* Defines values for IntegrationRuntimeType.
* Possible values include: 'Managed', 'SelfHosted'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
56 changes: 56 additions & 0 deletions packages/@azure/arm-datafactory/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13064,6 +13064,61 @@ export const IfConditionActivity: msRest.CompositeMapper = {
}
};

export const WebHookActivity: msRest.CompositeMapper = {
serializedName: "WebHook",
type: {
name: "Composite",
polymorphicDiscriminator: Activity.type.polymorphicDiscriminator,
uberParent: "Activity",
className: "WebHookActivity",
modelProperties: {
...ControlActivity.type.modelProperties,
method: {
required: true,
isConstant: true,
serializedName: "typeProperties.method",
defaultValue: 'POST',
type: {
name: "String"
}
},
url: {
required: true,
serializedName: "typeProperties.url",
type: {
name: "Object"
}
},
timeout: {
serializedName: "typeProperties.timeout",
type: {
name: "Object"
}
},
headers: {
serializedName: "typeProperties.headers",
type: {
name: "Object"
}
},
body: {
serializedName: "typeProperties.body",
type: {
name: "Object"
}
},
authentication: {
serializedName: "typeProperties.authentication",
type: {
name: "Composite",
className: "WebActivityAuthentication"
}
}
},
additionalProperties: Activity.type.additionalProperties
}
};

export const ExecutePipelineActivity: msRest.CompositeMapper = {
serializedName: "ExecutePipeline",
type: {
Expand Down Expand Up @@ -14798,6 +14853,7 @@ export const discriminators = {
'Activity.Wait' : WaitActivity,
'Activity.ForEach' : ForEachActivity,
'Activity.IfCondition' : IfConditionActivity,
'Activity.WebHook' : WebHookActivity,
'Activity.ExecutePipeline' : ExecutePipelineActivity,
'Activity.Container' : ControlActivity,
'IntegrationRuntimeStatus.SelfHosted' : SelfHostedIntegrationRuntimeStatus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down

0 comments on commit 0f6b392

Please sign in to comment.