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 15498 in Azure/azure-rest-api-specs
Merge c355e6ba1e7c8f33e3195b7335c6d21d1cd4b031 into bb530add3bb77c84e4e042b7e094b15cad91442a
- Loading branch information
SDKAuto
committed
Aug 10, 2021
1 parent
3b51a6e
commit 06b6578
Showing
14 changed files
with
308 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
100 changes: 100 additions & 0 deletions
100
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,100 @@ | ||
/* | ||
* 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 a list of egress endpoints (network endpoints of all outbound dependencies) in the | ||
* specified Workspace. The operation returns properties of each egress endpoint. | ||
* @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.