forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 16431 in Azure/azure-rest-api-specs
Add track2 batch 4 mysql-->cognitiveservices (Azure#16431) * Add track2 batch 4 mysql-->cognitiveservices * resourcehealth-->sqlvirtualmachine
- Loading branch information
SDKAuto
committed
Oct 18, 2021
1 parent
008ed54
commit 3957a37
Showing
14 changed files
with
309 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
sdk/databricks/arm-databricks/src/models/outboundNetworkDependenciesEndpointsMappers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
|
||
export { | ||
EndpointDependency, | ||
EndpointDetail, | ||
ErrorDetail, | ||
ErrorInfo, | ||
ErrorResponse, | ||
OutboundEnvironmentEndpoint | ||
} from "../models/mappers"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
sdk/databricks/arm-databricks/src/operations/outboundNetworkDependenciesEndpoints.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
import * as msRest from "@azure/ms-rest-js"; | ||
import * as Models from "../models"; | ||
import * as Mappers from "../models/outboundNetworkDependenciesEndpointsMappers"; | ||
import * as Parameters from "../models/parameters"; | ||
import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext"; | ||
|
||
/** Class representing a OutboundNetworkDependenciesEndpoints. */ | ||
export class OutboundNetworkDependenciesEndpoints { | ||
private readonly client: AzureDatabricksManagementClientContext; | ||
|
||
/** | ||
* Create a OutboundNetworkDependenciesEndpoints. | ||
* @param {AzureDatabricksManagementClientContext} client Reference to the service client. | ||
*/ | ||
constructor(client: AzureDatabricksManagementClientContext) { | ||
this.client = client; | ||
} | ||
|
||
/** | ||
* Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. | ||
* You must configure outbound access with these endpoints. For more information, see | ||
* https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr | ||
* @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the | ||
* specified Workspace. | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param workspaceName The name of the workspace. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.OutboundNetworkDependenciesEndpointsListResponse> | ||
*/ | ||
list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.OutboundNetworkDependenciesEndpointsListResponse>; | ||
/** | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param workspaceName The name of the workspace. | ||
* @param callback The callback | ||
*/ | ||
list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback<Models.OutboundEnvironmentEndpoint[]>): void; | ||
/** | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param workspaceName The name of the workspace. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OutboundEnvironmentEndpoint[]>): void; | ||
list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OutboundEnvironmentEndpoint[]>, callback?: msRest.ServiceCallback<Models.OutboundEnvironmentEndpoint[]>): Promise<Models.OutboundNetworkDependenciesEndpointsListResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
resourceGroupName, | ||
workspaceName, | ||
options | ||
}, | ||
listOperationSpec, | ||
callback) as Promise<Models.OutboundNetworkDependenciesEndpointsListResponse>; | ||
} | ||
} | ||
|
||
// Operation Specifications | ||
const serializer = new msRest.Serializer(Mappers); | ||
const listOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "GET", | ||
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", | ||
urlParameters: [ | ||
Parameters.resourceGroupName, | ||
Parameters.workspaceName, | ||
Parameters.subscriptionId | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
headerParameters: [ | ||
Parameters.acceptLanguage | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "OutboundEnvironmentEndpoint" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
default: { | ||
bodyMapper: Mappers.ErrorResponse | ||
} | ||
}, | ||
serializer | ||
}; |
Oops, something went wrong.