@azure/arm-maps 1.1.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.
Files changed (127) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +75 -77
  5. package/dist/index.js +1892 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/azureMapsManagementClient.d.ts +20 -0
  10. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -0
  11. package/dist-esm/src/azureMapsManagementClient.js +53 -0
  12. package/dist-esm/src/azureMapsManagementClient.js.map +1 -0
  13. package/dist-esm/src/index.d.ts +5 -0
  14. package/dist-esm/src/index.d.ts.map +1 -0
  15. package/dist-esm/src/index.js +12 -0
  16. package/dist-esm/src/index.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +480 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/dist-esm/src/models/index.js +35 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +25 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/dist-esm/src/models/mappers.js +732 -0
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +16 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/dist-esm/src/models/parameters.js +131 -0
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/dist-esm/src/operations/accounts.d.ts +103 -0
  30. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  31. package/dist-esm/src/operations/accounts.js +427 -0
  32. package/dist-esm/src/operations/accounts.js.map +1 -0
  33. package/dist-esm/src/operations/creators.d.ts +74 -0
  34. package/dist-esm/src/operations/creators.d.ts.map +1 -0
  35. package/dist-esm/src/operations/creators.js +281 -0
  36. package/dist-esm/src/operations/creators.js.map +1 -0
  37. package/dist-esm/src/operations/index.d.ts +4 -0
  38. package/dist-esm/src/operations/index.d.ts.map +1 -0
  39. package/dist-esm/src/operations/index.js +11 -0
  40. package/dist-esm/src/operations/index.js.map +1 -0
  41. package/dist-esm/src/operations/maps.d.ts +51 -0
  42. package/dist-esm/src/operations/maps.d.ts.map +1 -0
  43. package/dist-esm/src/operations/maps.js +220 -0
  44. package/dist-esm/src/operations/maps.js.map +1 -0
  45. package/dist-esm/src/operationsInterfaces/accounts.d.ts +67 -0
  46. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  47. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  48. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/creators.d.ts +49 -0
  50. package/dist-esm/src/operationsInterfaces/creators.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/creators.js +9 -0
  52. package/dist-esm/src/operationsInterfaces/creators.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  54. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  56. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/maps.d.ts +16 -0
  58. package/dist-esm/src/operationsInterfaces/maps.d.ts.map +1 -0
  59. package/dist-esm/src/operationsInterfaces/maps.js +9 -0
  60. package/dist-esm/src/operationsInterfaces/maps.js.map +1 -0
  61. package/dist-esm/test/sampleTest.d.ts +2 -0
  62. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  63. package/dist-esm/test/sampleTest.js +40 -0
  64. package/dist-esm/test/sampleTest.js.map +1 -0
  65. package/package.json +73 -34
  66. package/review/arm-maps.api.md +423 -0
  67. package/rollup.config.js +184 -27
  68. package/src/azureMapsManagementClient.ts +79 -0
  69. package/src/index.ts +12 -0
  70. package/src/models/index.ts +552 -0
  71. package/src/models/mappers.ts +769 -0
  72. package/src/models/parameters.ts +156 -0
  73. package/src/operations/accounts.ts +541 -0
  74. package/src/operations/creators.ts +383 -0
  75. package/src/operations/index.ts +11 -0
  76. package/src/operations/maps.ts +256 -0
  77. package/src/operationsInterfaces/accounts.ts +125 -0
  78. package/src/operationsInterfaces/creators.ts +95 -0
  79. package/src/operationsInterfaces/index.ts +11 -0
  80. package/src/operationsInterfaces/maps.ts +33 -0
  81. package/tsconfig.json +4 -4
  82. package/types/arm-maps.d.ts +696 -0
  83. package/types/tsdoc-metadata.json +11 -0
  84. package/dist/arm-maps.js +0 -1035
  85. package/dist/arm-maps.js.map +0 -1
  86. package/dist/arm-maps.min.js +0 -1
  87. package/dist/arm-maps.min.js.map +0 -1
  88. package/esm/mapsManagementClient.d.ts +0 -19
  89. package/esm/mapsManagementClient.d.ts.map +0 -1
  90. package/esm/mapsManagementClient.js +0 -34
  91. package/esm/mapsManagementClient.js.map +0 -1
  92. package/esm/mapsManagementClientContext.d.ts +0 -17
  93. package/esm/mapsManagementClientContext.d.ts.map +0 -1
  94. package/esm/mapsManagementClientContext.js +0 -57
  95. package/esm/mapsManagementClientContext.js.map +0 -1
  96. package/esm/models/accountsMappers.d.ts +0 -2
  97. package/esm/models/accountsMappers.d.ts.map +0 -1
  98. package/esm/models/accountsMappers.js +0 -11
  99. package/esm/models/accountsMappers.js.map +0 -1
  100. package/esm/models/index.d.ts +0 -491
  101. package/esm/models/index.d.ts.map +0 -1
  102. package/esm/models/index.js +0 -10
  103. package/esm/models/index.js.map +0 -1
  104. package/esm/models/mappers.d.ts +0 -18
  105. package/esm/models/mappers.d.ts.map +0 -1
  106. package/esm/models/mappers.js +0 -419
  107. package/esm/models/mappers.js.map +0 -1
  108. package/esm/models/parameters.d.ts +0 -7
  109. package/esm/models/parameters.d.ts.map +0 -1
  110. package/esm/models/parameters.js +0 -60
  111. package/esm/models/parameters.js.map +0 -1
  112. package/esm/operations/accounts.d.ts +0 -222
  113. package/esm/operations/accounts.d.ts.map +0 -1
  114. package/esm/operations/accounts.js +0 -347
  115. package/esm/operations/accounts.js.map +0 -1
  116. package/esm/operations/index.d.ts +0 -2
  117. package/esm/operations/index.d.ts.map +0 -1
  118. package/esm/operations/index.js +0 -11
  119. package/esm/operations/index.js.map +0 -1
  120. package/lib/mapsManagementClient.ts +0 -43
  121. package/lib/mapsManagementClientContext.ts +0 -63
  122. package/lib/models/accountsMappers.ts +0 -28
  123. package/lib/models/index.ts +0 -521
  124. package/lib/models/mappers.ts +0 -439
  125. package/lib/models/parameters.ts +0 -62
  126. package/lib/operations/accounts.ts +0 -620
  127. package/lib/operations/index.ts +0 -11
