@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,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,17 +3,17 @@
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,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "lib": ["es6"],
12
+ "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./lib/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }