@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
package/src/models/parameters.ts
CHANGED
|
@@ -3,123 +3,172 @@
|
|
|
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
|
|
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";
|
|
11
20
|
|
|
12
|
-
export const
|
|
13
|
-
parameterPath: "
|
|
21
|
+
export const accept: OperationParameter = {
|
|
22
|
+
parameterPath: "accept",
|
|
14
23
|
mapper: {
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
defaultValue: "application/json",
|
|
25
|
+
isConstant: true,
|
|
26
|
+
serializedName: "Accept",
|
|
17
27
|
type: {
|
|
18
28
|
name: "String"
|
|
19
29
|
}
|
|
20
30
|
}
|
|
21
31
|
};
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
|
|
33
|
+
export const $host: OperationURLParameter = {
|
|
34
|
+
parameterPath: "$host",
|
|
24
35
|
mapper: {
|
|
36
|
+
serializedName: "$host",
|
|
25
37
|
required: true,
|
|
26
|
-
isConstant: true,
|
|
27
|
-
serializedName: "api-version",
|
|
28
|
-
defaultValue: '2021-04-01-preview',
|
|
29
38
|
type: {
|
|
30
39
|
name: "String"
|
|
31
40
|
}
|
|
32
|
-
}
|
|
41
|
+
},
|
|
42
|
+
skipEncoding: true
|
|
33
43
|
};
|
|
34
|
-
|
|
35
|
-
|
|
44
|
+
|
|
45
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
46
|
+
parameterPath: "resourceGroupName",
|
|
36
47
|
mapper: {
|
|
48
|
+
constraints: {
|
|
49
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
|
50
|
+
MaxLength: 90,
|
|
51
|
+
MinLength: 1
|
|
52
|
+
},
|
|
53
|
+
serializedName: "resourceGroupName",
|
|
37
54
|
required: true,
|
|
38
|
-
isConstant: true,
|
|
39
|
-
serializedName: "api-version",
|
|
40
|
-
defaultValue: '2018-04-01',
|
|
41
55
|
type: {
|
|
42
56
|
name: "String"
|
|
43
57
|
}
|
|
44
58
|
}
|
|
45
59
|
};
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
|
|
61
|
+
export const workspaceName: OperationURLParameter = {
|
|
62
|
+
parameterPath: "workspaceName",
|
|
48
63
|
mapper: {
|
|
64
|
+
constraints: {
|
|
65
|
+
MaxLength: 64,
|
|
66
|
+
MinLength: 3
|
|
67
|
+
},
|
|
68
|
+
serializedName: "workspaceName",
|
|
49
69
|
required: true,
|
|
50
|
-
serializedName: "groupId",
|
|
51
70
|
type: {
|
|
52
71
|
name: "String"
|
|
53
72
|
}
|
|
54
73
|
}
|
|
55
74
|
};
|
|
56
|
-
|
|
57
|
-
|
|
75
|
+
|
|
76
|
+
export const apiVersion: OperationQueryParameter = {
|
|
77
|
+
parameterPath: "apiVersion",
|
|
58
78
|
mapper: {
|
|
59
|
-
|
|
60
|
-
|
|
79
|
+
defaultValue: "2021-04-01-preview",
|
|
80
|
+
isConstant: true,
|
|
81
|
+
serializedName: "api-version",
|
|
61
82
|
type: {
|
|
62
83
|
name: "String"
|
|
63
84
|
}
|
|
64
|
-
}
|
|
65
|
-
skipEncoding: true
|
|
85
|
+
}
|
|
66
86
|
};
|
|
67
|
-
|
|
68
|
-
|
|
87
|
+
|
|
88
|
+
export const subscriptionId: OperationURLParameter = {
|
|
89
|
+
parameterPath: "subscriptionId",
|
|
69
90
|
mapper: {
|
|
91
|
+
serializedName: "subscriptionId",
|
|
70
92
|
required: true,
|
|
71
|
-
serializedName: "peeringName",
|
|
72
93
|
type: {
|
|
73
94
|
name: "String"
|
|
74
95
|
}
|
|
75
96
|
}
|
|
76
97
|
};
|
|
77
|
-
|
|
78
|
-
|
|
98
|
+
|
|
99
|
+
export const contentType: OperationParameter = {
|
|
100
|
+
parameterPath: ["options", "contentType"],
|
|
79
101
|
mapper: {
|
|
80
|
-
|
|
81
|
-
|
|
102
|
+
defaultValue: "application/json",
|
|
103
|
+
isConstant: true,
|
|
104
|
+
serializedName: "Content-Type",
|
|
82
105
|
type: {
|
|
83
106
|
name: "String"
|
|
84
107
|
}
|
|
85
108
|
}
|
|
86
109
|
};
|
|
87
|
-
|
|
88
|
-
|
|
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",
|
|
89
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",
|
|
90
137
|
required: true,
|
|
91
|
-
serializedName: "resourceGroupName",
|
|
92
|
-
constraints: {
|
|
93
|
-
MaxLength: 90,
|
|
94
|
-
MinLength: 1,
|
|
95
|
-
Pattern: /^[-\w\._\(\)]+$/
|
|
96
|
-
},
|
|
97
138
|
type: {
|
|
98
139
|
name: "String"
|
|
99
140
|
}
|
|
100
141
|
}
|
|
101
142
|
};
|
|
102
|
-
|
|
103
|
-
|
|
143
|
+
|
|
144
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
145
|
+
parameterPath: "privateEndpointConnectionName",
|
|
104
146
|
mapper: {
|
|
147
|
+
serializedName: "privateEndpointConnectionName",
|
|
105
148
|
required: true,
|
|
106
|
-
serializedName: "subscriptionId",
|
|
107
149
|
type: {
|
|
108
150
|
name: "String"
|
|
109
151
|
}
|
|
110
152
|
}
|
|
111
153
|
};
|
|
112
|
-
|
|
113
|
-
|
|
154
|
+
|
|
155
|
+
export const privateEndpointConnection: OperationParameter = {
|
|
156
|
+
parameterPath: "privateEndpointConnection",
|
|
157
|
+
mapper: PrivateEndpointConnectionMapper
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export const peeringName: OperationURLParameter = {
|
|
161
|
+
parameterPath: "peeringName",
|
|
114
162
|
mapper: {
|
|
163
|
+
serializedName: "peeringName",
|
|
115
164
|
required: true,
|
|
116
|
-
serializedName: "workspaceName",
|
|
117
|
-
constraints: {
|
|
118
|
-
MaxLength: 64,
|
|
119
|
-
MinLength: 3
|
|
120
|
-
},
|
|
121
165
|
type: {
|
|
122
166
|
name: "String"
|
|
123
167
|
}
|
|
124
168
|
}
|
|
125
169
|
};
|
|
170
|
+
|
|
171
|
+
export const virtualNetworkPeeringParameters: OperationParameter = {
|
|
172
|
+
parameterPath: "virtualNetworkPeeringParameters",
|
|
173
|
+
mapper: VirtualNetworkPeeringMapper
|
|
174
|
+
};
|
package/src/operations/index.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
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
9
|
export * from "./workspaces";
|
|
11
10
|
export * from "./operations";
|
|
12
11
|
export * from "./privateLinkResources";
|
|
13
12
|
export * from "./privateEndpointConnections";
|
|
13
|
+
export * from "./outboundNetworkDependenciesEndpoints";
|
|
14
14
|
export * from "./vNetPeering";
|
|
@@ -3,23 +3,31 @@
|
|
|
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
|
|
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
13
|
import * as Parameters from "../models/parameters";
|
|
14
14
|
import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
18
26
|
private readonly client: AzureDatabricksManagementClientContext;
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
23
31
|
*/
|
|
24
32
|
constructor(client: AzureDatabricksManagementClientContext) {
|
|
25
33
|
this.client = client;
|
|
@@ -27,68 +35,77 @@ export class Operations {
|
|
|
27
35
|
|
|
28
36
|
/**
|
|
29
37
|
* Lists all of the available RP operations.
|
|
30
|
-
* @param
|
|
31
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
38
|
+
* @param options The options parameters.
|
|
32
39
|
*/
|
|
33
|
-
list(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
|
44
|
-
return this.client.sendOperationRequest(
|
|
45
|
-
{
|
|
46
|
-
options
|
|
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;
|
|
47
50
|
},
|
|
48
|
-
|
|
49
|
-
|
|
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
|
+
}
|
|
50
76
|
}
|
|
51
77
|
|
|
52
78
|
/**
|
|
53
79
|
* Lists all of the available RP operations.
|
|
54
|
-
* @param
|
|
55
|
-
* @param [options] The optional parameters
|
|
56
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
57
|
-
*/
|
|
58
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
61
|
-
* @param callback The callback
|
|
80
|
+
* @param options The options parameters.
|
|
62
81
|
*/
|
|
63
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
64
88
|
/**
|
|
65
|
-
*
|
|
66
|
-
* @param
|
|
67
|
-
* @param
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
68
92
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
71
97
|
return this.client.sendOperationRequest(
|
|
72
|
-
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
listNextOperationSpec,
|
|
77
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
78
101
|
}
|
|
79
102
|
}
|
|
80
|
-
|
|
81
103
|
// Operation Specifications
|
|
82
|
-
const serializer =
|
|
83
|
-
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.Databricks/operations",
|
|
84
108
|
httpMethod: "GET",
|
|
85
|
-
path: "providers/Microsoft.Databricks/operations",
|
|
86
|
-
queryParameters: [
|
|
87
|
-
Parameters.apiVersion0
|
|
88
|
-
],
|
|
89
|
-
headerParameters: [
|
|
90
|
-
Parameters.acceptLanguage
|
|
91
|
-
],
|
|
92
109
|
responses: {
|
|
93
110
|
200: {
|
|
94
111
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -97,22 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
97
114
|
bodyMapper: Mappers.ErrorResponse
|
|
98
115
|
}
|
|
99
116
|
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
100
120
|
serializer
|
|
101
121
|
};
|
|
102
|
-
|
|
103
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
104
|
-
httpMethod: "GET",
|
|
105
|
-
baseUrl: "https://management.azure.com",
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
106
123
|
path: "{nextLink}",
|
|
107
|
-
|
|
108
|
-
Parameters.nextPageLink
|
|
109
|
-
],
|
|
110
|
-
queryParameters: [
|
|
111
|
-
Parameters.apiVersion0
|
|
112
|
-
],
|
|
113
|
-
headerParameters: [
|
|
114
|
-
Parameters.acceptLanguage
|
|
115
|
-
],
|
|
124
|
+
httpMethod: "GET",
|
|
116
125
|
responses: {
|
|
117
126
|
200: {
|
|
118
127
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -121,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
121
130
|
bodyMapper: Mappers.ErrorResponse
|
|
122
131
|
}
|
|
123
132
|
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
124
136
|
serializer
|
|
125
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
|
+
};
|