@azure/template 1.0.12 → 1.0.13-beta.4363791
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.
- package/README.md +20 -7
- package/dist/browser/configurationClient.d.ts +64 -0
- package/dist/browser/configurationClient.d.ts.map +1 -0
- package/dist/browser/configurationClient.js +90 -0
- package/dist/browser/configurationClient.js.map +1 -0
- package/dist/browser/constants.d.ts +2 -0
- package/dist/browser/constants.d.ts.map +1 -0
- package/dist/browser/constants.js +4 -0
- package/dist/browser/constants.js.map +1 -0
- package/dist/browser/generated/generatedClient.d.ts +168 -0
- package/dist/browser/generated/generatedClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/generatedClient.js +333 -107
- package/dist/browser/generated/generatedClient.js.map +1 -0
- package/dist/browser/generated/generatedClientContext.d.ts +15 -0
- package/dist/browser/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/browser/generated/generatedClientContext.js +41 -0
- package/dist/browser/generated/generatedClientContext.js.map +1 -0
- package/dist/browser/generated/index.d.ts +4 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/index.js +3 -3
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/lroImpl.d.ts +16 -0
- package/dist/browser/generated/lroImpl.d.ts.map +1 -0
- package/dist/browser/generated/lroImpl.js +25 -0
- package/dist/browser/generated/lroImpl.js.map +1 -0
- package/dist/browser/generated/models/index.d.ts +775 -0
- package/dist/browser/generated/models/index.d.ts.map +1 -0
- package/dist/browser/generated/models/index.js +54 -0
- package/dist/browser/generated/models/index.js.map +1 -0
- package/dist/browser/generated/models/mappers.d.ts +41 -0
- package/dist/browser/generated/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/models/mappers.js +446 -9
- package/dist/browser/generated/models/mappers.js.map +1 -0
- package/dist/browser/generated/models/parameters.d.ts +35 -0
- package/dist/browser/generated/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/models/parameters.js +157 -35
- package/dist/browser/generated/models/parameters.js.map +1 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +4 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +7 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/logger.js +1 -1
- package/{dist-esm/src → dist/browser}/logger.js.map +1 -1
- package/dist/browser/package.json +3 -0
- package/dist/browser/util.d.ts +12 -0
- package/dist/browser/util.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/util.js +1 -1
- package/dist/browser/util.js.map +1 -0
- package/dist/commonjs/configurationClient.d.ts +64 -0
- package/dist/commonjs/configurationClient.d.ts.map +1 -0
- package/dist/commonjs/configurationClient.js +94 -0
- package/dist/commonjs/configurationClient.js.map +1 -0
- package/dist/commonjs/constants.d.ts +2 -0
- package/dist/commonjs/constants.d.ts.map +1 -0
- package/dist/commonjs/constants.js +7 -0
- package/dist/commonjs/constants.js.map +1 -0
- package/dist/commonjs/generated/generatedClient.d.ts +168 -0
- package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClient.js +866 -0
- package/dist/commonjs/generated/generatedClient.js.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts +15 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.js +46 -0
- package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +4 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +17 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/lroImpl.d.ts +16 -0
- package/dist/commonjs/generated/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/generated/lroImpl.js +29 -0
- package/dist/commonjs/generated/lroImpl.js.map +1 -0
- package/dist/commonjs/generated/models/index.d.ts +775 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +57 -0
- package/dist/commonjs/generated/models/index.js.map +1 -0
- package/dist/commonjs/generated/models/mappers.d.ts +41 -0
- package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/models/mappers.js +952 -0
- package/dist/commonjs/generated/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/models/parameters.d.ts +35 -0
- package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/models/parameters.js +351 -0
- package/dist/commonjs/generated/models/parameters.js.map +1 -0
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +7 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +7 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +13 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/util.d.ts +12 -0
- package/dist/commonjs/util.d.ts.map +1 -0
- package/dist/commonjs/util.js +29 -0
- package/dist/commonjs/util.js.map +1 -0
- package/dist/esm/configurationClient.d.ts +64 -0
- package/dist/esm/configurationClient.d.ts.map +1 -0
- package/dist/esm/configurationClient.js +90 -0
- package/dist/esm/configurationClient.js.map +1 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +4 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/generated/generatedClient.d.ts +168 -0
- package/dist/esm/generated/generatedClient.d.ts.map +1 -0
- package/dist/esm/generated/generatedClient.js +861 -0
- package/dist/esm/generated/generatedClient.js.map +1 -0
- package/dist/esm/generated/generatedClientContext.d.ts +15 -0
- package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/esm/generated/generatedClientContext.js +41 -0
- package/dist/esm/generated/generatedClientContext.js.map +1 -0
- package/dist/esm/generated/index.d.ts +4 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/models → dist/esm/generated}/index.js +3 -1
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/lroImpl.d.ts +16 -0
- package/dist/esm/generated/lroImpl.d.ts.map +1 -0
- package/dist/esm/generated/lroImpl.js +25 -0
- package/dist/esm/generated/lroImpl.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +775 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/index.js +54 -0
- package/dist/esm/generated/models/index.js.map +1 -0
- package/dist/esm/generated/models/mappers.d.ts +41 -0
- package/dist/esm/generated/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/models/mappers.js +949 -0
- package/dist/esm/generated/models/mappers.js.map +1 -0
- package/dist/esm/generated/models/parameters.d.ts +35 -0
- package/dist/esm/generated/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/models/parameters.js +348 -0
- package/dist/esm/generated/models/parameters.js.map +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +7 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +10 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/util.d.ts +12 -0
- package/dist/esm/util.d.ts.map +1 -0
- package/dist/esm/util.js +26 -0
- package/dist/esm/util.js.map +1 -0
- package/dist/react-native/configurationClient.d.ts +64 -0
- package/dist/react-native/configurationClient.d.ts.map +1 -0
- package/dist/react-native/configurationClient.js +90 -0
- package/dist/react-native/configurationClient.js.map +1 -0
- package/dist/react-native/constants.d.ts +2 -0
- package/dist/react-native/constants.d.ts.map +1 -0
- package/dist/react-native/constants.js +4 -0
- package/dist/react-native/constants.js.map +1 -0
- package/dist/react-native/generated/generatedClient.d.ts +168 -0
- package/dist/react-native/generated/generatedClient.d.ts.map +1 -0
- package/dist/react-native/generated/generatedClient.js +861 -0
- package/dist/react-native/generated/generatedClient.js.map +1 -0
- package/dist/react-native/generated/generatedClientContext.d.ts +15 -0
- package/dist/react-native/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/react-native/generated/generatedClientContext.js +41 -0
- package/dist/react-native/generated/generatedClientContext.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +4 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/lroImpl.d.ts +16 -0
- package/dist/react-native/generated/lroImpl.d.ts.map +1 -0
- package/dist/react-native/generated/lroImpl.js +25 -0
- package/dist/react-native/generated/lroImpl.js.map +1 -0
- package/dist/react-native/generated/models/index.d.ts +775 -0
- package/dist/react-native/generated/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/models/index.js +54 -0
- package/dist/react-native/generated/models/index.js.map +1 -0
- package/dist/react-native/generated/models/mappers.d.ts +41 -0
- package/dist/react-native/generated/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/models/mappers.js +949 -0
- package/dist/react-native/generated/models/mappers.js.map +1 -0
- package/dist/react-native/generated/models/parameters.d.ts +35 -0
- package/dist/react-native/generated/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/models/parameters.js +348 -0
- package/dist/react-native/generated/models/parameters.js.map +1 -0
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +4 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +7 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +10 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/util.d.ts +12 -0
- package/dist/react-native/util.d.ts.map +1 -0
- package/dist/react-native/util.js +26 -0
- package/dist/react-native/util.js.map +1 -0
- package/{types → dist}/template.d.ts +18 -17
- package/package.json +98 -91
- package/CHANGELOG.md +0 -51
- package/dist/index.js +0 -1589
- package/dist/index.js.map +0 -1
- package/dist-esm/src/configurationClient.js +0 -101
- package/dist-esm/src/configurationClient.js.map +0 -1
- package/dist-esm/src/constants.js +0 -4
- package/dist-esm/src/constants.js.map +0 -1
- package/dist-esm/src/generated/generatedClient.js.map +0 -1
- package/dist-esm/src/generated/generatedClientContext.js +0 -39
- package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/models/index.js.map +0 -1
- package/dist-esm/src/generated/models/mappers.js.map +0 -1
- package/dist-esm/src/generated/models/parameters.js.map +0 -1
- package/dist-esm/src/index.js +0 -4
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/tracing.js +0 -17
- package/dist-esm/src/tracing.js.map +0 -1
- package/dist-esm/src/util.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,7 +8,10 @@ This project is used as a template package for the Azure SDK for JavaScript. It
|
|
|
8
8
|
|
|
9
9
|
### Currently supported environments
|
|
10
10
|
|
|
11
|
-
- Node.js
|
|
11
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
12
|
+
- Latest versions of Safari, Chrome, Edge, and Firefox.
|
|
13
|
+
|
|
14
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
12
15
|
|
|
13
16
|
### Prerequisites
|
|
14
17
|
|
|
@@ -36,7 +39,7 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
36
39
|
|
|
37
40
|
NOTE: if your service supports CORS natively please provide instructions for enabling CORS at the service level (similar to the sample below), otherwise replace this section with guidance such as:
|
|
38
41
|
|
|
39
|
-
Due to Azure template service CORS limitation this library cannot be used to make direct calls to the template service from a browser. Please refer to [this document](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
42
|
+
Due to Azure template service CORS limitation this library cannot be used to make direct calls to the template service from a browser. Please refer to [this document](https://github.com/Azure/azure-sdk-for-js/blob/main/samples/cors/ts/README.md) for guidance.
|
|
40
43
|
|
|
41
44
|
-->
|
|
42
45
|
|
|
@@ -72,27 +75,37 @@ Create a section for each top-level service concept you want to explain.
|
|
|
72
75
|
|
|
73
76
|
Create several code examples for how someone would use your library to accomplish a common task with the service.
|
|
74
77
|
|
|
78
|
+
```ts snippet:new_configurationclient
|
|
79
|
+
import { ConfigurationClient } from "@azure/template";
|
|
80
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
81
|
+
|
|
82
|
+
const client = new ConfigurationClient(
|
|
83
|
+
process.env.ENDPOINT ?? "<app configuration endpoint>",
|
|
84
|
+
new DefaultAzureCredential(),
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
75
88
|
## Troubleshooting
|
|
76
89
|
|
|
77
90
|
### Logging
|
|
78
91
|
|
|
79
92
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
80
93
|
|
|
81
|
-
```
|
|
94
|
+
```ts snippet:setloglevel
|
|
82
95
|
import { setLogLevel } from "@azure/logger";
|
|
83
96
|
|
|
84
|
-
setLogLevel("
|
|
97
|
+
setLogLevel("verbose");
|
|
85
98
|
```
|
|
86
99
|
|
|
87
|
-
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
100
|
+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
|
|
88
101
|
|
|
89
102
|
## Next steps
|
|
90
103
|
|
|
91
|
-
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
104
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/template/template/samples) directory for detailed examples that demonstrate how to use the client libraries.
|
|
92
105
|
|
|
93
106
|
## Contributing
|
|
94
107
|
|
|
95
|
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
108
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
96
109
|
|
|
97
110
|
## Related projects
|
|
98
111
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ConfigurationSetting } from "./generated/index.js";
|
|
2
|
+
import type { CommonClientOptions, OperationOptions } from "@azure/core-client";
|
|
3
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
4
|
+
export { ConfigurationSetting };
|
|
5
|
+
/**
|
|
6
|
+
* Options for the `getConfigurationSetting` method of `ConfigurationClient`.
|
|
7
|
+
*/
|
|
8
|
+
export interface GetConfigurationSettingOptions extends OperationOptions {
|
|
9
|
+
/**
|
|
10
|
+
* If set to `true`, the method will use entity tags to instruct the service
|
|
11
|
+
* to send an updated value only if the value has changed.
|
|
12
|
+
*
|
|
13
|
+
* NOTE: This option is only supported if passing a full
|
|
14
|
+
* `ConfigurationSetting` object with an `etag` as the first parameter to
|
|
15
|
+
* `getConfigurationSetting`.
|
|
16
|
+
*/
|
|
17
|
+
onlyIfChanged?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Client options used to configure App Configuration API requests.
|
|
21
|
+
*/
|
|
22
|
+
export interface ConfigurationClientOptions extends CommonClientOptions {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The client class used to interact with the App Configuration service.
|
|
26
|
+
*/
|
|
27
|
+
export declare class ConfigurationClient {
|
|
28
|
+
private client;
|
|
29
|
+
private tracingClient;
|
|
30
|
+
/**
|
|
31
|
+
* Creates an instance of a ConfigurationClient.
|
|
32
|
+
*
|
|
33
|
+
* Example usage:
|
|
34
|
+
* ```ts snippet:new_configurationclient
|
|
35
|
+
* import { ConfigurationClient } from "@azure/template";
|
|
36
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
37
|
+
*
|
|
38
|
+
* const client = new ConfigurationClient(
|
|
39
|
+
* process.env.ENDPOINT ?? "<app configuration endpoint>",
|
|
40
|
+
* new DefaultAzureCredential(),
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
* @param endpointUrl - the URL to the App Configuration endpoint
|
|
44
|
+
* @param credential - used to authenticate requests to the service
|
|
45
|
+
* @param options - optional configuration used to send requests to the service
|
|
46
|
+
*/
|
|
47
|
+
constructor(endpointUrl: string, credential: TokenCredential, options?: ConfigurationClientOptions);
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve the contents of an App Configuration setting by name (key).
|
|
50
|
+
*
|
|
51
|
+
* @param key - the unique name of the setting to get
|
|
52
|
+
* @param options - optional configuration for the operation
|
|
53
|
+
*/
|
|
54
|
+
getConfigurationSetting(key: string, options?: GetConfigurationSettingOptions): Promise<ConfigurationSetting>;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieve an updated value of an App Configuration setting, allowing for
|
|
57
|
+
* the use of entity tags to request the new value only if it has changed.
|
|
58
|
+
*
|
|
59
|
+
* @param setting - the setting to retrieve from the service
|
|
60
|
+
* @param options - optional configuration for the operation
|
|
61
|
+
*/
|
|
62
|
+
getConfigurationSetting(setting: ConfigurationSetting, options?: GetConfigurationSettingOptions): Promise<ConfigurationSetting>;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=configurationClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurationClient.d.ts","sourceRoot":"","sources":["../../src/configurationClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAEjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQxD,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;IACtE;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB;CAEtE;AAED;;GAEG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,aAAa,CAAgB;IAErC;;;;;;;;;;;;;;;;OAgBG;gBAED,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,0BAA+B;IA4C1C;;;;;OAKG;IACU,uBAAuB,CAClC,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,oBAAoB,CAAC;IAEhC;;;;;;OAMG;IACU,uBAAuB,CAClC,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,oBAAoB,CAAC;CAkCjC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { GeneratedClient } from "./generated/index.js";
|
|
4
|
+
import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline";
|
|
5
|
+
import { createTracingClient } from "@azure/core-tracing";
|
|
6
|
+
import { SDK_VERSION } from "./constants.js";
|
|
7
|
+
import { logger } from "./logger.js";
|
|
8
|
+
import { quoteETag } from "./util.js";
|
|
9
|
+
/**
|
|
10
|
+
* The client class used to interact with the App Configuration service.
|
|
11
|
+
*/
|
|
12
|
+
export class ConfigurationClient {
|
|
13
|
+
/**
|
|
14
|
+
* Creates an instance of a ConfigurationClient.
|
|
15
|
+
*
|
|
16
|
+
* Example usage:
|
|
17
|
+
* ```ts snippet:new_configurationclient
|
|
18
|
+
* import { ConfigurationClient } from "@azure/template";
|
|
19
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
20
|
+
*
|
|
21
|
+
* const client = new ConfigurationClient(
|
|
22
|
+
* process.env.ENDPOINT ?? "<app configuration endpoint>",
|
|
23
|
+
* new DefaultAzureCredential(),
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
* @param endpointUrl - the URL to the App Configuration endpoint
|
|
27
|
+
* @param credential - used to authenticate requests to the service
|
|
28
|
+
* @param options - optional configuration used to send requests to the service
|
|
29
|
+
*/
|
|
30
|
+
constructor(endpointUrl, credential, options = {}) {
|
|
31
|
+
// The AAD scope for an API is usually the baseUri + "/.default", but it
|
|
32
|
+
// may be different for your service.
|
|
33
|
+
const authPolicy = bearerTokenAuthenticationPolicy({
|
|
34
|
+
credential,
|
|
35
|
+
scopes: `${endpointUrl}/.default`,
|
|
36
|
+
});
|
|
37
|
+
const internalClientPipelineOptions = Object.assign(Object.assign(Object.assign({}, options), { deserializationOptions: {
|
|
38
|
+
expectedContentTypes: {
|
|
39
|
+
json: [
|
|
40
|
+
"application/vnd.microsoft.appconfig.kvset+json",
|
|
41
|
+
"application/vnd.microsoft.appconfig.kv+json",
|
|
42
|
+
"application/vnd.microsoft.appconfig.kvs+json",
|
|
43
|
+
"application/vnd.microsoft.appconfig.keyset+json",
|
|
44
|
+
"application/vnd.microsoft.appconfig.revs+json",
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
} }), {
|
|
48
|
+
loggingOptions: {
|
|
49
|
+
logger: logger.info,
|
|
50
|
+
// This array contains header names we want to log that are not already
|
|
51
|
+
// included as safe. Unknown/unsafe headers are logged as "<REDACTED>".
|
|
52
|
+
additionalAllowedHeaderNames: ["x-ms-correlation-request-id"],
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
this.client = new GeneratedClient(endpointUrl, internalClientPipelineOptions);
|
|
56
|
+
this.client.pipeline.addPolicy(authPolicy);
|
|
57
|
+
this.tracingClient = createTracingClient({
|
|
58
|
+
// The name of the resource provider requests are made against, as described in
|
|
59
|
+
// https://github.com/Azure/azure-sdk/blob/main/docs/tracing/distributed-tracing-conventions.yml#L11-L15
|
|
60
|
+
namespace: "Microsoft.Learn",
|
|
61
|
+
// The package name and version
|
|
62
|
+
packageName: "@azure/template",
|
|
63
|
+
packageVersion: SDK_VERSION,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
async getConfigurationSetting(keyOrSetting, options = {}) {
|
|
67
|
+
let key;
|
|
68
|
+
let ifNoneMatch;
|
|
69
|
+
return this.tracingClient.withSpan(
|
|
70
|
+
// Span names should take the form "<className>.<methodName>".
|
|
71
|
+
"ConfigurationClient.getConfigurationSetting", options, (updatedOptions) => {
|
|
72
|
+
if (typeof keyOrSetting === "string") {
|
|
73
|
+
key = keyOrSetting;
|
|
74
|
+
if (options.onlyIfChanged) {
|
|
75
|
+
throw new RangeError("You must pass a ConfigurationSetting instead of a key to perform a conditional fetch.");
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
key = keyOrSetting.key;
|
|
80
|
+
const etag = keyOrSetting.etag;
|
|
81
|
+
if (options.onlyIfChanged) {
|
|
82
|
+
ifNoneMatch = quoteETag(etag);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// You must pass updatedOptions to any calls you make within the callback.
|
|
86
|
+
return this.client.getKeyValue(key, Object.assign(Object.assign({}, updatedOptions), { ifNoneMatch }));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=configurationClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurationClient.js","sourceRoot":"","sources":["../../src/configurationClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EA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IACL,CAAC;IAyBM,KAAK,CAAC,uBAAuB,CAClC,YAA2C,EAC3C,UAA0C,EAAE;QAE5C,IAAI,GAAW,CAAC;QAChB,IAAI,WAA+B,CAAC;QAEpC,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ;QAChC,8DAA8D;QAC9D,6CAA6C,EAC7C,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;gBACrC,GAAG,GAAG,YAAY,CAAC;gBACnB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;oBAC1B,MAAM,IAAI,UAAU,CAClB,uFAAuF,CACxF,CAAC;gBACJ,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,GAAG,GAAG,YAAY,CAAC,GAAI,CAAC;gBACxB,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;gBAC/B,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;oBAC1B,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;gBAChC,CAAC;YACH,CAAC;YAED,0EAA0E;YAC1E,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,kCAAO,cAAc,KAAE,WAAW,IAAG,CAAC;QAC1E,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { GeneratedClient, ConfigurationSetting } from \"./generated/index.js\";\nimport type {\n CommonClientOptions,\n OperationOptions,\n InternalClientPipelineOptions,\n} from \"@azure/core-client\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { TracingClient } from \"@azure/core-tracing\";\nimport { createTracingClient } from \"@azure/core-tracing\";\nimport { SDK_VERSION } from \"./constants.js\";\nimport { logger } from \"./logger.js\";\nimport { quoteETag } from \"./util.js\";\n\n// re-export generated types that are used as public interfaces.\nexport { ConfigurationSetting };\n\n/**\n * Options for the `getConfigurationSetting` method of `ConfigurationClient`.\n */\nexport interface GetConfigurationSettingOptions extends OperationOptions {\n /**\n * If set to `true`, the method will use entity tags to instruct the service\n * to send an updated value only if the value has changed.\n *\n * NOTE: This option is only supported if passing a full\n * `ConfigurationSetting` object with an `etag` as the first parameter to\n * `getConfigurationSetting`.\n */\n onlyIfChanged?: boolean;\n}\n\n/**\n * Client options used to configure App Configuration API requests.\n */\nexport interface ConfigurationClientOptions extends CommonClientOptions {\n // Any custom options configured at the client level go here.\n}\n\n/**\n * The client class used to interact with the App Configuration service.\n */\nexport class ConfigurationClient {\n private client: GeneratedClient;\n private tracingClient: TracingClient;\n\n /**\n * Creates an instance of a ConfigurationClient.\n *\n * Example usage:\n * ```ts snippet:new_configurationclient\n * import { ConfigurationClient } from \"@azure/template\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const client = new ConfigurationClient(\n * process.env.ENDPOINT ?? \"<app configuration endpoint>\",\n * new DefaultAzureCredential(),\n * );\n * ```\n * @param endpointUrl - the URL to the App Configuration endpoint\n * @param credential - used to authenticate requests to the service\n * @param options - optional configuration used to send requests to the service\n */\n constructor(\n endpointUrl: string,\n credential: TokenCredential,\n options: ConfigurationClientOptions = {},\n ) {\n // The AAD scope for an API is usually the baseUri + \"/.default\", but it\n // may be different for your service.\n const authPolicy = bearerTokenAuthenticationPolicy({\n credential,\n scopes: `${endpointUrl}/.default`,\n });\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n deserializationOptions: {\n expectedContentTypes: {\n json: [\n \"application/vnd.microsoft.appconfig.kvset+json\",\n \"application/vnd.microsoft.appconfig.kv+json\",\n \"application/vnd.microsoft.appconfig.kvs+json\",\n \"application/vnd.microsoft.appconfig.keyset+json\",\n \"application/vnd.microsoft.appconfig.revs+json\",\n ],\n },\n },\n ...{\n loggingOptions: {\n logger: logger.info,\n // This array contains header names we want to log that are not already\n // included as safe. Unknown/unsafe headers are logged as \"<REDACTED>\".\n additionalAllowedHeaderNames: [\"x-ms-correlation-request-id\"],\n },\n },\n };\n\n this.client = new GeneratedClient(endpointUrl, internalClientPipelineOptions);\n this.client.pipeline.addPolicy(authPolicy);\n this.tracingClient = createTracingClient({\n // The name of the resource provider requests are made against, as described in\n // https://github.com/Azure/azure-sdk/blob/main/docs/tracing/distributed-tracing-conventions.yml#L11-L15\n namespace: \"Microsoft.Learn\",\n // The package name and version\n packageName: \"@azure/template\",\n packageVersion: SDK_VERSION,\n });\n }\n\n /**\n * Retrieve the contents of an App Configuration setting by name (key).\n *\n * @param key - the unique name of the setting to get\n * @param options - optional configuration for the operation\n */\n public async getConfigurationSetting(\n key: string,\n options?: GetConfigurationSettingOptions,\n ): Promise<ConfigurationSetting>;\n\n /**\n * Retrieve an updated value of an App Configuration setting, allowing for\n * the use of entity tags to request the new value only if it has changed.\n *\n * @param setting - the setting to retrieve from the service\n * @param options - optional configuration for the operation\n */\n public async getConfigurationSetting(\n setting: ConfigurationSetting,\n options?: GetConfigurationSettingOptions,\n ): Promise<ConfigurationSetting>;\n\n public async getConfigurationSetting(\n keyOrSetting: string | ConfigurationSetting,\n options: GetConfigurationSettingOptions = {},\n ): Promise<ConfigurationSetting> {\n let key: string;\n let ifNoneMatch: string | undefined;\n\n return this.tracingClient.withSpan(\n // Span names should take the form \"<className>.<methodName>\".\n \"ConfigurationClient.getConfigurationSetting\",\n options,\n (updatedOptions) => {\n if (typeof keyOrSetting === \"string\") {\n key = keyOrSetting;\n if (options.onlyIfChanged) {\n throw new RangeError(\n \"You must pass a ConfigurationSetting instead of a key to perform a conditional fetch.\",\n );\n }\n } else {\n key = keyOrSetting.key!;\n const etag = keyOrSetting.etag;\n if (options.onlyIfChanged) {\n ifNoneMatch = quoteETag(etag);\n }\n }\n\n // You must pass updatedOptions to any calls you make within the callback.\n return this.client.getKeyValue(key, { ...updatedOptions, ifNoneMatch });\n },\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,qBAAqB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"1.0.13-beta.4363791\";\n"]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
2
|
+
import { GeneratedClientContext } from "./generatedClientContext.js";
|
|
3
|
+
import { GeneratedClientOptionalParams, GetKeysOptionalParams, GetKeysResponse, CheckKeysOptionalParams, CheckKeysResponse, GetKeyValuesOptionalParams, GetKeyValuesResponse, CheckKeyValuesOptionalParams, CheckKeyValuesResponse, GetKeyValueOptionalParams, GetKeyValueResponse, PutKeyValueOptionalParams, PutKeyValueResponse, DeleteKeyValueOptionalParams, DeleteKeyValueResponse, CheckKeyValueOptionalParams, CheckKeyValueResponse, GetSnapshotsOptionalParams, GetSnapshotsResponse, CheckSnapshotsOptionalParams, CheckSnapshotsResponse, GetSnapshotOptionalParams, GetSnapshotResponse, Snapshot, CreateSnapshotOptionalParams, CreateSnapshotResponse, SnapshotUpdateParameters, UpdateSnapshotOptionalParams, UpdateSnapshotResponse, CheckSnapshotOptionalParams, CheckSnapshotResponse, GetLabelsOptionalParams, GetLabelsResponse, CheckLabelsOptionalParams, CheckLabelsResponse, PutLockOptionalParams, PutLockResponse, DeleteLockOptionalParams, DeleteLockResponse, GetRevisionsOptionalParams, GetRevisionsResponse, CheckRevisionsOptionalParams, CheckRevisionsResponse, GetOperationDetailsOptionalParams, GetOperationDetailsResponse, GetKeysNextOptionalParams, GetKeysNextResponse, GetKeyValuesNextOptionalParams, GetKeyValuesNextResponse, GetSnapshotsNextOptionalParams, GetSnapshotsNextResponse, GetLabelsNextOptionalParams, GetLabelsNextResponse, GetRevisionsNextOptionalParams, GetRevisionsNextResponse } from "./models/index.js";
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare class GeneratedClient extends GeneratedClientContext {
|
|
6
|
+
/**
|
|
7
|
+
* Initializes a new instance of the GeneratedClient class.
|
|
8
|
+
* @param endpoint The endpoint of the App Configuration instance to send requests to.
|
|
9
|
+
* @param options The parameter options
|
|
10
|
+
*/
|
|
11
|
+
constructor(endpoint: string, options?: GeneratedClientOptionalParams);
|
|
12
|
+
/**
|
|
13
|
+
* Gets a list of keys.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
getKeys(options?: GetKeysOptionalParams): Promise<GetKeysResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Requests the headers and status of the given resource.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
checkKeys(options?: CheckKeysOptionalParams): Promise<CheckKeysResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets a list of key-values.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
getKeyValues(options?: GetKeyValuesOptionalParams): Promise<GetKeyValuesResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Requests the headers and status of the given resource.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
checkKeyValues(options?: CheckKeyValuesOptionalParams): Promise<CheckKeyValuesResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Gets a single key-value.
|
|
34
|
+
* @param key The key of the key-value to retrieve.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
getKeyValue(key: string, options?: GetKeyValueOptionalParams): Promise<GetKeyValueResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a key-value.
|
|
40
|
+
* @param key The key of the key-value to create.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
putKeyValue(key: string, options?: PutKeyValueOptionalParams): Promise<PutKeyValueResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Deletes a key-value.
|
|
46
|
+
* @param key The key of the key-value to delete.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
deleteKeyValue(key: string, options?: DeleteKeyValueOptionalParams): Promise<DeleteKeyValueResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Requests the headers and status of the given resource.
|
|
52
|
+
* @param key The key of the key-value to retrieve.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
checkKeyValue(key: string, options?: CheckKeyValueOptionalParams): Promise<CheckKeyValueResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Gets a list of key-value snapshots.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
getSnapshots(options?: GetSnapshotsOptionalParams): Promise<GetSnapshotsResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Requests the headers and status of the given resource.
|
|
63
|
+
* @param options The options parameters.
|
|
64
|
+
*/
|
|
65
|
+
checkSnapshots(options?: CheckSnapshotsOptionalParams): Promise<CheckSnapshotsResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets a single key-value snapshot.
|
|
68
|
+
* @param name The name of the key-value snapshot to retrieve.
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
getSnapshot(name: string, options?: GetSnapshotOptionalParams): Promise<GetSnapshotResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Creates a key-value snapshot.
|
|
74
|
+
* @param name The name of the key-value snapshot to create.
|
|
75
|
+
* @param entity The key-value snapshot to create.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
beginCreateSnapshot(name: string, entity: Snapshot, options?: CreateSnapshotOptionalParams): Promise<PollerLike<PollOperationState<CreateSnapshotResponse>, CreateSnapshotResponse>>;
|
|
79
|
+
/**
|
|
80
|
+
* Creates a key-value snapshot.
|
|
81
|
+
* @param name The name of the key-value snapshot to create.
|
|
82
|
+
* @param entity The key-value snapshot to create.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
beginCreateSnapshotAndWait(name: string, entity: Snapshot, options?: CreateSnapshotOptionalParams): Promise<CreateSnapshotResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Updates the state of a key-value snapshot.
|
|
88
|
+
* @param name The name of the key-value snapshot to update.
|
|
89
|
+
* @param entity The parameters used to update the snapshot.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
updateSnapshot(name: string, entity: SnapshotUpdateParameters, options?: UpdateSnapshotOptionalParams): Promise<UpdateSnapshotResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Requests the headers and status of the given resource.
|
|
95
|
+
* @param name The name of the key-value snapshot to check.
|
|
96
|
+
* @param options The options parameters.
|
|
97
|
+
*/
|
|
98
|
+
checkSnapshot(name: string, options?: CheckSnapshotOptionalParams): Promise<CheckSnapshotResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* Gets a list of labels.
|
|
101
|
+
* @param options The options parameters.
|
|
102
|
+
*/
|
|
103
|
+
getLabels(options?: GetLabelsOptionalParams): Promise<GetLabelsResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Requests the headers and status of the given resource.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
checkLabels(options?: CheckLabelsOptionalParams): Promise<CheckLabelsResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Locks a key-value.
|
|
111
|
+
* @param key The key of the key-value to lock.
|
|
112
|
+
* @param options The options parameters.
|
|
113
|
+
*/
|
|
114
|
+
putLock(key: string, options?: PutLockOptionalParams): Promise<PutLockResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* Unlocks a key-value.
|
|
117
|
+
* @param key The key of the key-value to unlock.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
deleteLock(key: string, options?: DeleteLockOptionalParams): Promise<DeleteLockResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* Gets a list of key-value revisions.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
getRevisions(options?: GetRevisionsOptionalParams): Promise<GetRevisionsResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Requests the headers and status of the given resource.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
checkRevisions(options?: CheckRevisionsOptionalParams): Promise<CheckRevisionsResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* Gets the state of a long running operation.
|
|
133
|
+
* @param snapshot Snapshot identifier for the long running operation.
|
|
134
|
+
* @param options The options parameters.
|
|
135
|
+
*/
|
|
136
|
+
getOperationDetails(snapshot: string, options?: GetOperationDetailsOptionalParams): Promise<GetOperationDetailsResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* GetKeysNext
|
|
139
|
+
* @param nextLink The nextLink from the previous successful call to the GetKeys method.
|
|
140
|
+
* @param options The options parameters.
|
|
141
|
+
*/
|
|
142
|
+
getKeysNext(nextLink: string, options?: GetKeysNextOptionalParams): Promise<GetKeysNextResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* GetKeyValuesNext
|
|
145
|
+
* @param nextLink The nextLink from the previous successful call to the GetKeyValues method.
|
|
146
|
+
* @param options The options parameters.
|
|
147
|
+
*/
|
|
148
|
+
getKeyValuesNext(nextLink: string, options?: GetKeyValuesNextOptionalParams): Promise<GetKeyValuesNextResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* GetSnapshotsNext
|
|
151
|
+
* @param nextLink The nextLink from the previous successful call to the GetSnapshots method.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
getSnapshotsNext(nextLink: string, options?: GetSnapshotsNextOptionalParams): Promise<GetSnapshotsNextResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* GetLabelsNext
|
|
157
|
+
* @param nextLink The nextLink from the previous successful call to the GetLabels method.
|
|
158
|
+
* @param options The options parameters.
|
|
159
|
+
*/
|
|
160
|
+
getLabelsNext(nextLink: string, options?: GetLabelsNextOptionalParams): Promise<GetLabelsNextResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* GetRevisionsNext
|
|
163
|
+
* @param nextLink The nextLink from the previous successful call to the GetRevisions method.
|
|
164
|
+
* @param options The options parameters.
|
|
165
|
+
*/
|
|
166
|
+
getRevisionsNext(nextLink: string, options?: GetRevisionsNextOptionalParams): Promise<GetRevisionsNextResponse>;
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=generatedClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatedClient.d.ts","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAI5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,QAAQ,EACR,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,E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