Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-scvmm] sdkautomation breaking change, mgmt typespec #11067

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 73 additions & 4 deletions sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,83 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-06-28)

### Features Added
- Azure Resource Manager SCVMM client library for Java. This package contains Microsoft Azure SDK for SCVMM Management SDK. The Microsoft.ScVmm Rest API spec. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
* `ScvmmManager$Configurable` was removed

* `models.InventoryItemListResult` was removed

* `models.VmInstanceHybridIdentityMetadataListResult` was removed

* `models.VirtualMachineTemplateListResult` was removed

* `models.VirtualNetworkListResult` was removed

* `models.AvailabilitySetListResult` was removed

* `models.OperationListResult` was removed

* `models.VmmServerListResult` was removed

* `models.CloudListResult` was removed

* `ScvmmManager` was removed

* `models.VirtualMachineInstanceListResult` was removed

* `models.GuestAgentListResult` was removed

#### `models.Checkpoint` was modified

* `withName(java.lang.String)` was removed
* `withParentCheckpointId(java.lang.String)` was removed
* `withCheckpointId(java.lang.String)` was removed
* `withDescription(java.lang.String)` was removed

#### `models.StorageQosPolicy` was modified

* `withBandwidthLimit(java.lang.Long)` was removed
* `withIopsMaximum(java.lang.Long)` was removed
* `withIopsMinimum(java.lang.Long)` was removed
* `withPolicyId(java.lang.String)` was removed
* `withId(java.lang.String)` was removed
* `withName(java.lang.String)` was removed

#### `models.VmInstanceHybridIdentityMetadataProperties` was modified

* `withResourceUid(java.lang.String)` was removed
* `withPublicKey(java.lang.String)` was removed

### Features Added

* `implementation.models.VirtualMachineInstanceListResult` was added

* `implementation.models.VmmServerListResult` was added

* `SCVMMManager` was added

* `SCVMMManager$Configurable` was added

* `implementation.models.VirtualNetworkListResult` was added

* `implementation.models.InventoryItemListResult` was added

* `implementation.models.GuestAgentListResult` was added

* `implementation.models.VirtualMachineTemplateListResult` was added

* `implementation.models.AvailabilitySetListResult` was added

* `implementation.models.VmInstanceHybridIdentityMetadataListResult` was added

* `implementation.models.OperationListResult` was added

* `implementation.models.CloudListResult` was added

### Other Changes
* `models.ExtensionResource` was added

## 1.0.0 (2024-06-26)

Expand Down
21 changes: 12 additions & 9 deletions sdk/scvmm/azure-resourcemanager-scvmm/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Azure Resource Manager Scvmm client library for Java
# Azure Resource Manager SCVMM client library for Java

Azure Resource Manager Scvmm client library for Java.
Azure Resource Manager SCVMM client library for Java.

This package contains Microsoft Azure SDK for Scvmm Management SDK. SCVMM Client. Package tag package-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for SCVMM Management SDK. The Microsoft.ScVmm Rest API spec. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-scvmm</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,18 +45,22 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.

Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.

Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.

With above configuration, `azure` client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
ScvmmManager manager = ScvmmManager
SCVMMManager manager = SCVMMManager
.authenticate(credential, profile);
```

Expand Down Expand Up @@ -93,7 +97,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
Expand Down
Loading