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
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 (2022-09-23)

- Azure Resource Manager LoadTest client library for Java. This package contains Microsoft Azure SDK for LoadTest Management SDK. LoadTest client provides access to LoadTest Resource and it's status operations. Package tag package-2022-12-01. 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager LoadTest client library for Java.

This package contains Microsoft Azure SDK for LoadTest Management SDK. LoadTest client provides access to LoadTest Resource and it's status operations. Package tag package-2021-12-01-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 LoadTest Management SDK. LoadTest client provides access to LoadTest Resource and it's status operations. Package tag package-2022-12-01. 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-loadtestservice</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
128 changes: 118 additions & 10 deletions sdk/loadtestservice/azure-resourcemanager-loadtestservice/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@
- [GetByResourceGroup](#loadtests_getbyresourcegroup)
- [List](#loadtests_list)
- [ListByResourceGroup](#loadtests_listbyresourcegroup)
- [ListOutboundNetworkDependenciesEndpoints](#loadtests_listoutboundnetworkdependenciesendpoints)
- [Update](#loadtests_update)

## Operations

- [List](#operations_list)

## Quotas

- [CheckAvailability](#quotas_checkavailability)
- [Get](#quotas_get)
- [List](#quotas_list)
### LoadTests_CreateOrUpdate

```java
Expand All @@ -22,7 +29,7 @@ import java.util.Map;
/** Samples for LoadTests CreateOrUpdate. */
public final class LoadTestsCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2021-12-01-preview/examples/LoadTests_CreateOrUpdate.json
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json
*/
/**
* Sample code: LoadTests_CreateOrUpdate.
Expand Down Expand Up @@ -61,7 +68,7 @@ import com.azure.core.util.Context;
/** Samples for LoadTests Delete. */
public final class LoadTestsDeleteSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2021-12-01-preview/examples/LoadTests_Delete.json
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json
*/
/**
* Sample code: LoadTests_Delete.
Expand All @@ -82,7 +89,7 @@ import com.azure.core.util.Context;
/** Samples for LoadTests GetByResourceGroup. */
public final class LoadTestsGetByResourceGroupSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2021-12-01-preview/examples/LoadTests_Get.json
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json
*/
/**
* Sample code: LoadTests_Get.
Expand All @@ -103,7 +110,7 @@ import com.azure.core.util.Context;
/** Samples for LoadTests List. */
public final class LoadTestsListSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2021-12-01-preview/examples/LoadTests_ListBySubscription.json
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json
*/
/**
* Sample code: LoadTests_ListBySubscription.
Expand All @@ -124,7 +131,7 @@ import com.azure.core.util.Context;
/** Samples for LoadTests ListByResourceGroup. */
public final class LoadTestsListByResourceGroupSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2021-12-01-preview/examples/LoadTests_ListByResourceGroup.json
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json
*/
/**
* Sample code: LoadTests_ListByResourceGroup.
Expand All @@ -137,20 +144,44 @@ public final class LoadTestsListByResourceGroupSamples {
}
```

### LoadTests_ListOutboundNetworkDependenciesEndpoints

```java
import com.azure.core.util.Context;

/** Samples for LoadTests ListOutboundNetworkDependenciesEndpoints. */
public final class LoadTestsListOutboundNetworkDependenciesEndpointsSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json
*/
/**
* Sample code: ListOutboundNetworkDependencies.
*
* @param manager Entry point to LoadTestManager.
*/
public static void listOutboundNetworkDependencies(
com.azure.resourcemanager.loadtestservice.LoadTestManager manager) {
manager
.loadTests()
.listOutboundNetworkDependenciesEndpoints(
"default-azureloadtest-japaneast", "sampleloadtest", Context.NONE);
}
}
```

### LoadTests_Update

```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.loadtestservice.models.LoadTestResource;
import com.azure.resourcemanager.loadtestservice.models.LoadTestResourcePatchRequestBodyProperties;
import java.io.IOException;

/** Samples for LoadTests Update. */
public final class LoadTestsUpdateSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2021-12-01-preview/examples/LoadTests_Update.json
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json
*/
/**
* Sample code: LoadTests_Update.
Expand All @@ -167,8 +198,7 @@ public final class LoadTestsUpdateSamples {
SerializerFactory
.createDefaultManagementSerializerAdapter()
.deserialize("{\"Division\":\"LT\",\"Team\":\"Dev Exp\"}", Object.class, SerializerEncoding.JSON))
.withProperties(
new LoadTestResourcePatchRequestBodyProperties().withDescription("This is new load test resource"))
.withDescription("This is new load test resource")
.apply();
}
}
Expand All @@ -182,7 +212,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2021-12-01-preview/examples/Operations_List.json
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json
*/
/**
* Sample code: Operations_List.
Expand All @@ -195,3 +225,81 @@ public final class OperationsListSamples {
}
```

### Quotas_CheckAvailability

```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.loadtestservice.models.QuotaBucketRequest;
import com.azure.resourcemanager.loadtestservice.models.QuotaBucketRequestPropertiesDimensions;

/** Samples for Quotas CheckAvailability. */
public final class QuotasCheckAvailabilitySamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_CheckAvailability.json
*/
/**
* Sample code: Quotas_CheckAvailability.
*
* @param manager Entry point to LoadTestManager.
*/
public static void quotasCheckAvailability(com.azure.resourcemanager.loadtestservice.LoadTestManager manager) {
manager
.quotas()
.checkAvailabilityWithResponse(
"westus",
"testQuotaBucket",
new QuotaBucketRequest()
.withCurrentUsage(20)
.withCurrentQuota(40)
.withNewQuota(50)
.withDimensions(
new QuotaBucketRequestPropertiesDimensions()
.withSubscriptionId("testsubscriptionId")
.withLocation("westus")),
Context.NONE);
}
}
```

### Quotas_Get

```java
import com.azure.core.util.Context;

/** Samples for Quotas Get. */
public final class QuotasGetSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_Get.json
*/
/**
* Sample code: Quotas_Get.
*
* @param manager Entry point to LoadTestManager.
*/
public static void quotasGet(com.azure.resourcemanager.loadtestservice.LoadTestManager manager) {
manager.quotas().getWithResponse("westus", "testQuotaBucket", Context.NONE);
}
}
```

### Quotas_List

```java
import com.azure.core.util.Context;

/** Samples for Quotas List. */
public final class QuotasListSamples {
/*
* x-ms-original-file: specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_List.json
*/
/**
* Sample code: Quotas_List.
*
* @param manager Entry point to LoadTestManager.
*/
public static void quotasList(com.azure.resourcemanager.loadtestservice.LoadTestManager manager) {
manager.quotas().list("westus", Context.NONE);
}
}
```

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for LoadTest Management</name>
<description>This package contains Microsoft Azure SDK for LoadTest Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. LoadTest client provides access to LoadTest Resource and it's status operations. Package tag package-2021-12-01-preview.</description>
<description>This package contains Microsoft Azure SDK for LoadTest Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. LoadTest client provides access to LoadTest Resource and it's status operations. Package tag package-2022-12-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Loading