@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.
Files changed (132) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  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 +70 -21
  65. package/review/arm-maps.api.md +423 -0
  66. package/rollup.config.js +181 -24
  67. package/src/azureMapsManagementClient.ts +61 -36
  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 -1671
  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 -26
  88. package/esm/azureMapsManagementClient.d.ts.map +0 -1
  89. package/esm/azureMapsManagementClient.js +0 -39
  90. package/esm/azureMapsManagementClient.js.map +0 -1
  91. package/esm/azureMapsManagementClientContext.d.ts +0 -22
  92. package/esm/azureMapsManagementClientContext.d.ts.map +0 -1
  93. package/esm/azureMapsManagementClientContext.js +0 -61
  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 -74
  131. package/src/models/accountsMappers.ts +0 -28
  132. package/src/models/creatorsMappers.ts +0 -26
@@ -3,8 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
9
  export * from "./accounts";
@@ -3,110 +3,192 @@
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/mapsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Maps } 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
+ OperationDetail,
17
+ MapsListOperationsNextOptionalParams,
18
+ MapsListOperationsOptionalParams,
19
+ MapsListSubscriptionOperationsNextOptionalParams,
20
+ MapsListSubscriptionOperationsOptionalParams,
21
+ MapsListOperationsResponse,
22
+ MapsListSubscriptionOperationsResponse,
23
+ MapsListOperationsNextResponse,
24
+ MapsListSubscriptionOperationsNextResponse
25
+ } from "../models";
15
26
 
