Skip to content

Commit

Permalink
CodeGen from PR 16616 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Synapse] Decouple dependencies among Swagger specs  (Azure#16616)

* extract workspaceNameParameter to common

* move some definitions to common folder

* workspaceNameParameter

* fix

* fix

* revert for libraryInfo

* fix for breaking change

* test for breaking change

* test for breaking change
  • Loading branch information
SDKAuto committed Nov 2, 2021
1 parent ff8f058 commit abc2e96
Show file tree
Hide file tree
Showing 66 changed files with 544 additions and 579 deletions.
2 changes: 1 addition & 1 deletion sdk/synapse/arm-synapse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/synapse/arm-synapse",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/synapse/arm-synapse",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
7 changes: 6 additions & 1 deletion sdk/synapse/arm-synapse/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5321,6 +5321,11 @@ export interface EventHubDataConnection {
* 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled'
*/
provisioningState?: ResourceProvisioningState;
/**
* The resource ID of a managed identity (system or user assigned) to be used to authenticate
* with event hub.
*/
managedIdentityResourceId?: string;
}

/**
Expand Down Expand Up @@ -11544,7 +11549,7 @@ export type KustoOperationsListNextResponse = OperationListResult & {
/**
* Contains response data for the listSkus operation.
*/
export type KustoPoolListSkusResponse = SkuDescriptionList & {
export type KustoPoolsListSkusResponse = SkuDescriptionList & {
/**
* The underlying HTTP response.
*/
Expand Down
17 changes: 0 additions & 17 deletions sdk/synapse/arm-synapse/src/models/kustoPoolOperationsMappers.ts

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/synapse/arm-synapse/src/models/kustoPoolsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export {
ServerSecurityAlertPolicy,
ServerVulnerabilityAssessment,
Sku,
SkuDescription,
SkuDescriptionList,
SkuLocationInfoItem,
SparkConfigProperties,
SparkConfigurationResource,
SqlPool,
Expand Down
6 changes: 6 additions & 0 deletions sdk/synapse/arm-synapse/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7771,6 +7771,12 @@ export const EventHubDataConnection: msRest.CompositeMapper = {
type: {
name: "String"
}
},
managedIdentityResourceId: {
serializedName: "properties.managedIdentityResourceId",
type: {
name: "String"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ export class AzureADOnlyAuthentications {
* Gets a Azure Active Directory only authentication property
* @summary Get Azure Active Directory only authentication property
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param [options] The optional parameters
* @returns Promise<Models.AzureADOnlyAuthenticationsGetResponse>
*/
get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.AzureADOnlyAuthenticationsGetResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param callback The callback
*/
get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback<Models.AzureADOnlyAuthentication>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param options The optional parameters
* @param callback The callback
*/
Expand All @@ -63,7 +63,7 @@ export class AzureADOnlyAuthentications {
* Create or Update a Azure Active Directory only authentication property for the workspaces
* @summary Create or Update Azure Active Directory only authentication property
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param azureADOnlyAuthenticationInfo Azure Active Directory Property
* @param [options] The optional parameters
* @returns Promise<Models.AzureADOnlyAuthenticationsCreateResponse>
Expand All @@ -77,20 +77,20 @@ export class AzureADOnlyAuthentications {
* Gets a list of Azure Active Directory only authentication property for a workspace
* @summary Gets a list of Azure Active Directory only authentication property
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param [options] The optional parameters
* @returns Promise<Models.AzureADOnlyAuthenticationsListResponse>
*/
list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.AzureADOnlyAuthenticationsListResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param callback The callback
*/
list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback<Models.AzureADOnlyAuthenticationListResult>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param options The optional parameters
* @param callback The callback
*/
Expand All @@ -110,7 +110,7 @@ export class AzureADOnlyAuthentications {
* Create or Update a Azure Active Directory only authentication property for the workspaces
* @summary Create or Update Azure Active Directory only authentication property
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param azureADOnlyAuthenticationInfo Azure Active Directory Property
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
Expand Down
26 changes: 13 additions & 13 deletions sdk/synapse/arm-synapse/src/operations/bigDataPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ export class BigDataPools {
* Get a Big Data pool.
* @summary Get Big Data pool
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param [options] The optional parameters
* @returns Promise<Models.BigDataPoolsGetResponse>
*/
get(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.BigDataPoolsGetResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param callback The callback
*/
get(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, callback: msRest.ServiceCallback<Models.BigDataPoolResourceInfo>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param options The optional parameters
* @param callback The callback
Expand All @@ -67,7 +67,7 @@ export class BigDataPools {
* Patch a Big Data pool.
* @summary Update a Big Data pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param bigDataPoolPatchInfo The updated Big Data pool properties
* @param [options] The optional parameters
Expand All @@ -76,15 +76,15 @@ export class BigDataPools {
update(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: Models.BigDataPoolPatchInfo, options?: msRest.RequestOptionsBase): Promise<Models.BigDataPoolsUpdateResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param bigDataPoolPatchInfo The updated Big Data pool properties
* @param callback The callback
*/
update(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: Models.BigDataPoolPatchInfo, callback: msRest.ServiceCallback<Models.BigDataPoolResourceInfo>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param bigDataPoolPatchInfo The updated Big Data pool properties
* @param options The optional parameters
Expand All @@ -108,7 +108,7 @@ export class BigDataPools {
* Create a new Big Data pool.
* @summary Create a Big Data pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param bigDataPoolInfo The Big Data pool to create.
* @param [options] The optional parameters
Expand All @@ -123,7 +123,7 @@ export class BigDataPools {
* Delete a Big Data pool from the workspace.
* @summary Delete a Big Data pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param [options] The optional parameters
* @returns Promise<Models.BigDataPoolsDeleteMethodResponse>
Expand All @@ -137,20 +137,20 @@ export class BigDataPools {
* List Big Data pools in a workspace.
* @summary List the Big Data pools in a workspace.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param [options] The optional parameters
* @returns Promise<Models.BigDataPoolsListByWorkspaceResponse>
*/
listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.BigDataPoolsListByWorkspaceResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param callback The callback
*/
listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback<Models.BigDataPoolResourceInfoListResult>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param options The optional parameters
* @param callback The callback
*/
Expand All @@ -170,7 +170,7 @@ export class BigDataPools {
* Create a new Big Data pool.
* @summary Create a Big Data pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param bigDataPoolInfo The Big Data pool to create.
* @param [options] The optional parameters
Expand All @@ -193,7 +193,7 @@ export class BigDataPools {
* Delete a Big Data pool from the workspace.
* @summary Delete a Big Data pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param bigDataPoolName Big Data pool name
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
Expand Down
12 changes: 6 additions & 6 deletions sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class DataMaskingPolicies {
/**
* Creates or updates a Sql pool data masking policy
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param parameters Parameters for creating or updating a data masking policy.
* @param [options] The optional parameters
Expand All @@ -37,15 +37,15 @@ export class DataMaskingPolicies {
createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase): Promise<Models.DataMaskingPoliciesCreateOrUpdateResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param parameters Parameters for creating or updating a data masking policy.
* @param callback The callback
*/
createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.DataMaskingPolicy, callback: msRest.ServiceCallback<Models.DataMaskingPolicy>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param parameters Parameters for creating or updating a data masking policy.
* @param options The optional parameters
Expand All @@ -68,22 +68,22 @@ export class DataMaskingPolicies {
/**
* Gets a Sql pool data masking policy.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param [options] The optional parameters
* @returns Promise<Models.DataMaskingPoliciesGetResponse>
*/
get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.DataMaskingPoliciesGetResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param callback The callback
*/
get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback<Models.DataMaskingPolicy>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param options The optional parameters
* @param callback The callback
Expand Down
18 changes: 9 additions & 9 deletions sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class DataMaskingRules {
/**
* Creates or updates a Sql pool data masking rule.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param dataMaskingRuleName The name of the data masking rule.
* @param parameters The required parameters for creating or updating a data masking rule.
Expand All @@ -38,7 +38,7 @@ export class DataMaskingRules {
createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase): Promise<Models.DataMaskingRulesCreateOrUpdateResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param dataMaskingRuleName The name of the data masking rule.
* @param parameters The required parameters for creating or updating a data masking rule.
Expand All @@ -47,7 +47,7 @@ export class DataMaskingRules {
createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, callback: msRest.ServiceCallback<Models.DataMaskingRule>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param dataMaskingRuleName The name of the data masking rule.
* @param parameters The required parameters for creating or updating a data masking rule.
Expand All @@ -72,7 +72,7 @@ export class DataMaskingRules {
/**
* Gets the specific Sql pool data masking rule.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param dataMaskingRuleName The name of the data masking rule.
* @param [options] The optional parameters
Expand All @@ -81,15 +81,15 @@ export class DataMaskingRules {
get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, options?: msRest.RequestOptionsBase): Promise<Models.DataMaskingRulesGetResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param dataMaskingRuleName The name of the data masking rule.
* @param callback The callback
*/
get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, callback: msRest.ServiceCallback<Models.DataMaskingRule>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param dataMaskingRuleName The name of the data masking rule.
* @param options The optional parameters
Expand All @@ -112,22 +112,22 @@ export class DataMaskingRules {
/**
* Gets a list of Sql pool data masking rules.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param [options] The optional parameters
* @returns Promise<Models.DataMaskingRulesListBySqlPoolResponse>
*/
listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.DataMaskingRulesListBySqlPoolResponse>;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param callback The callback
*/
listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback<Models.DataMaskingRuleListResult>): void;
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name
* @param options The optional parameters
* @param callback The callback
Expand Down
Loading

0 comments on commit abc2e96

Please sign in to comment.