Skip to content

Commit

Permalink
CodeGen from PR 14218 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 7da1d2251ed7bd4104e26b7445287f675d811825 into 6f77d5fdb73b5eaba985fc605fcbd1cae3b4af27
  • Loading branch information
SDKAuto committed May 4, 2021
1 parent 06f0edb commit ebafef3
Show file tree
Hide file tree
Showing 160 changed files with 37,192 additions and 124 deletions.
3 changes: 2 additions & 1 deletion sdk/avs/azure-resourcemanager-avs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-05-04)

- Azure Resource Manager Avs client library for Java. This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. Package tag package-2021-06-01. 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.1 (2021-04-13)

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

Azure Resource Manager Avs client library for Java.

This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. Package tag package-2020-03-20. 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 Avs Management SDK. Azure VMware Solution API. Package tag package-2021-06-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-avs</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/avs/azure-resourcemanager-avs/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 Avs Management</name>
<description>This package contains Microsoft Azure SDK for Avs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure VMware Solution API. Package tag package-2020-03-20.</description>
<description>This package contains Microsoft Azure SDK for Avs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure VMware Solution API. Package tag package-2021-06-01.</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 @@ -21,19 +21,35 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.avs.fluent.AvsClient;
import com.azure.resourcemanager.avs.implementation.AddonsImpl;
import com.azure.resourcemanager.avs.implementation.AuthorizationsImpl;
import com.azure.resourcemanager.avs.implementation.AvsClientBuilder;
import com.azure.resourcemanager.avs.implementation.CloudLinksImpl;
import com.azure.resourcemanager.avs.implementation.ClustersImpl;
import com.azure.resourcemanager.avs.implementation.DatastoresImpl;
import com.azure.resourcemanager.avs.implementation.GlobalReachConnectionsImpl;
import com.azure.resourcemanager.avs.implementation.HcxEnterpriseSitesImpl;
import com.azure.resourcemanager.avs.implementation.LocationsImpl;
import com.azure.resourcemanager.avs.implementation.OperationsImpl;
import com.azure.resourcemanager.avs.implementation.PrivateCloudsImpl;
import com.azure.resourcemanager.avs.implementation.ScriptCmdletsImpl;
import com.azure.resourcemanager.avs.implementation.ScriptExecutionsImpl;
import com.azure.resourcemanager.avs.implementation.ScriptPackagesImpl;
import com.azure.resourcemanager.avs.implementation.WorkloadNetworksImpl;
import com.azure.resourcemanager.avs.models.Addons;
import com.azure.resourcemanager.avs.models.Authorizations;
import com.azure.resourcemanager.avs.models.CloudLinks;
import com.azure.resourcemanager.avs.models.Clusters;
import com.azure.resourcemanager.avs.models.Datastores;
import com.azure.resourcemanager.avs.models.GlobalReachConnections;
import com.azure.resourcemanager.avs.models.HcxEnterpriseSites;
import com.azure.resourcemanager.avs.models.Locations;
import com.azure.resourcemanager.avs.models.Operations;
import com.azure.resourcemanager.avs.models.PrivateClouds;
import com.azure.resourcemanager.avs.models.ScriptCmdlets;
import com.azure.resourcemanager.avs.models.ScriptExecutions;
import com.azure.resourcemanager.avs.models.ScriptPackages;
import com.azure.resourcemanager.avs.models.WorkloadNetworks;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand All @@ -50,10 +66,26 @@ public final class AvsManager {

private Clusters clusters;

private Datastores datastores;

private HcxEnterpriseSites hcxEnterpriseSites;

private Authorizations authorizations;

private GlobalReachConnections globalReachConnections;

private WorkloadNetworks workloadNetworks;

private CloudLinks cloudLinks;

private Addons addons;

private ScriptPackages scriptPackages;

private ScriptCmdlets scriptCmdlets;

private ScriptExecutions scriptExecutions;

private final AvsClient clientObject;

private AvsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -249,6 +281,14 @@ public Clusters clusters() {
return clusters;
}

/** @return Resource collection API of Datastores. */
public Datastores datastores() {
if (this.datastores == null) {
this.datastores = new DatastoresImpl(clientObject.getDatastores(), this);
}
return datastores;
}

/** @return Resource collection API of HcxEnterpriseSites. */
public HcxEnterpriseSites hcxEnterpriseSites() {
if (this.hcxEnterpriseSites == null) {
Expand All @@ -265,6 +305,63 @@ public Authorizations authorizations() {
return authorizations;
}

/** @return Resource collection API of GlobalReachConnections. */
public GlobalReachConnections globalReachConnections() {
if (this.globalReachConnections == null) {
this.globalReachConnections =
new GlobalReachConnectionsImpl(clientObject.getGlobalReachConnections(), this);
}
return globalReachConnections;
}

/** @return Resource collection API of WorkloadNetworks. */
public WorkloadNetworks workloadNetworks() {
if (this.workloadNetworks == null) {
this.workloadNetworks = new WorkloadNetworksImpl(clientObject.getWorkloadNetworks(), this);
}
return workloadNetworks;
}

/** @return Resource collection API of CloudLinks. */
public CloudLinks cloudLinks() {
if (this.cloudLinks == null) {
this.cloudLinks = new CloudLinksImpl(clientObject.getCloudLinks(), this);
}
return cloudLinks;
}

/** @return Resource collection API of Addons. */
public Addons addons() {
if (this.addons == null) {
this.addons = new AddonsImpl(clientObject.getAddons(), this);
}
return addons;
}

/** @return Resource collection API of ScriptPackages. */
public ScriptPackages scriptPackages() {
if (this.scriptPackages == null) {
this.scriptPackages = new ScriptPackagesImpl(clientObject.getScriptPackages(), this);
}
return scriptPackages;
}

/** @return Resource collection API of ScriptCmdlets. */
public ScriptCmdlets scriptCmdlets() {
if (this.scriptCmdlets == null) {
this.scriptCmdlets = new ScriptCmdletsImpl(clientObject.getScriptCmdlets(), this);
}
return scriptCmdlets;
}

/** @return Resource collection API of ScriptExecutions. */
public ScriptExecutions scriptExecutions() {
if (this.scriptExecutions == null) {
this.scriptExecutions = new ScriptExecutionsImpl(clientObject.getScriptExecutions(), this);
}
return scriptExecutions;
}

/**
* @return Wrapped service client AvsClient 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
@@ -0,0 +1,196 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.avs.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.avs.fluent.models.AddonInner;

/** An instance of this class provides access to all the operations defined in AddonsClient. */
public interface AddonsClient {
/**
* List addons in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @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 a paged list of addons.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AddonInner> list(String resourceGroupName, String privateCloudName);

/**
* List addons in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @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 a paged list of addons.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AddonInner> list(String resourceGroupName, String privateCloudName, Context context);

/**
* Get an addon by name in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @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 an addon by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AddonInner get(String resourceGroupName, String privateCloudName, String addonName);

/**
* Get an addon by name in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @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 an addon by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AddonInner> getWithResponse(
String resourceGroupName, String privateCloudName, String addonName, Context context);

/**
* Create or update a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName The name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @param addon A addon in the private cloud.
* @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 an addon resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<AddonInner>, AddonInner> beginCreateOrUpdate(
String resourceGroupName, String privateCloudName, String addonName, AddonInner addon);

/**
* Create or update a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName The name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @param addon A addon in the private cloud.
* @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 an addon resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<AddonInner>, AddonInner> beginCreateOrUpdate(
String resourceGroupName, String privateCloudName, String addonName, AddonInner addon, Context context);

/**
* Create or update a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName The name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @param addon A addon in the private cloud.
* @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 an addon resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AddonInner createOrUpdate(String resourceGroupName, String privateCloudName, String addonName, AddonInner addon);

/**
* Create or update a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName The name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @param addon A addon in the private cloud.
* @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 an addon resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AddonInner createOrUpdate(
String resourceGroupName, String privateCloudName, String addonName, AddonInner addon, Context context);

/**
* Delete a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String privateCloudName, String addonName);

/**
* Delete a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String privateCloudName, String addonName, Context context);

/**
* Delete a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @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 privateCloudName, String addonName);

/**
* Delete a addon in a private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String privateCloudName, String addonName, Context context);
}
Loading

0 comments on commit ebafef3

Please sign in to comment.