@azure/arm-maps 2.0.0 → 3.0.0-alpha.20220131.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.
Files changed (132) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +68 -81
  4. package/dist/index.js +1892 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureMapsManagementClient.d.ts +20 -0
  9. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureMapsManagementClient.js +53 -0
  11. package/dist-esm/src/azureMapsManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/{esm/models/mapsMappers.js → dist-esm/src/index.js} +5 -2
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +480 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +35 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +25 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +332 -379
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +16 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +131 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/accounts.d.ts +103 -0
  29. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  30. package/dist-esm/src/operations/accounts.js +427 -0
  31. package/dist-esm/src/operations/accounts.js.map +1 -0
  32. package/dist-esm/src/operations/creators.d.ts +74 -0
  33. package/dist-esm/src/operations/creators.d.ts.map +1 -0
  34. package/dist-esm/src/operations/creators.js +281 -0
  35. package/dist-esm/src/operations/creators.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +1 -2
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/maps.d.ts +51 -0
  41. package/dist-esm/src/operations/maps.d.ts.map +1 -0
  42. package/dist-esm/src/operations/maps.js +220 -0
  43. package/dist-esm/src/operations/maps.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/accounts.d.ts +67 -0
  45. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/creators.d.ts +49 -0
  49. package/dist-esm/src/operationsInterfaces/creators.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/creators.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/creators.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  55. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/maps.d.ts +16 -0
  57. package/dist-esm/src/operationsInterfaces/maps.d.ts.map +1 -0
  58. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/maps.js} +2 -1
  59. package/dist-esm/src/operationsInterfaces/maps.js.map +1 -0
  60. package/dist-esm/test/sampleTest.d.ts +2 -0
  61. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  62. package/dist-esm/test/sampleTest.js +40 -0
  63. package/dist-esm/test/sampleTest.js.map +1 -0
  64. package/package.json +71 -21
  65. package/review/arm-maps.api.md +423 -0
  66. package/rollup.config.js +181 -24
  67. package/src/azureMapsManagementClient.ts +61 -30
  68. package/src/{models/mapsMappers.ts → index.ts} +4 -11
  69. package/src/models/index.ts +380 -684
  70. package/src/models/mappers.ts +333 -378
  71. package/src/models/parameters.ts +99 -36
  72. package/src/operations/accounts.ts +315 -502
  73. package/src/operations/creators.ts +202 -341
  74. package/src/operations/index.ts +1 -2
  75. package/src/operations/maps.ts +196 -77
  76. package/src/operationsInterfaces/accounts.ts +125 -0
  77. package/src/operationsInterfaces/creators.ts +95 -0
  78. package/src/operationsInterfaces/index.ts +11 -0
  79. package/src/operationsInterfaces/maps.ts +33 -0
  80. package/tsconfig.json +3 -3
  81. package/types/arm-maps.d.ts +696 -0
  82. package/types/tsdoc-metadata.json +11 -0
  83. package/dist/arm-maps.js +0 -1661
  84. package/dist/arm-maps.js.map +0 -1
  85. package/dist/arm-maps.min.js +0 -1
  86. package/dist/arm-maps.min.js.map +0 -1
  87. package/esm/azureMapsManagementClient.d.ts +0 -20
  88. package/esm/azureMapsManagementClient.d.ts.map +0 -1
  89. package/esm/azureMapsManagementClient.js +0 -34
  90. package/esm/azureMapsManagementClient.js.map +0 -1
  91. package/esm/azureMapsManagementClientContext.d.ts +0 -16
  92. package/esm/azureMapsManagementClientContext.d.ts.map +0 -1
  93. package/esm/azureMapsManagementClientContext.js +0 -56
  94. package/esm/azureMapsManagementClientContext.js.map +0 -1
  95. package/esm/models/accountsMappers.d.ts +0 -2
  96. package/esm/models/accountsMappers.d.ts.map +0 -1
  97. package/esm/models/accountsMappers.js +0 -9
  98. package/esm/models/accountsMappers.js.map +0 -1
  99. package/esm/models/creatorsMappers.d.ts +0 -2
  100. package/esm/models/creatorsMappers.d.ts.map +0 -1
  101. package/esm/models/creatorsMappers.js +0 -9
  102. package/esm/models/creatorsMappers.js.map +0 -1
  103. package/esm/models/index.d.ts +0 -793
  104. package/esm/models/index.d.ts.map +0 -1
  105. package/esm/models/index.js.map +0 -1
  106. package/esm/models/mappers.d.ts +0 -29
  107. package/esm/models/mappers.d.ts.map +0 -1
  108. package/esm/models/mappers.js.map +0 -1
  109. package/esm/models/mapsMappers.d.ts +0 -2
  110. package/esm/models/mapsMappers.d.ts.map +0 -1
  111. package/esm/models/mapsMappers.js.map +0 -1
  112. package/esm/models/parameters.d.ts +0 -9
  113. package/esm/models/parameters.d.ts.map +0 -1
  114. package/esm/models/parameters.js +0 -91
  115. package/esm/models/parameters.js.map +0 -1
  116. package/esm/operations/accounts.d.ts +0 -222
  117. package/esm/operations/accounts.d.ts.map +0 -1
  118. package/esm/operations/accounts.js +0 -271
  119. package/esm/operations/accounts.js.map +0 -1
  120. package/esm/operations/creators.d.ts +0 -157
  121. package/esm/operations/creators.d.ts.map +0 -1
  122. package/esm/operations/creators.js +0 -201
  123. package/esm/operations/creators.js.map +0 -1
  124. package/esm/operations/index.d.ts.map +0 -1
  125. package/esm/operations/index.js.map +0 -1
  126. package/esm/operations/maps.d.ts +0 -46
  127. package/esm/operations/maps.d.ts.map +0 -1
  128. package/esm/operations/maps.js +0 -69
  129. package/esm/operations/maps.js.map +0 -1
  130. package/src/azureMapsManagementClientContext.ts +0 -68
  131. package/src/models/accountsMappers.ts +0 -28
  132. 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 * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/creatorsMappers";
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 { AzureMapsManagementClientContext } from "../azureMapsManagementClientContext";
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
- /** Class representing a Creators. */
17
- export class Creators {
18
- private readonly client: AzureMapsManagementClientContext;
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
- * Create a Creators.
22
- * @param {AzureMapsManagementClientContext} client Reference to the service client.
37
+ * Initialize a new instance of the class Creators class.
38
+ * @param client Reference to the service client
23
39
  */
24
- constructor(client: AzureMapsManagementClientContext) {
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 [options] The optional parameters
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?: msRest.RequestOptionsBase
39
- ): Promise<Models.CreatorsListByAccountResponse>;
40
- /**
41
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
- * @param accountName The name of the Maps Account.
43
- * @param callback The callback
44
- */
45
- listByAccount(
46
- resourceGroupName: string,
47
- accountName: string,
48
- callback: msRest.ServiceCallback<Models.CreatorList>
49
- ): void;
50
- /**
51
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
- * @param accountName The name of the Maps Account.
53
- * @param options The optional parameters
54
- * @param callback The callback
55
- */
56
- listByAccount(
57
- resourceGroupName: string,
58
- accountName: string,
59
- options: msRest.RequestOptionsBase,
60
- callback: msRest.ServiceCallback<Models.CreatorList>
61
- ): void;
62
- listByAccount(
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?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CreatorList>,
66
- callback?: msRest.ServiceCallback<Models.CreatorList>
67
- ): Promise<Models.CreatorsListByAccountResponse> {
68
- return this.client.sendOperationRequest(
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
- listByAccountOperationSpec,
75
- callback
76
- ) as Promise<Models.CreatorsListByAccountResponse>;
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
- creatorName: string,
94
- creatorResource: Models.Creator,
95
- options?: msRest.RequestOptionsBase
96
- ): Promise<Models.CreatorsCreateOrUpdateResponse>;
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 creatorName The name of the Maps Creator instance.
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
- createOrUpdate(
121
+ private _listByAccount(
105
122
  resourceGroupName: string,
106
123
  accountName: string,
107
- creatorName: string,
108
- creatorResource: Models.Creator,
109
- callback: msRest.ServiceCallback<Models.Creator>
110
- ): void;
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 optional parameters
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: Models.Creator,
124
- options: msRest.RequestOptionsBase,
125
- callback: msRest.ServiceCallback<Models.Creator>
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
- resourceGroupName,
138
- accountName,
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
- * creation, such as Tags.
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 callback The callback
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: Models.CreatorUpdateParameters,
177
- callback: msRest.ServiceCallback<Models.Creator>
178
- ): void;
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
- callback
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 [options] The optional parameters
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
- deleteMethod(
189
+ delete(
250
190
  resourceGroupName: string,
251
191
  accountName: string,
252
192
  creatorName: string,
253
- options: msRest.RequestOptionsBase,
254
- callback: msRest.ServiceCallback<void>
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
- resourceGroupName,
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 [options] The optional parameters
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?: msRest.RequestOptionsBase
288
- ): Promise<Models.CreatorsGetResponse>;
289
- /**
290
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
291
- * @param accountName The name of the Maps Account.
292
- * @param creatorName The name of the Maps Creator instance.
293
- * @param callback The callback
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 creatorName The name of the Maps Creator instance.
305
- * @param options The optional parameters
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
- get(
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
- creatorName: string,
319
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Creator>,
320
- callback?: msRest.ServiceCallback<Models.Creator>
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
- nextPageLink,
370
- options
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 = new msRest.Serializer(Mappers);
380
- const listByAccountOperationSpec: msRest.OperationSpec = {
381
- httpMethod: "GET",
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
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
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
- serializer
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
- queryParameters: [Parameters.apiVersion],
409
- headerParameters: [Parameters.acceptLanguage],
410
- requestBody: {
411
- parameterPath: "creatorResource",
412
- mapper: {
413
- ...Mappers.Creator,
414
- required: true
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
- serializer
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
- queryParameters: [Parameters.apiVersion],
442
- headerParameters: [Parameters.acceptLanguage],
443
- requestBody: {
444
- parameterPath: "creatorUpdateParameters",
445
- mapper: {
446
- ...Mappers.CreatorUpdateParameters,
447
- required: true
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
- serializer
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
- queryParameters: [Parameters.apiVersion],
472
- headerParameters: [Parameters.acceptLanguage],
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
- serializer
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
- queryParameters: [Parameters.apiVersion],
494
- headerParameters: [Parameters.acceptLanguage],
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
- urlParameters: [Parameters.nextPageLink],
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
  };