Skip to content

Commit

Permalink
Generated from b630fbb8f3473ceced4556404f4d987f85661be5
Browse files Browse the repository at this point in the history
fix defn
  • Loading branch information
SDK Automation committed Aug 1, 2020
1 parent 3ac835f commit f754c4e
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
export {
discriminators,
CloudError,
ExposureControlBatchRequest,
ExposureControlBatchResponse,
ExposureControlRequest,
ExposureControlResponse
} from "../models/mappers";
40 changes: 40 additions & 0 deletions sdk/datafactory/arm-datafactory/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,16 @@ export interface ExposureControlRequest {
featureType?: string;
}

/**
* A list of exposure control features.
*/
export interface ExposureControlBatchRequest {
/**
* List of exposure control features.
*/
exposureControlRequests: ExposureControlRequest[];
}

/**
* The exposure control response.
*/
Expand All @@ -1599,6 +1609,16 @@ export interface ExposureControlResponse {
readonly value?: string;
}

/**
* A list of exposure control feature values.
*/
export interface ExposureControlBatchResponse {
/**
* List of exposure control feature values.
*/
exposureControlResponses: ExposureControlResponse[];
}

/**
* The folder that this data flow is in. If not specified, Data flow will appear at the root level.
*/
Expand Down Expand Up @@ -24820,6 +24840,26 @@ export type ExposureControlGetFeatureValueByFactoryResponse = ExposureControlRes
};
};

/**
* Contains response data for the queryFeatureValuesByFactory operation.
*/
export type ExposureControlQueryFeatureValuesByFactoryResponse = ExposureControlBatchResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ExposureControlBatchResponse;
};
};

/**
* Contains response data for the listByFactory operation.
*/
Expand Down
46 changes: 46 additions & 0 deletions sdk/datafactory/arm-datafactory/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,29 @@ export const ExposureControlRequest: msRest.CompositeMapper = {
}
};

export const ExposureControlBatchRequest: msRest.CompositeMapper = {
serializedName: "ExposureControlBatchRequest",
type: {
name: "Composite",
className: "ExposureControlBatchRequest",
modelProperties: {
exposureControlRequests: {
required: true,
serializedName: "exposureControlRequests",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "ExposureControlRequest"
}
}
}
}
}
}
};

export const ExposureControlResponse: msRest.CompositeMapper = {
serializedName: "ExposureControlResponse",
type: {
Expand All @@ -2710,6 +2733,29 @@ export const ExposureControlResponse: msRest.CompositeMapper = {
}
};

export const ExposureControlBatchResponse: msRest.CompositeMapper = {
serializedName: "ExposureControlBatchResponse",
type: {
name: "Composite",
className: "ExposureControlBatchResponse",
modelProperties: {
exposureControlResponses: {
required: true,
serializedName: "exposureControlResponses",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "ExposureControlResponse"
}
}
}
}
}
}
};

export const DataFlowFolder: msRest.CompositeMapper = {
serializedName: "DataFlow_folder",
type: {
Expand Down
68 changes: 68 additions & 0 deletions sdk/datafactory/arm-datafactory/src/operations/exposureControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,42 @@ export class ExposureControl {
getFeatureValueByFactoryOperationSpec,
callback) as Promise<Models.ExposureControlGetFeatureValueByFactoryResponse>;
}

/**
* Get list of exposure control features for specific factory.
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param exposureControlBatchRequest The exposure control request for list of features.
* @param [options] The optional parameters
* @returns Promise<Models.ExposureControlQueryFeatureValuesByFactoryResponse>
*/
queryFeatureValuesByFactory(resourceGroupName: string, factoryName: string, exposureControlBatchRequest: Models.ExposureControlBatchRequest, options?: msRest.RequestOptionsBase): Promise<Models.ExposureControlQueryFeatureValuesByFactoryResponse>;
/**
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param exposureControlBatchRequest The exposure control request for list of features.
* @param callback The callback
*/
queryFeatureValuesByFactory(resourceGroupName: string, factoryName: string, exposureControlBatchRequest: Models.ExposureControlBatchRequest, callback: msRest.ServiceCallback<Models.ExposureControlBatchResponse>): void;
/**
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param exposureControlBatchRequest The exposure control request for list of features.
* @param options The optional parameters
* @param callback The callback
*/
queryFeatureValuesByFactory(resourceGroupName: string, factoryName: string, exposureControlBatchRequest: Models.ExposureControlBatchRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ExposureControlBatchResponse>): void;
queryFeatureValuesByFactory(resourceGroupName: string, factoryName: string, exposureControlBatchRequest: Models.ExposureControlBatchRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ExposureControlBatchResponse>, callback?: msRest.ServiceCallback<Models.ExposureControlBatchResponse>): Promise<Models.ExposureControlQueryFeatureValuesByFactoryResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
factoryName,
exposureControlBatchRequest,
options
},
queryFeatureValuesByFactoryOperationSpec,
callback) as Promise<Models.ExposureControlQueryFeatureValuesByFactoryResponse>;
}
}

// Operation Specifications
Expand Down Expand Up @@ -159,3 +195,35 @@ const getFeatureValueByFactoryOperationSpec: msRest.OperationSpec = {
},
serializer
};

const queryFeatureValuesByFactoryOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.factoryName
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "exposureControlBatchRequest",
mapper: {
...Mappers.ExposureControlBatchRequest,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.ExposureControlBatchResponse
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};

0 comments on commit f754c4e

Please sign in to comment.