Skip to content

Commit b08a831

Browse files
author
SDKAuto
committed
CodeGen from PR 34371 in Azure/azure-rest-api-specs
Merge 5a991e1ddde01c1ad3021a5d06676272f2ac00f5 into 37e1a52a30c527b6ad2d7ef09a9c82ad4491e8a2
1 parent 24808f3 commit b08a831

File tree

51 files changed

+6427
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+6427
-0
lines changed

eng/automation/api-specs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ informatica:
6666
service: informaticadatamanagement
6767
keyvault:
6868
suffix: generated
69+
kubernetesconfiguration/Microsoft.KubernetesConfiguration/extensionTypes:
70+
service: kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes
6971
liftrastronomer:
7072
service: astro
7173
liftrqumulo:

eng/versioning/version_client.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ com.azure.resourcemanager:azure-resourcemanager-carbonoptimization;1.0.0-beta.1;
477477
com.azure.resourcemanager:azure-resourcemanager-dependencymap;1.0.0-beta.1;1.0.0-beta.2
478478
com.azure.resourcemanager:azure-resourcemanager-portalservicescopilot;1.0.0-beta.1;1.0.0-beta.2
479479
com.azure.resourcemanager:azure-resourcemanager-lambdatesthyperexecute;1.0.0-beta.1;1.0.0-beta.1
480+
com.azure.resourcemanager:azure-resourcemanager-kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes;1.0.0-beta.1;1.0.0-beta.1
480481
com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1
481482
com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1
482483
com.azure.v2:azure-client-sdk-parent;2.0.0-beta.1;2.0.0-beta.1

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
<module>sdk/iotoperations</module>
130130
<module>sdk/keyvault</module>
131131
<module>sdk/kubernetesconfiguration</module>
132+
<module>sdk/kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes</module>
132133
<module>sdk/kusto</module>
133134
<module>sdk/labservices</module>
134135
<module>sdk/lambdatesthyperexecute</module>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (2025-04-30)
4+
5+
- Azure Resource Manager ExtensionTypes client library for Java. This package contains Microsoft Azure SDK for ExtensionTypes Management SDK. KubernetesConfiguration Extension Types Client. Package tag package-preview-2024-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
6+
### Features Added
7+
8+
- Initial release for the azure-resourcemanager-kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes Java SDK.
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Azure Resource Manager ExtensionTypes client library for Java
2+
3+
Azure Resource Manager ExtensionTypes client library for Java.
4+
5+
This package contains Microsoft Azure SDK for ExtensionTypes Management SDK. KubernetesConfiguration Extension Types Client. Package tag package-preview-2024-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
6+
7+
## We'd love to hear your feedback
8+
9+
We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
10+
11+
If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
12+
13+
Thank you in advance for your collaboration. We really appreciate your time!
14+
15+
## Documentation
16+
17+
Various documentation is available to help you get started
18+
19+
- [API reference documentation][docs]
20+
21+
## Getting started
22+
23+
### Prerequisites
24+
25+
- [Java Development Kit (JDK)][jdk] with version 8 or above
26+
- [Azure Subscription][azure_subscription]
27+
28+
### Adding the package to your product
29+
30+
[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes;current})
31+
```xml
32+
<dependency>
33+
<groupId>com.azure.resourcemanager</groupId>
34+
<artifactId>azure-resourcemanager-kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes</artifactId>
35+
<version>1.0.0-beta.1</version>
36+
</dependency>
37+
```
38+
[//]: # ({x-version-update-end})
39+
40+
### Include the recommended packages
41+
42+
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
43+
44+
[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
45+
46+
### Authentication
47+
48+
Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
49+
50+
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
51+
52+
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
53+
54+
```java
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
56+
TokenCredential credential = new DefaultAzureCredentialBuilder()
57+
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
58+
.build();
59+
ExtensionTypesManager manager = ExtensionTypesManager
60+
.authenticate(credential, profile);
61+
```
62+
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
64+
65+
See [Authentication][authenticate] for more options.
66+
67+
## Key concepts
68+
69+
See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
70+
71+
## Examples
72+
73+
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes/azure-resourcemanager-kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes/SAMPLE.md)
74+
75+
76+
## Troubleshooting
77+
78+
## Next steps
79+
80+
## Contributing
81+
82+
For details on contributing to this repository, see the [contributing guide][cg].
83+
84+
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.microsoft.com>.
85+
86+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
87+
88+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact <[email protected]> with any additional questions or comments.
89+
90+
<!-- LINKS -->
91+
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
92+
[docs]: https://azure.github.io/azure-sdk-for-java/
93+
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
94+
[azure_subscription]: https://azure.microsoft.com/free/
95+
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
96+
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
97+
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
98+
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
99+
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
100+
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101+
[coc]: https://opensource.microsoft.com/codeofconduct/
102+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
# Code snippets and samples
2+
3+
4+
## ExtensionTypes
5+
6+
- [ClusterGetVersion](#extensiontypes_clustergetversion)
7+
- [ClusterListVersions](#extensiontypes_clusterlistversions)
8+
- [Get](#extensiontypes_get)
9+
- [GetVersion](#extensiontypes_getversion)
10+
- [List](#extensiontypes_list)
11+
- [ListVersions](#extensiontypes_listversions)
12+
- [LocationGet](#extensiontypes_locationget)
13+
- [LocationList](#extensiontypes_locationlist)
14+
### ExtensionTypes_ClusterGetVersion
15+
16+
```java
17+
/**
18+
* Samples for ExtensionTypes ListVersions.
19+
*/
20+
public final class ExtensionTypesListVersionsSamples {
21+
/*
22+
* x-ms-original-file:
23+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
24+
* 2024-11-01-preview/examples/ListExtensionTypeVersionsByLocation.json
25+
*/
26+
/**
27+
* Sample code: List Extension Type Versions.
28+
*
29+
* @param manager Entry point to ExtensionTypesManager.
30+
*/
31+
public static void listExtensionTypeVersions(
32+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
33+
manager.extensionTypes()
34+
.listVersions("westus", "extensionType1", "stable", "connectedCluster", "2", true,
35+
com.azure.core.util.Context.NONE);
36+
}
37+
}
38+
```
39+
40+
### ExtensionTypes_ClusterListVersions
41+
42+
```java
43+
/**
44+
* Samples for ExtensionTypes LocationGet.
45+
*/
46+
public final class ExtensionTypesLocationGetSamples {
47+
/*
48+
* x-ms-original-file:
49+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
50+
* 2024-11-01-preview/examples/GetExtensionTypeByLocation.json
51+
*/
52+
/**
53+
* Sample code: Get Extension Type.
54+
*
55+
* @param manager Entry point to ExtensionTypesManager.
56+
*/
57+
public static void getExtensionType(
58+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
59+
manager.extensionTypes().locationGetWithResponse("westus2", "extensionType1", com.azure.core.util.Context.NONE);
60+
}
61+
}
62+
```
63+
64+
### ExtensionTypes_Get
65+
66+
```java
67+
/**
68+
* Samples for ExtensionTypes LocationList.
69+
*/
70+
public final class ExtensionTypesLocationListSamples {
71+
/*
72+
* x-ms-original-file:
73+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
74+
* 2024-11-01-preview/examples/ListExtensionTypesByLocation.json
75+
*/
76+
/**
77+
* Sample code: List Extension Types.
78+
*
79+
* @param manager Entry point to ExtensionTypesManager.
80+
*/
81+
public static void listExtensionTypes(
82+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
83+
manager.extensionTypes()
84+
.locationList("westus2", "myPublisherId", "myOfferId", "myPlanId", "stable", "connectedCluster",
85+
com.azure.core.util.Context.NONE);
86+
}
87+
}
88+
```
89+
90+
### ExtensionTypes_GetVersion
91+
92+
```java
93+
/**
94+
* Samples for ExtensionTypes GetVersion.
95+
*/
96+
public final class ExtensionTypesGetVersionSamples {
97+
/*
98+
* x-ms-original-file:
99+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
100+
* 2024-11-01-preview/examples/GetExtensionTypeVersionByLocation.json
101+
*/
102+
/**
103+
* Sample code: List Extension Type Versions.
104+
*
105+
* @param manager Entry point to ExtensionTypesManager.
106+
*/
107+
public static void listExtensionTypeVersions(
108+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
109+
manager.extensionTypes()
110+
.getVersionWithResponse("westus", "extensionType1", "1.20.0", com.azure.core.util.Context.NONE);
111+
}
112+
}
113+
```
114+
115+
### ExtensionTypes_List
116+
117+
```java
118+
/**
119+
* Samples for ExtensionTypes ClusterGetVersion.
120+
*/
121+
public final class ExtensionTypesClusterGetVersionSamples {
122+
/*
123+
* x-ms-original-file:
124+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
125+
* 2024-11-01-preview/examples/GetExtensionTypeVersion.json
126+
*/
127+
/**
128+
* Sample code: List Extension Type Versions.
129+
*
130+
* @param manager Entry point to ExtensionTypesManager.
131+
*/
132+
public static void listExtensionTypeVersions(
133+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
134+
manager.extensionTypes()
135+
.clusterGetVersionWithResponse("rg1", "Microsoft.Kubernetes", "connectedClusters", "my-cluster",
136+
"my-extension-type", "v1.3.2", com.azure.core.util.Context.NONE);
137+
}
138+
}
139+
```
140+
141+
### ExtensionTypes_ListVersions
142+
143+
```java
144+
/**
145+
* Samples for ExtensionTypes ClusterListVersions.
146+
*/
147+
public final class ExtensionTypesClusterListVersionsSamples {
148+
/*
149+
* x-ms-original-file:
150+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
151+
* 2024-11-01-preview/examples/ListExtensionTypeVersions.json
152+
*/
153+
/**
154+
* Sample code: List Extension Type Versions.
155+
*
156+
* @param manager Entry point to ExtensionTypesManager.
157+
*/
158+
public static void listExtensionTypeVersions(
159+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
160+
manager.extensionTypes()
161+
.clusterListVersions("rg1", "Microsoft.Kubernetes", "connectedClusters", "my-cluster", "my-extension-type",
162+
"stable", "2", true, com.azure.core.util.Context.NONE);
163+
}
164+
}
165+
```
166+
167+
### ExtensionTypes_LocationGet
168+
169+
```java
170+
/**
171+
* Samples for ExtensionTypes List.
172+
*/
173+
public final class ExtensionTypesListSamples {
174+
/*
175+
* x-ms-original-file:
176+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
177+
* 2024-11-01-preview/examples/ListExtensionTypes.json
178+
*/
179+
/**
180+
* Sample code: Get Extension Types.
181+
*
182+
* @param manager Entry point to ExtensionTypesManager.
183+
*/
184+
public static void getExtensionTypes(
185+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
186+
manager.extensionTypes()
187+
.list("rg1", "Microsoft.Kubernetes", "connectedClusters", "my-cluster", "myPublisherId", "myOfferId",
188+
"myPlanId", "stable", com.azure.core.util.Context.NONE);
189+
}
190+
}
191+
```
192+
193+
### ExtensionTypes_LocationList
194+
195+
```java
196+
/**
197+
* Samples for ExtensionTypes Get.
198+
*/
199+
public final class ExtensionTypesGetSamples {
200+
/*
201+
* x-ms-original-file:
202+
* specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/preview/
203+
* 2024-11-01-preview/examples/GetExtensionType.json
204+
*/
205+
/**
206+
* Sample code: Get Extension Types.
207+
*
208+
* @param manager Entry point to ExtensionTypesManager.
209+
*/
210+
public static void getExtensionTypes(
211+
com.azure.resourcemanager.kubernetesconfigurationmicrosoftkubernetesconfigurationextensiontypes.ExtensionTypesManager manager) {
212+
manager.extensionTypes()
213+
.getWithResponse("rg1", "Microsoft.Kubernetes", "connectedClusters", "my-cluster", "my-extension-type",
214+
com.azure.core.util.Context.NONE);
215+
}
216+
}
217+
```
218+

0 commit comments

Comments
 (0)