@@ -0,0 +1,156 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ MapsAccount as MapsAccountMapper,
16
+ MapsAccountUpdateParameters as MapsAccountUpdateParametersMapper,
17
+ MapsKeySpecification as MapsKeySpecificationMapper,
18
+ Creator as CreatorMapper,
19
+ CreatorUpdateParameters as CreatorUpdateParametersMapper
20
+ } from "../models/mappers";
21
+
22
+ export const contentType: OperationParameter = {
23
+ parameterPath: ["options", "contentType"],
24
+ mapper: {
25
+ defaultValue: "application/json",
26
+ isConstant: true,
27
+ serializedName: "Content-Type",
28
+ type: {
29
+ name: "String"
30
+ }
31
+ }
32
+ };
33
+
34
+ export const mapsAccount: OperationParameter = {
35
+ parameterPath: "mapsAccount",
36
+ mapper: MapsAccountMapper
37
+ };
38
+
39
+ export const accept: OperationParameter = {
40
+ parameterPath: "accept",
41
+ mapper: {
42
+ defaultValue: "application/json",
43
+ isConstant: true,
44
+ serializedName: "Accept",
45
+ type: {
46
+ name: "String"
47
+ }
48
+ }
49
+ };
50
+
51
+ export const $host: OperationURLParameter = {
52
+ parameterPath: "$host",
53
+ mapper: {
54
+ serializedName: "$host",
55
+ required: true,
56
+ type: {
57
+ name: "String"
58
+ }
59
+ },
60
+ skipEncoding: true
61
+ };
62
+
63
+ export const apiVersion: OperationQueryParameter = {
64
+ parameterPath: "apiVersion",
65
+ mapper: {
66
+ defaultValue: "2021-02-01",
67
+ isConstant: true,
68
+ serializedName: "api-version",
69
+ type: {
70
+ name: "String"
71
+ }
72
+ }
73
+ };
74
+
75
+ export const subscriptionId: OperationURLParameter = {
76
+ parameterPath: "subscriptionId",
77
+ mapper: {
78
+ constraints: {
79
+ MinLength: 1
80
+ },
81
+ serializedName: "subscriptionId",
82
+ required: true,
83
+ type: {
84
+ name: "String"
85
+ }
86
+ }
87
+ };
88
+
89
+ export const resourceGroupName: OperationURLParameter = {
90
+ parameterPath: "resourceGroupName",
91
+ mapper: {
92
+ constraints: {
93
+ MaxLength: 90,
94
+ MinLength: 1
95
+ },
96
+ serializedName: "resourceGroupName",
97
+ required: true,
98
+ type: {
99
+ name: "String"
100
+ }
101
+ }
102
+ };
103
+
104
+ export const accountName: OperationURLParameter = {
105
+ parameterPath: "accountName",
106
+ mapper: {
107
+ serializedName: "accountName",
108
+ required: true,
109
+ type: {
110
+ name: "String"
111
+ }
112
+ }
113
+ };
114
+
115
+ export const mapsAccountUpdateParameters: OperationParameter = {
116
+ parameterPath: "mapsAccountUpdateParameters",
117
+ mapper: MapsAccountUpdateParametersMapper
118
+ };
119
+
120
+ export const keySpecification: OperationParameter = {
121
+ parameterPath: "keySpecification",
122
+ mapper: MapsKeySpecificationMapper
123
+ };
124
+
125
+ export const nextLink: OperationURLParameter = {
126
+ parameterPath: "nextLink",
127
+ mapper: {
128
+ serializedName: "nextLink",
129
+ required: true,
130
+ type: {
131
+ name: "String"
132
+ }
133
+ },
134
+ skipEncoding: true
135
+ };
136
+
137
+ export const creatorResource: OperationParameter = {
138
+ parameterPath: "creatorResource",
139
+ mapper: CreatorMapper
140
+ };
141
+
142
+ export const creatorName: OperationURLParameter = {
143
+ parameterPath: "creatorName",
144
+ mapper: {
145
+ serializedName: "creatorName",
146
+ required: true,
147
+ type: {
148
+ name: "String"
149
+ }
150
+ }
151
+ };
152
+
153
+ export const creatorUpdateParameters: OperationParameter = {
154
+ parameterPath: "creatorUpdateParameters",
155
+ mapper: CreatorUpdateParametersMapper
156
+ };
@@ -0,0 +1,541 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Accounts } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { AzureMapsManagementClient } from "../azureMapsManagementClient";
15
+ import {
16
+ MapsAccount,
17
+ AccountsListByResourceGroupNextOptionalParams,
18
+ AccountsListByResourceGroupOptionalParams,
19
+ AccountsListBySubscriptionNextOptionalParams,
20
+ AccountsListBySubscriptionOptionalParams,
21
+ AccountsCreateOrUpdateOptionalParams,
22
+ AccountsCreateOrUpdateResponse,
23
+ MapsAccountUpdateParameters,
24
+ AccountsUpdateOptionalParams,
25
+ AccountsUpdateResponse,
26
+ AccountsDeleteOptionalParams,
27
+ AccountsGetOptionalParams,
28
+ AccountsGetResponse,
29
+ AccountsListByResourceGroupResponse,
30
+ AccountsListBySubscriptionResponse,
31
+ AccountsListKeysOptionalParams,
32
+ AccountsListKeysResponse,
33
+ MapsKeySpecification,
34
+ AccountsRegenerateKeysOptionalParams,
35
+ AccountsRegenerateKeysResponse,
36
+ AccountsListByResourceGroupNextResponse,
37
+ AccountsListBySubscriptionNextResponse
38
+ } from "../models";
39
+
40
+ /// <reference lib="esnext.asynciterable" />
41
+ /** Class containing Accounts operations. */
42
+ export class AccountsImpl implements Accounts {
43
+ private readonly client: AzureMapsManagementClient;
44
+
45
+ /**
46
+ * Initialize a new instance of the class Accounts class.
47
+ * @param client Reference to the service client
48
+ */
49
+ constructor(client: AzureMapsManagementClient) {
50
+ this.client = client;
51
+ }
52
+
53
+ /**
54
+ * Get all Maps Accounts in a Resource Group
55
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
56
+ * @param options The options parameters.
57
+ */
58
+ public listByResourceGroup(
59
+ resourceGroupName: string,
60
+ options?: AccountsListByResourceGroupOptionalParams
61
+ ): PagedAsyncIterableIterator<MapsAccount> {
62
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
63
+ return {
64
+ next() {
65
+ return iter.next();
66
+ },
67
+ [Symbol.asyncIterator]() {
68
+ return this;
69
+ },
70
+ byPage: () => {
71
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
72
+ }
73
+ };
74
+ }
75
+
76
+ private async *listByResourceGroupPagingPage(
77
+ resourceGroupName: string,
78
+ options?: AccountsListByResourceGroupOptionalParams
79
+ ): AsyncIterableIterator<MapsAccount[]> {
80
+ let result = await this._listByResourceGroup(resourceGroupName, options);
81
+ yield result.value || [];
82
+ let continuationToken = result.nextLink;
83
+ while (continuationToken) {
84
+ result = await this._listByResourceGroupNext(
85
+ resourceGroupName,
86
+ continuationToken,
87
+ options
88
+ );
89
+ continuationToken = result.nextLink;
90
+ yield result.value || [];
91
+ }
92
+ }
93
+
94
+ private async *listByResourceGroupPagingAll(
95
+ resourceGroupName: string,
96
+ options?: AccountsListByResourceGroupOptionalParams
97
+ ): AsyncIterableIterator<MapsAccount> {
98
+ for await (const page of this.listByResourceGroupPagingPage(
99
+ resourceGroupName,
100
+ options
101
+ )) {
102
+ yield* page;
103
+ }
104
+ }
105
+
106
+ /**
107
+ * Get all Maps Accounts in a Subscription
108
+ * @param options The options parameters.
109
+ */
110
+ public listBySubscription(
111
+ options?: AccountsListBySubscriptionOptionalParams
112
+ ): PagedAsyncIterableIterator<MapsAccount> {
113
+ const iter = this.listBySubscriptionPagingAll(options);
114
+ return {
115
+ next() {
116
+ return iter.next();
117
+ },
118
+ [Symbol.asyncIterator]() {
119
+ return this;
120
+ },
121
+ byPage: () => {
122
+ return this.listBySubscriptionPagingPage(options);
123
+ }
124
+ };
125
+ }
126
+
127
+ private async *listBySubscriptionPagingPage(
128
+ options?: AccountsListBySubscriptionOptionalParams
129
+ ): AsyncIterableIterator<MapsAccount[]> {
130
+ let result = await this._listBySubscription(options);
131
+ yield result.value || [];
132
+ let continuationToken = result.nextLink;
133
+ while (continuationToken) {
134
+ result = await this._listBySubscriptionNext(continuationToken, options);
135
+ continuationToken = result.nextLink;
136
+ yield result.value || [];
137
+ }
138
+ }
139
+
140
+ private async *listBySubscriptionPagingAll(
141
+ options?: AccountsListBySubscriptionOptionalParams
142
+ ): AsyncIterableIterator<MapsAccount> {
143
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
144
+ yield* page;
145
+ }
146
+ }
147
+
148
+ /**
149
+ * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST
150
+ * APIs.
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 mapsAccount The new or updated parameters for the Maps Account.
154
+ * @param options The options parameters.
155
+ */
156
+ createOrUpdate(
157
+ resourceGroupName: string,
158
+ accountName: string,
159
+ mapsAccount: MapsAccount,
160
+ options?: AccountsCreateOrUpdateOptionalParams
161
+ ): Promise<AccountsCreateOrUpdateResponse> {
162
+ return this.client.sendOperationRequest(
163
+ { resourceGroupName, accountName, mapsAccount, options },
164
+ createOrUpdateOperationSpec
165
+ );
166
+ }
167
+
168
+ /**
169
+ * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku,
170
+ * Tags, Properties.
171
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
172
+ * @param accountName The name of the Maps Account.
173
+ * @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
174
+ * @param options The options parameters.
175
+ */
176
+ update(
177
+ resourceGroupName: string,
178
+ accountName: string,
179
+ mapsAccountUpdateParameters: MapsAccountUpdateParameters,
180
+ options?: AccountsUpdateOptionalParams
181
+ ): Promise<AccountsUpdateResponse> {
182
+ return this.client.sendOperationRequest(
183
+ { resourceGroupName, accountName, mapsAccountUpdateParameters, options },
184
+ updateOperationSpec
185
+ );
186
+ }
187
+
188
+ /**
189
+ * Delete a Maps Account.
190
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
191
+ * @param accountName The name of the Maps Account.
192
+ * @param options The options parameters.
193
+ */
194
+ delete(
195
+ resourceGroupName: string,
196
+ accountName: string,
197
+ options?: AccountsDeleteOptionalParams
198
+ ): Promise<void> {
199
+ return this.client.sendOperationRequest(
200
+ { resourceGroupName, accountName, options },
201
+ deleteOperationSpec
202
+ );
203
+ }
204
+
205
+ /**
206
+ * Get a Maps Account.
207
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
208
+ * @param accountName The name of the Maps Account.
209
+ * @param options The options parameters.
210
+ */
211
+ get(
212
+ resourceGroupName: string,
213
+ accountName: string,
214
+ options?: AccountsGetOptionalParams
215
+ ): Promise<AccountsGetResponse> {
216
+ return this.client.sendOperationRequest(
217
+ { resourceGroupName, accountName, options },
218
+ getOperationSpec
219
+ );
220
+ }
221
+
222
+ /**
223
+ * Get all Maps Accounts in a Resource Group
224
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
225
+ * @param options The options parameters.
226
+ */
227
+ private _listByResourceGroup(
228
+ resourceGroupName: string,
229
+ options?: AccountsListByResourceGroupOptionalParams
230
+ ): Promise<AccountsListByResourceGroupResponse> {
231
+ return this.client.sendOperationRequest(
232
+ { resourceGroupName, options },
233
+ listByResourceGroupOperationSpec
234
+ );
235
+ }
236
+
237
+ /**
238
+ * Get all Maps Accounts in a Subscription
239
+ * @param options The options parameters.
240
+ */
241
+ private _listBySubscription(
242
+ options?: AccountsListBySubscriptionOptionalParams
243
+ ): Promise<AccountsListBySubscriptionResponse> {
244
+ return this.client.sendOperationRequest(
245
+ { options },
246
+ listBySubscriptionOperationSpec
247
+ );
248
+ }
249
+
250
+ /**
251
+ * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
252
+ * Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
253
+ * regeneration.
254
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
255
+ * @param accountName The name of the Maps Account.
256
+ * @param options The options parameters.
257
+ */
258
+ listKeys(
259
+ resourceGroupName: string,
260
+ accountName: string,
261
+ options?: AccountsListKeysOptionalParams
262
+ ): Promise<AccountsListKeysResponse> {
263
+ return this.client.sendOperationRequest(
264
+ { resourceGroupName, accountName, options },
265
+ listKeysOperationSpec
266
+ );
267
+ }
268
+
269
+ /**
270
+ * Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop
271
+ * working immediately.
272
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
273
+ * @param accountName The name of the Maps Account.
274
+ * @param keySpecification Which key to regenerate: primary or secondary.
275
+ * @param options The options parameters.
276
+ */
277
+ regenerateKeys(
278
+ resourceGroupName: string,
279
+ accountName: string,
280
+ keySpecification: MapsKeySpecification,
281
+ options?: AccountsRegenerateKeysOptionalParams
282
+ ): Promise<AccountsRegenerateKeysResponse> {
283
+ return this.client.sendOperationRequest(
284
+ { resourceGroupName, accountName, keySpecification, options },
285
+ regenerateKeysOperationSpec
286
+ );
287
+ }
288
+
289
+ /**
290
+ * ListByResourceGroupNext
291
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
292
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
293
+ * @param options The options parameters.
294
+ */
295
+ private _listByResourceGroupNext(
296
+ resourceGroupName: string,
297
+ nextLink: string,
298
+ options?: AccountsListByResourceGroupNextOptionalParams
299
+ ): Promise<AccountsListByResourceGroupNextResponse> {
300
+ return this.client.sendOperationRequest(
301
+ { resourceGroupName, nextLink, options },
302
+ listByResourceGroupNextOperationSpec
303
+ );
304
+ }
305
+
306
+ /**
307
+ * ListBySubscriptionNext
308
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
309
+ * @param options The options parameters.
310
+ */
311
+ private _listBySubscriptionNext(
312
+ nextLink: string,
313
+ options?: AccountsListBySubscriptionNextOptionalParams
314
+ ): Promise<AccountsListBySubscriptionNextResponse> {
315
+ return this.client.sendOperationRequest(
316
+ { nextLink, options },
317
+ listBySubscriptionNextOperationSpec
318
+ );
319
+ }
320
+ }
321
+ // Operation Specifications
322
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
323
+
324
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
325
+ path:
326
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
327
+ httpMethod: "PUT",
328
+ responses: {
329
+ 200: {
330
+ bodyMapper: Mappers.MapsAccount
331
+ },
332
+ 201: {
333
+ bodyMapper: Mappers.MapsAccount
334
+ },
335
+ default: {
336
+ bodyMapper: Mappers.ErrorResponse
337
+ }
338
+ },
339
+ requestBody: Parameters.mapsAccount,
340
+ queryParameters: [Parameters.apiVersion],
341
+ urlParameters: [
342
+ Parameters.$host,
343
+ Parameters.subscriptionId,
344
+ Parameters.resourceGroupName,
345
+ Parameters.accountName
346
+ ],
347
+ headerParameters: [Parameters.contentType, Parameters.accept],
348
+ mediaType: "json",
349
+ serializer
350
+ };
351
+ const updateOperationSpec: coreClient.OperationSpec = {
352
+ path:
353
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
354
+ httpMethod: "PATCH",
355
+ responses: {
356
+ 200: {
357
+ bodyMapper: Mappers.MapsAccount
358
+ },
359
+ default: {
360
+ bodyMapper: Mappers.ErrorResponse
361
+ }
362
+ },
363
+ requestBody: Parameters.mapsAccountUpdateParameters,
364
+ queryParameters: [Parameters.apiVersion],
365
+ urlParameters: [
366
+ Parameters.$host,
367
+ Parameters.subscriptionId,
368
+ Parameters.resourceGroupName,
369
+ Parameters.accountName
370
+ ],
371
+ headerParameters: [Parameters.contentType, Parameters.accept],
372
+ mediaType: "json",
373
+ serializer
374
+ };
375
+ const deleteOperationSpec: coreClient.OperationSpec = {
376
+ path:
377
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
378
+ httpMethod: "DELETE",
379
+ responses: {
380
+ 200: {},
381
+ 204: {},
382
+ default: {
383
+ bodyMapper: Mappers.ErrorResponse
384
+ }
385
+ },
386
+ queryParameters: [Parameters.apiVersion],
387
+ urlParameters: [
388
+ Parameters.$host,
389
+ Parameters.subscriptionId,
390
+ Parameters.resourceGroupName,
391
+ Parameters.accountName
392
+ ],
393
+ headerParameters: [Parameters.accept],
394
+ serializer
395
+ };
396
+ const getOperationSpec: coreClient.OperationSpec = {
397
+ path:
398
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
399
+ httpMethod: "GET",
400
+ responses: {
401
+ 200: {
402
+ bodyMapper: Mappers.MapsAccount
403
+ },
404
+ default: {
405
+ bodyMapper: Mappers.ErrorResponse
406
+ }
407
+ },
408
+ queryParameters: [Parameters.apiVersion],
409
+ urlParameters: [
410
+ Parameters.$host,
411
+ Parameters.subscriptionId,
412
+ Parameters.resourceGroupName,
413
+ Parameters.accountName
414
+ ],
415
+ headerParameters: [Parameters.accept],
416
+ serializer
417
+ };
418
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
419
+ path:
420
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts",
421
+ httpMethod: "GET",
422
+ responses: {
423
+ 200: {
424
+ bodyMapper: Mappers.MapsAccounts
425
+ },
426
+ default: {
427
+ bodyMapper: Mappers.ErrorResponse
428
+ }
429
+ },
430
+ queryParameters: [Parameters.apiVersion],
431
+ urlParameters: [
432
+ Parameters.$host,
433
+ Parameters.subscriptionId,
434
+ Parameters.resourceGroupName
435
+ ],
436
+ headerParameters: [Parameters.accept],
437
+ serializer
438
+ };
439
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
440
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts",
441
+ httpMethod: "GET",
442
+ responses: {
443
+ 200: {
444
+ bodyMapper: Mappers.MapsAccounts
445
+ },
446
+ default: {
447
+ bodyMapper: Mappers.ErrorResponse
448
+ }
449
+ },
450
+ queryParameters: [Parameters.apiVersion],
451
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
452
+ headerParameters: [Parameters.accept],
453
+ serializer
454
+ };
455
+ const listKeysOperationSpec: coreClient.OperationSpec = {
456
+ path:
457
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys",
458
+ httpMethod: "POST",
459
+ responses: {
460
+ 200: {
461
+ bodyMapper: Mappers.MapsAccountKeys
462
+ },
463
+ default: {
464
+ bodyMapper: Mappers.ErrorResponse
465
+ }
466
+ },
467
+ queryParameters: [Parameters.apiVersion],
468
+ urlParameters: [
469
+ Parameters.$host,
470
+ Parameters.subscriptionId,
471
+ Parameters.resourceGroupName,
472
+ Parameters.accountName
473
+ ],
474
+ headerParameters: [Parameters.accept],
475
+ serializer
476
+ };
477
+ const regenerateKeysOperationSpec: coreClient.OperationSpec = {
478
+ path:
479
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey",
480
+ httpMethod: "POST",
481
+ responses: {
482
+ 200: {
483
+ bodyMapper: Mappers.MapsAccountKeys
484
+ },
485
+ default: {
486
+ bodyMapper: Mappers.ErrorResponse
487
+ }
488
+ },
489
+ requestBody: Parameters.keySpecification,
490
+ queryParameters: [Parameters.apiVersion],
491
+ urlParameters: [
492
+ Parameters.$host,
493
+ Parameters.subscriptionId,
494
+ Parameters.resourceGroupName,
495
+ Parameters.accountName
496
+ ],
497
+ headerParameters: [Parameters.contentType, Parameters.accept],
498
+ mediaType: "json",
499
+ serializer
500
+ };
501
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
502
+ path: "{nextLink}",
503
+ httpMethod: "GET",
504
+ responses: {
505
+ 200: {
506
+ bodyMapper: Mappers.MapsAccounts
507
+ },
508
+ default: {
509
+ bodyMapper: Mappers.ErrorResponse
510
+ }
511
+ },
512
+ queryParameters: [Parameters.apiVersion],
513
+ urlParameters: [
514
+ Parameters.$host,
515
+ Parameters.subscriptionId,
516
+ Parameters.resourceGroupName,
517
+ Parameters.nextLink
518
+ ],
519
+ headerParameters: [Parameters.accept],
520
+ serializer
521
+ };
522
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
523
+ path: "{nextLink}",
524
+ httpMethod: "GET",
525
+ responses: {
526
+ 200: {
527
+ bodyMapper: Mappers.MapsAccounts
528
+ },
529
+ default: {
530
+ bodyMapper: Mappers.ErrorResponse
531
+ }
532
+ },
533
+ queryParameters: [Parameters.apiVersion],
534
+ urlParameters: [
535
+ Parameters.$host,
536
+ Parameters.subscriptionId,
537
+ Parameters.nextLink
538
+ ],
539
+ headerParameters: [Parameters.accept],
540
+ serializer
541
+ };