@azure/arm-maps 2.1.0 → 3.0.0-alpha.20220201.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -83
- package/dist/index.js +1892 -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/azureMapsManagementClient.d.ts +20 -0
- package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureMapsManagementClient.js +53 -0
- package/dist-esm/src/azureMapsManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/mapsMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +480 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +35 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +25 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +332 -379
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +131 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +103 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +427 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/creators.d.ts +74 -0
- package/dist-esm/src/operations/creators.d.ts.map +1 -0
- package/dist-esm/src/operations/creators.js +281 -0
- package/dist-esm/src/operations/creators.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/operations/maps.d.ts +51 -0
- package/dist-esm/src/operations/maps.d.ts.map +1 -0
- package/dist-esm/src/operations/maps.js +220 -0
- package/dist-esm/src/operations/maps.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +67 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/creators.d.ts +49 -0
- package/dist-esm/src/operationsInterfaces/creators.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/creators.js +9 -0
- package/dist-esm/src/operationsInterfaces/creators.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/maps.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/maps.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/maps.js} +2 -1
- package/dist-esm/src/operationsInterfaces/maps.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 +70 -21
- package/review/arm-maps.api.md +423 -0
- package/rollup.config.js +181 -24
- package/src/azureMapsManagementClient.ts +61 -36
- package/src/{models/mapsMappers.ts → index.ts} +4 -11
- package/src/models/index.ts +380 -684
- package/src/models/mappers.ts +333 -378
- package/src/models/parameters.ts +99 -36
- package/src/operations/accounts.ts +315 -502
- package/src/operations/creators.ts +202 -341
- package/src/operations/index.ts +1 -2
- package/src/operations/maps.ts +196 -77
- package/src/operationsInterfaces/accounts.ts +125 -0
- package/src/operationsInterfaces/creators.ts +95 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/maps.ts +33 -0
- package/tsconfig.json +3 -3
- package/types/arm-maps.d.ts +696 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-maps.js +0 -1671
- package/dist/arm-maps.js.map +0 -1
- package/dist/arm-maps.min.js +0 -1
- package/dist/arm-maps.min.js.map +0 -1
- package/esm/azureMapsManagementClient.d.ts +0 -26
- package/esm/azureMapsManagementClient.d.ts.map +0 -1
- package/esm/azureMapsManagementClient.js +0 -39
- package/esm/azureMapsManagementClient.js.map +0 -1
- package/esm/azureMapsManagementClientContext.d.ts +0 -22
- package/esm/azureMapsManagementClientContext.d.ts.map +0 -1
- package/esm/azureMapsManagementClientContext.js +0 -61
- package/esm/azureMapsManagementClientContext.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -9
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/creatorsMappers.d.ts +0 -2
- package/esm/models/creatorsMappers.d.ts.map +0 -1
- package/esm/models/creatorsMappers.js +0 -9
- package/esm/models/creatorsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -793
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -29
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/mapsMappers.d.ts +0 -2
- package/esm/models/mapsMappers.d.ts.map +0 -1
- package/esm/models/mapsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -9
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -91
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -222
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -271
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/creators.d.ts +0 -157
- package/esm/operations/creators.d.ts.map +0 -1
- package/esm/operations/creators.js +0 -201
- package/esm/operations/creators.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/maps.d.ts +0 -46
- package/esm/operations/maps.d.ts.map +0 -1
- package/esm/operations/maps.js +0 -69
- package/esm/operations/maps.js.map +0 -1
- package/src/azureMapsManagementClientContext.ts +0 -74
- package/src/models/accountsMappers.ts +0 -28
- package/src/models/creatorsMappers.ts +0 -26
|
@@ -3,25 +3,41 @@
|
|
|
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 { Creators } 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
|
-
import {
|
|
14
|
+
import { AzureMapsManagementClient } from "../azureMapsManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Creator,
|
|
17
|
+
CreatorsListByAccountNextOptionalParams,
|
|
18
|
+
CreatorsListByAccountOptionalParams,
|
|
19
|
+
CreatorsListByAccountResponse,
|
|
20
|
+
CreatorsCreateOrUpdateOptionalParams,
|
|
21
|
+
CreatorsCreateOrUpdateResponse,
|
|
22
|
+
CreatorUpdateParameters,
|
|
23
|
+
CreatorsUpdateOptionalParams,
|
|
24
|
+
CreatorsUpdateResponse,
|
|
25
|
+
CreatorsDeleteOptionalParams,
|
|
26
|
+
CreatorsGetOptionalParams,
|
|
27
|
+
CreatorsGetResponse,
|
|
28
|
+
CreatorsListByAccountNextResponse
|
|
29
|
+
} from "../models";
|
|
15
30
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Class containing Creators operations. */
|
|
33
|
+
export class CreatorsImpl implements Creators {
|
|
34
|
+
private readonly client: AzureMapsManagementClient;
|
|
19
35
|
|
|
20
36
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
37
|
+
* Initialize a new instance of the class Creators class.
|
|
38
|
+
* @param client Reference to the service client
|
|
23
39
|
*/
|
|
24
|
-
constructor(client:
|
|
40
|
+
constructor(client: AzureMapsManagementClient) {
|
|
25
41
|
this.client = client;
|
|
26
42
|
}
|
|
27
43
|
|
|
@@ -29,177 +45,128 @@ export class Creators {
|
|
|
29
45
|
* Get all Creator instances for an Azure Maps Account
|
|
30
46
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
31
47
|
* @param accountName The name of the Maps Account.
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.CreatorsListByAccountResponse>
|
|
48
|
+
* @param options The options parameters.
|
|
34
49
|
*/
|
|
35
|
-
listByAccount(
|
|
50
|
+
public listByAccount(
|
|
36
51
|
resourceGroupName: string,
|
|
37
52
|
accountName: string,
|
|
38
|
-
options?:
|
|
39
|
-
):
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
options?: CreatorsListByAccountOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<Creator> {
|
|
55
|
+
const iter = this.listByAccountPagingAll(
|
|
56
|
+
resourceGroupName,
|
|
57
|
+
accountName,
|
|
58
|
+
options
|
|
59
|
+
);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: () => {
|
|
68
|
+
return this.listByAccountPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
accountName,
|
|
71
|
+
options
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private async *listByAccountPagingPage(
|
|
63
78
|
resourceGroupName: string,
|
|
64
79
|
accountName: string,
|
|
65
|
-
options?:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
options?: CreatorsListByAccountOptionalParams
|
|
81
|
+
): AsyncIterableIterator<Creator[]> {
|
|
82
|
+
let result = await this._listByAccount(
|
|
83
|
+
resourceGroupName,
|
|
84
|
+
accountName,
|
|
85
|
+
options
|
|
86
|
+
);
|
|
87
|
+
yield result.value || [];
|
|
88
|
+
let continuationToken = result.nextLink;
|
|
89
|
+
while (continuationToken) {
|
|
90
|
+
result = await this._listByAccountNext(
|
|
70
91
|
resourceGroupName,
|
|
71
92
|
accountName,
|
|
93
|
+
continuationToken,
|
|
72
94
|
options
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
95
|
+
);
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
yield result.value || [];
|
|
98
|
+
}
|
|
77
99
|
}
|
|
78
100
|
|
|
79
|
-
|
|
80
|
-
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required
|
|
81
|
-
* to populate a custom set of mapping data. It requires an account to exist before it can be
|
|
82
|
-
* created.
|
|
83
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
84
|
-
* @param accountName The name of the Maps Account.
|
|
85
|
-
* @param creatorName The name of the Maps Creator instance.
|
|
86
|
-
* @param creatorResource The new or updated parameters for the Creator resource.
|
|
87
|
-
* @param [options] The optional parameters
|
|
88
|
-
* @returns Promise<Models.CreatorsCreateOrUpdateResponse>
|
|
89
|
-
*/
|
|
90
|
-
createOrUpdate(
|
|
101
|
+
private async *listByAccountPagingAll(
|
|
91
102
|
resourceGroupName: string,
|
|
92
103
|
accountName: string,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
options?: CreatorsListByAccountOptionalParams
|
|
105
|
+
): AsyncIterableIterator<Creator> {
|
|
106
|
+
for await (const page of this.listByAccountPagingPage(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
accountName,
|
|
109
|
+
options
|
|
110
|
+
)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
97
115
|
/**
|
|
116
|
+
* Get all Creator instances for an Azure Maps Account
|
|
98
117
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
99
118
|
* @param accountName The name of the Maps Account.
|
|
100
|
-
* @param
|
|
101
|
-
* @param creatorResource The new or updated parameters for the Creator resource.
|
|
102
|
-
* @param callback The callback
|
|
119
|
+
* @param options The options parameters.
|
|
103
120
|
*/
|
|
104
|
-
|
|
121
|
+
private _listByAccount(
|
|
105
122
|
resourceGroupName: string,
|
|
106
123
|
accountName: string,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
options?: CreatorsListByAccountOptionalParams
|
|
125
|
+
): Promise<CreatorsListByAccountResponse> {
|
|
126
|
+
return this.client.sendOperationRequest(
|
|
127
|
+
{ resourceGroupName, accountName, options },
|
|
128
|
+
listByAccountOperationSpec
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
111
132
|
/**
|
|
133
|
+
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to
|
|
134
|
+
* populate a custom set of mapping data. It requires an account to exist before it can be created.
|
|
112
135
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
113
136
|
* @param accountName The name of the Maps Account.
|
|
114
137
|
* @param creatorName The name of the Maps Creator instance.
|
|
115
138
|
* @param creatorResource The new or updated parameters for the Creator resource.
|
|
116
|
-
* @param options The
|
|
117
|
-
* @param callback The callback
|
|
139
|
+
* @param options The options parameters.
|
|
118
140
|
*/
|
|
119
141
|
createOrUpdate(
|
|
120
142
|
resourceGroupName: string,
|
|
121
143
|
accountName: string,
|
|
122
144
|
creatorName: string,
|
|
123
|
-
creatorResource:
|
|
124
|
-
options
|
|
125
|
-
|
|
126
|
-
): void;
|
|
127
|
-
createOrUpdate(
|
|
128
|
-
resourceGroupName: string,
|
|
129
|
-
accountName: string,
|
|
130
|
-
creatorName: string,
|
|
131
|
-
creatorResource: Models.Creator,
|
|
132
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Creator>,
|
|
133
|
-
callback?: msRest.ServiceCallback<Models.Creator>
|
|
134
|
-
): Promise<Models.CreatorsCreateOrUpdateResponse> {
|
|
145
|
+
creatorResource: Creator,
|
|
146
|
+
options?: CreatorsCreateOrUpdateOptionalParams
|
|
147
|
+
): Promise<CreatorsCreateOrUpdateResponse> {
|
|
135
148
|
return this.client.sendOperationRequest(
|
|
136
|
-
{
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
creatorName,
|
|
140
|
-
creatorResource,
|
|
141
|
-
options
|
|
142
|
-
},
|
|
143
|
-
createOrUpdateOperationSpec,
|
|
144
|
-
callback
|
|
145
|
-
) as Promise<Models.CreatorsCreateOrUpdateResponse>;
|
|
149
|
+
{ resourceGroupName, accountName, creatorName, creatorResource, options },
|
|
150
|
+
createOrUpdateOperationSpec
|
|
151
|
+
);
|
|
146
152
|
}
|
|
147
153
|
|
|
148
154
|
/**
|
|
149
|
-
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after
|
|
150
|
-
*
|
|
151
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
|
-
* @param accountName The name of the Maps Account.
|
|
153
|
-
* @param creatorName The name of the Maps Creator instance.
|
|
154
|
-
* @param creatorUpdateParameters The update parameters for Maps Creator.
|
|
155
|
-
* @param [options] The optional parameters
|
|
156
|
-
* @returns Promise<Models.CreatorsUpdateResponse>
|
|
157
|
-
*/
|
|
158
|
-
update(
|
|
159
|
-
resourceGroupName: string,
|
|
160
|
-
accountName: string,
|
|
161
|
-
creatorName: string,
|
|
162
|
-
creatorUpdateParameters: Models.CreatorUpdateParameters,
|
|
163
|
-
options?: msRest.RequestOptionsBase
|
|
164
|
-
): Promise<Models.CreatorsUpdateResponse>;
|
|
165
|
-
/**
|
|
155
|
+
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation,
|
|
156
|
+
* such as Tags.
|
|
166
157
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
167
158
|
* @param accountName The name of the Maps Account.
|
|
168
159
|
* @param creatorName The name of the Maps Creator instance.
|
|
169
160
|
* @param creatorUpdateParameters The update parameters for Maps Creator.
|
|
170
|
-
* @param
|
|
161
|
+
* @param options The options parameters.
|
|
171
162
|
*/
|
|
172
163
|
update(
|
|
173
164
|
resourceGroupName: string,
|
|
174
165
|
accountName: string,
|
|
175
166
|
creatorName: string,
|
|
176
|
-
creatorUpdateParameters:
|
|
177
|
-
|
|
178
|
-
):
|
|
179
|
-
/**
|
|
180
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
181
|
-
* @param accountName The name of the Maps Account.
|
|
182
|
-
* @param creatorName The name of the Maps Creator instance.
|
|
183
|
-
* @param creatorUpdateParameters The update parameters for Maps Creator.
|
|
184
|
-
* @param options The optional parameters
|
|
185
|
-
* @param callback The callback
|
|
186
|
-
*/
|
|
187
|
-
update(
|
|
188
|
-
resourceGroupName: string,
|
|
189
|
-
accountName: string,
|
|
190
|
-
creatorName: string,
|
|
191
|
-
creatorUpdateParameters: Models.CreatorUpdateParameters,
|
|
192
|
-
options: msRest.RequestOptionsBase,
|
|
193
|
-
callback: msRest.ServiceCallback<Models.Creator>
|
|
194
|
-
): void;
|
|
195
|
-
update(
|
|
196
|
-
resourceGroupName: string,
|
|
197
|
-
accountName: string,
|
|
198
|
-
creatorName: string,
|
|
199
|
-
creatorUpdateParameters: Models.CreatorUpdateParameters,
|
|
200
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Creator>,
|
|
201
|
-
callback?: msRest.ServiceCallback<Models.Creator>
|
|
202
|
-
): Promise<Models.CreatorsUpdateResponse> {
|
|
167
|
+
creatorUpdateParameters: CreatorUpdateParameters,
|
|
168
|
+
options?: CreatorsUpdateOptionalParams
|
|
169
|
+
): Promise<CreatorsUpdateResponse> {
|
|
203
170
|
return this.client.sendOperationRequest(
|
|
204
171
|
{
|
|
205
172
|
resourceGroupName,
|
|
@@ -208,9 +175,8 @@ export class Creators {
|
|
|
208
175
|
creatorUpdateParameters,
|
|
209
176
|
options
|
|
210
177
|
},
|
|
211
|
-
updateOperationSpec
|
|
212
|
-
|
|
213
|
-
) as Promise<Models.CreatorsUpdateResponse>;
|
|
178
|
+
updateOperationSpec
|
|
179
|
+
);
|
|
214
180
|
}
|
|
215
181
|
|
|
216
182
|
/**
|
|
@@ -218,57 +184,17 @@ export class Creators {
|
|
|
218
184
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
219
185
|
* @param accountName The name of the Maps Account.
|
|
220
186
|
* @param creatorName The name of the Maps Creator instance.
|
|
221
|
-
* @param
|
|
222
|
-
* @returns Promise<msRest.RestResponse>
|
|
223
|
-
*/
|
|
224
|
-
deleteMethod(
|
|
225
|
-
resourceGroupName: string,
|
|
226
|
-
accountName: string,
|
|
227
|
-
creatorName: string,
|
|
228
|
-
options?: msRest.RequestOptionsBase
|
|
229
|
-
): Promise<msRest.RestResponse>;
|
|
230
|
-
/**
|
|
231
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
232
|
-
* @param accountName The name of the Maps Account.
|
|
233
|
-
* @param creatorName The name of the Maps Creator instance.
|
|
234
|
-
* @param callback The callback
|
|
235
|
-
*/
|
|
236
|
-
deleteMethod(
|
|
237
|
-
resourceGroupName: string,
|
|
238
|
-
accountName: string,
|
|
239
|
-
creatorName: string,
|
|
240
|
-
callback: msRest.ServiceCallback<void>
|
|
241
|
-
): void;
|
|
242
|
-
/**
|
|
243
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
244
|
-
* @param accountName The name of the Maps Account.
|
|
245
|
-
* @param creatorName The name of the Maps Creator instance.
|
|
246
|
-
* @param options The optional parameters
|
|
247
|
-
* @param callback The callback
|
|
187
|
+
* @param options The options parameters.
|
|
248
188
|
*/
|
|
249
|
-
|
|
189
|
+
delete(
|
|
250
190
|
resourceGroupName: string,
|
|
251
191
|
accountName: string,
|
|
252
192
|
creatorName: string,
|
|
253
|
-
options
|
|
254
|
-
|
|
255
|
-
): void;
|
|
256
|
-
deleteMethod(
|
|
257
|
-
resourceGroupName: string,
|
|
258
|
-
accountName: string,
|
|
259
|
-
creatorName: string,
|
|
260
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>,
|
|
261
|
-
callback?: msRest.ServiceCallback<void>
|
|
262
|
-
): Promise<msRest.RestResponse> {
|
|
193
|
+
options?: CreatorsDeleteOptionalParams
|
|
194
|
+
): Promise<void> {
|
|
263
195
|
return this.client.sendOperationRequest(
|
|
264
|
-
{
|
|
265
|
-
|
|
266
|
-
accountName,
|
|
267
|
-
creatorName,
|
|
268
|
-
options
|
|
269
|
-
},
|
|
270
|
-
deleteMethodOperationSpec,
|
|
271
|
-
callback
|
|
196
|
+
{ resourceGroupName, accountName, creatorName, options },
|
|
197
|
+
deleteOperationSpec
|
|
272
198
|
);
|
|
273
199
|
}
|
|
274
200
|
|
|
@@ -277,113 +203,46 @@ export class Creators {
|
|
|
277
203
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
278
204
|
* @param accountName The name of the Maps Account.
|
|
279
205
|
* @param creatorName The name of the Maps Creator instance.
|
|
280
|
-
* @param
|
|
281
|
-
* @returns Promise<Models.CreatorsGetResponse>
|
|
206
|
+
* @param options The options parameters.
|
|
282
207
|
*/
|
|
283
208
|
get(
|
|
284
209
|
resourceGroupName: string,
|
|
285
210
|
accountName: string,
|
|
286
211
|
creatorName: string,
|
|
287
|
-
options?:
|
|
288
|
-
): Promise<
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
get(
|
|
296
|
-
resourceGroupName: string,
|
|
297
|
-
accountName: string,
|
|
298
|
-
creatorName: string,
|
|
299
|
-
callback: msRest.ServiceCallback<Models.Creator>
|
|
300
|
-
): void;
|
|
212
|
+
options?: CreatorsGetOptionalParams
|
|
213
|
+
): Promise<CreatorsGetResponse> {
|
|
214
|
+
return this.client.sendOperationRequest(
|
|
215
|
+
{ resourceGroupName, accountName, creatorName, options },
|
|
216
|
+
getOperationSpec
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
301
220
|
/**
|
|
221
|
+
* ListByAccountNext
|
|
302
222
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
303
223
|
* @param accountName The name of the Maps Account.
|
|
304
|
-
* @param
|
|
305
|
-
* @param options The
|
|
306
|
-
* @param callback The callback
|
|
224
|
+
* @param nextLink The nextLink from the previous successful call to the ListByAccount method.
|
|
225
|
+
* @param options The options parameters.
|
|
307
226
|
*/
|
|
308
|
-
|
|
309
|
-
resourceGroupName: string,
|
|
310
|
-
accountName: string,
|
|
311
|
-
creatorName: string,
|
|
312
|
-
options: msRest.RequestOptionsBase,
|
|
313
|
-
callback: msRest.ServiceCallback<Models.Creator>
|
|
314
|
-
): void;
|
|
315
|
-
get(
|
|
227
|
+
private _listByAccountNext(
|
|
316
228
|
resourceGroupName: string,
|
|
317
229
|
accountName: string,
|
|
318
|
-
|
|
319
|
-
options?:
|
|
320
|
-
|
|
321
|
-
): Promise<Models.CreatorsGetResponse> {
|
|
322
|
-
return this.client.sendOperationRequest(
|
|
323
|
-
{
|
|
324
|
-
resourceGroupName,
|
|
325
|
-
accountName,
|
|
326
|
-
creatorName,
|
|
327
|
-
options
|
|
328
|
-
},
|
|
329
|
-
getOperationSpec,
|
|
330
|
-
callback
|
|
331
|
-
) as Promise<Models.CreatorsGetResponse>;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Get all Creator instances for an Azure Maps Account
|
|
336
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
337
|
-
* @param [options] The optional parameters
|
|
338
|
-
* @returns Promise<Models.CreatorsListByAccountNextResponse>
|
|
339
|
-
*/
|
|
340
|
-
listByAccountNext(
|
|
341
|
-
nextPageLink: string,
|
|
342
|
-
options?: msRest.RequestOptionsBase
|
|
343
|
-
): Promise<Models.CreatorsListByAccountNextResponse>;
|
|
344
|
-
/**
|
|
345
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
346
|
-
* @param callback The callback
|
|
347
|
-
*/
|
|
348
|
-
listByAccountNext(
|
|
349
|
-
nextPageLink: string,
|
|
350
|
-
callback: msRest.ServiceCallback<Models.CreatorList>
|
|
351
|
-
): void;
|
|
352
|
-
/**
|
|
353
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
354
|
-
* @param options The optional parameters
|
|
355
|
-
* @param callback The callback
|
|
356
|
-
*/
|
|
357
|
-
listByAccountNext(
|
|
358
|
-
nextPageLink: string,
|
|
359
|
-
options: msRest.RequestOptionsBase,
|
|
360
|
-
callback: msRest.ServiceCallback<Models.CreatorList>
|
|
361
|
-
): void;
|
|
362
|
-
listByAccountNext(
|
|
363
|
-
nextPageLink: string,
|
|
364
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CreatorList>,
|
|
365
|
-
callback?: msRest.ServiceCallback<Models.CreatorList>
|
|
366
|
-
): Promise<Models.CreatorsListByAccountNextResponse> {
|
|
230
|
+
nextLink: string,
|
|
231
|
+
options?: CreatorsListByAccountNextOptionalParams
|
|
232
|
+
): Promise<CreatorsListByAccountNextResponse> {
|
|
367
233
|
return this.client.sendOperationRequest(
|
|
368
|
-
{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
},
|
|
372
|
-
listByAccountNextOperationSpec,
|
|
373
|
-
callback
|
|
374
|
-
) as Promise<Models.CreatorsListByAccountNextResponse>;
|
|
234
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
235
|
+
listByAccountNextOperationSpec
|
|
236
|
+
);
|
|
375
237
|
}
|
|
376
238
|
}
|
|
377
|
-
|
|
378
239
|
// Operation Specifications
|
|
379
|
-
const serializer =
|
|
380
|
-
|
|
381
|
-
|
|
240
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
241
|
+
|
|
242
|
+
const listByAccountOperationSpec: coreClient.OperationSpec = {
|
|
382
243
|
path:
|
|
383
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators",
|
|
384
|
-
|
|
385
|
-
queryParameters: [Parameters.apiVersion],
|
|
386
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
244
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators",
|
|
245
|
+
httpMethod: "GET",
|
|
387
246
|
responses: {
|
|
388
247
|
200: {
|
|
389
248
|
bodyMapper: Mappers.CreatorList
|
|
@@ -392,28 +251,20 @@ const listByAccountOperationSpec: msRest.OperationSpec = {
|
|
|
392
251
|
bodyMapper: Mappers.ErrorResponse
|
|
393
252
|
}
|
|
394
253
|
},
|
|
395
|
-
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
399
|
-
httpMethod: "PUT",
|
|
400
|
-
path:
|
|
401
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
254
|
+
queryParameters: [Parameters.apiVersion],
|
|
402
255
|
urlParameters: [
|
|
256
|
+
Parameters.$host,
|
|
403
257
|
Parameters.subscriptionId,
|
|
404
258
|
Parameters.resourceGroupName,
|
|
405
|
-
Parameters.accountName
|
|
406
|
-
Parameters.creatorName
|
|
259
|
+
Parameters.accountName
|
|
407
260
|
],
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
},
|
|
261
|
+
headerParameters: [Parameters.accept],
|
|
262
|
+
serializer
|
|
263
|
+
};
|
|
264
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
265
|
+
path:
|
|
266
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
267
|
+
httpMethod: "PUT",
|
|
417
268
|
responses: {
|
|
418
269
|
200: {
|
|
419
270
|
bodyMapper: Mappers.Creator
|
|
@@ -425,28 +276,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
425
276
|
bodyMapper: Mappers.ErrorResponse
|
|
426
277
|
}
|
|
427
278
|
},
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
432
|
-
httpMethod: "PATCH",
|
|
433
|
-
path:
|
|
434
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
279
|
+
requestBody: Parameters.creatorResource,
|
|
280
|
+
queryParameters: [Parameters.apiVersion],
|
|
435
281
|
urlParameters: [
|
|
282
|
+
Parameters.$host,
|
|
436
283
|
Parameters.subscriptionId,
|
|
437
284
|
Parameters.resourceGroupName,
|
|
438
285
|
Parameters.accountName,
|
|
439
286
|
Parameters.creatorName
|
|
440
287
|
],
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
},
|
|
288
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
289
|
+
mediaType: "json",
|
|
290
|
+
serializer
|
|
291
|
+
};
|
|
292
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
293
|
+
path:
|
|
294
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
295
|
+
httpMethod: "PATCH",
|
|
450
296
|
responses: {
|
|
451
297
|
200: {
|
|
452
298
|
bodyMapper: Mappers.Creator
|
|
@@ -455,21 +301,23 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
455
301
|
bodyMapper: Mappers.ErrorResponse
|
|
456
302
|
}
|
|
457
303
|
},
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
462
|
-
httpMethod: "DELETE",
|
|
463
|
-
path:
|
|
464
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
304
|
+
requestBody: Parameters.creatorUpdateParameters,
|
|
305
|
+
queryParameters: [Parameters.apiVersion],
|
|
465
306
|
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
466
308
|
Parameters.subscriptionId,
|
|
467
309
|
Parameters.resourceGroupName,
|
|
468
310
|
Parameters.accountName,
|
|
469
311
|
Parameters.creatorName
|
|
470
312
|
],
|
|
471
|
-
|
|
472
|
-
|
|
313
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
314
|
+
mediaType: "json",
|
|
315
|
+
serializer
|
|
316
|
+
};
|
|
317
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
318
|
+
path:
|
|
319
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
320
|
+
httpMethod: "DELETE",
|
|
473
321
|
responses: {
|
|
474
322
|
200: {},
|
|
475
323
|
204: {},
|
|
@@ -477,21 +325,21 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
477
325
|
bodyMapper: Mappers.ErrorResponse
|
|
478
326
|
}
|
|
479
327
|
},
|
|
480
|
-
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
484
|
-
httpMethod: "GET",
|
|
485
|
-
path:
|
|
486
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
328
|
+
queryParameters: [Parameters.apiVersion],
|
|
487
329
|
urlParameters: [
|
|
330
|
+
Parameters.$host,
|
|
488
331
|
Parameters.subscriptionId,
|
|
489
332
|
Parameters.resourceGroupName,
|
|
490
333
|
Parameters.accountName,
|
|
491
334
|
Parameters.creatorName
|
|
492
335
|
],
|
|
493
|
-
|
|
494
|
-
|
|
336
|
+
headerParameters: [Parameters.accept],
|
|
337
|
+
serializer
|
|
338
|
+
};
|
|
339
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
340
|
+
path:
|
|
341
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
342
|
+
httpMethod: "GET",
|
|
495
343
|
responses: {
|
|
496
344
|
200: {
|
|
497
345
|
bodyMapper: Mappers.Creator
|
|
@@ -500,16 +348,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
500
348
|
bodyMapper: Mappers.ErrorResponse
|
|
501
349
|
}
|
|
502
350
|
},
|
|
351
|
+
queryParameters: [Parameters.apiVersion],
|
|
352
|
+
urlParameters: [
|
|
353
|
+
Parameters.$host,
|
|
354
|
+
Parameters.subscriptionId,
|
|
355
|
+
Parameters.resourceGroupName,
|
|
356
|
+
Parameters.accountName,
|
|
357
|
+
Parameters.creatorName
|
|
358
|
+
],
|
|
359
|
+
headerParameters: [Parameters.accept],
|
|
503
360
|
serializer
|
|
504
361
|
};
|
|
505
|
-
|
|
506
|
-
const listByAccountNextOperationSpec: msRest.OperationSpec = {
|
|
507
|
-
httpMethod: "GET",
|
|
508
|
-
baseUrl: "https://management.azure.com",
|
|
362
|
+
const listByAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
509
363
|
path: "{nextLink}",
|
|
510
|
-
|
|
511
|
-
queryParameters: [Parameters.apiVersion],
|
|
512
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
364
|
+
httpMethod: "GET",
|
|
513
365
|
responses: {
|
|
514
366
|
200: {
|
|
515
367
|
bodyMapper: Mappers.CreatorList
|
|
@@ -518,5 +370,14 @@ const listByAccountNextOperationSpec: msRest.OperationSpec = {
|
|
|
518
370
|
bodyMapper: Mappers.ErrorResponse
|
|
519
371
|
}
|
|
520
372
|
},
|
|
373
|
+
queryParameters: [Parameters.apiVersion],
|
|
374
|
+
urlParameters: [
|
|
375
|
+
Parameters.$host,
|
|
376
|
+
Parameters.subscriptionId,
|
|
377
|
+
Parameters.resourceGroupName,
|
|
378
|
+
Parameters.accountName,
|
|
379
|
+
Parameters.nextLink
|
|
380
|
+
],
|
|
381
|
+
headerParameters: [Parameters.accept],
|
|
521
382
|
serializer
|
|
522
383
|
};
|