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
4 changes: 3 additions & 1 deletion sdk/workloads/azure-resourcemanager-workloads/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 (2022-10-26)

- Azure Resource Manager Workloads client library for Java. This package contains Microsoft Azure SDK for Workloads Management SDK. Workloads client provides access to various workload 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).

### Features Added

Expand Down
2 changes: 1 addition & 1 deletion sdk/workloads/azure-resourcemanager-workloads/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-workloads</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
987 changes: 761 additions & 226 deletions sdk/workloads/azure-resourcemanager-workloads/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
/** An instance of this class provides access to all the operations defined in MonitorsClient. */
public interface MonitorsClient {
/**
* Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP
* monitor.
* Gets a list of SAP monitors in the specified subscription.
*
* <p>Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each
* SAP monitor.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -29,8 +31,10 @@ public interface MonitorsClient {
PagedIterable<MonitorInner> list();

/**
* Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP
* monitor.
* Gets a list of SAP monitors in the specified subscription.
*
* <p>Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each
* SAP monitor.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -42,7 +46,9 @@ public interface MonitorsClient {
PagedIterable<MonitorInner> list(Context context);

/**
* Gets a list of SAP monitors in the specified resource group.
* Gets a list of SAP monitors
*
* <p>Gets a list of SAP monitors in the specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -54,7 +60,9 @@ public interface MonitorsClient {
PagedIterable<MonitorInner> listByResourceGroup(String resourceGroupName);

/**
* Gets a list of SAP monitors in the specified resource group.
* Gets a list of SAP monitors
*
* <p>Gets a list of SAP monitors in the specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
Expand All @@ -67,36 +75,42 @@ public interface MonitorsClient {
PagedIterable<MonitorInner> listByResourceGroup(String resourceGroupName, Context context);

/**
* Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
* Gets properties of a SAP monitor.
*
* <p>Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return properties of a SAP monitor for the specified subscription, resource group, and resource name.
* @return properties of a SAP monitor for the specified subscription, resource group, and resource name along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MonitorInner getByResourceGroup(String resourceGroupName, String monitorName);
Response<MonitorInner> getByResourceGroupWithResponse(
String resourceGroupName, String monitorName, Context context);

/**
* Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
* Gets properties of a SAP monitor.
*
* <p>Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return properties of a SAP monitor for the specified subscription, resource group, and resource name along with
* {@link Response}.
* @return properties of a SAP monitor for the specified subscription, resource group, and resource name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MonitorInner> getByResourceGroupWithResponse(
String resourceGroupName, String monitorName, Context context);
MonitorInner getByResourceGroup(String resourceGroupName, String monitorName);

/**
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
* Creates a SAP monitor.
*
* <p>Creates a SAP monitor for the specified subscription, resource group, and resource name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -112,7 +126,9 @@ SyncPoller<PollResult<MonitorInner>, MonitorInner> beginCreate(
String resourceGroupName, String monitorName, MonitorInner monitorParameter);

/**
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
* Creates a SAP monitor.
*
* <p>Creates a SAP monitor for the specified subscription, resource group, and resource name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -129,7 +145,9 @@ SyncPoller<PollResult<MonitorInner>, MonitorInner> beginCreate(
String resourceGroupName, String monitorName, MonitorInner monitorParameter, Context context);

/**
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
* Creates a SAP monitor.
*
* <p>Creates a SAP monitor for the specified subscription, resource group, and resource name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -143,7 +161,9 @@ SyncPoller<PollResult<MonitorInner>, MonitorInner> beginCreate(
MonitorInner create(String resourceGroupName, String monitorName, MonitorInner monitorParameter);

/**
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
* Creates a SAP monitor.
*
* <p>Creates a SAP monitor for the specified subscription, resource group, and resource name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -158,7 +178,9 @@ SyncPoller<PollResult<MonitorInner>, MonitorInner> beginCreate(
MonitorInner create(String resourceGroupName, String monitorName, MonitorInner monitorParameter, Context context);

/**
* Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
* Deletes a SAP monitor.
*
* <p>Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -172,7 +194,9 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
String resourceGroupName, String monitorName);

/**
* Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
* Deletes a SAP monitor.
*
* <p>Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -187,7 +211,9 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
String resourceGroupName, String monitorName, Context context);

/**
* Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
* Deletes a SAP monitor.
*
* <p>Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -200,7 +226,9 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
OperationStatusResultInner delete(String resourceGroupName, String monitorName);

/**
* Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
* Deletes a SAP monitor.
*
* <p>Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
Expand All @@ -214,32 +242,36 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
OperationStatusResultInner delete(String resourceGroupName, String monitorName, Context context);

/**
* Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.
* Patches the Tags field of a SAP monitor.
*
* <p>Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param body The Update SAP workload monitor request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return sAP monitor info on Azure (ARM properties and SAP monitor properties).
* @return sAP monitor info on Azure (ARM properties and SAP monitor properties) along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MonitorInner update(String resourceGroupName, String monitorName, UpdateMonitorRequest body);
Response<MonitorInner> updateWithResponse(
String resourceGroupName, String monitorName, UpdateMonitorRequest body, Context context);

/**
* Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.
* Patches the Tags field of a SAP monitor.
*
* <p>Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param body The Update SAP workload monitor request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return sAP monitor info on Azure (ARM properties and SAP monitor properties) along with {@link Response}.
* @return sAP monitor info on Azure (ARM properties and SAP monitor properties).
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MonitorInner> updateWithResponse(
String resourceGroupName, String monitorName, UpdateMonitorRequest body, Context context);
MonitorInner update(String resourceGroupName, String monitorName, UpdateMonitorRequest body);
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,28 @@ public interface PhpWorkloadsClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param phpWorkloadName Php workload name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the PHP workload resource.
* @return the PHP workload resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PhpWorkloadResourceInner getByResourceGroup(String resourceGroupName, String phpWorkloadName);
Response<PhpWorkloadResourceInner> getByResourceGroupWithResponse(
String resourceGroupName, String phpWorkloadName, Context context);

/**
* Gets the PHP workload resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param phpWorkloadName Php workload name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the PHP workload resource along with {@link Response}.
* @return the PHP workload resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PhpWorkloadResourceInner> getByResourceGroupWithResponse(
String resourceGroupName, String phpWorkloadName, Context context);
PhpWorkloadResourceInner getByResourceGroup(String resourceGroupName, String phpWorkloadName);

/**
* Create or updated PHP workload resource.
Expand Down Expand Up @@ -165,48 +165,46 @@ PhpWorkloadResourceInner createOrUpdate(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param phpWorkloadName Php workload name.
* @param resourcePatchRequestBody Workload resource update data.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return php workload resource.
* @return php workload resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PhpWorkloadResourceInner update(
String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody);
Response<PhpWorkloadResourceInner> updateWithResponse(
String resourceGroupName,
String phpWorkloadName,
PatchResourceRequestBody resourcePatchRequestBody,
Context context);

/**
* Update PHP workload resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param phpWorkloadName Php workload name.
* @param resourcePatchRequestBody Workload resource update data.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return php workload resource along with {@link Response}.
* @return php workload resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PhpWorkloadResourceInner> updateWithResponse(
String resourceGroupName,
String phpWorkloadName,
PatchResourceRequestBody resourcePatchRequestBody,
Context context);
PhpWorkloadResourceInner update(
String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody);

/**
* Delete PHP workload resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param phpWorkloadName Php workload name.
* @param deleteInfra Whether to delete infra along with workload resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String phpWorkloadName, String deleteInfra);
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String phpWorkloadName);

/**
* Delete PHP workload resource.
Expand All @@ -224,19 +222,6 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String phpWorkloadName, String deleteInfra, Context context);

/**
* Delete PHP workload resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param phpWorkloadName Php workload name.
* @param deleteInfra Whether to delete infra along with workload resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String phpWorkloadName, String deleteInfra);

/**
* Delete PHP workload resource.
*
Expand Down
Loading