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-chaos] Brrusino chaos microsoft.chaos 2023 09 01 preview #6875

Closed
wants to merge 1 commit into from
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
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