@azure/arm-datacatalog 2.0.0 → 3.0.0
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 +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +70 -78
- package/dist/index.js +668 -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/dataCatalogRestClient.d.ts +22 -0
- package/dist-esm/src/dataCatalogRestClient.d.ts.map +1 -0
- package/dist-esm/src/dataCatalogRestClient.js +58 -0
- package/dist-esm/src/dataCatalogRestClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +4 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/aDCOperationsMappers.js → dist-esm/src/index.js} +4 -2
- 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 +133 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +14 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +9 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +101 -116
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +10 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +92 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/aDCCatalogs.d.ts +62 -0
- package/dist-esm/src/operations/aDCCatalogs.d.ts.map +1 -0
- package/dist-esm/src/operations/aDCCatalogs.js +208 -0
- package/dist-esm/src/operations/aDCCatalogs.js.map +1 -0
- package/dist-esm/src/operations/aDCOperations.d.ts +18 -0
- package/dist-esm/src/operations/aDCOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/aDCOperations.js +43 -0
- package/dist-esm/src/operations/aDCOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/aDCCatalogs.js} +2 -1
- package/dist-esm/src/operationsInterfaces/aDCCatalogs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/aDCOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +69 -32
- package/review/arm-datacatalog.api.md +157 -0
- package/rollup.config.js +181 -30
- package/src/dataCatalogRestClient.ts +70 -37
- package/src/{models/aDCCatalogsMappers.ts → index.ts} +3 -8
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +108 -207
- package/src/models/mappers.ts +104 -119
- package/src/models/parameters.ts +59 -20
- package/src/operations/aDCCatalogs.ts +193 -251
- package/src/operations/aDCOperations.ts +27 -44
- package/src/operations/index.ts +1 -2
- package/src/operationsInterfaces/aDCCatalogs.ts +93 -0
- package/src/operationsInterfaces/aDCOperations.ts +23 -0
- package/src/{models/aDCOperationsMappers.ts → operationsInterfaces/index.ts} +2 -6
- package/tsconfig.json +3 -3
- package/types/arm-datacatalog.d.ts +237 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-datacatalog.js +0 -765
- package/dist/arm-datacatalog.js.map +0 -1
- package/dist/arm-datacatalog.min.js +0 -1
- package/dist/arm-datacatalog.min.js.map +0 -1
- package/esm/dataCatalogRestClient.d.ts +0 -28
- package/esm/dataCatalogRestClient.d.ts.map +0 -1
- package/esm/dataCatalogRestClient.js +0 -41
- package/esm/dataCatalogRestClient.js.map +0 -1
- package/esm/dataCatalogRestClientContext.d.ts +0 -26
- package/esm/dataCatalogRestClientContext.d.ts.map +0 -1
- package/esm/dataCatalogRestClientContext.js +0 -67
- package/esm/dataCatalogRestClientContext.js.map +0 -1
- package/esm/models/aDCCatalogsMappers.d.ts +0 -2
- package/esm/models/aDCCatalogsMappers.d.ts.map +0 -1
- package/esm/models/aDCCatalogsMappers.js +0 -9
- package/esm/models/aDCCatalogsMappers.js.map +0 -1
- package/esm/models/aDCOperationsMappers.d.ts +0 -2
- package/esm/models/aDCOperationsMappers.d.ts.map +0 -1
- package/esm/models/aDCOperationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -235
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -11
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -7
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -64
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/aDCCatalogs.d.ts +0 -131
- package/esm/operations/aDCCatalogs.d.ts.map +0 -1
- package/esm/operations/aDCCatalogs.js +0 -209
- package/esm/operations/aDCCatalogs.js.map +0 -1
- package/esm/operations/aDCOperations.d.ts +0 -28
- package/esm/operations/aDCOperations.d.ts.map +0 -1
- package/esm/operations/aDCOperations.js +0 -50
- package/esm/operations/aDCOperations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/src/dataCatalogRestClientContext.ts +0 -75
package/src/models/parameters.ts
CHANGED
|
@@ -3,62 +3,101 @@
|
|
|
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 { ADCCatalog as ADCCatalogMapper } from "../models/mappers";
|
|
11
15
|
|
|
12
|
-
export const
|
|
13
|
-
parameterPath: "
|
|
16
|
+
export const accept: OperationParameter = {
|
|
17
|
+
parameterPath: "accept",
|
|
14
18
|
mapper: {
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
defaultValue: "application/json",
|
|
20
|
+
isConstant: true,
|
|
21
|
+
serializedName: "Accept",
|
|
17
22
|
type: {
|
|
18
23
|
name: "String"
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
26
|
};
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
|
|
28
|
+
export const $host: OperationURLParameter = {
|
|
29
|
+
parameterPath: "$host",
|
|
24
30
|
mapper: {
|
|
31
|
+
serializedName: "$host",
|
|
25
32
|
required: true,
|
|
33
|
+
type: {
|
|
34
|
+
name: "String"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
skipEncoding: true
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const apiVersion: OperationQueryParameter = {
|
|
41
|
+
parameterPath: "apiVersion",
|
|
42
|
+
mapper: {
|
|
43
|
+
defaultValue: "2016-03-30",
|
|
44
|
+
isConstant: true,
|
|
26
45
|
serializedName: "api-version",
|
|
27
46
|
type: {
|
|
28
47
|
name: "String"
|
|
29
48
|
}
|
|
30
49
|
}
|
|
31
50
|
};
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
|
|
52
|
+
export const subscriptionId: OperationURLParameter = {
|
|
53
|
+
parameterPath: "subscriptionId",
|
|
34
54
|
mapper: {
|
|
55
|
+
serializedName: "subscriptionId",
|
|
35
56
|
required: true,
|
|
36
|
-
serializedName: "catalogName",
|
|
37
57
|
type: {
|
|
38
58
|
name: "String"
|
|
39
59
|
}
|
|
40
60
|
}
|
|
41
61
|
};
|
|
42
|
-
|
|
62
|
+
|
|
63
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
43
64
|
parameterPath: "resourceGroupName",
|
|
44
65
|
mapper: {
|
|
45
|
-
required: true,
|
|
46
|
-
serializedName: "resourceGroupName",
|
|
47
66
|
constraints: {
|
|
67
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
|
48
68
|
MaxLength: 90,
|
|
49
|
-
MinLength: 1
|
|
50
|
-
Pattern: /^[-\w\._\(\)]+$/
|
|
69
|
+
MinLength: 1
|
|
51
70
|
},
|
|
71
|
+
serializedName: "resourceGroupName",
|
|
72
|
+
required: true,
|
|
52
73
|
type: {
|
|
53
74
|
name: "String"
|
|
54
75
|
}
|
|
55
76
|
}
|
|
56
77
|
};
|
|
57
|
-
|
|
58
|
-
|
|
78
|
+
|
|
79
|
+
export const contentType: OperationParameter = {
|
|
80
|
+
parameterPath: ["options", "contentType"],
|
|
81
|
+
mapper: {
|
|
82
|
+
defaultValue: "application/json",
|
|
83
|
+
isConstant: true,
|
|
84
|
+
serializedName: "Content-Type",
|
|
85
|
+
type: {
|
|
86
|
+
name: "String"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const properties: OperationParameter = {
|
|
92
|
+
parameterPath: "properties",
|
|
93
|
+
mapper: ADCCatalogMapper
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export const catalogName: OperationURLParameter = {
|
|
97
|
+
parameterPath: "catalogName",
|
|
59
98
|
mapper: {
|
|
99
|
+
serializedName: "catalogName",
|
|
60
100
|
required: true,
|
|
61
|
-
serializedName: "subscriptionId",
|
|
62
101
|
type: {
|
|
63
102
|
name: "String"
|
|
64
103
|
}
|
|
@@ -3,341 +3,283 @@
|
|
|
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 * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/aDCCatalogsMappers";
|
|
9
|
+
import { ADCCatalogs } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
14
12
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
13
|
+
import { DataCatalogRestClient } from "../dataCatalogRestClient";
|
|
14
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
|
+
import { LroImpl } from "../lroImpl";
|
|
16
|
+
import {
|
|
17
|
+
ADCCatalogsListtByResourceGroupOptionalParams,
|
|
18
|
+
ADCCatalogsListtByResourceGroupResponse,
|
|
19
|
+
ADCCatalog,
|
|
20
|
+
ADCCatalogsCreateOrUpdateOptionalParams,
|
|
21
|
+
ADCCatalogsCreateOrUpdateResponse,
|
|
22
|
+
ADCCatalogsGetOptionalParams,
|
|
23
|
+
ADCCatalogsGetResponse,
|
|
24
|
+
ADCCatalogsDeleteOptionalParams,
|
|
25
|
+
ADCCatalogsUpdateOptionalParams,
|
|
26
|
+
ADCCatalogsUpdateResponse
|
|
27
|
+
} from "../models";
|
|
16
28
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class ADCCatalogs {
|
|
19
|
-
private readonly client:
|
|
29
|
+
/** Class containing ADCCatalogs operations. */
|
|
30
|
+
export class ADCCatalogsImpl implements ADCCatalogs {
|
|
31
|
+
private readonly client: DataCatalogRestClient;
|
|
20
32
|
|
|
21
33
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
34
|
+
* Initialize a new instance of the class ADCCatalogs class.
|
|
35
|
+
* @param client Reference to the service client
|
|
24
36
|
*/
|
|
25
|
-
constructor(client:
|
|
37
|
+
constructor(client: DataCatalogRestClient) {
|
|
26
38
|
this.client = client;
|
|
27
39
|
}
|
|
28
40
|
|
|
29
41
|
/**
|
|
30
|
-
* The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under
|
|
31
|
-
*
|
|
32
|
-
* @
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.ADCCatalogsListtByResourceGroupResponse>
|
|
42
|
+
* The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under the
|
|
43
|
+
* given resource group.
|
|
44
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
45
|
+
* case insensitive.
|
|
46
|
+
* @param options The options parameters.
|
|
37
47
|
*/
|
|
38
|
-
listtByResourceGroup(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* @param callback The callback
|
|
43
|
-
*/
|
|
44
|
-
listtByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ADCCatalogsListResult>): void;
|
|
45
|
-
/**
|
|
46
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
47
|
-
* is case insensitive.
|
|
48
|
-
* @param options The optional parameters
|
|
49
|
-
* @param callback The callback
|
|
50
|
-
*/
|
|
51
|
-
listtByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ADCCatalogsListResult>): void;
|
|
52
|
-
listtByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ADCCatalogsListResult>, callback?: msRest.ServiceCallback<Models.ADCCatalogsListResult>): Promise<Models.ADCCatalogsListtByResourceGroupResponse> {
|
|
48
|
+
listtByResourceGroup(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
options?: ADCCatalogsListtByResourceGroupOptionalParams
|
|
51
|
+
): Promise<ADCCatalogsListtByResourceGroupResponse> {
|
|
53
52
|
return this.client.sendOperationRequest(
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
listtByResourceGroupOperationSpec,
|
|
59
|
-
callback) as Promise<Models.ADCCatalogsListtByResourceGroupResponse>;
|
|
53
|
+
{ resourceGroupName, options },
|
|
54
|
+
listtByResourceGroupOperationSpec
|
|
55
|
+
);
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
/**
|
|
63
59
|
* The Create Azure Data Catalog service operation creates a new data catalog service with the
|
|
64
|
-
* specified parameters. If the specific service already exists, then any patchable properties will
|
|
65
|
-
*
|
|
66
|
-
* @
|
|
67
|
-
*
|
|
68
|
-
* is case insensitive.
|
|
60
|
+
* specified parameters. If the specific service already exists, then any patchable properties will be
|
|
61
|
+
* updated and any immutable properties will remain unchanged.
|
|
62
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
63
|
+
* case insensitive.
|
|
69
64
|
* @param properties Properties supplied to the Create or Update a data catalog.
|
|
70
|
-
* @param
|
|
71
|
-
* @returns Promise<Models.ADCCatalogsCreateOrUpdateResponse>
|
|
65
|
+
* @param options The options parameters.
|
|
72
66
|
*/
|
|
73
|
-
createOrUpdate(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
* @param callback The callback
|
|
79
|
-
*/
|
|
80
|
-
createOrUpdate(resourceGroupName: string, properties: Models.ADCCatalog, callback: msRest.ServiceCallback<Models.ADCCatalog>): void;
|
|
81
|
-
/**
|
|
82
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
83
|
-
* is case insensitive.
|
|
84
|
-
* @param properties Properties supplied to the Create or Update a data catalog.
|
|
85
|
-
* @param options The optional parameters
|
|
86
|
-
* @param callback The callback
|
|
87
|
-
*/
|
|
88
|
-
createOrUpdate(resourceGroupName: string, properties: Models.ADCCatalog, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ADCCatalog>): void;
|
|
89
|
-
createOrUpdate(resourceGroupName: string, properties: Models.ADCCatalog, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ADCCatalog>, callback?: msRest.ServiceCallback<Models.ADCCatalog>): Promise<Models.ADCCatalogsCreateOrUpdateResponse> {
|
|
67
|
+
createOrUpdate(
|
|
68
|
+
resourceGroupName: string,
|
|
69
|
+
properties: ADCCatalog,
|
|
70
|
+
options?: ADCCatalogsCreateOrUpdateOptionalParams
|
|
71
|
+
): Promise<ADCCatalogsCreateOrUpdateResponse> {
|
|
90
72
|
return this.client.sendOperationRequest(
|
|
91
|
-
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
options
|
|
95
|
-
},
|
|
96
|
-
createOrUpdateOperationSpec,
|
|
97
|
-
callback) as Promise<Models.ADCCatalogsCreateOrUpdateResponse>;
|
|
73
|
+
{ resourceGroupName, properties, options },
|
|
74
|
+
createOrUpdateOperationSpec
|
|
75
|
+
);
|
|
98
76
|
}
|
|
99
77
|
|
|
100
78
|
/**
|
|
101
|
-
* The Get Azure Data Catalog Service operation retrieves a json representation of the data
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* @param
|
|
105
|
-
* is case insensitive.
|
|
106
|
-
* @param [options] The optional parameters
|
|
107
|
-
* @returns Promise<Models.ADCCatalogsGetResponse>
|
|
108
|
-
*/
|
|
109
|
-
get(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ADCCatalogsGetResponse>;
|
|
110
|
-
/**
|
|
111
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
112
|
-
* is case insensitive.
|
|
113
|
-
* @param callback The callback
|
|
114
|
-
*/
|
|
115
|
-
get(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ADCCatalog>): void;
|
|
116
|
-
/**
|
|
117
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
118
|
-
* is case insensitive.
|
|
119
|
-
* @param options The optional parameters
|
|
120
|
-
* @param callback The callback
|
|
79
|
+
* The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.
|
|
80
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
81
|
+
* case insensitive.
|
|
82
|
+
* @param options The options parameters.
|
|
121
83
|
*/
|
|
122
|
-
get(
|
|
123
|
-
|
|
84
|
+
get(
|
|
85
|
+
resourceGroupName: string,
|
|
86
|
+
options?: ADCCatalogsGetOptionalParams
|
|
87
|
+
): Promise<ADCCatalogsGetResponse> {
|
|
124
88
|
return this.client.sendOperationRequest(
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
getOperationSpec,
|
|
130
|
-
callback) as Promise<Models.ADCCatalogsGetResponse>;
|
|
89
|
+
{ resourceGroupName, options },
|
|
90
|
+
getOperationSpec
|
|
91
|
+
);
|
|
131
92
|
}
|
|
132
93
|
|
|
133
94
|
/**
|
|
134
95
|
* The Delete Azure Data Catalog Service operation deletes an existing data catalog.
|
|
135
|
-
* @
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @param [options] The optional parameters
|
|
139
|
-
* @returns Promise<msRest.RestResponse>
|
|
96
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
97
|
+
* case insensitive.
|
|
98
|
+
* @param options The options parameters.
|
|
140
99
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
100
|
+
async beginDelete(
|
|
101
|
+
resourceGroupName: string,
|
|
102
|
+
options?: ADCCatalogsDeleteOptionalParams
|
|
103
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
104
|
+
const directSendOperation = async (
|
|
105
|
+
args: coreClient.OperationArguments,
|
|
106
|
+
spec: coreClient.OperationSpec
|
|
107
|
+
): Promise<void> => {
|
|
108
|
+
return this.client.sendOperationRequest(args, spec);
|
|
109
|
+
};
|
|
110
|
+
const sendOperation = async (
|
|
111
|
+
args: coreClient.OperationArguments,
|
|
112
|
+
spec: coreClient.OperationSpec
|
|
113
|
+
) => {
|
|
114
|
+
let currentRawResponse:
|
|
115
|
+
| coreClient.FullOperationResponse
|
|
116
|
+
| undefined = undefined;
|
|
117
|
+
const providedCallback = args.options?.onResponse;
|
|
118
|
+
const callback: coreClient.RawResponseCallback = (
|
|
119
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
120
|
+
flatResponse: unknown
|
|
121
|
+
) => {
|
|
122
|
+
currentRawResponse = rawResponse;
|
|
123
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
124
|
+
};
|
|
125
|
+
const updatedArgs = {
|
|
126
|
+
...args,
|
|
127
|
+
options: {
|
|
128
|
+
...args.options,
|
|
129
|
+
onResponse: callback
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
133
|
+
return {
|
|
134
|
+
flatResponse,
|
|
135
|
+
rawResponse: {
|
|
136
|
+
statusCode: currentRawResponse!.status,
|
|
137
|
+
body: currentRawResponse!.parsedBody,
|
|
138
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const lro = new LroImpl(
|
|
144
|
+
sendOperation,
|
|
145
|
+
{ resourceGroupName, options },
|
|
146
|
+
deleteOperationSpec
|
|
147
|
+
);
|
|
148
|
+
return new LroEngine(lro, {
|
|
149
|
+
resumeFrom: options?.resumeFrom,
|
|
150
|
+
intervalInMs: options?.updateIntervalInMs
|
|
151
|
+
});
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
/**
|
|
147
|
-
* The
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* @param
|
|
151
|
-
* is case insensitive.
|
|
152
|
-
* @param properties Properties supplied to the Update a data catalog.
|
|
153
|
-
* @param [options] The optional parameters
|
|
154
|
-
* @returns Promise<Models.ADCCatalogsUpdateResponse>
|
|
155
|
-
*/
|
|
156
|
-
update(resourceGroupName: string, properties: Models.ADCCatalog, options?: msRest.RequestOptionsBase): Promise<Models.ADCCatalogsUpdateResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
159
|
-
* is case insensitive.
|
|
160
|
-
* @param properties Properties supplied to the Update a data catalog.
|
|
161
|
-
* @param callback The callback
|
|
162
|
-
*/
|
|
163
|
-
update(resourceGroupName: string, properties: Models.ADCCatalog, callback: msRest.ServiceCallback<Models.ADCCatalog>): void;
|
|
164
|
-
/**
|
|
165
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
166
|
-
* is case insensitive.
|
|
167
|
-
* @param properties Properties supplied to the Update a data catalog.
|
|
168
|
-
* @param options The optional parameters
|
|
169
|
-
* @param callback The callback
|
|
155
|
+
* The Delete Azure Data Catalog Service operation deletes an existing data catalog.
|
|
156
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
157
|
+
* case insensitive.
|
|
158
|
+
* @param options The options parameters.
|
|
170
159
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
options
|
|
178
|
-
},
|
|
179
|
-
updateOperationSpec,
|
|
180
|
-
callback) as Promise<Models.ADCCatalogsUpdateResponse>;
|
|
160
|
+
async beginDeleteAndWait(
|
|
161
|
+
resourceGroupName: string,
|
|
162
|
+
options?: ADCCatalogsDeleteOptionalParams
|
|
163
|
+
): Promise<void> {
|
|
164
|
+
const poller = await this.beginDelete(resourceGroupName, options);
|
|
165
|
+
return poller.pollUntilDone();
|
|
181
166
|
}
|
|
182
167
|
|
|
183
168
|
/**
|
|
184
|
-
* The
|
|
185
|
-
*
|
|
186
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
187
|
-
*
|
|
188
|
-
* @param
|
|
189
|
-
* @
|
|
169
|
+
* The Update Azure Data Catalog Service operation can be used to update the existing deployment. The
|
|
170
|
+
* update call only supports the properties listed in the PATCH body.
|
|
171
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
172
|
+
* case insensitive.
|
|
173
|
+
* @param properties Properties supplied to the Update a data catalog.
|
|
174
|
+
* @param options The options parameters.
|
|
190
175
|
*/
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
176
|
+
update(
|
|
177
|
+
resourceGroupName: string,
|
|
178
|
+
properties: ADCCatalog,
|
|
179
|
+
options?: ADCCatalogsUpdateOptionalParams
|
|
180
|
+
): Promise<ADCCatalogsUpdateResponse> {
|
|
181
|
+
return this.client.sendOperationRequest(
|
|
182
|
+
{ resourceGroupName, properties, options },
|
|
183
|
+
updateOperationSpec
|
|
184
|
+
);
|
|
199
185
|
}
|
|
200
186
|
}
|
|
201
|
-
|
|
202
187
|
// Operation Specifications
|
|
203
|
-
const serializer =
|
|
204
|
-
|
|
188
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
189
|
+
|
|
190
|
+
const listtByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
191
|
+
path:
|
|
192
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",
|
|
205
193
|
httpMethod: "GET",
|
|
206
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",
|
|
207
|
-
urlParameters: [
|
|
208
|
-
Parameters.subscriptionId,
|
|
209
|
-
Parameters.resourceGroupName
|
|
210
|
-
],
|
|
211
|
-
queryParameters: [
|
|
212
|
-
Parameters.apiVersion
|
|
213
|
-
],
|
|
214
|
-
headerParameters: [
|
|
215
|
-
Parameters.acceptLanguage
|
|
216
|
-
],
|
|
217
194
|
responses: {
|
|
218
195
|
200: {
|
|
219
196
|
bodyMapper: Mappers.ADCCatalogsListResult
|
|
220
|
-
},
|
|
221
|
-
default: {
|
|
222
|
-
bodyMapper: Mappers.CloudError
|
|
223
197
|
}
|
|
224
198
|
},
|
|
225
|
-
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
229
|
-
httpMethod: "PUT",
|
|
230
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
199
|
+
queryParameters: [Parameters.apiVersion],
|
|
231
200
|
urlParameters: [
|
|
201
|
+
Parameters.$host,
|
|
232
202
|
Parameters.subscriptionId,
|
|
233
|
-
Parameters.resourceGroupName
|
|
234
|
-
Parameters.catalogName
|
|
235
|
-
],
|
|
236
|
-
queryParameters: [
|
|
237
|
-
Parameters.apiVersion
|
|
238
|
-
],
|
|
239
|
-
headerParameters: [
|
|
240
|
-
Parameters.acceptLanguage
|
|
203
|
+
Parameters.resourceGroupName
|
|
241
204
|
],
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
205
|
+
headerParameters: [Parameters.accept],
|
|
206
|
+
serializer
|
|
207
|
+
};
|
|
208
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
209
|
+
path:
|
|
210
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
211
|
+
httpMethod: "PUT",
|
|
249
212
|
responses: {
|
|
250
213
|
200: {
|
|
251
214
|
bodyMapper: Mappers.ADCCatalog
|
|
252
215
|
},
|
|
253
216
|
201: {
|
|
254
217
|
bodyMapper: Mappers.ADCCatalog
|
|
255
|
-
},
|
|
256
|
-
default: {
|
|
257
|
-
bodyMapper: Mappers.CloudError
|
|
258
218
|
}
|
|
259
219
|
},
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
264
|
-
httpMethod: "GET",
|
|
265
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
220
|
+
requestBody: Parameters.properties,
|
|
221
|
+
queryParameters: [Parameters.apiVersion],
|
|
266
222
|
urlParameters: [
|
|
223
|
+
Parameters.$host,
|
|
267
224
|
Parameters.subscriptionId,
|
|
268
225
|
Parameters.resourceGroupName,
|
|
269
226
|
Parameters.catalogName
|
|
270
227
|
],
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
228
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
229
|
+
mediaType: "json",
|
|
230
|
+
serializer
|
|
231
|
+
};
|
|
232
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
233
|
+
path:
|
|
234
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
235
|
+
httpMethod: "GET",
|
|
277
236
|
responses: {
|
|
278
237
|
200: {
|
|
279
238
|
bodyMapper: Mappers.ADCCatalog
|
|
280
|
-
},
|
|
281
|
-
default: {
|
|
282
|
-
bodyMapper: Mappers.CloudError
|
|
283
239
|
}
|
|
284
240
|
},
|
|
241
|
+
queryParameters: [Parameters.apiVersion],
|
|
242
|
+
urlParameters: [
|
|
243
|
+
Parameters.$host,
|
|
244
|
+
Parameters.subscriptionId,
|
|
245
|
+
Parameters.resourceGroupName,
|
|
246
|
+
Parameters.catalogName
|
|
247
|
+
],
|
|
248
|
+
headerParameters: [Parameters.accept],
|
|
285
249
|
serializer
|
|
286
250
|
};
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
251
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
252
|
+
path:
|
|
253
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
254
|
+
httpMethod: "DELETE",
|
|
255
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
256
|
+
queryParameters: [Parameters.apiVersion],
|
|
291
257
|
urlParameters: [
|
|
258
|
+
Parameters.$host,
|
|
292
259
|
Parameters.subscriptionId,
|
|
293
260
|
Parameters.resourceGroupName,
|
|
294
261
|
Parameters.catalogName
|
|
295
262
|
],
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
requestBody: {
|
|
303
|
-
parameterPath: "properties",
|
|
304
|
-
mapper: {
|
|
305
|
-
...Mappers.ADCCatalog,
|
|
306
|
-
required: true
|
|
307
|
-
}
|
|
308
|
-
},
|
|
263
|
+
serializer
|
|
264
|
+
};
|
|
265
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
266
|
+
path:
|
|
267
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
268
|
+
httpMethod: "PATCH",
|
|
309
269
|
responses: {
|
|
310
270
|
200: {
|
|
311
271
|
bodyMapper: Mappers.ADCCatalog
|
|
312
|
-
},
|
|
313
|
-
default: {
|
|
314
|
-
bodyMapper: Mappers.CloudError
|
|
315
272
|
}
|
|
316
273
|
},
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
321
|
-
httpMethod: "DELETE",
|
|
322
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
|
|
274
|
+
requestBody: Parameters.properties,
|
|
275
|
+
queryParameters: [Parameters.apiVersion],
|
|
323
276
|
urlParameters: [
|
|
277
|
+
Parameters.$host,
|
|
324
278
|
Parameters.subscriptionId,
|
|
325
279
|
Parameters.resourceGroupName,
|
|
326
280
|
Parameters.catalogName
|
|
327
281
|
],
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
],
|
|
331
|
-
headerParameters: [
|
|
332
|
-
Parameters.acceptLanguage
|
|
333
|
-
],
|
|
334
|
-
responses: {
|
|
335
|
-
200: {},
|
|
336
|
-
202: {},
|
|
337
|
-
204: {},
|
|
338
|
-
default: {
|
|
339
|
-
bodyMapper: Mappers.CloudError
|
|
340
|
-
}
|
|
341
|
-
},
|
|
282
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
283
|
+
mediaType: "json",
|
|
342
284
|
serializer
|
|
343
285
|
};
|