@azure/arm-kubernetesconfiguration-extensiontypes 1.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.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/extensionTypesClient.d.ts +20 -0
- package/dist/browser/extensionTypesClient.d.ts.map +1 -0
- package/dist/browser/extensionTypesClient.js +96 -0
- package/dist/browser/extensionTypesClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +13 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.d.ts +265 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +9 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +18 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +458 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +21 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +214 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/extensionTypes.d.ts +174 -0
- package/dist/browser/operations/extensionTypes.d.ts.map +1 -0
- package/dist/browser/operations/extensionTypes.js +757 -0
- package/dist/browser/operations/extensionTypes.js.map +1 -0
- package/dist/browser/operations/index.d.ts +2 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +9 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/extensionTypes.d.ts +82 -0
- package/dist/browser/operationsInterfaces/extensionTypes.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/extensionTypes.js +9 -0
- package/dist/browser/operationsInterfaces/extensionTypes.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +9 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +32 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/extensionTypesClient.d.ts +20 -0
- package/dist/commonjs/extensionTypesClient.d.ts.map +1 -0
- package/dist/commonjs/extensionTypesClient.js +101 -0
- package/dist/commonjs/extensionTypesClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +265 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +18 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +461 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +21 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +217 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/extensionTypes.d.ts +174 -0
- package/dist/commonjs/operations/extensionTypes.d.ts.map +1 -0
- package/dist/commonjs/operations/extensionTypes.js +761 -0
- package/dist/commonjs/operations/extensionTypes.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +2 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +12 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensionTypes.d.ts +82 -0
- package/dist/commonjs/operationsInterfaces/extensionTypes.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensionTypes.js +10 -0
- package/dist/commonjs/operationsInterfaces/extensionTypes.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/extensionTypesClient.d.ts +20 -0
- package/dist/esm/extensionTypesClient.d.ts.map +1 -0
- package/dist/esm/extensionTypesClient.js +96 -0
- package/dist/esm/extensionTypesClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +265 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +18 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +458 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +21 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +214 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/extensionTypes.d.ts +174 -0
- package/dist/esm/operations/extensionTypes.d.ts.map +1 -0
- package/dist/esm/operations/extensionTypes.js +757 -0
- package/dist/esm/operations/extensionTypes.js.map +1 -0
- package/dist/esm/operations/index.d.ts +2 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +9 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/extensionTypes.d.ts +82 -0
- package/dist/esm/operationsInterfaces/extensionTypes.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/extensionTypes.js +9 -0
- package/dist/esm/operationsInterfaces/extensionTypes.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +9 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/extensionTypesClient.d.ts +20 -0
- package/dist/react-native/extensionTypesClient.d.ts.map +1 -0
- package/dist/react-native/extensionTypesClient.js +96 -0
- package/dist/react-native/extensionTypesClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +265 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +9 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +18 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +458 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +21 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +214 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/extensionTypes.d.ts +174 -0
- package/dist/react-native/operations/extensionTypes.d.ts.map +1 -0
- package/dist/react-native/operations/extensionTypes.js +757 -0
- package/dist/react-native/operations/extensionTypes.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +2 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +9 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/extensionTypes.d.ts +82 -0
- package/dist/react-native/operationsInterfaces/extensionTypes.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/extensionTypes.js +9 -0
- package/dist/react-native/operationsInterfaces/extensionTypes.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +9 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +131 -0
- package/review/arm-kubernetesconfiguration-extensiontypes.api.md +258 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.1 (2025-05-19)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
The package of @azure/arm-kubernetesconfiguration-extensiontypes is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Azure ExtensionTypes client library for JavaScript
|
|
2
|
+
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ExtensionTypes client.
|
|
4
|
+
|
|
5
|
+
KubernetesConfiguration Extension Types Client
|
|
6
|
+
|
|
7
|
+
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration-extensiontypes) |
|
|
8
|
+
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-kubernetesconfiguration-extensiontypes) |
|
|
9
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration-extensiontypes?view=azure-node-preview) |
|
|
10
|
+
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
|
+
|
|
12
|
+
## Getting started
|
|
13
|
+
|
|
14
|
+
### Currently supported environments
|
|
15
|
+
|
|
16
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
17
|
+
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
|
+
|
|
19
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
20
|
+
|
|
21
|
+
### Prerequisites
|
|
22
|
+
|
|
23
|
+
- An [Azure subscription][azure_sub].
|
|
24
|
+
|
|
25
|
+
### Install the `@azure/arm-kubernetesconfiguration-extensiontypes` package
|
|
26
|
+
|
|
27
|
+
Install the Azure ExtensionTypes client library for JavaScript with `npm`:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install @azure/arm-kubernetesconfiguration-extensiontypes
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Create and authenticate a `ExtensionTypesClient`
|
|
34
|
+
|
|
35
|
+
To create a client object to access the Azure ExtensionTypes API, you will need the `endpoint` of your Azure ExtensionTypes resource and a `credential`. The Azure ExtensionTypes client can use Azure Active Directory credentials to authenticate.
|
|
36
|
+
You can find the endpoint for your Azure ExtensionTypes resource in the [Azure Portal][azure_portal].
|
|
37
|
+
|
|
38
|
+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
39
|
+
|
|
40
|
+
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm install @azure/identity
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You will also need to **register a new AAD application and grant access to Azure ExtensionTypes** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
|
+
|
|
48
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
49
|
+
|
|
50
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
51
|
+
|
|
52
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
53
|
+
import { ExtensionTypesClient } from "@azure/arm-kubernetesconfiguration-extensiontypes";
|
|
54
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
55
|
+
|
|
56
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
|
+
const client = new ExtensionTypesClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
61
|
+
|
|
62
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
63
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
64
|
+
import { ExtensionTypesClient } from "@azure/arm-kubernetesconfiguration-extensiontypes";
|
|
65
|
+
|
|
66
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
67
|
+
const credential = new InteractiveBrowserCredential({
|
|
68
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
69
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
70
|
+
});
|
|
71
|
+
const client = new ExtensionTypesClient(credential, subscriptionId);
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### JavaScript Bundle
|
|
75
|
+
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
76
|
+
|
|
77
|
+
## Key concepts
|
|
78
|
+
|
|
79
|
+
### ExtensionTypesClient
|
|
80
|
+
|
|
81
|
+
`ExtensionTypesClient` is the primary interface for developers using the Azure ExtensionTypes client library. Explore the methods on this client object to understand the different features of the Azure ExtensionTypes service that you can access.
|
|
82
|
+
|
|
83
|
+
## Troubleshooting
|
|
84
|
+
|
|
85
|
+
### Logging
|
|
86
|
+
|
|
87
|
+
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`:
|
|
88
|
+
|
|
89
|
+
```ts snippet:SetLogLevel
|
|
90
|
+
import { setLogLevel } from "@azure/logger";
|
|
91
|
+
|
|
92
|
+
setLogLevel("info");
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
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).
|
|
96
|
+
|
|
97
|
+
## Next steps
|
|
98
|
+
|
|
99
|
+
Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
|
|
100
|
+
|
|
101
|
+
## Contributing
|
|
102
|
+
|
|
103
|
+
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.
|
|
104
|
+
|
|
105
|
+
## Related projects
|
|
106
|
+
|
|
107
|
+
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
111
|
+
[azure_sub]: https://azure.microsoft.com/free/
|
|
112
|
+
[azure_sub]: https://azure.microsoft.com/free/
|
|
113
|
+
[azure_portal]: https://portal.azure.com
|
|
114
|
+
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
115
|
+
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { ExtensionTypes } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { ExtensionTypesClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class ExtensionTypesClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
apiVersion: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the ExtensionTypesClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The ID of the target subscription.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ExtensionTypesClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
extensionTypes: ExtensionTypes;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=extensionTypesClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensionTypesClient.d.ts","sourceRoot":"","sources":["../../src/extensionTypesClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAC;AAEvE,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,aAAa;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kCAAkC;IAyE9C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC,cAAc,EAAE,cAAc,CAAC;CAChC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { ExtensionTypesImpl } from "./operations/index.js";
|
|
11
|
+
export class ExtensionTypesClient extends coreClient.ServiceClient {
|
|
12
|
+
/**
|
|
13
|
+
* Initializes a new instance of the ExtensionTypesClient class.
|
|
14
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
15
|
+
* @param subscriptionId The ID of the target subscription.
|
|
16
|
+
* @param options The parameter options
|
|
17
|
+
*/
|
|
18
|
+
constructor(credentials, subscriptionId, options) {
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
if (credentials === undefined) {
|
|
21
|
+
throw new Error("'credentials' cannot be null");
|
|
22
|
+
}
|
|
23
|
+
if (subscriptionId === undefined) {
|
|
24
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
25
|
+
}
|
|
26
|
+
// Initializing default values for options
|
|
27
|
+
if (!options) {
|
|
28
|
+
options = {};
|
|
29
|
+
}
|
|
30
|
+
const defaults = {
|
|
31
|
+
requestContentType: "application/json; charset=utf-8",
|
|
32
|
+
credential: credentials,
|
|
33
|
+
};
|
|
34
|
+
const packageDetails = `azsdk-js-arm-kubernetesconfiguration-extensiontypes/1.0.0-beta.1`;
|
|
35
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
|
+
: `${packageDetails}`;
|
|
38
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
39
|
+
userAgentPrefix,
|
|
40
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
41
|
+
super(optionsWithDefaults);
|
|
42
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
46
|
+
}
|
|
47
|
+
if (!options ||
|
|
48
|
+
!options.pipeline ||
|
|
49
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
50
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
51
|
+
this.pipeline.removePolicy({
|
|
52
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
53
|
+
});
|
|
54
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
55
|
+
credential: credentials,
|
|
56
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
57
|
+
challengeCallbacks: {
|
|
58
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
59
|
+
},
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
// Parameter assignments
|
|
63
|
+
this.subscriptionId = subscriptionId;
|
|
64
|
+
// Assigning values to Constant parameters
|
|
65
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
66
|
+
this.apiVersion = options.apiVersion || "2024-11-01-preview";
|
|
67
|
+
this.extensionTypes = new ExtensionTypesImpl(this);
|
|
68
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
69
|
+
}
|
|
70
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
71
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
72
|
+
if (!apiVersion) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const apiVersionPolicy = {
|
|
76
|
+
name: "CustomApiVersionPolicy",
|
|
77
|
+
async sendRequest(request, next) {
|
|
78
|
+
const param = request.url.split("?");
|
|
79
|
+
if (param.length > 1) {
|
|
80
|
+
const newParams = param[1].split("&").map((item) => {
|
|
81
|
+
if (item.indexOf("api-version") > -1) {
|
|
82
|
+
return "api-version=" + apiVersion;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return item;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
89
|
+
}
|
|
90
|
+
return next(request);
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=extensionTypesClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensionTypesClient.js","sourceRoot":"","sources":["../../src/extensionTypesClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D,MAAM,OAAO,oBAAqB,SAAQ,UAAU,CAAC,aAAa;IAKhE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA4C;;QAE5C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAuC;YACnD,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BACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAGF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ExtensionTypesImpl } from \"./operations/index.js\";\nimport { ExtensionTypes } from \"./operationsInterfaces/index.js\";\nimport { ExtensionTypesClientOptionalParams } from \"./models/index.js\";\n\nexport class ExtensionTypesClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ExtensionTypesClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ExtensionTypesClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ExtensionTypesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-kubernetesconfiguration-extensiontypes/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-11-01-preview\";\n this.extensionTypes = new ExtensionTypesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n extensionTypes: ExtensionTypes;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,cAAc,iCAAiC,CAAC"}
|
|
@@ -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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { ExtensionTypesClient } from "./extensionTypesClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { ExtensionTypesClient } from \"./extensionTypesClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
/** List Extension Types. It contains a list of ExtensionType objects and a URL link to get the next set of results. */
|
|
3
|
+
export interface ExtensionTypesList {
|
|
4
|
+
/**
|
|
5
|
+
* List of Extension Types.
|
|
6
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
7
|
+
*/
|
|
8
|
+
readonly value?: ExtensionType[];
|
|
9
|
+
/**
|
|
10
|
+
* URL to get the next set of extension type objects, if any.
|
|
11
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
12
|
+
*/
|
|
13
|
+
readonly nextLink?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ExtensionTypeProperties {
|
|
16
|
+
/** Is this Extension Type a system extension. */
|
|
17
|
+
isSystemExtension?: boolean;
|
|
18
|
+
/** Should an identity for this cluster resource be created */
|
|
19
|
+
isManagedIdentityRequired?: boolean;
|
|
20
|
+
/** Description of the extension type */
|
|
21
|
+
description?: string;
|
|
22
|
+
/** Name of the publisher for the Extension Type */
|
|
23
|
+
publisher?: string;
|
|
24
|
+
/** Plan information only for the Marketplace Extension Type. */
|
|
25
|
+
planInfo?: ExtensionTypePropertiesPlanInfo;
|
|
26
|
+
/** Cluster Types supported for this Extension Type. */
|
|
27
|
+
supportedClusterTypes?: string[];
|
|
28
|
+
/** Supported Kubernetes Scopes for this Extension Type. */
|
|
29
|
+
supportedScopes?: ExtensionTypePropertiesSupportedScopes;
|
|
30
|
+
}
|
|
31
|
+
/** Plan information only for the Marketplace Extension Type. */
|
|
32
|
+
export interface ExtensionTypePropertiesPlanInfo {
|
|
33
|
+
/** Publisher ID of the Marketplace Extension Type. */
|
|
34
|
+
publisherId?: string;
|
|
35
|
+
/** Plan ID of the Marketplace Extension Type. */
|
|
36
|
+
planId?: string;
|
|
37
|
+
/** Offer or Product ID of the Marketplace Extension Type. */
|
|
38
|
+
offerId?: string;
|
|
39
|
+
}
|
|
40
|
+
/** Supported Kubernetes Scopes for this Extension Type. */
|
|
41
|
+
export interface ExtensionTypePropertiesSupportedScopes {
|
|
42
|
+
/** The default scope of the extension type. This scope will be used if the user does not provide a scope while creating an extension. */
|
|
43
|
+
defaultScope?: string;
|
|
44
|
+
/** Extension scope settings */
|
|
45
|
+
clusterScopeSettings?: ClusterScopeSettings;
|
|
46
|
+
}
|
|
47
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
48
|
+
export interface Resource {
|
|
49
|
+
/**
|
|
50
|
+
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
51
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
52
|
+
*/
|
|
53
|
+
readonly id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the resource
|
|
56
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
57
|
+
*/
|
|
58
|
+
readonly name?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
61
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
62
|
+
*/
|
|
63
|
+
readonly type?: string;
|
|
64
|
+
}
|
|
65
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
66
|
+
export interface ErrorResponse {
|
|
67
|
+
/** The error object. */
|
|
68
|
+
error?: ErrorDetail;
|
|
69
|
+
}
|
|
70
|
+
/** The error detail. */
|
|
71
|
+
export interface ErrorDetail {
|
|
72
|
+
/**
|
|
73
|
+
* The error code.
|
|
74
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
75
|
+
*/
|
|
76
|
+
readonly code?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The error message.
|
|
79
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
80
|
+
*/
|
|
81
|
+
readonly message?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The error target.
|
|
84
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
85
|
+
*/
|
|
86
|
+
readonly target?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The error details.
|
|
89
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
90
|
+
*/
|
|
91
|
+
readonly details?: ErrorDetail[];
|
|
92
|
+
/**
|
|
93
|
+
* The error additional info.
|
|
94
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
95
|
+
*/
|
|
96
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
97
|
+
}
|
|
98
|
+
/** The resource management error additional info. */
|
|
99
|
+
export interface ErrorAdditionalInfo {
|
|
100
|
+
/**
|
|
101
|
+
* The additional info type.
|
|
102
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
103
|
+
*/
|
|
104
|
+
readonly type?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The additional info.
|
|
107
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
108
|
+
*/
|
|
109
|
+
readonly info?: Record<string, unknown>;
|
|
110
|
+
}
|
|
111
|
+
/** List Extension Type Versions. It contains a list of ExtensionTypeVersionForReleaseTrain objects. */
|
|
112
|
+
export interface ExtensionTypeVersionsList {
|
|
113
|
+
/**
|
|
114
|
+
* List of Extension Type Versions for an Extension Type in a Release Train.
|
|
115
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
116
|
+
*/
|
|
117
|
+
readonly value?: ExtensionTypeVersionForReleaseTrain[];
|
|
118
|
+
/**
|
|
119
|
+
* URL to get the next set of extension objects, if any.
|
|
120
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
121
|
+
*/
|
|
122
|
+
readonly nextLink?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface ExtensionTypeVersionForReleaseTrainProperties {
|
|
125
|
+
/** The version number for the extension type */
|
|
126
|
+
version?: string;
|
|
127
|
+
/** The list of supported Kubernetes cluster versions for this extension type */
|
|
128
|
+
unsupportedKubernetesVersions?: ExtensionTypeVersionForReleaseTrainPropertiesUnsupportedKubernetesVersions;
|
|
129
|
+
/** A list of supported cluster types for this version of the Extension Type */
|
|
130
|
+
supportedClusterTypes?: string[];
|
|
131
|
+
}
|
|
132
|
+
/** The list of supported Kubernetes cluster versions for this extension type */
|
|
133
|
+
export interface ExtensionTypeVersionForReleaseTrainPropertiesUnsupportedKubernetesVersions {
|
|
134
|
+
connectedCluster?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];
|
|
135
|
+
appliances?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];
|
|
136
|
+
provisionedCluster?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];
|
|
137
|
+
managedCluster?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];
|
|
138
|
+
}
|
|
139
|
+
/** The list of Kubernetes Distribution and Versions that are not supported by this version of this Extension Type */
|
|
140
|
+
export interface ExtensionTypeVersionUnsupportedKubernetesMatrixItem {
|
|
141
|
+
/** The list of Kubernetes Cluster Distribution Names not supported */
|
|
142
|
+
distributions?: string[];
|
|
143
|
+
/** The list of Kubernetes Versions not supported by the list of Kubernetes Cluster Distribution names in this object */
|
|
144
|
+
unsupportedVersions?: string[];
|
|
145
|
+
}
|
|
146
|
+
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
147
|
+
export interface ProxyResource extends Resource {
|
|
148
|
+
}
|
|
149
|
+
/** Extension scope settings */
|
|
150
|
+
export interface ClusterScopeSettings extends ProxyResource {
|
|
151
|
+
/** Describes if multiple instances of the extension are allowed */
|
|
152
|
+
allowMultipleInstances?: boolean;
|
|
153
|
+
/** Default extension release namespace */
|
|
154
|
+
defaultReleaseNamespace?: string;
|
|
155
|
+
}
|
|
156
|
+
/** The Extension Type object. */
|
|
157
|
+
export interface ExtensionType extends ProxyResource {
|
|
158
|
+
properties?: ExtensionTypeProperties;
|
|
159
|
+
}
|
|
160
|
+
/** The Extension Type Version object. */
|
|
161
|
+
export interface ExtensionTypeVersionForReleaseTrain extends ProxyResource {
|
|
162
|
+
properties?: ExtensionTypeVersionForReleaseTrainProperties;
|
|
163
|
+
}
|
|
164
|
+
/** Optional parameters. */
|
|
165
|
+
export interface ExtensionTypesLocationListOptionalParams extends coreClient.OperationOptions {
|
|
166
|
+
/** Filter results by Publisher ID of a marketplace extension type */
|
|
167
|
+
publisherId?: string;
|
|
168
|
+
/** Filter results by Offer or Product ID of a marketplace extension type */
|
|
169
|
+
offerId?: string;
|
|
170
|
+
/** Filter results by Plan ID of a marketplace extension type */
|
|
171
|
+
planId?: string;
|
|
172
|
+
/** Filter results by release train (default value is stable) */
|
|
173
|
+
releaseTrain?: string;
|
|
174
|
+
/** Filter results by the cluster type for extension types */
|
|
175
|
+
clusterType?: string;
|
|
176
|
+
}
|
|
177
|
+
/** Contains response data for the locationList operation. */
|
|
178
|
+
export type ExtensionTypesLocationListResponse = ExtensionTypesList;
|
|
179
|
+
/** Optional parameters. */
|
|
180
|
+
export interface ExtensionTypesLocationGetOptionalParams extends coreClient.OperationOptions {
|
|
181
|
+
}
|
|
182
|
+
/** Contains response data for the locationGet operation. */
|
|
183
|
+
export type ExtensionTypesLocationGetResponse = ExtensionType;
|
|
184
|
+
/** Optional parameters. */
|
|
185
|
+
export interface ExtensionTypesListVersionsOptionalParams extends coreClient.OperationOptions {
|
|
186
|
+
/** Filter results by release train (default value is stable) */
|
|
187
|
+
releaseTrain?: string;
|
|
188
|
+
/** Filter results by the cluster type for extension types */
|
|
189
|
+
clusterType?: string;
|
|
190
|
+
/** Filter results by the major version of an extension type */
|
|
191
|
+
majorVersion?: string;
|
|
192
|
+
/** Filter results by only the latest version (based on other query parameters) */
|
|
193
|
+
showLatest?: boolean;
|
|
194
|
+
}
|
|
195
|
+
/** Contains response data for the listVersions operation. */
|
|
196
|
+
export type ExtensionTypesListVersionsResponse = ExtensionTypeVersionsList;
|
|
197
|
+
/** Optional parameters. */
|
|
198
|
+
export interface ExtensionTypesGetVersionOptionalParams extends coreClient.OperationOptions {
|
|
199
|
+
}
|
|
200
|
+
/** Contains response data for the getVersion operation. */
|
|
201
|
+
export type ExtensionTypesGetVersionResponse = ExtensionTypeVersionForReleaseTrain;
|
|
202
|
+
/** Optional parameters. */
|
|
203
|
+
export interface ExtensionTypesListOptionalParams extends coreClient.OperationOptions {
|
|
204
|
+
/** Filter results by Publisher ID of a marketplace extension type */
|
|
205
|
+
publisherId?: string;
|
|
206
|
+
/** Filter results by Offer or Product ID of a marketplace extension type */
|
|
207
|
+
offerId?: string;
|
|
208
|
+
/** Filter results by Plan ID of a marketplace extension type */
|
|
209
|
+
planId?: string;
|
|
210
|
+
/** Filter results by release train (default value is stable) */
|
|
211
|
+
releaseTrain?: string;
|
|
212
|
+
}
|
|
213
|
+
/** Contains response data for the list operation. */
|
|
214
|
+
export type ExtensionTypesListResponse = ExtensionTypesList;
|
|
215
|
+
/** Optional parameters. */
|
|
216
|
+
export interface ExtensionTypesGetOptionalParams extends coreClient.OperationOptions {
|
|
217
|
+
}
|
|
218
|
+
/** Contains response data for the get operation. */
|
|
219
|
+
export type ExtensionTypesGetResponse = ExtensionType;
|
|
220
|
+
/** Optional parameters. */
|
|
221
|
+
export interface ExtensionTypesClusterListVersionsOptionalParams extends coreClient.OperationOptions {
|
|
222
|
+
/** Filter results by release train (default value is stable) */
|
|
223
|
+
releaseTrain?: string;
|
|
224
|
+
/** Filter results by the major version of an extension type */
|
|
225
|
+
majorVersion?: string;
|
|
226
|
+
/** Filter results by only the latest version (based on other query parameters) */
|
|
227
|
+
showLatest?: boolean;
|
|
228
|
+
}
|
|
229
|
+
/** Contains response data for the clusterListVersions operation. */
|
|
230
|
+
export type ExtensionTypesClusterListVersionsResponse = ExtensionTypeVersionsList;
|
|
231
|
+
/** Optional parameters. */
|
|
232
|
+
export interface ExtensionTypesClusterGetVersionOptionalParams extends coreClient.OperationOptions {
|
|
233
|
+
}
|
|
234
|
+
/** Contains response data for the clusterGetVersion operation. */
|
|
235
|
+
export type ExtensionTypesClusterGetVersionResponse = ExtensionTypeVersionForReleaseTrain;
|
|
236
|
+
/** Optional parameters. */
|
|
237
|
+
export interface ExtensionTypesLocationListNextOptionalParams extends coreClient.OperationOptions {
|
|
238
|
+
}
|
|
239
|
+
/** Contains response data for the locationListNext operation. */
|
|
240
|
+
export type ExtensionTypesLocationListNextResponse = ExtensionTypesList;
|
|
241
|
+
/** Optional parameters. */
|
|
242
|
+
export interface ExtensionTypesListVersionsNextOptionalParams extends coreClient.OperationOptions {
|
|
243
|
+
}
|
|
244
|
+
/** Contains response data for the listVersionsNext operation. */
|
|
245
|
+
export type ExtensionTypesListVersionsNextResponse = ExtensionTypeVersionsList;
|
|
246
|
+
/** Optional parameters. */
|
|
247
|
+
export interface ExtensionTypesListNextOptionalParams extends coreClient.OperationOptions {
|
|
248
|
+
}
|
|
249
|
+
/** Contains response data for the listNext operation. */
|
|
250
|
+
export type ExtensionTypesListNextResponse = ExtensionTypesList;
|
|
251
|
+
/** Optional parameters. */
|
|
252
|
+
export interface ExtensionTypesClusterListVersionsNextOptionalParams extends coreClient.OperationOptions {
|
|
253
|
+
}
|
|
254
|
+
/** Contains response data for the clusterListVersionsNext operation. */
|
|
255
|
+
export type ExtensionTypesClusterListVersionsNextResponse = ExtensionTypeVersionsList;
|
|
256
|
+
/** Optional parameters. */
|
|
257
|
+
export interface ExtensionTypesClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
258
|
+
/** server parameter */
|
|
259
|
+
$host?: string;
|
|
260
|
+
/** Api Version */
|
|
261
|
+
apiVersion?: string;
|
|
262
|
+
/** Overrides client endpoint. */
|
|
263
|
+
endpoint?: string;
|
|
264
|
+
}
|
|
265
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,uHAAuH;AACvH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,iDAAiD;IACjD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,8DAA8D;IAC9D,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,+BAA+B,CAAC;IAC3C,uDAAuD;IACvD,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,sCAAsC,CAAC;CAC1D;AAED,gEAAgE;AAChE,MAAM,WAAW,+BAA+B;IAC9C,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,2DAA2D;AAC3D,MAAM,WAAW,sCAAsC;IACrD,yIAAyI;IACzI,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,oBAAoB,CAAC,EAAE,oBAA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*
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** List Extension Types. It contains a list of ExtensionType objects and a URL link to get the next set of results. */\nexport interface ExtensionTypesList {\n /**\n * List of Extension Types.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: ExtensionType[];\n /**\n * URL to get the next set of extension type objects, if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\nexport interface ExtensionTypeProperties {\n /** Is this Extension Type a system extension. */\n isSystemExtension?: boolean;\n /** Should an identity for this cluster resource be created */\n isManagedIdentityRequired?: boolean;\n /** Description of the extension type */\n description?: string;\n /** Name of the publisher for the Extension Type */\n publisher?: string;\n /** Plan information only for the Marketplace Extension Type. */\n planInfo?: ExtensionTypePropertiesPlanInfo;\n /** Cluster Types supported for this Extension Type. */\n supportedClusterTypes?: string[];\n /** Supported Kubernetes Scopes for this Extension Type. */\n supportedScopes?: ExtensionTypePropertiesSupportedScopes;\n}\n\n/** Plan information only for the Marketplace Extension Type. */\nexport interface ExtensionTypePropertiesPlanInfo {\n /** Publisher ID of the Marketplace Extension Type. */\n publisherId?: string;\n /** Plan ID of the Marketplace Extension Type. */\n planId?: string;\n /** Offer or Product ID of the Marketplace Extension Type. */\n offerId?: string;\n}\n\n/** Supported Kubernetes Scopes for this Extension Type. */\nexport interface ExtensionTypePropertiesSupportedScopes {\n /** The default scope of the extension type. This scope will be used if the user does not provide a scope while creating an extension. */\n defaultScope?: string;\n /** Extension scope settings */\n clusterScopeSettings?: ClusterScopeSettings;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** List Extension Type Versions. It contains a list of ExtensionTypeVersionForReleaseTrain objects. */\nexport interface ExtensionTypeVersionsList {\n /**\n * List of Extension Type Versions for an Extension Type in a Release Train.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: ExtensionTypeVersionForReleaseTrain[];\n /**\n * URL to get the next set of extension objects, if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\nexport interface ExtensionTypeVersionForReleaseTrainProperties {\n /** The version number for the extension type */\n version?: string;\n /** The list of supported Kubernetes cluster versions for this extension type */\n unsupportedKubernetesVersions?: ExtensionTypeVersionForReleaseTrainPropertiesUnsupportedKubernetesVersions;\n /** A list of supported cluster types for this version of the Extension Type */\n supportedClusterTypes?: string[];\n}\n\n/** The list of supported Kubernetes cluster versions for this extension type */\nexport interface ExtensionTypeVersionForReleaseTrainPropertiesUnsupportedKubernetesVersions {\n connectedCluster?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];\n appliances?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];\n provisionedCluster?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];\n managedCluster?: ExtensionTypeVersionUnsupportedKubernetesMatrixItem[];\n}\n\n/** The list of Kubernetes Distribution and Versions that are not supported by this version of this Extension Type */\nexport interface ExtensionTypeVersionUnsupportedKubernetesMatrixItem {\n /** The list of Kubernetes Cluster Distribution Names not supported */\n distributions?: string[];\n /** The list of Kubernetes Versions not supported by the list of Kubernetes Cluster Distribution names in this object */\n unsupportedVersions?: string[];\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\n/** Extension scope settings */\nexport interface ClusterScopeSettings extends ProxyResource {\n /** Describes if multiple instances of the extension are allowed */\n allowMultipleInstances?: boolean;\n /** Default extension release namespace */\n defaultReleaseNamespace?: string;\n}\n\n/** The Extension Type object. */\nexport interface ExtensionType extends ProxyResource {\n properties?: ExtensionTypeProperties;\n}\n\n/** The Extension Type Version object. */\nexport interface ExtensionTypeVersionForReleaseTrain extends ProxyResource {\n properties?: ExtensionTypeVersionForReleaseTrainProperties;\n}\n\n/** Optional parameters. */\nexport interface ExtensionTypesLocationListOptionalParams extends coreClient.OperationOptions {\n /** Filter results by Publisher ID of a marketplace extension type */\n publisherId?: string;\n /** Filter results by Offer or Product ID of a marketplace extension type */\n offerId?: string;\n /** Filter results by Plan ID of a marketplace extension type */\n planId?: string;\n /** Filter results by release train (default value is stable) */\n releaseTrain?: string;\n /** Filter results by the cluster type for extension types */\n clusterType?: string;\n}\n\n/** Contains response data for the locationList operation. */\nexport type ExtensionTypesLocationListResponse = ExtensionTypesList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesLocationGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the locationGet operation. */\nexport type ExtensionTypesLocationGetResponse = ExtensionType;\n\n/** Optional parameters. */\nexport interface ExtensionTypesListVersionsOptionalParams extends coreClient.OperationOptions {\n /** Filter results by release train (default value is stable) */\n releaseTrain?: string;\n /** Filter results by the cluster type for extension types */\n clusterType?: string;\n /** Filter results by the major version of an extension type */\n majorVersion?: string;\n /** Filter results by only the latest version (based on other query parameters) */\n showLatest?: boolean;\n}\n\n/** Contains response data for the listVersions operation. */\nexport type ExtensionTypesListVersionsResponse = ExtensionTypeVersionsList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesGetVersionOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the getVersion operation. */\nexport type ExtensionTypesGetVersionResponse = ExtensionTypeVersionForReleaseTrain;\n\n/** Optional parameters. */\nexport interface ExtensionTypesListOptionalParams extends coreClient.OperationOptions {\n /** Filter results by Publisher ID of a marketplace extension type */\n publisherId?: string;\n /** Filter results by Offer or Product ID of a marketplace extension type */\n offerId?: string;\n /** Filter results by Plan ID of a marketplace extension type */\n planId?: string;\n /** Filter results by release train (default value is stable) */\n releaseTrain?: string;\n}\n\n/** Contains response data for the list operation. */\nexport type ExtensionTypesListResponse = ExtensionTypesList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ExtensionTypesGetResponse = ExtensionType;\n\n/** Optional parameters. */\nexport interface ExtensionTypesClusterListVersionsOptionalParams\n extends coreClient.OperationOptions {\n /** Filter results by release train (default value is stable) */\n releaseTrain?: string;\n /** Filter results by the major version of an extension type */\n majorVersion?: string;\n /** Filter results by only the latest version (based on other query parameters) */\n showLatest?: boolean;\n}\n\n/** Contains response data for the clusterListVersions operation. */\nexport type ExtensionTypesClusterListVersionsResponse = ExtensionTypeVersionsList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesClusterGetVersionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the clusterGetVersion operation. */\nexport type ExtensionTypesClusterGetVersionResponse = ExtensionTypeVersionForReleaseTrain;\n\n/** Optional parameters. */\nexport interface ExtensionTypesLocationListNextOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the locationListNext operation. */\nexport type ExtensionTypesLocationListNextResponse = ExtensionTypesList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesListVersionsNextOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the listVersionsNext operation. */\nexport type ExtensionTypesListVersionsNextResponse = ExtensionTypeVersionsList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesListNextOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type ExtensionTypesListNextResponse = ExtensionTypesList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesClusterListVersionsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the clusterListVersionsNext operation. */\nexport type ExtensionTypesClusterListVersionsNextResponse = ExtensionTypeVersionsList;\n\n/** Optional parameters. */\nexport interface ExtensionTypesClientOptionalParams extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|