Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR datafactory/resource-manager] Remove webhook activity #946

Merged
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 @@ -253,7 +253,6 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
70 changes: 1 addition & 69 deletions packages/@azure/arm-datafactory/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14771,7 +14771,7 @@ export interface CopyActivity {
/**
* Contains the possible cases for ControlActivity.
*/
export type ControlActivityUnion = ControlActivity | AppendVariableActivity | SetVariableActivity | FilterActivity | ValidationActivity | UntilActivity | WaitActivity | ForEachActivity | IfConditionActivity | WebHookActivity | ExecutePipelineActivity;
export type ControlActivityUnion = ControlActivity | AppendVariableActivity | SetVariableActivity | FilterActivity | ValidationActivity | UntilActivity | WaitActivity | ForEachActivity | IfConditionActivity | ExecutePipelineActivity;

/**
* @interface
Expand Down Expand Up @@ -15150,66 +15150,6 @@ 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 @@ -17036,14 +16976,6 @@ 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 @@ -270,7 +270,6 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
56 changes: 0 additions & 56 deletions packages/@azure/arm-datafactory/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13198,61 +13198,6 @@ 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 @@ -14988,7 +14933,6 @@ 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 @@ -254,7 +254,6 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ export {
WaitActivity,
ForEachActivity,
IfConditionActivity,
WebHookActivity,
ExecutePipelineActivity,
LinkedIntegrationRuntimeRbacAuthorization,
LinkedIntegrationRuntimeKeyAuthorization,
Expand Down