Skip to content
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
1 change: 1 addition & 0 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ com.azure:azure-communication-email;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-identity-providers-core;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-identity-providers-jdbc-mysql;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-identity-providers-jdbc-postgresql;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-developer-loadtesting;1.0.0-beta.1;1.0.0-beta.1
com.azure.spring:azure-spring-cloud-appconfiguration-config-web;2.9.0;2.10.0-beta.1
com.azure.spring:azure-spring-cloud-appconfiguration-config;2.9.0;2.10.0-beta.1
com.azure.spring:azure-spring-cloud-feature-management-web;2.8.0;2.9.0-beta.1
Expand Down
13 changes: 13 additions & 0 deletions sdk/loadtestservice/azure-developer-loadtesting/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Release History

## 1.0.0-beta.1 (Unreleased)

- Azure LoadTestingClient client library for Java. This package contains Microsoft Azure LoadTestingClient client library.

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
63 changes: 63 additions & 0 deletions sdk/loadtestservice/azure-developer-loadtesting/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Azure LoadTestingClient client library for Java

Azure LoadTestingClient client library for Java.

This package contains Microsoft Azure LoadTestingClient client library.

## Documentation

Various documentation is available to help you get started

- [API reference documentation][docs]
- [Product documentation][product_documentation]

## Getting started

### Prerequisites

- [Java Development Kit (JDK)][jdk] with version 8 or above
- [Azure Subscription][azure_subscription]

### Adding the package to your product

[//]: # ({x-version-update-start;com.azure:azure-developer-loadtesting;current})
```xml
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-developer-loadtesting</artifactId>
<version>1.0.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})

### Authentication

[Azure Identity][azure_identity] package provides the default implementation for authenticating the client.

## Key concepts

## Examples

```java com.azure.developer.loadtesting.readme
```

## Troubleshooting

## Next steps

## Contributing

For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).

1. Fork it
1. Create your feature branch (`git checkout -b my-new-feature`)
1. Commit your changes (`git commit -am 'Add some feature'`)
1. Push to the branch (`git push origin my-new-feature`)
1. Create new Pull Request

<!-- LINKS -->
[product_documentation]: https://azure.microsoft.com/services/
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
85 changes: 85 additions & 0 deletions sdk/loadtestservice/azure-developer-loadtesting/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
<artifactId>azure-client-sdk-parent</artifactId>
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
<relativePath>../../parents/azure-client-sdk-parent</relativePath>
</parent>

<groupId>com.azure</groupId>
<artifactId>azure-developer-loadtesting</artifactId>
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure:azure-developer-loadtesting;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for LoadTestingClient Management</name>
<description>This package contains Microsoft Azure LoadTestingClient client library.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<developerConnection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.33.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-netty</artifactId>
<version>1.12.6</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} -->
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.8.2</version> <!-- {x-version-update;org.junit.jupiter:junit-jupiter-engine;external_dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.5.1</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-test</artifactId>
<version>1.12.1</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.6.1</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.36</version> <!-- {x-version-update;org.slf4j:slf4j-simple;external_dependency} -->
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.developer.loadtesting;

import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceClient;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.exception.ClientAuthenticationException;
import com.azure.core.exception.HttpResponseException;
import com.azure.core.exception.ResourceModifiedException;
import com.azure.core.exception.ResourceNotFoundException;
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.http.rest.Response;
import com.azure.core.util.BinaryData;
import com.azure.developer.loadtesting.implementation.AppComponentsImpl;
import reactor.core.publisher.Mono;

/** Initializes a new instance of the asynchronous LoadTestingClient type. */
@ServiceClient(builder = AppComponentClientBuilder.class, isAsync = true)
public final class AppComponentAsyncClient {
@Generated private final AppComponentsImpl serviceClient;

/**
* Initializes an instance of AppComponentAsyncClient class.
*
* @param serviceClient the service client implementation.
*/
@Generated
AppComponentAsyncClient(AppComponentsImpl serviceClient) {
this.serviceClient = serviceClient;
}

/**
* Associate an app component (Azure resource) to a test or test run.
*
* <p><strong>Request Body Schema</strong>
*
* <pre>{@code
* {
* resourceId: String (Optional)
* testId: String (Optional)
* testRunId: String (Optional)
* name: String (Optional)
* value (Required): {
* String (Required): {
* resourceId: String (Required)
* resourceName: String (Required)
* resourceType: String (Optional)
* displayName: String (Optional)
* resourceGroup: String (Optional)
* subscriptionId: String (Optional)
* kind: String (Optional)
* }
* }
* }
* }</pre>
*
* <p><strong>Response Body Schema</strong>
*
* <pre>{@code
* {
* resourceId: String (Optional)
* testId: String (Optional)
* testRunId: String (Optional)
* name: String (Optional)
* value (Required): {
* String (Required): {
* resourceId: String (Required)
* resourceName: String (Required)
* resourceType: String (Optional)
* displayName: String (Optional)
* resourceGroup: String (Optional)
* subscriptionId: String (Optional)
* kind: String (Optional)
* }
* }
* }
* }</pre>
*
* @param name Unique name of the app component, must contain only lower-case alphabetic, numeric, underscore or
* hyphen characters.
* @param body App Component model.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return app Components model along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> createOrUpdateWithResponse(
String name, BinaryData body, RequestOptions requestOptions) {
return this.serviceClient.createOrUpdateWithResponseAsync(name, body, requestOptions);
}

/**
* Delete an app component.
*
* @param name Unique name of the app component, must contain only lower-case alphabetic, numeric, underscore or
* hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<Void>> deleteWithResponse(String name, RequestOptions requestOptions) {
return this.serviceClient.deleteWithResponseAsync(name, requestOptions);
}

/**
* Get app Component details by unique name.
*
* <p><strong>Response Body Schema</strong>
*
* <pre>{@code
* {
* resourceId: String (Optional)
* testId: String (Optional)
* testRunId: String (Optional)
* name: String (Optional)
* value (Required): {
* String (Required): {
* resourceId: String (Required)
* resourceName: String (Required)
* resourceType: String (Optional)
* displayName: String (Optional)
* resourceGroup: String (Optional)
* subscriptionId: String (Optional)
* kind: String (Optional)
* }
* }
* }
* }</pre>
*
* @param name Unique name of the app component, must contain only lower-case alphabetic, numeric, underscore or
* hyphen characters.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return app Component details by unique name along with {@link Response} on successful completion of {@link
* Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> getWithResponse(String name, RequestOptions requestOptions) {
return this.serviceClient.getWithResponseAsync(name, requestOptions);
}

/**
* Get an app component for a test or a test run by its name.
*
* <p><strong>Query Parameters</strong>
*
* <table border="1">
* <caption>Query Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>testRunId</td><td>String</td><td>No</td><td>Required testRunId, if testId field is not provided</td></tr>
* </table>
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
*
* <p><strong>Response Body Schema</strong>
*
* <pre>{@code
* {
* resourceId: String (Optional)
* testId: String (Optional)
* testRunId: String (Optional)
* name: String (Optional)
* value (Required): {
* String (Required): {
* resourceId: String (Required)
* resourceName: String (Required)
* resourceType: String (Optional)
* displayName: String (Optional)
* resourceGroup: String (Optional)
* subscriptionId: String (Optional)
* kind: String (Optional)
* }
* }
* }
* }</pre>
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return an app component for a test or a test run by its name along with {@link Response} on successful
* completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> getByTestOrTestRunWithResponse(RequestOptions requestOptions) {
return this.serviceClient.getByTestOrTestRunWithResponseAsync(requestOptions);
}
}
Loading