Skip to content

Commit

Permalink
CodeGen from PR 25708 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 1574be2c470d7e90f47b079947d53d7323528728 into 1d7059db3c66d17d75e325d15c597ebbecfc60f4
  • Loading branch information
SDKAuto committed Sep 22, 2023
1 parent 0e64e66 commit 0d0fdba
Show file tree
Hide file tree
Showing 132 changed files with 1,775 additions and 3,907 deletions.
4 changes: 3 additions & 1 deletion sdk/chaos/azure-resourcemanager-chaos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2023-09-22)

- 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-2023-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
4 changes: 2 additions & 2 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-2023-04-15-preview. 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-2023-09. 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.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
99 changes: 62 additions & 37 deletions sdk/chaos/azure-resourcemanager-chaos/SAMPLE.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sdk/chaos/azure-resourcemanager-chaos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Chaos Management</name>
<description>This package contains Microsoft Azure SDK for Chaos Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Chaos Management Client. Package tag package-2023-04-15-preview.</description>
<description>This package contains Microsoft Azure SDK for Chaos Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Chaos Management Client. Package tag package-preview-2023-09.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
import com.azure.resourcemanager.chaos.implementation.CapabilityTypesImpl;
import com.azure.resourcemanager.chaos.implementation.ChaosManagementClientBuilder;
import com.azure.resourcemanager.chaos.implementation.ExperimentsImpl;
import com.azure.resourcemanager.chaos.implementation.OperationStatusesImpl;
import com.azure.resourcemanager.chaos.implementation.OperationsImpl;
import com.azure.resourcemanager.chaos.implementation.TargetTypesImpl;
import com.azure.resourcemanager.chaos.implementation.TargetsImpl;
import com.azure.resourcemanager.chaos.models.Capabilities;
import com.azure.resourcemanager.chaos.models.CapabilityTypes;
import com.azure.resourcemanager.chaos.models.Experiments;
import com.azure.resourcemanager.chaos.models.OperationStatuses;
import com.azure.resourcemanager.chaos.models.Operations;
import com.azure.resourcemanager.chaos.models.TargetTypes;
import com.azure.resourcemanager.chaos.models.Targets;
Expand All @@ -58,6 +60,8 @@ public final class ChaosManager {

private Targets targets;

private OperationStatuses operationStatuses;

private final ChaosManagementClient clientObject;

private ChaosManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -353,8 +357,22 @@ public Targets targets() {
}

/**
* @return Wrapped service client ChaosManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
* Gets the resource collection API of OperationStatuses.
*
* @return Resource collection API of OperationStatuses.
*/
public OperationStatuses operationStatuses() {
if (this.operationStatuses == null) {
this.operationStatuses = new OperationStatusesImpl(clientObject.getOperationStatuses(), this);
}
return operationStatuses;
}

/**
* Gets wrapped service client ChaosManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client ChaosManagementClient.
*/
public ChaosManagementClient serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,11 @@ public interface ChaosManagementClient {
* @return the TargetsClient object.
*/
TargetsClient getTargets();

/**
* Gets the OperationStatusesClient object to access its operations.
*
* @return the OperationStatusesClient object.
*/
OperationStatusesClient getOperationStatuses();
}
Loading

0 comments on commit 0d0fdba

Please sign in to comment.