Skip to content
Draft
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
3 changes: 2 additions & 1 deletion sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2021-10-25)

- Azure Resource Manager Batch client library for Java. This package contains Microsoft Azure SDK for Batch Management SDK. Batch Client. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.2 (2021-07-29)

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

Azure Resource Manager Batch client library for Java.

This package contains Microsoft Azure SDK for Batch Management SDK. Package tag package-2021-06. 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 Batch Management SDK. Batch Client. Package tag package-2021-06. 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-batch</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2,003 changes: 1,938 additions & 65 deletions sdk/batch/azure-resourcemanager-batch/SAMPLE.md

Large diffs are not rendered by default.

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

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

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.batch.fluent.BatchManagement;
import com.azure.resourcemanager.batch.fluent.BatchManagementClient;
import com.azure.resourcemanager.batch.implementation.ApplicationPackagesImpl;
import com.azure.resourcemanager.batch.implementation.ApplicationsImpl;
import com.azure.resourcemanager.batch.implementation.BatchAccountsImpl;
import com.azure.resourcemanager.batch.implementation.BatchManagementBuilder;
import com.azure.resourcemanager.batch.implementation.BatchManagementClientBuilder;
import com.azure.resourcemanager.batch.implementation.CertificatesImpl;
import com.azure.resourcemanager.batch.implementation.LocationsImpl;
import com.azure.resourcemanager.batch.implementation.OperationsImpl;
Expand All @@ -46,7 +46,7 @@
import java.util.List;
import java.util.Objects;

/** Entry point to BatchManager. */
/** Entry point to BatchManager. Batch Client. */
public final class BatchManager {
private BatchAccounts batchAccounts;

Expand All @@ -66,13 +66,13 @@ public final class BatchManager {

private Pools pools;

private final BatchManagement clientObject;
private final BatchManagementClient clientObject;

private BatchManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject =
new BatchManagementBuilder()
new BatchManagementClientBuilder()
.pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
Expand Down Expand Up @@ -202,7 +202,7 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.batch")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -315,10 +315,10 @@ public Pools pools() {
}

/**
* @return Wrapped service client BatchManagement providing direct access to the underlying auto-generated API
* @return Wrapped service client BatchManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*/
public BatchManagement serviceClient() {
public BatchManagementClient serviceClient() {
return this.clientObject;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public interface BatchAccountsClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters);

Expand All @@ -55,7 +55,7 @@ SyncPoller<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, Context context);

Expand Down Expand Up @@ -137,7 +137,7 @@ Response<BatchAccountInner> updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName);

/**
Expand All @@ -151,7 +151,7 @@ Response<BatchAccountInner> updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, Context context);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;

/** The interface for BatchManagement class. */
public interface BatchManagement {
/** The interface for BatchManagementClient class. */
public interface BatchManagementClient {
/**
* Gets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ CertificatesUpdateResponse updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String certificateName);

Expand All @@ -179,7 +179,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String certificateName, Context context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ PoolsUpdateResponse updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, String poolName);

/**
Expand All @@ -169,7 +169,7 @@ PoolsUpdateResponse updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String poolName, Context context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Response<PrivateEndpointConnectionInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner> beginUpdate(
String resourceGroupName,
String accountName,
Expand All @@ -118,7 +118,7 @@ SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnection
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner> beginUpdate(
String resourceGroupName,
String accountName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

/** Package containing the inner data models for BatchManagement. null. */
/** Package containing the inner data models for BatchManagementClient. Batch Client. */
package com.azure.resourcemanager.batch.fluent.models;
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

/** Package containing the service clients for BatchManagement. null. */
/** Package containing the service clients for BatchManagementClient. Batch Client. */
package com.azure.resourcemanager.batch.fluent;
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ public final class ApplicationPackagesClientImpl implements ApplicationPackagesC
private final ApplicationPackagesService service;

/** The service client containing this operation class. */
private final BatchManagementImpl client;
private final BatchManagementClientImpl client;

/**
* Initializes an instance of ApplicationPackagesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
ApplicationPackagesClientImpl(BatchManagementImpl client) {
ApplicationPackagesClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(ApplicationPackagesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for BatchManagementApplicationPackages to be used by the proxy service to
* perform REST calls.
* The interface defining all the services for BatchManagementClientApplicationPackages to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "BatchManagementAppli")
@ServiceInterface(name = "BatchManagementClien")
private interface ApplicationPackagesService {
@Headers({"Content-Type: application/json"})
@Post(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@ public final class ApplicationsClientImpl implements ApplicationsClient {
private final ApplicationsService service;

/** The service client containing this operation class. */
private final BatchManagementImpl client;
private final BatchManagementClientImpl client;

/**
* Initializes an instance of ApplicationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
ApplicationsClientImpl(BatchManagementImpl client) {
ApplicationsClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(ApplicationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for BatchManagementApplications to be used by the proxy service to
* The interface defining all the services for BatchManagementClientApplications to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "BatchManagementAppli")
@ServiceInterface(name = "BatchManagementClien")
private interface ApplicationsService {
@Headers({"Content-Type: application/json"})
@Put(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@ public final class BatchAccountsClientImpl implements BatchAccountsClient {
private final BatchAccountsService service;

/** The service client containing this operation class. */
private final BatchManagementImpl client;
private final BatchManagementClientImpl client;

/**
* Initializes an instance of BatchAccountsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
BatchAccountsClientImpl(BatchManagementImpl client) {
BatchAccountsClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(BatchAccountsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for BatchManagementBatchAccounts to be used by the proxy service to
* The interface defining all the services for BatchManagementClientBatchAccounts to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "BatchManagementBatch")
@ServiceInterface(name = "BatchManagementClien")
private interface BatchAccountsService {
@Headers({"Content-Type: application/json"})
@Put(
Expand Down Expand Up @@ -385,7 +385,7 @@ private Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux<PollResult<BatchAccountInner>, BatchAccountInner> beginCreateAsync(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters) {
Mono<Response<Flux<ByteBuffer>>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters);
Expand All @@ -411,7 +411,7 @@ private PollerFlux<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux<PollResult<BatchAccountInner>, BatchAccountInner> beginCreateAsync(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, Context context) {
context = this.client.mergeContext(context);
Expand All @@ -438,7 +438,7 @@ private PollerFlux<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters) {
return beginCreateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
Expand All @@ -460,7 +460,7 @@ public SyncPoller<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<BatchAccountInner>, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, Context context) {
return beginCreateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
Expand Down Expand Up @@ -827,7 +827,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String accountName) {
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, accountName);
return this
Expand All @@ -846,7 +846,7 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroup
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
String resourceGroupName, String accountName, Context context) {
context = this.client.mergeContext(context);
Expand All @@ -866,7 +866,7 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName) {
return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller();
}
Expand All @@ -882,7 +882,7 @@ public SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName,
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, Context context) {
return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller();
Expand Down
Loading