@azure/arm-databricks 0.1.0 → 3.0.0-alpha.20211103.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +71 -77
- package/dist/index.js +3186 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/azureDatabricksManagementClient.d.ts +20 -0
- package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureDatabricksManagementClient.js +27 -0
- package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -0
- package/dist-esm/src/azureDatabricksManagementClientContext.d.ts +16 -0
- package/dist-esm/src/azureDatabricksManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/azureDatabricksManagementClientContext.js +49 -0
- package/dist-esm/src/azureDatabricksManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +839 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +94 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +44 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1298 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +149 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +7 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +14 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts +22 -0
- package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +65 -0
- package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +347 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +169 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/vNetPeering.d.ts +81 -0
- package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -0
- package/dist-esm/src/operations/vNetPeering.js +338 -0
- package/dist-esm/src/operations/vNetPeering.js.map +1 -0
- package/dist-esm/src/operations/workspaces.d.ts +107 -0
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/workspaces.js +500 -0
- package/dist-esm/src/operations/workspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vNetPeering.js +9 -0
- package/dist-esm/src/operationsInterfaces/vNetPeering.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
- package/dist-esm/test/databricks_examples.d.ts +2 -0
- package/dist-esm/test/databricks_examples.d.ts.map +1 -0
- package/dist-esm/test/databricks_examples.js +100 -0
- package/dist-esm/test/databricks_examples.js.map +1 -0
- package/package.json +72 -25
- package/review/arm-databricks.api.md +742 -0
- package/rollup.config.js +184 -27
- package/src/azureDatabricksManagementClient.ts +58 -0
- package/src/azureDatabricksManagementClientContext.ts +70 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +960 -0
- package/src/models/mappers.ts +1368 -0
- package/src/models/parameters.ts +174 -0
- package/src/operations/index.ts +14 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/outboundNetworkDependenciesEndpoints.ts +85 -0
- package/src/operations/privateEndpointConnections.ts +481 -0
- package/src/operations/privateLinkResources.ts +221 -0
- package/src/operations/vNetPeering.ts +483 -0
- package/src/operations/workspaces.ts +674 -0
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +29 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/src/operationsInterfaces/vNetPeering.ts +109 -0
- package/src/operationsInterfaces/workspaces.ts +139 -0
- package/tsconfig.json +4 -4
- package/types/arm-databricks.d.ts +1198 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-databricks.js +0 -1078
- package/dist/arm-databricks.js.map +0 -1
- package/dist/arm-databricks.min.js +0 -1
- package/dist/arm-databricks.min.js.map +0 -1
- package/esm/databricksClient.d.ts +0 -19
- package/esm/databricksClient.d.ts.map +0 -1
- package/esm/databricksClient.js +0 -34
- package/esm/databricksClient.js.map +0 -1
- package/esm/databricksClientContext.d.ts +0 -16
- package/esm/databricksClientContext.d.ts.map +0 -1
- package/esm/databricksClientContext.js +0 -56
- package/esm/databricksClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -486
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -17
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -370
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -80
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/workspacesMappers.d.ts +0 -2
- package/esm/models/workspacesMappers.d.ts.map +0 -1
- package/esm/models/workspacesMappers.js +0 -11
- package/esm/models/workspacesMappers.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/workspaces.d.ts +0 -156
- package/esm/operations/workspaces.d.ts.map +0 -1
- package/esm/operations/workspaces.js +0 -332
- package/esm/operations/workspaces.js.map +0 -1
- package/lib/databricksClient.ts +0 -44
- package/lib/databricksClientContext.ts +0 -62
- package/lib/models/index.ts +0 -520
- package/lib/models/mappers.ts +0 -396
- package/lib/models/operationsMappers.ts +0 -19
- package/lib/models/parameters.ts +0 -82
- package/lib/models/workspacesMappers.ts +0 -24
- package/lib/operations/index.ts +0 -12
- package/lib/operations/operations.ts +0 -123
- package/lib/operations/workspaces.ts +0 -474
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
Workspace as WorkspaceMapper,
|
|
16
|
+
WorkspaceUpdate as WorkspaceUpdateMapper,
|
|
17
|
+
PrivateEndpointConnection as PrivateEndpointConnectionMapper,
|
|
18
|
+
VirtualNetworkPeering as VirtualNetworkPeeringMapper
|
|
19
|
+
} from "../models/mappers";
|
|
20
|
+
|
|
21
|
+
export const accept: OperationParameter = {
|
|
22
|
+
parameterPath: "accept",
|
|
23
|
+
mapper: {
|
|
24
|
+
defaultValue: "application/json",
|
|
25
|
+
isConstant: true,
|
|
26
|
+
serializedName: "Accept",
|
|
27
|
+
type: {
|
|
28
|
+
name: "String"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const $host: OperationURLParameter = {
|
|
34
|
+
parameterPath: "$host",
|
|
35
|
+
mapper: {
|
|
36
|
+
serializedName: "$host",
|
|
37
|
+
required: true,
|
|
38
|
+
type: {
|
|
39
|
+
name: "String"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
skipEncoding: true
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
46
|
+
parameterPath: "resourceGroupName",
|
|
47
|
+
mapper: {
|
|
48
|
+
constraints: {
|
|
49
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
|
50
|
+
MaxLength: 90,
|
|
51
|
+
MinLength: 1
|
|
52
|
+
},
|
|
53
|
+
serializedName: "resourceGroupName",
|
|
54
|
+
required: true,
|
|
55
|
+
type: {
|
|
56
|
+
name: "String"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const workspaceName: OperationURLParameter = {
|
|
62
|
+
parameterPath: "workspaceName",
|
|
63
|
+
mapper: {
|
|
64
|
+
constraints: {
|
|
65
|
+
MaxLength: 64,
|
|
66
|
+
MinLength: 3
|
|
67
|
+
},
|
|
68
|
+
serializedName: "workspaceName",
|
|
69
|
+
required: true,
|
|
70
|
+
type: {
|
|
71
|
+
name: "String"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const apiVersion: OperationQueryParameter = {
|
|
77
|
+
parameterPath: "apiVersion",
|
|
78
|
+
mapper: {
|
|
79
|
+
defaultValue: "2021-04-01-preview",
|
|
80
|
+
isConstant: true,
|
|
81
|
+
serializedName: "api-version",
|
|
82
|
+
type: {
|
|
83
|
+
name: "String"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const subscriptionId: OperationURLParameter = {
|
|
89
|
+
parameterPath: "subscriptionId",
|
|
90
|
+
mapper: {
|
|
91
|
+
serializedName: "subscriptionId",
|
|
92
|
+
required: true,
|
|
93
|
+
type: {
|
|
94
|
+
name: "String"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const contentType: OperationParameter = {
|
|
100
|
+
parameterPath: ["options", "contentType"],
|
|
101
|
+
mapper: {
|
|
102
|
+
defaultValue: "application/json",
|
|
103
|
+
isConstant: true,
|
|
104
|
+
serializedName: "Content-Type",
|
|
105
|
+
type: {
|
|
106
|
+
name: "String"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const parameters: OperationParameter = {
|
|
112
|
+
parameterPath: "parameters",
|
|
113
|
+
mapper: WorkspaceMapper
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const parameters1: OperationParameter = {
|
|
117
|
+
parameterPath: "parameters",
|
|
118
|
+
mapper: WorkspaceUpdateMapper
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export const nextLink: OperationURLParameter = {
|
|
122
|
+
parameterPath: "nextLink",
|
|
123
|
+
mapper: {
|
|
124
|
+
serializedName: "nextLink",
|
|
125
|
+
required: true,
|
|
126
|
+
type: {
|
|
127
|
+
name: "String"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
skipEncoding: true
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export const groupId: OperationURLParameter = {
|
|
134
|
+
parameterPath: "groupId",
|
|
135
|
+
mapper: {
|
|
136
|
+
serializedName: "groupId",
|
|
137
|
+
required: true,
|
|
138
|
+
type: {
|
|
139
|
+
name: "String"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
145
|
+
parameterPath: "privateEndpointConnectionName",
|
|
146
|
+
mapper: {
|
|
147
|
+
serializedName: "privateEndpointConnectionName",
|
|
148
|
+
required: true,
|
|
149
|
+
type: {
|
|
150
|
+
name: "String"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export const privateEndpointConnection: OperationParameter = {
|
|
156
|
+
parameterPath: "privateEndpointConnection",
|
|
157
|
+
mapper: PrivateEndpointConnectionMapper
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export const peeringName: OperationURLParameter = {
|
|
161
|
+
parameterPath: "peeringName",
|
|
162
|
+
mapper: {
|
|
163
|
+
serializedName: "peeringName",
|
|
164
|
+
required: true,
|
|
165
|
+
type: {
|
|
166
|
+
name: "String"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export const virtualNetworkPeeringParameters: OperationParameter = {
|
|
172
|
+
parameterPath: "virtualNetworkPeeringParameters",
|
|
173
|
+
mapper: VirtualNetworkPeeringMapper
|
|
174
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from "./workspaces";
|
|
10
|
+
export * from "./operations";
|
|
11
|
+
export * from "./privateLinkResources";
|
|
12
|
+
export * from "./privateEndpointConnections";
|
|
13
|
+
export * from "./outboundNetworkDependenciesEndpoints";
|
|
14
|
+
export * from "./vNetPeering";
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: AzureDatabricksManagementClientContext;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: AzureDatabricksManagementClientContext) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Lists all of the available RP operations.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
50
|
+
},
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Operation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Lists all of the available RP operations.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
97
|
+
return this.client.sendOperationRequest(
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Operation Specifications
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.Databricks/operations",
|
|
108
|
+
httpMethod: "GET",
|
|
109
|
+
responses: {
|
|
110
|
+
200: {
|
|
111
|
+
bodyMapper: Mappers.OperationListResult
|
|
112
|
+
},
|
|
113
|
+
default: {
|
|
114
|
+
bodyMapper: Mappers.ErrorResponse
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
120
|
+
serializer
|
|
121
|
+
};
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
123
|
+
path: "{nextLink}",
|
|
124
|
+
httpMethod: "GET",
|
|
125
|
+
responses: {
|
|
126
|
+
200: {
|
|
127
|
+
bodyMapper: Mappers.OperationListResult
|
|
128
|
+
},
|
|
129
|
+
default: {
|
|
130
|
+
bodyMapper: Mappers.ErrorResponse
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
136
|
+
serializer
|
|
137
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { OutboundNetworkDependenciesEndpoints } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext";
|
|
14
|
+
import {
|
|
15
|
+
OutboundNetworkDependenciesEndpointsListOptionalParams,
|
|
16
|
+
OutboundNetworkDependenciesEndpointsListResponse
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/** Class containing OutboundNetworkDependenciesEndpoints operations. */
|
|
20
|
+
export class OutboundNetworkDependenciesEndpointsImpl
|
|
21
|
+
implements OutboundNetworkDependenciesEndpoints {
|
|
22
|
+
private readonly client: AzureDatabricksManagementClientContext;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Initialize a new instance of the class OutboundNetworkDependenciesEndpoints class.
|
|
26
|
+
* @param client Reference to the service client
|
|
27
|
+
*/
|
|
28
|
+
constructor(client: AzureDatabricksManagementClientContext) {
|
|
29
|
+
this.client = client;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
|
|
34
|
+
* must configure outbound access with these endpoints. For more information, see
|
|
35
|
+
* https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param workspaceName The name of the workspace.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
list(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
workspaceName: string,
|
|
43
|
+
options?: OutboundNetworkDependenciesEndpointsListOptionalParams
|
|
44
|
+
): Promise<OutboundNetworkDependenciesEndpointsListResponse> {
|
|
45
|
+
return this.client.sendOperationRequest(
|
|
46
|
+
{ resourceGroupName, workspaceName, options },
|
|
47
|
+
listOperationSpec
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Operation Specifications
|
|
52
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
53
|
+
|
|
54
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
55
|
+
path:
|
|
56
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
|
|
57
|
+
httpMethod: "GET",
|
|
58
|
+
responses: {
|
|
59
|
+
200: {
|
|
60
|
+
bodyMapper: {
|
|
61
|
+
type: {
|
|
62
|
+
name: "Sequence",
|
|
63
|
+
element: {
|
|
64
|
+
type: {
|
|
65
|
+
name: "Composite",
|
|
66
|
+
className: "OutboundEnvironmentEndpoint"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
default: {
|
|
73
|
+
bodyMapper: Mappers.ErrorResponse
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
queryParameters: [Parameters.apiVersion],
|
|
77
|
+
urlParameters: [
|
|
78
|
+
Parameters.$host,
|
|
79
|
+
Parameters.resourceGroupName,
|
|
80
|
+
Parameters.workspaceName,
|
|
81
|
+
Parameters.subscriptionId
|
|
82
|
+
],
|
|
83
|
+
headerParameters: [Parameters.accept],
|
|
84
|
+
serializer
|
|
85
|
+
};
|