16
- /** Class representing a Maps. */
17
- export class Maps {
18
- private readonly client: AzureMapsManagementClientContext;
27
+ /// <reference lib="esnext.asynciterable" />
28
+ /** Class containing Maps operations. */
29
+ export class MapsImpl implements Maps {
30
+ private readonly client: AzureMapsManagementClient;
19
31
 
20
32
  /**
21
- * Create a Maps.
22
- * @param {AzureMapsManagementClientContext} client Reference to the service client.
33
+ * Initialize a new instance of the class Maps class.
34
+ * @param client Reference to the service client
23
35
  */
24
- constructor(client: AzureMapsManagementClientContext) {
36
+ constructor(client: AzureMapsManagementClient) {
25
37
  this.client = client;
26
38
  }
27
39
 
28
40
  /**
29
41
  * List operations available for the Maps Resource Provider
30
- * @param [options] The optional parameters
31
- * @returns Promise<Models.MapsListOperationsResponse>
42
+ * @param options The options parameters.
32
43
  */
33
- listOperations(options?: msRest.RequestOptionsBase): Promise<Models.MapsListOperationsResponse>;
44
+ public listOperations(
45
+ options?: MapsListOperationsOptionalParams
46
+ ): PagedAsyncIterableIterator<OperationDetail> {
47
+ const iter = this.listOperationsPagingAll(options);
48
+ return {
49
+ next() {
50
+ return iter.next();
51
+ },
52
+ [Symbol.asyncIterator]() {
53
+ return this;
54
+ },
55
+ byPage: () => {
56
+ return this.listOperationsPagingPage(options);
57
+ }
58
+ };
59
+ }
60
+
61
+ private async *listOperationsPagingPage(
62
+ options?: MapsListOperationsOptionalParams
63
+ ): AsyncIterableIterator<OperationDetail[]> {
64
+ let result = await this._listOperations(options);
65
+ yield result.value || [];
66
+ let continuationToken = result.nextLink;
67
+ while (continuationToken) {
68
+ result = await this._listOperationsNext(continuationToken, options);
69
+ continuationToken = result.nextLink;
70
+ yield result.value || [];
71
+ }
72
+ }
73
+
74
+ private async *listOperationsPagingAll(
75
+ options?: MapsListOperationsOptionalParams
76
+ ): AsyncIterableIterator<OperationDetail> {
77
+ for await (const page of this.listOperationsPagingPage(options)) {
78
+ yield* page;
79
+ }
80
+ }
81
+
34
82
  /**
35
- * @param callback The callback
83
+ * List operations available for the Maps Resource Provider
84
+ * @param options The options parameters.
36
85
  */
37
- listOperations(callback: msRest.ServiceCallback<Models.MapsOperations>): void;
86
+ public listSubscriptionOperations(
87
+ options?: MapsListSubscriptionOperationsOptionalParams
88
+ ): PagedAsyncIterableIterator<OperationDetail> {
89
+ const iter = this.listSubscriptionOperationsPagingAll(options);
90
+ return {
91
+ next() {
92
+ return iter.next();
93
+ },
94
+ [Symbol.asyncIterator]() {
95
+ return this;
96
+ },
97
+ byPage: () => {
98
+ return this.listSubscriptionOperationsPagingPage(options);
99
+ }
100
+ };
101
+ }
102
+
103
+ private async *listSubscriptionOperationsPagingPage(
104
+ options?: MapsListSubscriptionOperationsOptionalParams
105
+ ): AsyncIterableIterator<OperationDetail[]> {
106
+ let result = await this._listSubscriptionOperations(options);
107
+ yield result.value || [];
108
+ let continuationToken = result.nextLink;
109
+ while (continuationToken) {
110
+ result = await this._listSubscriptionOperationsNext(
111
+ continuationToken,
112
+ options
113
+ );
114
+ continuationToken = result.nextLink;
115
+ yield result.value || [];
116
+ }
117
+ }
118
+
119
+ private async *listSubscriptionOperationsPagingAll(
120
+ options?: MapsListSubscriptionOperationsOptionalParams
121
+ ): AsyncIterableIterator<OperationDetail> {
122
+ for await (const page of this.listSubscriptionOperationsPagingPage(
123
+ options
124
+ )) {
125
+ yield* page;
126
+ }
127
+ }
128
+
38
129
  /**
39
- * @param options The optional parameters
40
- * @param callback The callback
130
+ * List operations available for the Maps Resource Provider
131
+ * @param options The options parameters.
41
132
  */
42
- listOperations(
43
- options: msRest.RequestOptionsBase,
44
- callback: msRest.ServiceCallback<Models.MapsOperations>
45
- ): void;
46
- listOperations(
47
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MapsOperations>,
48
- callback?: msRest.ServiceCallback<Models.MapsOperations>
49
- ): Promise<Models.MapsListOperationsResponse> {
133
+ private _listOperations(
134
+ options?: MapsListOperationsOptionalParams
135
+ ): Promise<MapsListOperationsResponse> {
50
136
  return this.client.sendOperationRequest(
51
- {
52
- options
53
- },
54
- listOperationsOperationSpec,
55
- callback
56
- ) as Promise<Models.MapsListOperationsResponse>;
137
+ { options },
138
+ listOperationsOperationSpec
139
+ );
57
140
  }
58
141
 
59
142
  /**
60
143
  * List operations available for the Maps Resource Provider
61
- * @param nextPageLink The NextLink from the previous successful call to List operation.
62
- * @param [options] The optional parameters
63
- * @returns Promise<Models.MapsListOperationsNextResponse>
144
+ * @param options The options parameters.
64
145
  */
65
- listOperationsNext(
66
- nextPageLink: string,
67
- options?: msRest.RequestOptionsBase
68
- ): Promise<Models.MapsListOperationsNextResponse>;
146
+ private _listSubscriptionOperations(
147
+ options?: MapsListSubscriptionOperationsOptionalParams
148
+ ): Promise<MapsListSubscriptionOperationsResponse> {
149
+ return this.client.sendOperationRequest(
150
+ { options },
151
+ listSubscriptionOperationsOperationSpec
152
+ );
153
+ }
154
+
69
155
  /**
70
- * @param nextPageLink The NextLink from the previous successful call to List operation.
71
- * @param callback The callback
156
+ * ListOperationsNext
157
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
158
+ * @param options The options parameters.
72
159
  */
73
- listOperationsNext(
74
- nextPageLink: string,
75
- callback: msRest.ServiceCallback<Models.MapsOperations>
76
- ): void;
160
+ private _listOperationsNext(
161
+ nextLink: string,
162
+ options?: MapsListOperationsNextOptionalParams
163
+ ): Promise<MapsListOperationsNextResponse> {
164
+ return this.client.sendOperationRequest(
165
+ { nextLink, options },
166
+ listOperationsNextOperationSpec
167
+ );
168
+ }
169
+
77
170
  /**
78
- * @param nextPageLink The NextLink from the previous successful call to List operation.
79
- * @param options The optional parameters
80
- * @param callback The callback
171
+ * ListSubscriptionOperationsNext
172
+ * @param nextLink The nextLink from the previous successful call to the ListSubscriptionOperations
173
+ * method.
174
+ * @param options The options parameters.
81
175
  */
82
- listOperationsNext(
83
- nextPageLink: string,
84
- options: msRest.RequestOptionsBase,
85
- callback: msRest.ServiceCallback<Models.MapsOperations>
86
- ): void;
87
- listOperationsNext(
88
- nextPageLink: string,
89
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MapsOperations>,
90
- callback?: msRest.ServiceCallback<Models.MapsOperations>
91
- ): Promise<Models.MapsListOperationsNextResponse> {
176
+ private _listSubscriptionOperationsNext(
177
+ nextLink: string,
178
+ options?: MapsListSubscriptionOperationsNextOptionalParams
179
+ ): Promise<MapsListSubscriptionOperationsNextResponse> {
92
180
  return this.client.sendOperationRequest(
93
- {
94
- nextPageLink,
95
- options
96
- },
97
- listOperationsNextOperationSpec,
98
- callback
99
- ) as Promise<Models.MapsListOperationsNextResponse>;
181
+ { nextLink, options },
182
+ listSubscriptionOperationsNextOperationSpec
183
+ );
100
184
  }
101
185
  }
102
-
103
186
  // Operation Specifications
104
- const serializer = new msRest.Serializer(Mappers);
105
- const listOperationsOperationSpec: msRest.OperationSpec = {
187
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
188
+
189
+ const listOperationsOperationSpec: coreClient.OperationSpec = {
190
+ path: "/providers/Microsoft.Maps/operations",
106
191
  httpMethod: "GET",
107
- path: "providers/Microsoft.Maps/operations",
108
- queryParameters: [Parameters.apiVersion],
109
- headerParameters: [Parameters.acceptLanguage],
110
192
  responses: {
111
193
  200: {
112
194
  bodyMapper: Mappers.MapsOperations
@@ -115,16 +197,46 @@ const listOperationsOperationSpec: msRest.OperationSpec = {
115
197
  bodyMapper: Mappers.ErrorResponse
116
198
  }
117
199
  },
200
+ queryParameters: [Parameters.apiVersion],
201
+ urlParameters: [Parameters.$host],
202
+ headerParameters: [Parameters.accept],
118
203
  serializer
119
204
  };
120
-
121
- const listOperationsNextOperationSpec: msRest.OperationSpec = {
205
+ const listSubscriptionOperationsOperationSpec: coreClient.OperationSpec = {
206
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/operations",
122
207
  httpMethod: "GET",
123
- baseUrl: "https://management.azure.com",
208
+ responses: {
209
+ 200: {
210
+ bodyMapper: Mappers.MapsOperations
211
+ },
212
+ default: {
213
+ bodyMapper: Mappers.ErrorResponse
214
+ }
215
+ },
216
+ queryParameters: [Parameters.apiVersion],
217
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
218
+ headerParameters: [Parameters.accept],
219
+ serializer
220
+ };
221
+ const listOperationsNextOperationSpec: coreClient.OperationSpec = {
124
222
  path: "{nextLink}",
125
- urlParameters: [Parameters.nextPageLink],
223
+ httpMethod: "GET",
224
+ responses: {
225
+ 200: {
226
+ bodyMapper: Mappers.MapsOperations
227
+ },
228
+ default: {
229
+ bodyMapper: Mappers.ErrorResponse
230
+ }
231
+ },
126
232
  queryParameters: [Parameters.apiVersion],
127
- headerParameters: [Parameters.acceptLanguage],
233
+ urlParameters: [Parameters.$host, Parameters.nextLink],
234
+ headerParameters: [Parameters.accept],
235
+ serializer
236
+ };
237
+ const listSubscriptionOperationsNextOperationSpec: coreClient.OperationSpec = {
238
+ path: "{nextLink}",
239
+ httpMethod: "GET",
128
240
  responses: {
129
241
  200: {
130
242
  bodyMapper: Mappers.MapsOperations
@@ -133,5 +245,12 @@ const listOperationsNextOperationSpec: msRest.OperationSpec = {
133
245
  bodyMapper: Mappers.ErrorResponse
134
246
  }
135
247
  },
248
+ queryParameters: [Parameters.apiVersion],
249
+ urlParameters: [
250
+ Parameters.$host,
251
+ Parameters.subscriptionId,
252
+ Parameters.nextLink
253
+ ],
254
+ headerParameters: [Parameters.accept],
136
255
  serializer
137
256
  };
@@ -0,0 +1,125 @@
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 {
11
+ MapsAccount,
12
+ AccountsListByResourceGroupOptionalParams,
13
+ AccountsListBySubscriptionOptionalParams,
14
+ AccountsCreateOrUpdateOptionalParams,
15
+ AccountsCreateOrUpdateResponse,
16
+ MapsAccountUpdateParameters,
17
+ AccountsUpdateOptionalParams,
18
+ AccountsUpdateResponse,
19
+ AccountsDeleteOptionalParams,
20
+ AccountsGetOptionalParams,
21
+ AccountsGetResponse,
22
+ AccountsListKeysOptionalParams,
23
+ AccountsListKeysResponse,
24
+ MapsKeySpecification,
25
+ AccountsRegenerateKeysOptionalParams,
26
+ AccountsRegenerateKeysResponse
27
+ } from "../models";
28
+
29
+ /// <reference lib="esnext.asynciterable" />
30
+ /** Interface representing a Accounts. */
31
+ export interface Accounts {
32
+ /**
33
+ * Get all Maps Accounts in a Resource Group
34
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
35
+ * @param options The options parameters.
36
+ */
37
+ listByResourceGroup(
38
+ resourceGroupName: string,
39
+ options?: AccountsListByResourceGroupOptionalParams
40
+ ): PagedAsyncIterableIterator<MapsAccount>;
41
+ /**
42
+ * Get all Maps Accounts in a Subscription
43
+ * @param options The options parameters.
44
+ */
45
+ listBySubscription(
46
+ options?: AccountsListBySubscriptionOptionalParams
47
+ ): PagedAsyncIterableIterator<MapsAccount>;
48
+ /**
49
+ * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST
50
+ * APIs.
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 mapsAccount The new or updated parameters for the Maps Account.
54
+ * @param options The options parameters.
55
+ */
56
+ createOrUpdate(
57
+ resourceGroupName: string,
58
+ accountName: string,
59
+ mapsAccount: MapsAccount,
60
+ options?: AccountsCreateOrUpdateOptionalParams
61
+ ): Promise<AccountsCreateOrUpdateResponse>;
62
+ /**
63
+ * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku,
64
+ * Tags, Properties.
65
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
66
+ * @param accountName The name of the Maps Account.
67
+ * @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
68
+ * @param options The options parameters.
69
+ */
70
+ update(
71
+ resourceGroupName: string,
72
+ accountName: string,
73
+ mapsAccountUpdateParameters: MapsAccountUpdateParameters,
74
+ options?: AccountsUpdateOptionalParams
75
+ ): Promise<AccountsUpdateResponse>;
76
+ /**
77
+ * Delete a Maps Account.
78
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
79
+ * @param accountName The name of the Maps Account.
80
+ * @param options The options parameters.
81
+ */
82
+ delete(
83
+ resourceGroupName: string,
84
+ accountName: string,
85
+ options?: AccountsDeleteOptionalParams
86
+ ): Promise<void>;
87
+ /**
88
+ * Get a Maps Account.
89
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
90
+ * @param accountName The name of the Maps Account.
91
+ * @param options The options parameters.
92
+ */
93
+ get(
94
+ resourceGroupName: string,
95
+ accountName: string,
96
+ options?: AccountsGetOptionalParams
97
+ ): Promise<AccountsGetResponse>;
98
+ /**
99
+ * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
100
+ * Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
101
+ * regeneration.
102
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
103
+ * @param accountName The name of the Maps Account.
104
+ * @param options The options parameters.
105
+ */
106
+ listKeys(
107
+ resourceGroupName: string,
108
+ accountName: string,
109
+ options?: AccountsListKeysOptionalParams
110
+ ): Promise<AccountsListKeysResponse>;
111
+ /**
112
+ * Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop
113
+ * working immediately.
114
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
115
+ * @param accountName The name of the Maps Account.
116
+ * @param keySpecification Which key to regenerate: primary or secondary.
117
+ * @param options The options parameters.
118
+ */
119
+ regenerateKeys(
120
+ resourceGroupName: string,
121
+ accountName: string,
122
+ keySpecification: MapsKeySpecification,
123
+ options?: AccountsRegenerateKeysOptionalParams
124
+ ): Promise<AccountsRegenerateKeysResponse>;
125
+ }
@@ -0,0 +1,95 @@
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 {
11
+ Creator,
12
+ CreatorsListByAccountOptionalParams,
13
+ CreatorsCreateOrUpdateOptionalParams,
14
+ CreatorsCreateOrUpdateResponse,
15
+ CreatorUpdateParameters,
16
+ CreatorsUpdateOptionalParams,
17
+ CreatorsUpdateResponse,
18
+ CreatorsDeleteOptionalParams,
19
+ CreatorsGetOptionalParams,
20
+ CreatorsGetResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Interface representing a Creators. */
25
+ export interface Creators {
26
+ /**
27
+ * Get all Creator instances for an Azure Maps Account
28
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
29
+ * @param accountName The name of the Maps Account.
30
+ * @param options The options parameters.
31
+ */
32
+ listByAccount(
33
+ resourceGroupName: string,
34
+ accountName: string,
35
+ options?: CreatorsListByAccountOptionalParams
36
+ ): PagedAsyncIterableIterator<Creator>;
37
+ /**
38
+ * Create or update a Maps Creator resource. Creator resource will manage Azure resources required to
39
+ * populate a custom set of mapping data. It requires an account to exist before it can be created.
40
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
+ * @param accountName The name of the Maps Account.
42
+ * @param creatorName The name of the Maps Creator instance.
43
+ * @param creatorResource The new or updated parameters for the Creator resource.
44
+ * @param options The options parameters.
45
+ */
46
+ createOrUpdate(
47
+ resourceGroupName: string,
48
+ accountName: string,
49
+ creatorName: string,
50
+ creatorResource: Creator,
51
+ options?: CreatorsCreateOrUpdateOptionalParams
52
+ ): Promise<CreatorsCreateOrUpdateResponse>;
53
+ /**
54
+ * Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation,
55
+ * such as Tags.
56
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
57
+ * @param accountName The name of the Maps Account.
58
+ * @param creatorName The name of the Maps Creator instance.
59
+ * @param creatorUpdateParameters The update parameters for Maps Creator.
60
+ * @param options The options parameters.
61
+ */
62
+ update(
63
+ resourceGroupName: string,
64
+ accountName: string,
65
+ creatorName: string,
66
+ creatorUpdateParameters: CreatorUpdateParameters,
67
+ options?: CreatorsUpdateOptionalParams
68
+ ): Promise<CreatorsUpdateResponse>;
69
+ /**
70
+ * Delete a Maps Creator resource.
71
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
72
+ * @param accountName The name of the Maps Account.
73
+ * @param creatorName The name of the Maps Creator instance.
74
+ * @param options The options parameters.
75
+ */
76
+ delete(
77
+ resourceGroupName: string,
78
+ accountName: string,
79
+ creatorName: string,
80
+ options?: CreatorsDeleteOptionalParams
81
+ ): Promise<void>;
82
+ /**
83
+ * Get a Maps Creator resource.
84
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
85
+ * @param accountName The name of the Maps Account.
86
+ * @param creatorName The name of the Maps Creator instance.
87
+ * @param options The options parameters.
88
+ */
89
+ get(
90
+ resourceGroupName: string,
91
+ accountName: string,
92
+ creatorName: string,
93
+ options?: CreatorsGetOptionalParams
94
+ ): Promise<CreatorsGetResponse>;
95
+ }
@@ -0,0 +1,11 @@
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
+ export * from "./accounts";
10
+ export * from "./maps";
11
+ export * from "./creators";
@@ -0,0 +1,33 @@
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 {
11
+ OperationDetail,
12
+ MapsListOperationsOptionalParams,
13
+ MapsListSubscriptionOperationsOptionalParams
14
+ } from "../models";
15
+
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Interface representing a Maps. */
18
+ export interface Maps {
19
+ /**
20
+ * List operations available for the Maps Resource Provider
21
+ * @param options The options parameters.
22
+ */
23
+ listOperations(
24
+ options?: MapsListOperationsOptionalParams
25
+ ): PagedAsyncIterableIterator<OperationDetail>;
26
+ /**
27
+ * List operations available for the Maps Resource Provider
28
+ * @param options The options parameters.
29
+ */
30
+ listSubscriptionOperations(
31
+ options?: MapsListSubscriptionOperationsOptionalParams
32
+ ): PagedAsyncIterableIterator<OperationDetail>;
33
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }