@azure/arm-appconfiguration 1.2.0 → 3.0.0-beta.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 (169) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +72 -75
  4. package/dist/index.js +3105 -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/appConfigurationManagementClient.d.ts +22 -0
  9. package/dist-esm/src/appConfigurationManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/appConfigurationManagementClient.js +55 -0
  11. package/dist-esm/src/appConfigurationManagementClient.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/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +826 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +59 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +38 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +588 -313
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +20 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +162 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/configurationStores.d.ts +139 -0
  33. package/dist-esm/src/operations/configurationStores.d.ts.map +1 -0
  34. package/dist-esm/src/operations/configurationStores.js +655 -0
  35. package/dist-esm/src/operations/configurationStores.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +4 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/keyValues.d.ts +76 -0
  41. package/dist-esm/src/operations/keyValues.d.ts.map +1 -0
  42. package/dist-esm/src/operations/keyValues.js +284 -0
  43. package/dist-esm/src/operations/keyValues.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +39 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +147 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/privateEndpointConnections.d.ts +84 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.js +350 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  52. package/dist-esm/src/operations/privateLinkResources.d.ts +47 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateLinkResources.js +170 -0
  55. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/configurationStores.d.ts +86 -0
  57. package/dist-esm/src/operationsInterfaces/configurationStores.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/configurationStores.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/configurationStores.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/keyValues.d.ts +50 -0
  65. package/dist-esm/src/operationsInterfaces/keyValues.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/keyValues.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/keyValues.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +18 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +58 -0
  73. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  77. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +65 -31
  85. package/review/arm-appconfiguration.api.md +665 -0
  86. package/rollup.config.js +181 -30
  87. package/src/appConfigurationManagementClient.ts +82 -35
  88. package/src/index.ts +12 -0
  89. package/src/lroImpl.ts +34 -0
  90. package/src/models/index.ts +680 -893
  91. package/src/models/mappers.ts +657 -367
  92. package/src/models/parameters.ts +126 -44
  93. package/src/operations/configurationStores.ts +657 -495
  94. package/src/operations/index.ts +4 -5
  95. package/src/operations/keyValues.ts +396 -0
  96. package/src/operations/operations.ts +113 -123
  97. package/src/operations/privateEndpointConnections.ts +350 -186
  98. package/src/operations/privateLinkResources.ts +162 -126
  99. package/src/operationsInterfaces/configurationStores.ts +168 -0
  100. package/src/operationsInterfaces/index.ts +13 -0
  101. package/src/operationsInterfaces/keyValues.ts +91 -0
  102. package/src/operationsInterfaces/operations.ts +38 -0
  103. package/src/operationsInterfaces/privateEndpointConnections.ts +111 -0
  104. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  105. package/tsconfig.json +3 -3
  106. package/types/arm-appconfiguration.d.ts +1171 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-appconfiguration.js +0 -2213
  109. package/dist/arm-appconfiguration.js.map +0 -1
  110. package/dist/arm-appconfiguration.min.js +0 -1
  111. package/dist/arm-appconfiguration.min.js.map +0 -1
  112. package/esm/appConfigurationManagementClient.d.ts +0 -21
  113. package/esm/appConfigurationManagementClient.d.ts.map +0 -1
  114. package/esm/appConfigurationManagementClient.js +0 -36
  115. package/esm/appConfigurationManagementClient.js.map +0 -1
  116. package/esm/appConfigurationManagementClientContext.d.ts +0 -16
  117. package/esm/appConfigurationManagementClientContext.d.ts.map +0 -1
  118. package/esm/appConfigurationManagementClientContext.js +0 -56
  119. package/esm/appConfigurationManagementClientContext.js.map +0 -1
  120. package/esm/models/configurationStoresMappers.d.ts +0 -2
  121. package/esm/models/configurationStoresMappers.d.ts.map +0 -1
  122. package/esm/models/configurationStoresMappers.js +0 -9
  123. package/esm/models/configurationStoresMappers.js.map +0 -1
  124. package/esm/models/index.d.ts +0 -1073
  125. package/esm/models/index.d.ts.map +0 -1
  126. package/esm/models/index.js +0 -8
  127. package/esm/models/index.js.map +0 -1
  128. package/esm/models/mappers.d.ts +0 -31
  129. package/esm/models/mappers.d.ts.map +0 -1
  130. package/esm/models/mappers.js.map +0 -1
  131. package/esm/models/operationsMappers.d.ts +0 -2
  132. package/esm/models/operationsMappers.d.ts.map +0 -1
  133. package/esm/models/operationsMappers.js +0 -9
  134. package/esm/models/operationsMappers.js.map +0 -1
  135. package/esm/models/parameters.d.ts +0 -11
  136. package/esm/models/parameters.d.ts.map +0 -1
  137. package/esm/models/parameters.js +0 -108
  138. package/esm/models/parameters.js.map +0 -1
  139. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  140. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  141. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  142. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  143. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  144. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  145. package/esm/models/privateLinkResourcesMappers.js +0 -9
  146. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  147. package/esm/operations/configurationStores.d.ts +0 -243
  148. package/esm/operations/configurationStores.d.ts.map +0 -1
  149. package/esm/operations/configurationStores.js +0 -466
  150. package/esm/operations/configurationStores.js.map +0 -1
  151. package/esm/operations/index.d.ts.map +0 -1
  152. package/esm/operations/index.js.map +0 -1
  153. package/esm/operations/operations.d.ts +0 -67
  154. package/esm/operations/operations.d.ts.map +0 -1
  155. package/esm/operations/operations.js +0 -111
  156. package/esm/operations/operations.js.map +0 -1
  157. package/esm/operations/privateEndpointConnections.d.ts +0 -117
  158. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  159. package/esm/operations/privateEndpointConnections.js +0 -236
  160. package/esm/operations/privateEndpointConnections.js.map +0 -1
  161. package/esm/operations/privateLinkResources.d.ts +0 -76
  162. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  163. package/esm/operations/privateLinkResources.js +0 -117
  164. package/esm/operations/privateLinkResources.js.map +0 -1
  165. package/src/appConfigurationManagementClientContext.ts +0 -62
  166. package/src/models/configurationStoresMappers.ts +0 -30
  167. package/src/models/operationsMappers.ts +0 -16
  168. package/src/models/privateEndpointConnectionsMappers.ts +0 -24
  169. package/src/models/privateLinkResourcesMappers.ts +0 -13
@@ -1,28 +1,37 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/privateLinkResourcesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PrivateLinkResources } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { AppConfigurationManagementClientContext } from "../appConfigurationManagementClientContext";
14
+ import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
15
+ import {
16
+ PrivateLinkResource,
17
+ PrivateLinkResourcesListByConfigurationStoreNextOptionalParams,
18
+ PrivateLinkResourcesListByConfigurationStoreOptionalParams,
19
+ PrivateLinkResourcesListByConfigurationStoreResponse,
20
+ PrivateLinkResourcesGetOptionalParams,
21
+ PrivateLinkResourcesGetResponse,
22
+ PrivateLinkResourcesListByConfigurationStoreNextResponse
23
+ } from "../models";
16
24
 
17
- /** Class representing a PrivateLinkResources. */
18
- export class PrivateLinkResources {
19
- private readonly client: AppConfigurationManagementClientContext;
25
+ /// <reference lib="esnext.asynciterable" />
26
+ /** Class containing PrivateLinkResources operations. */
27
+ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
28
+ private readonly client: AppConfigurationManagementClient;
20
29
 
21
30
  /**
22
- * Create a PrivateLinkResources.
23
- * @param {AppConfigurationManagementClientContext} client Reference to the service client.
31
+ * Initialize a new instance of the class PrivateLinkResources class.
32
+ * @param client Reference to the service client
24
33
  */
25
- constructor(client: AppConfigurationManagementClientContext) {
34
+ constructor(client: AppConfigurationManagementClient) {
26
35
  this.client = client;
27
36
  }
28
37
 
@@ -30,169 +39,196 @@ export class PrivateLinkResources {
30
39
  * Gets the private link resources that need to be created for a configuration store.
31
40
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
32
41
  * @param configStoreName The name of the configuration store.
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.PrivateLinkResourcesListByConfigurationStoreResponse>
42
+ * @param options The options parameters.
35
43
  */
36
- listByConfigurationStore(resourceGroupName: string, configStoreName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesListByConfigurationStoreResponse>;
37
- /**
38
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
39
- * @param configStoreName The name of the configuration store.
40
- * @param callback The callback
41
- */
42
- listByConfigurationStore(resourceGroupName: string, configStoreName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
43
- /**
44
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
45
- * @param configStoreName The name of the configuration store.
46
- * @param options The optional parameters
47
- * @param callback The callback
48
- */
49
- listByConfigurationStore(resourceGroupName: string, configStoreName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
50
- listByConfigurationStore(resourceGroupName: string, configStoreName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): Promise<Models.PrivateLinkResourcesListByConfigurationStoreResponse> {
51
- return this.client.sendOperationRequest(
52
- {
44
+ public listByConfigurationStore(
45
+ resourceGroupName: string,
46
+ configStoreName: string,
47
+ options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams
48
+ ): PagedAsyncIterableIterator<PrivateLinkResource> {
49
+ const iter = this.listByConfigurationStorePagingAll(
50
+ resourceGroupName,
51
+ configStoreName,
52
+ options
53
+ );
54
+ return {
55
+ next() {
56
+ return iter.next();
57
+ },
58
+ [Symbol.asyncIterator]() {
59
+ return this;
60
+ },
61
+ byPage: () => {
62
+ return this.listByConfigurationStorePagingPage(
63
+ resourceGroupName,
64
+ configStoreName,
65
+ options
66
+ );
67
+ }
68
+ };
69
+ }
70
+
71
+ private async *listByConfigurationStorePagingPage(
72
+ resourceGroupName: string,
73
+ configStoreName: string,
74
+ options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams
75
+ ): AsyncIterableIterator<PrivateLinkResource[]> {
76
+ let result = await this._listByConfigurationStore(
77
+ resourceGroupName,
78
+ configStoreName,
79
+ options
80
+ );
81
+ yield result.value || [];
82
+ let continuationToken = result.nextLink;
83
+ while (continuationToken) {
84
+ result = await this._listByConfigurationStoreNext(
53
85
  resourceGroupName,
54
86
  configStoreName,
87
+ continuationToken,
55
88
  options
56
- },
57
- listByConfigurationStoreOperationSpec,
58
- callback) as Promise<Models.PrivateLinkResourcesListByConfigurationStoreResponse>;
89
+ );
90
+ continuationToken = result.nextLink;
91
+ yield result.value || [];
92
+ }
93
+ }
94
+
95
+ private async *listByConfigurationStorePagingAll(
96
+ resourceGroupName: string,
97
+ configStoreName: string,
98
+ options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams
99
+ ): AsyncIterableIterator<PrivateLinkResource> {
100
+ for await (const page of this.listByConfigurationStorePagingPage(
101
+ resourceGroupName,
102
+ configStoreName,
103
+ options
104
+ )) {
105
+ yield* page;
106
+ }
59
107
  }
60
108
 
61
109
  /**
62
- * Gets a private link resource that need to be created for a configuration store.
63
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
64
- * @param configStoreName The name of the configuration store.
65
- * @param groupName The name of the private link resource group.
66
- * @param [options] The optional parameters
67
- * @returns Promise<Models.PrivateLinkResourcesGetResponse>
68
- */
69
- get(resourceGroupName: string, configStoreName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesGetResponse>;
70
- /**
110
+ * Gets the private link resources that need to be created for a configuration store.
71
111
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
72
112
  * @param configStoreName The name of the configuration store.
73
- * @param groupName The name of the private link resource group.
74
- * @param callback The callback
113
+ * @param options The options parameters.
75
114
  */
76
- get(resourceGroupName: string, configStoreName: string, groupName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResource>): void;
115
+ private _listByConfigurationStore(
116
+ resourceGroupName: string,
117
+ configStoreName: string,
118
+ options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams
119
+ ): Promise<PrivateLinkResourcesListByConfigurationStoreResponse> {
120
+ return this.client.sendOperationRequest(
121
+ { resourceGroupName, configStoreName, options },
122
+ listByConfigurationStoreOperationSpec
123
+ );
124
+ }
125
+
77
126
  /**
127
+ * Gets a private link resource that need to be created for a configuration store.
78
128
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
79
129
  * @param configStoreName The name of the configuration store.
80
130
  * @param groupName The name of the private link resource group.
81
- * @param options The optional parameters
82
- * @param callback The callback
131
+ * @param options The options parameters.
83
132
  */
84
- get(resourceGroupName: string, configStoreName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResource>): void;
85
- get(resourceGroupName: string, configStoreName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResource>, callback?: msRest.ServiceCallback<Models.PrivateLinkResource>): Promise<Models.PrivateLinkResourcesGetResponse> {
133
+ get(
134
+ resourceGroupName: string,
135
+ configStoreName: string,
136
+ groupName: string,
137
+ options?: PrivateLinkResourcesGetOptionalParams
138
+ ): Promise<PrivateLinkResourcesGetResponse> {
86
139
  return this.client.sendOperationRequest(
87
- {
88
- resourceGroupName,
89
- configStoreName,
90
- groupName,
91
- options
92
- },
93
- getOperationSpec,
94
- callback) as Promise<Models.PrivateLinkResourcesGetResponse>;
140
+ { resourceGroupName, configStoreName, groupName, options },
141
+ getOperationSpec
142
+ );
95
143
  }
96
144
 
97
145
  /**
98
- * Gets the private link resources that need to be created for a configuration store.
99
- * @param nextPageLink The NextLink from the previous successful call to List operation.
100
- * @param [options] The optional parameters
101
- * @returns Promise<Models.PrivateLinkResourcesListByConfigurationStoreNextResponse>
102
- */
103
- listByConfigurationStoreNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesListByConfigurationStoreNextResponse>;
104
- /**
105
- * @param nextPageLink The NextLink from the previous successful call to List operation.
106
- * @param callback The callback
107
- */
108
- listByConfigurationStoreNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
109
- /**
110
- * @param nextPageLink The NextLink from the previous successful call to List operation.
111
- * @param options The optional parameters
112
- * @param callback The callback
146
+ * ListByConfigurationStoreNext
147
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
148
+ * @param configStoreName The name of the configuration store.
149
+ * @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
150
+ * method.
151
+ * @param options The options parameters.
113
152
  */
114
- listByConfigurationStoreNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
115
- listByConfigurationStoreNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): Promise<Models.PrivateLinkResourcesListByConfigurationStoreNextResponse> {
153
+ private _listByConfigurationStoreNext(
154
+ resourceGroupName: string,
155
+ configStoreName: string,
156
+ nextLink: string,
157
+ options?: PrivateLinkResourcesListByConfigurationStoreNextOptionalParams
158
+ ): Promise<PrivateLinkResourcesListByConfigurationStoreNextResponse> {
116
159
  return this.client.sendOperationRequest(
117
- {
118
- nextPageLink,
119
- options
120
- },
121
- listByConfigurationStoreNextOperationSpec,
122
- callback) as Promise<Models.PrivateLinkResourcesListByConfigurationStoreNextResponse>;
160
+ { resourceGroupName, configStoreName, nextLink, options },
161
+ listByConfigurationStoreNextOperationSpec
162
+ );
123
163
  }
124
164
  }
125
-
126
165
  // Operation Specifications
127
- const serializer = new msRest.Serializer(Mappers);
128
- const listByConfigurationStoreOperationSpec: msRest.OperationSpec = {
166
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
167
+
168
+ const listByConfigurationStoreOperationSpec: coreClient.OperationSpec = {
169
+ path:
170
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources",
129
171
  httpMethod: "GET",
130
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources",
131
- urlParameters: [
132
- Parameters.subscriptionId,
133
- Parameters.resourceGroupName,
134
- Parameters.configStoreName
135
- ],
136
- queryParameters: [
137
- Parameters.apiVersion
138
- ],
139
- headerParameters: [
140
- Parameters.acceptLanguage
141
- ],
142
172
  responses: {
143
173
  200: {
144
174
  bodyMapper: Mappers.PrivateLinkResourceListResult
145
175
  },
146
176
  default: {
147
- bodyMapper: Mappers.ErrorModel
177
+ bodyMapper: Mappers.ErrorResponse
148
178
  }
149
179
  },
150
- serializer
151
- };
152
-
153
- const getOperationSpec: msRest.OperationSpec = {
154
- httpMethod: "GET",
155
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName}",
180
+ queryParameters: [Parameters.apiVersion],
156
181
  urlParameters: [
182
+ Parameters.$host,
157
183
  Parameters.subscriptionId,
158
184
  Parameters.resourceGroupName,
159
- Parameters.configStoreName,
160
- Parameters.groupName
161
- ],
162
- queryParameters: [
163
- Parameters.apiVersion
164
- ],
165
- headerParameters: [
166
- Parameters.acceptLanguage
185
+ Parameters.configStoreName
167
186
  ],
187
+ headerParameters: [Parameters.accept],
188
+ serializer
189
+ };
190
+ const getOperationSpec: coreClient.OperationSpec = {
191
+ path:
192
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName}",
193
+ httpMethod: "GET",
168
194
  responses: {
169
195
  200: {
170
196
  bodyMapper: Mappers.PrivateLinkResource
171
197
  },
172
198
  default: {
173
- bodyMapper: Mappers.ErrorModel
199
+ bodyMapper: Mappers.ErrorResponse
174
200
  }
175
201
  },
202
+ queryParameters: [Parameters.apiVersion],
203
+ urlParameters: [
204
+ Parameters.$host,
205
+ Parameters.subscriptionId,
206
+ Parameters.resourceGroupName,
207
+ Parameters.configStoreName,
208
+ Parameters.groupName
209
+ ],
210
+ headerParameters: [Parameters.accept],
176
211
  serializer
177
212
  };
178
-
179
- const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = {
180
- httpMethod: "GET",
181
- baseUrl: "https://management.azure.com",
213
+ const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = {
182
214
  path: "{nextLink}",
183
- urlParameters: [
184
- Parameters.nextPageLink
185
- ],
186
- headerParameters: [
187
- Parameters.acceptLanguage
188
- ],
215
+ httpMethod: "GET",
189
216
  responses: {
190
217
  200: {
191
218
  bodyMapper: Mappers.PrivateLinkResourceListResult
192
219
  },
193
220
  default: {
194
- bodyMapper: Mappers.ErrorModel
221
+ bodyMapper: Mappers.ErrorResponse
195
222
  }
196
223
  },
224
+ queryParameters: [Parameters.apiVersion],
225
+ urlParameters: [
226
+ Parameters.$host,
227
+ Parameters.subscriptionId,
228
+ Parameters.resourceGroupName,
229
+ Parameters.configStoreName,
230
+ Parameters.nextLink
231
+ ],
232
+ headerParameters: [Parameters.accept],
197
233
  serializer
198
234
  };
@@ -0,0 +1,168 @@
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 { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ ConfigurationStore,
13
+ ConfigurationStoresListOptionalParams,
14
+ ConfigurationStoresListByResourceGroupOptionalParams,
15
+ ApiKey,
16
+ ConfigurationStoresListKeysOptionalParams,
17
+ ConfigurationStoresGetOptionalParams,
18
+ ConfigurationStoresGetResponse,
19
+ ConfigurationStoresCreateOptionalParams,
20
+ ConfigurationStoresCreateResponse,
21
+ ConfigurationStoresDeleteOptionalParams,
22
+ ConfigurationStoreUpdateParameters,
23
+ ConfigurationStoresUpdateOptionalParams,
24
+ ConfigurationStoresUpdateResponse,
25
+ RegenerateKeyParameters,
26
+ ConfigurationStoresRegenerateKeyOptionalParams,
27
+ ConfigurationStoresRegenerateKeyResponse
28
+ } from "../models";
29
+
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Interface representing a ConfigurationStores. */
32
+ export interface ConfigurationStores {
33
+ /**
34
+ * Lists the configuration stores for a given subscription.
35
+ * @param options The options parameters.
36
+ */
37
+ list(
38
+ options?: ConfigurationStoresListOptionalParams
39
+ ): PagedAsyncIterableIterator<ConfigurationStore>;
40
+ /**
41
+ * Lists the configuration stores for a given resource group.
42
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
43
+ * @param options The options parameters.
44
+ */
45
+ listByResourceGroup(
46
+ resourceGroupName: string,
47
+ options?: ConfigurationStoresListByResourceGroupOptionalParams
48
+ ): PagedAsyncIterableIterator<ConfigurationStore>;
49
+ /**
50
+ * Lists the access key for the specified configuration store.
51
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
52
+ * @param configStoreName The name of the configuration store.
53
+ * @param options The options parameters.
54
+ */
55
+ listKeys(
56
+ resourceGroupName: string,
57
+ configStoreName: string,
58
+ options?: ConfigurationStoresListKeysOptionalParams
59
+ ): PagedAsyncIterableIterator<ApiKey>;
60
+ /**
61
+ * Gets the properties of the specified configuration store.
62
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
63
+ * @param configStoreName The name of the configuration store.
64
+ * @param options The options parameters.
65
+ */
66
+ get(
67
+ resourceGroupName: string,
68
+ configStoreName: string,
69
+ options?: ConfigurationStoresGetOptionalParams
70
+ ): Promise<ConfigurationStoresGetResponse>;
71
+ /**
72
+ * Creates a configuration store with the specified parameters.
73
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
74
+ * @param configStoreName The name of the configuration store.
75
+ * @param configStoreCreationParameters The parameters for creating a configuration store.
76
+ * @param options The options parameters.
77
+ */
78
+ beginCreate(
79
+ resourceGroupName: string,
80
+ configStoreName: string,
81
+ configStoreCreationParameters: ConfigurationStore,
82
+ options?: ConfigurationStoresCreateOptionalParams
83
+ ): Promise<
84
+ PollerLike<
85
+ PollOperationState<ConfigurationStoresCreateResponse>,
86
+ ConfigurationStoresCreateResponse
87
+ >
88
+ >;
89
+ /**
90
+ * Creates a configuration store with the specified parameters.
91
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
92
+ * @param configStoreName The name of the configuration store.
93
+ * @param configStoreCreationParameters The parameters for creating a configuration store.
94
+ * @param options The options parameters.
95
+ */
96
+ beginCreateAndWait(
97
+ resourceGroupName: string,
98
+ configStoreName: string,
99
+ configStoreCreationParameters: ConfigurationStore,
100
+ options?: ConfigurationStoresCreateOptionalParams
101
+ ): Promise<ConfigurationStoresCreateResponse>;
102
+ /**
103
+ * Deletes a configuration store.
104
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
105
+ * @param configStoreName The name of the configuration store.
106
+ * @param options The options parameters.
107
+ */
108
+ beginDelete(
109
+ resourceGroupName: string,
110
+ configStoreName: string,
111
+ options?: ConfigurationStoresDeleteOptionalParams
112
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
113
+ /**
114
+ * Deletes a configuration store.
115
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
116
+ * @param configStoreName The name of the configuration store.
117
+ * @param options The options parameters.
118
+ */
119
+ beginDeleteAndWait(
120
+ resourceGroupName: string,
121
+ configStoreName: string,
122
+ options?: ConfigurationStoresDeleteOptionalParams
123
+ ): Promise<void>;
124
+ /**
125
+ * Updates a configuration store with the specified parameters.
126
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
127
+ * @param configStoreName The name of the configuration store.
128
+ * @param configStoreUpdateParameters The parameters for updating a configuration store.
129
+ * @param options The options parameters.
130
+ */
131
+ beginUpdate(
132
+ resourceGroupName: string,
133
+ configStoreName: string,
134
+ configStoreUpdateParameters: ConfigurationStoreUpdateParameters,
135
+ options?: ConfigurationStoresUpdateOptionalParams
136
+ ): Promise<
137
+ PollerLike<
138
+ PollOperationState<ConfigurationStoresUpdateResponse>,
139
+ ConfigurationStoresUpdateResponse
140
+ >
141
+ >;
142
+ /**
143
+ * Updates a configuration store with the specified parameters.
144
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
145
+ * @param configStoreName The name of the configuration store.
146
+ * @param configStoreUpdateParameters The parameters for updating a configuration store.
147
+ * @param options The options parameters.
148
+ */
149
+ beginUpdateAndWait(
150
+ resourceGroupName: string,
151
+ configStoreName: string,
152
+ configStoreUpdateParameters: ConfigurationStoreUpdateParameters,
153
+ options?: ConfigurationStoresUpdateOptionalParams
154
+ ): Promise<ConfigurationStoresUpdateResponse>;
155
+ /**
156
+ * Regenerates an access key for the specified configuration store.
157
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
158
+ * @param configStoreName The name of the configuration store.
159
+ * @param regenerateKeyParameters The parameters for regenerating an access key.
160
+ * @param options The options parameters.
161
+ */
162
+ regenerateKey(
163
+ resourceGroupName: string,
164
+ configStoreName: string,
165
+ regenerateKeyParameters: RegenerateKeyParameters,
166
+ options?: ConfigurationStoresRegenerateKeyOptionalParams
167
+ ): Promise<ConfigurationStoresRegenerateKeyResponse>;
168
+ }
@@ -0,0 +1,13 @@
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 "./configurationStores";
10
+ export * from "./operations";
11
+ export * from "./privateEndpointConnections";
12
+ export * from "./privateLinkResources";
13
+ export * from "./keyValues";
@@ -0,0 +1,91 @@
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 { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ KeyValue,
13
+ KeyValuesListByConfigurationStoreOptionalParams,
14
+ KeyValuesGetOptionalParams,
15
+ KeyValuesGetResponse,
16
+ KeyValuesCreateOrUpdateOptionalParams,
17
+ KeyValuesCreateOrUpdateResponse,
18
+ KeyValuesDeleteOptionalParams
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a KeyValues. */
23
+ export interface KeyValues {
24
+ /**
25
+ * Lists the key-values for a given configuration store.
26
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
27
+ * @param configStoreName The name of the configuration store.
28
+ * @param options The options parameters.
29
+ */
30
+ listByConfigurationStore(
31
+ resourceGroupName: string,
32
+ configStoreName: string,
33
+ options?: KeyValuesListByConfigurationStoreOptionalParams
34
+ ): PagedAsyncIterableIterator<KeyValue>;
35
+ /**
36
+ * Gets the properties of the specified key-value.
37
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
38
+ * @param configStoreName The name of the configuration store.
39
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
40
+ * character. Label is optional.
41
+ * @param options The options parameters.
42
+ */
43
+ get(
44
+ resourceGroupName: string,
45
+ configStoreName: string,
46
+ keyValueName: string,
47
+ options?: KeyValuesGetOptionalParams
48
+ ): Promise<KeyValuesGetResponse>;
49
+ /**
50
+ * Creates a key-value.
51
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
52
+ * @param configStoreName The name of the configuration store.
53
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
54
+ * character. Label is optional.
55
+ * @param options The options parameters.
56
+ */
57
+ createOrUpdate(
58
+ resourceGroupName: string,
59
+ configStoreName: string,
60
+ keyValueName: string,
61
+ options?: KeyValuesCreateOrUpdateOptionalParams
62
+ ): Promise<KeyValuesCreateOrUpdateResponse>;
63
+ /**
64
+ * Deletes a key-value.
65
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
66
+ * @param configStoreName The name of the configuration store.
67
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
68
+ * character. Label is optional.
69
+ * @param options The options parameters.
70
+ */
71
+ beginDelete(
72
+ resourceGroupName: string,
73
+ configStoreName: string,
74
+ keyValueName: string,
75
+ options?: KeyValuesDeleteOptionalParams
76
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
77
+ /**
78
+ * Deletes a key-value.
79
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
80
+ * @param configStoreName The name of the configuration store.
81
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
82
+ * character. Label is optional.
83
+ * @param options The options parameters.
84
+ */
85
+ beginDeleteAndWait(
86
+ resourceGroupName: string,
87
+ configStoreName: string,
88
+ keyValueName: string,
89
+ options?: KeyValuesDeleteOptionalParams
90
+ ): Promise<void>;
91
+ }
@@ -0,0 +1,38 @@
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
+ OperationDefinition,
12
+ OperationsListOptionalParams,
13
+ CheckNameAvailabilityParameters,
14
+ OperationsCheckNameAvailabilityOptionalParams,
15
+ OperationsCheckNameAvailabilityResponse
16
+ } from "../models";
17
+
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Interface representing a Operations. */
20
+ export interface Operations {
21
+ /**
22
+ * Lists the operations available from this provider.
23
+ * @param options The options parameters.
24
+ */
25
+ list(
26
+ options?: OperationsListOptionalParams
27
+ ): PagedAsyncIterableIterator<OperationDefinition>;
28
+ /**
29
+ * Checks whether the configuration store name is available for use.
30
+ * @param checkNameAvailabilityParameters The object containing information for the availability
31
+ * request.
32
+ * @param options The options parameters.
33
+ */
34
+ checkNameAvailability(
35
+ checkNameAvailabilityParameters: CheckNameAvailabilityParameters,
36
+ options?: OperationsCheckNameAvailabilityOptionalParams
37
+ ): Promise<OperationsCheckNameAvailabilityResponse>;
38
+ }