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
3 changes: 2 additions & 1 deletion sdk/workloads/azure-resourcemanager-workloads/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Release History

## 1.0.0-beta.1 (2022-05-16)
## 1.0.0-beta.1 (2022-05-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).

2,158 changes: 2,108 additions & 50 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 @@ -26,11 +26,27 @@
import com.azure.resourcemanager.workloads.fluent.WorkloadsClient;
import com.azure.resourcemanager.workloads.implementation.MonitorsImpl;
import com.azure.resourcemanager.workloads.implementation.OperationsImpl;
import com.azure.resourcemanager.workloads.implementation.PhpWorkloadsImpl;
import com.azure.resourcemanager.workloads.implementation.ProviderInstancesImpl;
import com.azure.resourcemanager.workloads.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.workloads.implementation.SapApplicationServerInstancesImpl;
import com.azure.resourcemanager.workloads.implementation.SapCentralInstancesImpl;
import com.azure.resourcemanager.workloads.implementation.SapDatabaseInstancesImpl;
import com.azure.resourcemanager.workloads.implementation.SapVirtualInstancesImpl;
import com.azure.resourcemanager.workloads.implementation.SkusImpl;
import com.azure.resourcemanager.workloads.implementation.WordpressInstancesImpl;
import com.azure.resourcemanager.workloads.implementation.WorkloadsClientBuilder;
import com.azure.resourcemanager.workloads.models.Monitors;
import com.azure.resourcemanager.workloads.models.Operations;
import com.azure.resourcemanager.workloads.models.PhpWorkloads;
import com.azure.resourcemanager.workloads.models.ProviderInstances;
import com.azure.resourcemanager.workloads.models.ResourceProviders;
import com.azure.resourcemanager.workloads.models.SapApplicationServerInstances;
import com.azure.resourcemanager.workloads.models.SapCentralInstances;
import com.azure.resourcemanager.workloads.models.SapDatabaseInstances;
import com.azure.resourcemanager.workloads.models.SapVirtualInstances;
import com.azure.resourcemanager.workloads.models.Skus;
import com.azure.resourcemanager.workloads.models.WordpressInstances;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand All @@ -40,12 +56,28 @@

/** Entry point to WorkloadsManager. Workloads client provides access to various workload operations. */
public final class WorkloadsManager {
private PhpWorkloads phpWorkloads;

private WordpressInstances wordpressInstances;

private ResourceProviders resourceProviders;

private SapVirtualInstances sapVirtualInstances;

private SapCentralInstances sapCentralInstances;

private SapDatabaseInstances sapDatabaseInstances;

private SapApplicationServerInstances sapApplicationServerInstances;

private Operations operations;

private Monitors monitors;

private ProviderInstances providerInstances;

private Skus skus;

private final WorkloadsClient clientObject;

private WorkloadsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -268,6 +300,91 @@ public WorkloadsManager authenticate(TokenCredential credential, AzureProfile pr
}
}

/**
* Gets the resource collection API of PhpWorkloads. It manages PhpWorkloadResource.
*
* @return Resource collection API of PhpWorkloads.
*/
public PhpWorkloads phpWorkloads() {
if (this.phpWorkloads == null) {
this.phpWorkloads = new PhpWorkloadsImpl(clientObject.getPhpWorkloads(), this);
}
return phpWorkloads;
}

/**
* Gets the resource collection API of WordpressInstances.
*
* @return Resource collection API of WordpressInstances.
*/
public WordpressInstances wordpressInstances() {
if (this.wordpressInstances == null) {
this.wordpressInstances = new WordpressInstancesImpl(clientObject.getWordpressInstances(), this);
}
return wordpressInstances;
}

/**
* Gets the resource collection API of ResourceProviders.
*
* @return Resource collection API of ResourceProviders.
*/
public ResourceProviders resourceProviders() {
if (this.resourceProviders == null) {
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
}
return resourceProviders;
}

