@azure/arm-databricks 2.0.0 → 3.0.0-beta.1
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 +14 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +66 -82
- 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/{esm → dist-esm/src}/models/mappers.js +578 -549
- 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/{esm → dist-esm/src}/models/parameters.js +77 -51
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -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/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
- 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/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js} +2 -9
- 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/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -2
- 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 +65 -32
- package/review/arm-databricks.api.md +742 -0
- package/rollup.config.js +181 -30
- package/src/azureDatabricksManagementClient.ts +42 -39
- package/src/azureDatabricksManagementClientContext.ts +45 -40
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +712 -1127
- package/src/models/mappers.ts +585 -552
- package/src/models/parameters.ts +101 -52
- package/src/operations/index.ts +2 -2
- package/src/operations/operations.ts +82 -70
- package/src/operations/outboundNetworkDependenciesEndpoints.ts +85 -0
- package/src/operations/privateEndpointConnections.ts +326 -184
- package/src/operations/privateLinkResources.ts +141 -123
- package/src/operations/vNetPeering.ts +349 -199
- package/src/operations/workspaces.ts +503 -308
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +3 -3
- 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 +3 -3
- package/types/arm-databricks.d.ts +1198 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-databricks.js +0 -2791
- 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/azureDatabricksManagementClient.d.ts +0 -28
- package/esm/azureDatabricksManagementClient.d.ts.map +0 -1
- package/esm/azureDatabricksManagementClient.js +0 -41
- package/esm/azureDatabricksManagementClient.js.map +0 -1
- package/esm/azureDatabricksManagementClientContext.d.ts +0 -21
- package/esm/azureDatabricksManagementClientContext.d.ts.map +0 -1
- package/esm/azureDatabricksManagementClientContext.js +0 -59
- package/esm/azureDatabricksManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -1273
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -43
- package/esm/models/mappers.d.ts.map +0 -1
- 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.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/vNetPeeringMappers.d.ts +0 -2
- package/esm/models/vNetPeeringMappers.d.ts.map +0 -1
- package/esm/models/vNetPeeringMappers.js +0 -9
- package/esm/models/vNetPeeringMappers.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 -9
- package/esm/models/workspacesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- 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 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -122
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -240
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -79
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -119
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/vNetPeering.d.ts +0 -115
- package/esm/operations/vNetPeering.d.ts.map +0 -1
- package/esm/operations/vNetPeering.js +0 -237
- package/esm/operations/vNetPeering.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 -337
- package/esm/operations/workspaces.js.map +0 -1
- package/src/models/privateEndpointConnectionsMappers.ts +0 -43
- package/src/models/privateLinkResourcesMappers.ts +0 -43
- package/src/models/vNetPeeringMappers.ts +0 -43
- package/src/models/workspacesMappers.ts +0 -44
|
@@ -3,282 +3,489 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Workspaces } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
14
|
import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Workspace,
|
|
19
|
+
WorkspacesListByResourceGroupNextOptionalParams,
|
|
20
|
+
WorkspacesListByResourceGroupOptionalParams,
|
|
21
|
+
WorkspacesListBySubscriptionNextOptionalParams,
|
|
22
|
+
WorkspacesListBySubscriptionOptionalParams,
|
|
23
|
+
WorkspacesGetOptionalParams,
|
|
24
|
+
WorkspacesGetResponse,
|
|
25
|
+
WorkspacesDeleteOptionalParams,
|
|
26
|
+
WorkspacesCreateOrUpdateOptionalParams,
|
|
27
|
+
WorkspacesCreateOrUpdateResponse,
|
|
28
|
+
WorkspaceUpdate,
|
|
29
|
+
WorkspacesUpdateOptionalParams,
|
|
30
|
+
WorkspacesUpdateResponse,
|
|
31
|
+
WorkspacesListByResourceGroupResponse,
|
|
32
|
+
WorkspacesListBySubscriptionResponse,
|
|
33
|
+
WorkspacesListByResourceGroupNextResponse,
|
|
34
|
+
WorkspacesListBySubscriptionNextResponse
|
|
35
|
+
} from "../models";
|
|
16
36
|
|
|
17
|
-
|
|
18
|
-
|
|
37
|
+
/// <reference lib="esnext.asynciterable" />
|
|
38
|
+
/** Class containing Workspaces operations. */
|
|
39
|
+
export class WorkspacesImpl implements Workspaces {
|
|
19
40
|
private readonly client: AzureDatabricksManagementClientContext;
|
|
20
41
|
|
|
21
42
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
43
|
+
* Initialize a new instance of the class Workspaces class.
|
|
44
|
+
* @param client Reference to the service client
|
|
24
45
|
*/
|
|
25
46
|
constructor(client: AzureDatabricksManagementClientContext) {
|
|
26
47
|
this.client = client;
|
|
27
48
|
}
|
|
28
49
|
|
|
29
50
|
/**
|
|
30
|
-
* Gets the
|
|
31
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
-
* @param workspaceName The name of the workspace.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.WorkspacesGetResponse>
|
|
35
|
-
*/
|
|
36
|
-
get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesGetResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
-
* @param workspaceName The name of the workspace.
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback<Models.Workspace>): void;
|
|
43
|
-
/**
|
|
51
|
+
* Gets all the workspaces within a resource group.
|
|
44
52
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
-
* @param
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
53
|
+
* @param options The options parameters.
|
|
48
54
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
public listByResourceGroup(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
options?: WorkspacesListByResourceGroupOptionalParams
|
|
58
|
+
): PagedAsyncIterableIterator<Workspace> {
|
|
59
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: () => {
|
|
68
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
private async *listByResourceGroupPagingPage(
|
|
74
|
+
resourceGroupName: string,
|
|
75
|
+
options?: WorkspacesListByResourceGroupOptionalParams
|
|
76
|
+
): AsyncIterableIterator<Workspace[]> {
|
|
77
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
78
|
+
yield result.value || [];
|
|
79
|
+
let continuationToken = result.nextLink;
|
|
80
|
+
while (continuationToken) {
|
|
81
|
+
result = await this._listByResourceGroupNext(
|
|
53
82
|
resourceGroupName,
|
|
54
|
-
|
|
83
|
+
continuationToken,
|
|
55
84
|
options
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
85
|
+
);
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
yield result.value || [];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private async *listByResourceGroupPagingAll(
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
options?: WorkspacesListByResourceGroupOptionalParams
|
|
94
|
+
): AsyncIterableIterator<Workspace> {
|
|
95
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
options
|
|
98
|
+
)) {
|
|
99
|
+
yield* page;
|
|
100
|
+
}
|
|
59
101
|
}
|
|
60
102
|
|
|
61
103
|
/**
|
|
62
|
-
*
|
|
63
|
-
* @param
|
|
64
|
-
* @param workspaceName The name of the workspace.
|
|
65
|
-
* @param [options] The optional parameters
|
|
66
|
-
* @returns Promise<msRest.RestResponse>
|
|
104
|
+
* Gets all the workspaces within a subscription.
|
|
105
|
+
* @param options The options parameters.
|
|
67
106
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
107
|
+
public listBySubscription(
|
|
108
|
+
options?: WorkspacesListBySubscriptionOptionalParams
|
|
109
|
+
): PagedAsyncIterableIterator<Workspace> {
|
|
110
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
111
|
+
return {
|
|
112
|
+
next() {
|
|
113
|
+
return iter.next();
|
|
114
|
+
},
|
|
115
|
+
[Symbol.asyncIterator]() {
|
|
116
|
+
return this;
|
|
117
|
+
},
|
|
118
|
+
byPage: () => {
|
|
119
|
+
return this.listBySubscriptionPagingPage(options);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
private async *listBySubscriptionPagingPage(
|
|
125
|
+
options?: WorkspacesListBySubscriptionOptionalParams
|
|
126
|
+
): AsyncIterableIterator<Workspace[]> {
|
|
127
|
+
let result = await this._listBySubscription(options);
|
|
128
|
+
yield result.value || [];
|
|
129
|
+
let continuationToken = result.nextLink;
|
|
130
|
+
while (continuationToken) {
|
|
131
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
132
|
+
continuationToken = result.nextLink;
|
|
133
|
+
yield result.value || [];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
private async *listBySubscriptionPagingAll(
|
|
138
|
+
options?: WorkspacesListBySubscriptionOptionalParams
|
|
139
|
+
): AsyncIterableIterator<Workspace> {
|
|
140
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
141
|
+
yield* page;
|
|
142
|
+
}
|
|
71
143
|
}
|
|
72
144
|
|
|
73
145
|
/**
|
|
74
|
-
*
|
|
75
|
-
* @param parameters Parameters supplied to the create or update a workspace.
|
|
146
|
+
* Gets the workspace.
|
|
76
147
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
148
|
* @param workspaceName The name of the workspace.
|
|
78
|
-
* @param
|
|
79
|
-
* @returns Promise<Models.WorkspacesCreateOrUpdateResponse>
|
|
149
|
+
* @param options The options parameters.
|
|
80
150
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
151
|
+
get(
|
|
152
|
+
resourceGroupName: string,
|
|
153
|
+
workspaceName: string,
|
|
154
|
+
options?: WorkspacesGetOptionalParams
|
|
155
|
+
): Promise<WorkspacesGetResponse> {
|
|
156
|
+
return this.client.sendOperationRequest(
|
|
157
|
+
{ resourceGroupName, workspaceName, options },
|
|
158
|
+
getOperationSpec
|
|
159
|
+
);
|
|
84
160
|
}
|
|
85
161
|
|
|
86
162
|
/**
|
|
87
|
-
*
|
|
88
|
-
* @param parameters The update to the workspace.
|
|
163
|
+
* Deletes the workspace.
|
|
89
164
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
90
165
|
* @param workspaceName The name of the workspace.
|
|
91
|
-
* @param
|
|
92
|
-
* @returns Promise<Models.WorkspacesUpdateResponse>
|
|
166
|
+
* @param options The options parameters.
|
|
93
167
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
168
|
+
async beginDelete(
|
|
169
|
+
resourceGroupName: string,
|
|
170
|
+
workspaceName: string,
|
|
171
|
+
options?: WorkspacesDeleteOptionalParams
|
|
172
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
173
|
+
const directSendOperation = async (
|
|
174
|
+
args: coreClient.OperationArguments,
|
|
175
|
+
spec: coreClient.OperationSpec
|
|
176
|
+
): Promise<void> => {
|
|
177
|
+
return this.client.sendOperationRequest(args, spec);
|
|
178
|
+
};
|
|
179
|
+
const sendOperation = async (
|
|
180
|
+
args: coreClient.OperationArguments,
|
|
181
|
+
spec: coreClient.OperationSpec
|
|
182
|
+
) => {
|
|
183
|
+
let currentRawResponse:
|
|
184
|
+
| coreClient.FullOperationResponse
|
|
185
|
+
| undefined = undefined;
|
|
186
|
+
const providedCallback = args.options?.onResponse;
|
|
187
|
+
const callback: coreClient.RawResponseCallback = (
|
|
188
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
189
|
+
flatResponse: unknown
|
|
190
|
+
) => {
|
|
191
|
+
currentRawResponse = rawResponse;
|
|
192
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
193
|
+
};
|
|
194
|
+
const updatedArgs = {
|
|
195
|
+
...args,
|
|
196
|
+
options: {
|
|
197
|
+
...args.options,
|
|
198
|
+
onResponse: callback
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
202
|
+
return {
|
|
203
|
+
flatResponse,
|
|
204
|
+
rawResponse: {
|
|
205
|
+
statusCode: currentRawResponse!.status,
|
|
206
|
+
body: currentRawResponse!.parsedBody,
|
|
207
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const lro = new LroImpl(
|
|
213
|
+
sendOperation,
|
|
214
|
+
{ resourceGroupName, workspaceName, options },
|
|
215
|
+
deleteOperationSpec
|
|
216
|
+
);
|
|
217
|
+
return new LroEngine(lro, {
|
|
218
|
+
resumeFrom: options?.resumeFrom,
|
|
219
|
+
intervalInMs: options?.updateIntervalInMs
|
|
220
|
+
});
|
|
97
221
|
}
|
|
98
222
|
|
|
99
223
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
102
|
-
* @param [options] The optional parameters
|
|
103
|
-
* @returns Promise<Models.WorkspacesListByResourceGroupResponse>
|
|
104
|
-
*/
|
|
105
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesListByResourceGroupResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
108
|
-
* @param callback The callback
|
|
109
|
-
*/
|
|
110
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.WorkspaceListResult>): void;
|
|
111
|
-
/**
|
|
224
|
+
* Deletes the workspace.
|
|
112
225
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
113
|
-
* @param
|
|
114
|
-
* @param
|
|
226
|
+
* @param workspaceName The name of the workspace.
|
|
227
|
+
* @param options The options parameters.
|
|
115
228
|
*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
229
|
+
async beginDeleteAndWait(
|
|
230
|
+
resourceGroupName: string,
|
|
231
|
+
workspaceName: string,
|
|
232
|
+
options?: WorkspacesDeleteOptionalParams
|
|
233
|
+
): Promise<void> {
|
|
234
|
+
const poller = await this.beginDelete(
|
|
235
|
+
resourceGroupName,
|
|
236
|
+
workspaceName,
|
|
237
|
+
options
|
|
238
|
+
);
|
|
239
|
+
return poller.pollUntilDone();
|
|
125
240
|
}
|
|
126
241
|
|
|
127
242
|
/**
|
|
128
|
-
*
|
|
129
|
-
* @param
|
|
130
|
-
* @
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @param callback The callback
|
|
135
|
-
*/
|
|
136
|
-
listBySubscription(callback: msRest.ServiceCallback<Models.WorkspaceListResult>): void;
|
|
137
|
-
/**
|
|
138
|
-
* @param options The optional parameters
|
|
139
|
-
* @param callback The callback
|
|
243
|
+
* Creates a new workspace.
|
|
244
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
245
|
+
* @param workspaceName The name of the workspace.
|
|
246
|
+
* @param parameters Parameters supplied to the create or update a workspace.
|
|
247
|
+
* @param options The options parameters.
|
|
140
248
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
249
|
+
async beginCreateOrUpdate(
|
|
250
|
+
resourceGroupName: string,
|
|
251
|
+
workspaceName: string,
|
|
252
|
+
parameters: Workspace,
|
|
253
|
+
options?: WorkspacesCreateOrUpdateOptionalParams
|
|
254
|
+
): Promise<
|
|
255
|
+
PollerLike<
|
|
256
|
+
PollOperationState<WorkspacesCreateOrUpdateResponse>,
|
|
257
|
+
WorkspacesCreateOrUpdateResponse
|
|
258
|
+
>
|
|
259
|
+
> {
|
|
260
|
+
const directSendOperation = async (
|
|
261
|
+
args: coreClient.OperationArguments,
|
|
262
|
+
spec: coreClient.OperationSpec
|
|
263
|
+
): Promise<WorkspacesCreateOrUpdateResponse> => {
|
|
264
|
+
return this.client.sendOperationRequest(args, spec);
|
|
265
|
+
};
|
|
266
|
+
const sendOperation = async (
|
|
267
|
+
args: coreClient.OperationArguments,
|
|
268
|
+
spec: coreClient.OperationSpec
|
|
269
|
+
) => {
|
|
270
|
+
let currentRawResponse:
|
|
271
|
+
| coreClient.FullOperationResponse
|
|
272
|
+
| undefined = undefined;
|
|
273
|
+
const providedCallback = args.options?.onResponse;
|
|
274
|
+
const callback: coreClient.RawResponseCallback = (
|
|
275
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
276
|
+
flatResponse: unknown
|
|
277
|
+
) => {
|
|
278
|
+
currentRawResponse = rawResponse;
|
|
279
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
280
|
+
};
|
|
281
|
+
const updatedArgs = {
|
|
282
|
+
...args,
|
|
283
|
+
options: {
|
|
284
|
+
...args.options,
|
|
285
|
+
onResponse: callback
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
289
|
+
return {
|
|
290
|
+
flatResponse,
|
|
291
|
+
rawResponse: {
|
|
292
|
+
statusCode: currentRawResponse!.status,
|
|
293
|
+
body: currentRawResponse!.parsedBody,
|
|
294
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
const lro = new LroImpl(
|
|
300
|
+
sendOperation,
|
|
301
|
+
{ resourceGroupName, workspaceName, parameters, options },
|
|
302
|
+
createOrUpdateOperationSpec
|
|
303
|
+
);
|
|
304
|
+
return new LroEngine(lro, {
|
|
305
|
+
resumeFrom: options?.resumeFrom,
|
|
306
|
+
intervalInMs: options?.updateIntervalInMs
|
|
307
|
+
});
|
|
149
308
|
}
|
|
150
309
|
|
|
151
310
|
/**
|
|
152
|
-
*
|
|
311
|
+
* Creates a new workspace.
|
|
153
312
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
154
313
|
* @param workspaceName The name of the workspace.
|
|
155
|
-
* @param
|
|
156
|
-
* @
|
|
314
|
+
* @param parameters Parameters supplied to the create or update a workspace.
|
|
315
|
+
* @param options The options parameters.
|
|
157
316
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
317
|
+
async beginCreateOrUpdateAndWait(
|
|
318
|
+
resourceGroupName: string,
|
|
319
|
+
workspaceName: string,
|
|
320
|
+
parameters: Workspace,
|
|
321
|
+
options?: WorkspacesCreateOrUpdateOptionalParams
|
|
322
|
+
): Promise<WorkspacesCreateOrUpdateResponse> {
|
|
323
|
+
const poller = await this.beginCreateOrUpdate(
|
|
324
|
+
resourceGroupName,
|
|
325
|
+
workspaceName,
|
|
326
|
+
parameters,
|
|
327
|
+
options
|
|
328
|
+
);
|
|
329
|
+
return poller.pollUntilDone();
|
|
167
330
|
}
|
|
168
331
|
|
|
169
332
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @param parameters Parameters supplied to the create or update a workspace.
|
|
333
|
+
* Updates a workspace.
|
|
172
334
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
173
335
|
* @param workspaceName The name of the workspace.
|
|
174
|
-
* @param
|
|
175
|
-
* @
|
|
336
|
+
* @param parameters The update to the workspace.
|
|
337
|
+
* @param options The options parameters.
|
|
176
338
|
*/
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
339
|
+
async beginUpdate(
|
|
340
|
+
resourceGroupName: string,
|
|
341
|
+
workspaceName: string,
|
|
342
|
+
parameters: WorkspaceUpdate,
|
|
343
|
+
options?: WorkspacesUpdateOptionalParams
|
|
344
|
+
): Promise<
|
|
345
|
+
PollerLike<
|
|
346
|
+
PollOperationState<WorkspacesUpdateResponse>,
|
|
347
|
+
WorkspacesUpdateResponse
|
|
348
|
+
>
|
|
349
|
+
> {
|
|
350
|
+
const directSendOperation = async (
|
|
351
|
+
args: coreClient.OperationArguments,
|
|
352
|
+
spec: coreClient.OperationSpec
|
|
353
|
+
): Promise<WorkspacesUpdateResponse> => {
|
|
354
|
+
return this.client.sendOperationRequest(args, spec);
|
|
355
|
+
};
|
|
356
|
+
const sendOperation = async (
|
|
357
|
+
args: coreClient.OperationArguments,
|
|
358
|
+
spec: coreClient.OperationSpec
|
|
359
|
+
) => {
|
|
360
|
+
let currentRawResponse:
|
|
361
|
+
| coreClient.FullOperationResponse
|
|
362
|
+
| undefined = undefined;
|
|
363
|
+
const providedCallback = args.options?.onResponse;
|
|
364
|
+
const callback: coreClient.RawResponseCallback = (
|
|
365
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
366
|
+
flatResponse: unknown
|
|
367
|
+
) => {
|
|
368
|
+
currentRawResponse = rawResponse;
|
|
369
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
370
|
+
};
|
|
371
|
+
const updatedArgs = {
|
|
372
|
+
...args,
|
|
373
|
+
options: {
|
|
374
|
+
...args.options,
|
|
375
|
+
onResponse: callback
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
379
|
+
return {
|
|
380
|
+
flatResponse,
|
|
381
|
+
rawResponse: {
|
|
382
|
+
statusCode: currentRawResponse!.status,
|
|
383
|
+
body: currentRawResponse!.parsedBody,
|
|
384
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
const lro = new LroImpl(
|
|
390
|
+
sendOperation,
|
|
391
|
+
{ resourceGroupName, workspaceName, parameters, options },
|
|
392
|
+
updateOperationSpec
|
|
393
|
+
);
|
|
394
|
+
return new LroEngine(lro, {
|
|
395
|
+
resumeFrom: options?.resumeFrom,
|
|
396
|
+
intervalInMs: options?.updateIntervalInMs
|
|
397
|
+
});
|
|
187
398
|
}
|
|
188
399
|
|
|
189
400
|
/**
|
|
190
401
|
* Updates a workspace.
|
|
191
|
-
* @param parameters The update to the workspace.
|
|
192
402
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
193
403
|
* @param workspaceName The name of the workspace.
|
|
194
|
-
* @param
|
|
195
|
-
* @
|
|
404
|
+
* @param parameters The update to the workspace.
|
|
405
|
+
* @param options The options parameters.
|
|
196
406
|
*/
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
407
|
+
async beginUpdateAndWait(
|
|
408
|
+
resourceGroupName: string,
|
|
409
|
+
workspaceName: string,
|
|
410
|
+
parameters: WorkspaceUpdate,
|
|
411
|
+
options?: WorkspacesUpdateOptionalParams
|
|
412
|
+
): Promise<WorkspacesUpdateResponse> {
|
|
413
|
+
const poller = await this.beginUpdate(
|
|
414
|
+
resourceGroupName,
|
|
415
|
+
workspaceName,
|
|
416
|
+
parameters,
|
|
417
|
+
options
|
|
418
|
+
);
|
|
419
|
+
return poller.pollUntilDone();
|
|
207
420
|
}
|
|
208
421
|
|
|
209
422
|
/**
|
|
210
423
|
* Gets all the workspaces within a resource group.
|
|
211
|
-
* @param
|
|
212
|
-
* @param
|
|
213
|
-
* @returns Promise<Models.WorkspacesListByResourceGroupNextResponse>
|
|
214
|
-
*/
|
|
215
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesListByResourceGroupNextResponse>;
|
|
216
|
-
/**
|
|
217
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
218
|
-
* @param callback The callback
|
|
219
|
-
*/
|
|
220
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.WorkspaceListResult>): void;
|
|
221
|
-
/**
|
|
222
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
223
|
-
* @param options The optional parameters
|
|
224
|
-
* @param callback The callback
|
|
424
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
425
|
+
* @param options The options parameters.
|
|
225
426
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
427
|
+
private _listByResourceGroup(
|
|
428
|
+
resourceGroupName: string,
|
|
429
|
+
options?: WorkspacesListByResourceGroupOptionalParams
|
|
430
|
+
): Promise<WorkspacesListByResourceGroupResponse> {
|
|
228
431
|
return this.client.sendOperationRequest(
|
|
229
|
-
{
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
},
|
|
233
|
-
listByResourceGroupNextOperationSpec,
|
|
234
|
-
callback) as Promise<Models.WorkspacesListByResourceGroupNextResponse>;
|
|
432
|
+
{ resourceGroupName, options },
|
|
433
|
+
listByResourceGroupOperationSpec
|
|
434
|
+
);
|
|
235
435
|
}
|
|
236
436
|
|
|
237
437
|
/**
|
|
238
438
|
* Gets all the workspaces within a subscription.
|
|
239
|
-
* @param
|
|
240
|
-
* @param [options] The optional parameters
|
|
241
|
-
* @returns Promise<Models.WorkspacesListBySubscriptionNextResponse>
|
|
439
|
+
* @param options The options parameters.
|
|
242
440
|
*/
|
|
243
|
-
|
|
441
|
+
private _listBySubscription(
|
|
442
|
+
options?: WorkspacesListBySubscriptionOptionalParams
|
|
443
|
+
): Promise<WorkspacesListBySubscriptionResponse> {
|
|
444
|
+
return this.client.sendOperationRequest(
|
|
445
|
+
{ options },
|
|
446
|
+
listBySubscriptionOperationSpec
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
|
|
244
450
|
/**
|
|
245
|
-
*
|
|
246
|
-
* @param
|
|
451
|
+
* ListByResourceGroupNext
|
|
452
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
453
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
454
|
+
* @param options The options parameters.
|
|
247
455
|
*/
|
|
248
|
-
|
|
456
|
+
private _listByResourceGroupNext(
|
|
457
|
+
resourceGroupName: string,
|
|
458
|
+
nextLink: string,
|
|
459
|
+
options?: WorkspacesListByResourceGroupNextOptionalParams
|
|
460
|
+
): Promise<WorkspacesListByResourceGroupNextResponse> {
|
|
461
|
+
return this.client.sendOperationRequest(
|
|
462
|
+
{ resourceGroupName, nextLink, options },
|
|
463
|
+
listByResourceGroupNextOperationSpec
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
|
|
249
467
|
/**
|
|
250
|
-
*
|
|
251
|
-
* @param
|
|
252
|
-
* @param
|
|
468
|
+
* ListBySubscriptionNext
|
|
469
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
470
|
+
* @param options The options parameters.
|
|
253
471
|
*/
|
|
254
|
-
|
|
255
|
-
|
|
472
|
+
private _listBySubscriptionNext(
|
|
473
|
+
nextLink: string,
|
|
474
|
+
options?: WorkspacesListBySubscriptionNextOptionalParams
|
|
475
|
+
): Promise<WorkspacesListBySubscriptionNextResponse> {
|
|
256
476
|
return this.client.sendOperationRequest(
|
|
257
|
-
{
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
},
|
|
261
|
-
listBySubscriptionNextOperationSpec,
|
|
262
|
-
callback) as Promise<Models.WorkspacesListBySubscriptionNextResponse>;
|
|
477
|
+
{ nextLink, options },
|
|
478
|
+
listBySubscriptionNextOperationSpec
|
|
479
|
+
);
|
|
263
480
|
}
|
|
264
481
|
}
|
|
265
|
-
|
|
266
482
|
// Operation Specifications
|
|
267
|
-
const serializer =
|
|
268
|
-
|
|
483
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
484
|
+
|
|
485
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
486
|
+
path:
|
|
487
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
269
488
|
httpMethod: "GET",
|
|
270
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
271
|
-
urlParameters: [
|
|
272
|
-
Parameters.resourceGroupName,
|
|
273
|
-
Parameters.workspaceName,
|
|
274
|
-
Parameters.subscriptionId
|
|
275
|
-
],
|
|
276
|
-
queryParameters: [
|
|
277
|
-
Parameters.apiVersion0
|
|
278
|
-
],
|
|
279
|
-
headerParameters: [
|
|
280
|
-
Parameters.acceptLanguage
|
|
281
|
-
],
|
|
282
489
|
responses: {
|
|
283
490
|
200: {
|
|
284
491
|
bodyMapper: Mappers.Workspace
|
|
@@ -287,162 +494,146 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
287
494
|
bodyMapper: Mappers.ErrorResponse
|
|
288
495
|
}
|
|
289
496
|
},
|
|
290
|
-
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
294
|
-
httpMethod: "GET",
|
|
295
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
|
|
497
|
+
queryParameters: [Parameters.apiVersion],
|
|
296
498
|
urlParameters: [
|
|
499
|
+
Parameters.$host,
|
|
297
500
|
Parameters.resourceGroupName,
|
|
501
|
+
Parameters.workspaceName,
|
|
298
502
|
Parameters.subscriptionId
|
|
299
503
|
],
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
504
|
+
headerParameters: [Parameters.accept],
|
|
505
|
+
serializer
|
|
506
|
+
};
|
|
507
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
508
|
+
path:
|
|
509
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
510
|
+
httpMethod: "DELETE",
|
|
306
511
|
responses: {
|
|
307
|
-
200: {
|
|
308
|
-
|
|
309
|
-
},
|
|
512
|
+
200: {},
|
|
513
|
+
201: {},
|
|
514
|
+
202: {},
|
|
515
|
+
204: {},
|
|
310
516
|
default: {
|
|
311
517
|
bodyMapper: Mappers.ErrorResponse
|
|
312
518
|
}
|
|
313
519
|
},
|
|
314
|
-
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
318
|
-
httpMethod: "GET",
|
|
319
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
|
|
520
|
+
queryParameters: [Parameters.apiVersion],
|
|
320
521
|
urlParameters: [
|
|
522
|
+
Parameters.$host,
|
|
523
|
+
Parameters.resourceGroupName,
|
|
524
|
+
Parameters.workspaceName,
|
|
321
525
|
Parameters.subscriptionId
|
|
322
526
|
],
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
527
|
+
headerParameters: [Parameters.accept],
|
|
528
|
+
serializer
|
|
529
|
+
};
|
|
530
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
531
|
+
path:
|
|
532
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
533
|
+
httpMethod: "PUT",
|
|
329
534
|
responses: {
|
|
330
535
|
200: {
|
|
331
|
-
bodyMapper: Mappers.
|
|
536
|
+
bodyMapper: Mappers.Workspace
|
|
537
|
+
},
|
|
538
|
+
201: {
|
|
539
|
+
bodyMapper: Mappers.Workspace
|
|
540
|
+
},
|
|
541
|
+
202: {
|
|
542
|
+
bodyMapper: Mappers.Workspace
|
|
543
|
+
},
|
|
544
|
+
204: {
|
|
545
|
+
bodyMapper: Mappers.Workspace
|
|
332
546
|
},
|
|
333
547
|
default: {
|
|
334
548
|
bodyMapper: Mappers.ErrorResponse
|
|
335
549
|
}
|
|
336
550
|
},
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
341
|
-
httpMethod: "DELETE",
|
|
342
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
551
|
+
requestBody: Parameters.parameters,
|
|
552
|
+
queryParameters: [Parameters.apiVersion],
|
|
343
553
|
urlParameters: [
|
|
554
|
+
Parameters.$host,
|
|
344
555
|
Parameters.resourceGroupName,
|
|
345
556
|
Parameters.workspaceName,
|
|
346
557
|
Parameters.subscriptionId
|
|
347
558
|
],
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
559
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
560
|
+
mediaType: "json",
|
|
561
|
+
serializer
|
|
562
|
+
};
|
|
563
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
564
|
+
path:
|
|
565
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
566
|
+
httpMethod: "PATCH",
|
|
354
567
|
responses: {
|
|
355
|
-
200: {
|
|
356
|
-
|
|
357
|
-
|
|
568
|
+
200: {
|
|
569
|
+
bodyMapper: Mappers.Workspace
|
|
570
|
+
},
|
|
571
|
+
201: {
|
|
572
|
+
bodyMapper: Mappers.Workspace
|
|
573
|
+
},
|
|
574
|
+
202: {
|
|
575
|
+
bodyMapper: Mappers.Workspace
|
|
576
|
+
},
|
|
577
|
+
204: {
|
|
578
|
+
bodyMapper: Mappers.Workspace
|
|
579
|
+
},
|
|
358
580
|
default: {
|
|
359
581
|
bodyMapper: Mappers.ErrorResponse
|
|
360
582
|
}
|
|
361
583
|
},
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
366
|
-
httpMethod: "PUT",
|
|
367
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
584
|
+
requestBody: Parameters.parameters1,
|
|
585
|
+
queryParameters: [Parameters.apiVersion],
|
|
368
586
|
urlParameters: [
|
|
587
|
+
Parameters.$host,
|
|
369
588
|
Parameters.resourceGroupName,
|
|
370
589
|
Parameters.workspaceName,
|
|
371
590
|
Parameters.subscriptionId
|
|
372
591
|
],
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
mapper: {
|
|
382
|
-
...Mappers.Workspace,
|
|
383
|
-
required: true
|
|
384
|
-
}
|
|
385
|
-
},
|
|
592
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
593
|
+
mediaType: "json",
|
|
594
|
+
serializer
|
|
595
|
+
};
|
|
596
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
597
|
+
path:
|
|
598
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
|
|
599
|
+
httpMethod: "GET",
|
|
386
600
|
responses: {
|
|
387
601
|
200: {
|
|
388
|
-
bodyMapper: Mappers.
|
|
389
|
-
},
|
|
390
|
-
201: {
|
|
391
|
-
bodyMapper: Mappers.Workspace
|
|
602
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
392
603
|
},
|
|
393
604
|
default: {
|
|
394
605
|
bodyMapper: Mappers.ErrorResponse
|
|
395
606
|
}
|
|
396
607
|
},
|
|
397
|
-
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
401
|
-
httpMethod: "PATCH",
|
|
402
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
608
|
+
queryParameters: [Parameters.apiVersion],
|
|
403
609
|
urlParameters: [
|
|
610
|
+
Parameters.$host,
|
|
404
611
|
Parameters.resourceGroupName,
|
|
405
|
-
Parameters.workspaceName,
|
|
406
612
|
Parameters.subscriptionId
|
|
407
613
|
],
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
parameterPath: "parameters",
|
|
416
|
-
mapper: {
|
|
417
|
-
...Mappers.WorkspaceUpdate,
|
|
418
|
-
required: true
|
|
419
|
-
}
|
|
420
|
-
},
|
|
614
|
+
headerParameters: [Parameters.accept],
|
|
615
|
+
serializer
|
|
616
|
+
};
|
|
617
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
618
|
+
path:
|
|
619
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
|
|
620
|
+
httpMethod: "GET",
|
|
421
621
|
responses: {
|
|
422
622
|
200: {
|
|
423
|
-
bodyMapper: Mappers.
|
|
623
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
424
624
|
},
|
|
425
|
-
202: {},
|
|
426
625
|
default: {
|
|
427
626
|
bodyMapper: Mappers.ErrorResponse
|
|
428
627
|
}
|
|
429
628
|
},
|
|
629
|
+
queryParameters: [Parameters.apiVersion],
|
|
630
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
631
|
+
headerParameters: [Parameters.accept],
|
|
430
632
|
serializer
|
|
431
633
|
};
|
|
432
|
-
|
|
433
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
434
|
-
httpMethod: "GET",
|
|
435
|
-
baseUrl: "https://management.azure.com",
|
|
634
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
436
635
|
path: "{nextLink}",
|
|
437
|
-
|
|
438
|
-
Parameters.nextPageLink
|
|
439
|
-
],
|
|
440
|
-
queryParameters: [
|
|
441
|
-
Parameters.apiVersion0
|
|
442
|
-
],
|
|
443
|
-
headerParameters: [
|
|
444
|
-
Parameters.acceptLanguage
|
|
445
|
-
],
|
|
636
|
+
httpMethod: "GET",
|
|
446
637
|
responses: {
|
|
447
638
|
200: {
|
|
448
639
|
bodyMapper: Mappers.WorkspaceListResult
|
|
@@ -451,22 +642,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
451
642
|
bodyMapper: Mappers.ErrorResponse
|
|
452
643
|
}
|
|
453
644
|
},
|
|
645
|
+
queryParameters: [Parameters.apiVersion],
|
|
646
|
+
urlParameters: [
|
|
647
|
+
Parameters.$host,
|
|
648
|
+
Parameters.resourceGroupName,
|
|
649
|
+
Parameters.subscriptionId,
|
|
650
|
+
Parameters.nextLink
|
|
651
|
+
],
|
|
652
|
+
headerParameters: [Parameters.accept],
|
|
454
653
|
serializer
|
|
455
654
|
};
|
|
456
|
-
|
|
457
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
458
|
-
httpMethod: "GET",
|
|
459
|
-
baseUrl: "https://management.azure.com",
|
|
655
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
460
656
|
path: "{nextLink}",
|
|
461
|
-
|
|
462
|
-
Parameters.nextPageLink
|
|
463
|
-
],
|
|
464
|
-
queryParameters: [
|
|
465
|
-
Parameters.apiVersion0
|
|
466
|
-
],
|
|
467
|
-
headerParameters: [
|
|
468
|
-
Parameters.acceptLanguage
|
|
469
|
-
],
|
|
657
|
+
httpMethod: "GET",
|
|
470
658
|
responses: {
|
|
471
659
|
200: {
|
|
472
660
|
bodyMapper: Mappers.WorkspaceListResult
|
|
@@ -475,5 +663,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
|
475
663
|
bodyMapper: Mappers.ErrorResponse
|
|
476
664
|
}
|
|
477
665
|
},
|
|
666
|
+
queryParameters: [Parameters.apiVersion],
|
|
667
|
+
urlParameters: [
|
|
668
|
+
Parameters.$host,
|
|
669
|
+
Parameters.subscriptionId,
|
|
670
|
+
Parameters.nextLink
|
|
671
|
+
],
|
|
672
|
+
headerParameters: [Parameters.accept],
|
|
478
673
|
serializer
|
|
479
674
|
};
|