Skip to content

Commit

Permalink
CodeGen from PR 31664 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5c0396fc45ebc0b15c4bd58e61fc763c5eff9d47 into 43ce04961ccb6496e421789c54798ba1e0880f64
  • Loading branch information
SDKAuto committed Nov 29, 2024
1 parent 8b0eef6 commit f1c6cdf
Show file tree
Hide file tree
Showing 236 changed files with 13,192 additions and 5,955 deletions.
306 changes: 302 additions & 4 deletions sdk/chaos/azure-resourcemanager-chaos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,312 @@
# Release History

## 1.2.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-11-29)

### Features Added
- Azure Resource Manager Chaos client library for Java. This package contains Microsoft Azure SDK for Chaos Management SDK. Chaos Management 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).

### Breaking Changes

### Bugs Fixed
#### `models.ResourceIdentity` was removed

#### `models.ResourceIdentityType` was removed

#### `models.OperationStatus` was removed

#### `models.TargetType` was modified

* `location()` was removed

#### `models.Experiment` was modified

* `models.ResourceIdentity identity()` -> `models.ManagedServiceIdentity identity()`

#### `models.ExperimentUpdate` was modified

* `models.ResourceIdentity identity()` -> `models.ManagedServiceIdentity identity()`
* `withIdentity(models.ResourceIdentity)` was removed

#### `models.ExperimentExecutionDetails` was modified

* `startedAt()` was removed
* `runInformation()` was removed
* `status()` was removed
* `stoppedAt()` was removed
* `failureReason()` was removed
* `lastActionAt()` was removed

#### `models.CapabilityType` was modified

* `location()` was removed

#### `models.Experiment$Definition` was modified

* `withIdentity(models.ResourceIdentity)` was removed

#### `models.ChaosTargetSelector` was modified

* `withAdditionalProperties(java.util.Map)` was removed
* `additionalProperties()` was removed

#### `models.Experiment$Update` was modified

* `withIdentity(models.ResourceIdentity)` was removed

#### `models.OperationStatuses` was modified

* `models.OperationStatus get(java.lang.String,java.lang.String)` -> `models.OperationStatusResult get(java.lang.String,java.lang.String)`

### Features Added

* `models.PrivateAccess` was added

* `models.PrivateEndpointConnection` was added

* `models.PrivateEndpointServiceConnectionStatus` was added

* `models.CustomerDataStorageProperties` was added

* `models.PrivateLinkResource` was added

* `models.OperationStatusResult` was added

* `models.PrivateAccess$Update` was added

* `models.PublicNetworkAccessOption` was added

* `models.PrivateAccessPatch` was added

* `models.PrivateAccess$DefinitionStages` was added

* `models.ExperimentActionType` was added

* `models.PrivateAccess$Definition` was added

* `models.PrivateLinkServiceConnectionState` was added

* `models.ExperimentExecutionDetailsProperties` was added

* `models.PrivateEndpoint` was added

* `models.ManagedServiceIdentityType` was added

* `models.PrivateAccessListResult` was added

* `models.PrivateAccess$UpdateStages` was added

* `models.PrivateEndpointConnectionListResult` was added

* `models.PrivateAccesses` was added

* `models.ManagedServiceIdentity` was added

* `models.PrivateLinkResourceListResult` was added

#### `models.ChaosTargetListSelector` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `type()` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.OperationDisplay` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ChaosTargetSimpleFilterParameters` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.OperationListResult` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ContinuousAction` was modified

* `type()` was added
* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.ExperimentExecution` was modified

* `systemData()` was added
* `provisioningState()` was added

#### `models.ChaosExperimentBranch` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ChaosExperimentStep` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ChaosExperimentAction` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added
* `type()` was added

#### `models.Experiment` was modified

* `customerDataStorage()` was added

#### `models.DiscreteAction` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `type()` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ActionStatus` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.CapabilityListResult` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `withValue(java.util.List)` was added
* `withNextLink(java.lang.String)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ExperimentExecutionActionTargetDetailsProperties` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ExperimentUpdate` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `withIdentity(models.ManagedServiceIdentity)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.TargetListResult` was modified

* `withValue(java.util.List)` was added
* `fromJson(com.azure.json.JsonReader)` was added
* `withNextLink(java.lang.String)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.UserAssignedIdentity` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.ExperimentExecutionDetails` was modified

* `properties()` was added

#### `models.DelayAction` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added
* `type()` was added

#### `models.CapabilityTypeListResult` was modified

* `withNextLink(java.lang.String)` was added
* `toJson(com.azure.json.JsonWriter)` was added
* `withValue(java.util.List)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ChaosTargetQuerySelector` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `type()` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.ExperimentExecutionDetailsPropertiesRunInformation` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.StepStatus` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.CapabilityTypePropertiesRuntimeProperties` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.ExperimentExecutionActionTargetDetailsError` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.ExperimentListResult` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `withNextLink(java.lang.String)` was added
* `withValue(java.util.List)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.ExperimentExecutionListResult` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `withValue(java.util.List)` was added
* `withNextLink(java.lang.String)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.KeyValuePair` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.ChaosTargetFilter` was modified

* `type()` was added
* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.ChaosTargetSimpleFilter` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `type()` was added
* `fromJson(com.azure.json.JsonReader)` was added

#### `models.Experiment$Definition` was modified

* `withIdentity(models.ManagedServiceIdentity)` was added
* `withCustomerDataStorage(models.CustomerDataStorageProperties)` was added

#### `models.BranchStatus` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.TargetTypeListResult` was modified

* `toJson(com.azure.json.JsonWriter)` was added
* `withValue(java.util.List)` was added
* `fromJson(com.azure.json.JsonReader)` was added
* `withNextLink(java.lang.String)` was added

#### `models.Capability` was modified

* `provisioningState()` was added

#### `models.ChaosTargetSelector` was modified

* `type()` was added
* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `ChaosManager` was modified

* `privateAccesses()` was added

#### `models.TargetReference` was modified

* `fromJson(com.azure.json.JsonReader)` was added
* `toJson(com.azure.json.JsonWriter)` was added

#### `models.Experiment$Update` was modified

### Other Changes
* `withIdentity(models.ManagedServiceIdentity)` was added

## 1.1.0 (2024-03-15)

Expand Down
28 changes: 19 additions & 9 deletions sdk/chaos/azure-resourcemanager-chaos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Chaos client library for Java.

This package contains Microsoft Azure SDK for Chaos Management SDK. Chaos Management Client. Package tag package-2024-01. 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 Chaos Management SDK. Chaos Management 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).

## 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-chaos</artifactId>
<version>1.1.0</version>
<version>1.2.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

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

- `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.
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.

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:
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
Expand All @@ -74,6 +70,19 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

```java
keyVaultManager.vaults()
.define(kvName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withRoleBasedAccessControl()
.withSku(SkuName.STANDARD)
.create();

target = chaosManager.targets()
.createOrUpdate(resourceGroupName, "microsoft.keyvault", "vaults", kvName, "microsoft-keyvault",
new TargetInner().withLocation(REGION.name()).withProperties(Collections.emptyMap()));
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/chaos/azure-resourcemanager-chaos/SAMPLE.md)


Expand All @@ -97,6 +106,7 @@ 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

0 comments on commit f1c6cdf

Please sign in to comment.