/**
* Gets the resource collection API of SapVirtualInstances. It manages SapVirtualInstance.
*
* @return Resource collection API of SapVirtualInstances.
*/
public SapVirtualInstances sapVirtualInstances() {
if (this.sapVirtualInstances == null) {
this.sapVirtualInstances = new SapVirtualInstancesImpl(clientObject.getSapVirtualInstances(), this);
}
return sapVirtualInstances;
}

/**
* Gets the resource collection API of SapCentralInstances. It manages SapCentralServerInstance.
*
* @return Resource collection API of SapCentralInstances.
*/
public SapCentralInstances sapCentralInstances() {
if (this.sapCentralInstances == null) {
this.sapCentralInstances = new SapCentralInstancesImpl(clientObject.getSapCentralInstances(), this);
}
return sapCentralInstances;
}

/**
* Gets the resource collection API of SapDatabaseInstances. It manages SapDatabaseInstance.
*
* @return Resource collection API of SapDatabaseInstances.
*/
public SapDatabaseInstances sapDatabaseInstances() {
if (this.sapDatabaseInstances == null) {
this.sapDatabaseInstances = new SapDatabaseInstancesImpl(clientObject.getSapDatabaseInstances(), this);
}
return sapDatabaseInstances;
}

/**
* Gets the resource collection API of SapApplicationServerInstances. It manages SapApplicationServerInstance.
*
* @return Resource collection API of SapApplicationServerInstances.
*/
public SapApplicationServerInstances sapApplicationServerInstances() {
if (this.sapApplicationServerInstances == null) {
this.sapApplicationServerInstances =
new SapApplicationServerInstancesImpl(clientObject.getSapApplicationServerInstances(), this);
}
return sapApplicationServerInstances;
}

/**
* Gets the resource collection API of Operations.
*
Expand Down Expand Up @@ -304,6 +421,18 @@ public ProviderInstances providerInstances() {
return providerInstances;
}

/**
* Gets the resource collection API of Skus.
*
* @return Resource collection API of Skus.
*/
public Skus skus() {
if (this.skus == null) {
this.skus = new SkusImpl(clientObject.getSkus(), this);
}
return skus;
}

/**
* @return Wrapped service client WorkloadsClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Response<MonitorInner> getByResourceGroupWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param monitorParameter Request body representing a SAP Monitor.
* @param monitorParameter Request body representing a SAP monitor.
* @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.
Expand All @@ -116,7 +116,7 @@ SyncPoller<PollResult<MonitorInner>, MonitorInner> beginCreate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param monitorParameter Request body representing a SAP Monitor.
* @param monitorParameter Request body representing a SAP monitor.
* @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.
Expand All @@ -133,7 +133,7 @@ SyncPoller<PollResult<MonitorInner>, MonitorInner> beginCreate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param monitorParameter Request body representing a SAP Monitor.
* @param monitorParameter Request body representing a SAP monitor.
* @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.
Expand All @@ -147,7 +147,7 @@ SyncPoller<PollResult<MonitorInner>, MonitorInner> beginCreate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the SAP monitor resource.
* @param monitorParameter Request body representing a SAP Monitor.
* @param monitorParameter Request body representing a SAP monitor.
* @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.
Expand All @@ -158,7 +158,7 @@ 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 monitor name.
* 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 +172,7 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
String resourceGroupName, String monitorName);

/**
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
* 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 +187,7 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
String resourceGroupName, String monitorName, Context context);

/**
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
* 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 +200,7 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
OperationStatusResultInner delete(String resourceGroupName, String monitorName);

/**
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
* 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,7 +214,7 @@ 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 monitor name.
* 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.
Expand All @@ -228,7 +228,7 @@ SyncPoller<PollResult<OperationStatusResultInner>, OperationStatusResultInner> b
MonitorInner update(String resourceGroupName, String monitorName, Tags tagsParameter);

/**
* Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name.
* 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.
Expand Down
Loading