Skip to content

Commit

Permalink
CodeGen from PR 20745 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 1e35427f6b0449c0467bb3c05df0b4d3e5b91cf8 into e24bbf6a66cb0a19c072c6f15cee163acbd7acf7
  • Loading branch information
SDKAuto committed Sep 16, 2022
1 parent 32d9299 commit a93c730
Show file tree
Hide file tree
Showing 134 changed files with 9,289 additions and 3,325 deletions.
4 changes: 3 additions & 1 deletion sdk/relay/azure-resourcemanager-relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2022-09-16)

- Azure Resource Manager Relay client library for Java. This package contains Microsoft Azure SDK for Relay Management SDK. Use these API to manage Azure Relay resources through Azure Resource Manager. Package tag package-2021-11. 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
4 changes: 2 additions & 2 deletions sdk/relay/azure-resourcemanager-relay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Relay client library for Java.

This package contains Microsoft Azure SDK for Relay Management SDK. Use these API to manage Azure Relay resources through Azure Resource Manager. Package tag package-2017-04. 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 Relay Management SDK. Use these API to manage Azure Relay resources through Azure Resource Manager. Package tag package-2021-11. 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-relay</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
356 changes: 291 additions & 65 deletions sdk/relay/azure-resourcemanager-relay/SAMPLE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/relay/azure-resourcemanager-relay/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 Relay Management</name>
<description>This package contains Microsoft Azure SDK for Relay Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use these API to manage Azure Relay resources through Azure Resource Manager. Package tag package-2017-04.</description>
<description>This package contains Microsoft Azure SDK for Relay Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use these API to manage Azure Relay resources through Azure Resource Manager. Package tag package-2021-11.</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 @@ -27,11 +27,15 @@
import com.azure.resourcemanager.relay.implementation.HybridConnectionsImpl;
import com.azure.resourcemanager.relay.implementation.NamespacesImpl;
import com.azure.resourcemanager.relay.implementation.OperationsImpl;
import com.azure.resourcemanager.relay.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.relay.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.relay.implementation.RelayApiBuilder;
import com.azure.resourcemanager.relay.implementation.WcfRelaysImpl;
import com.azure.resourcemanager.relay.models.HybridConnections;
import com.azure.resourcemanager.relay.models.Namespaces;
import com.azure.resourcemanager.relay.models.Operations;
import com.azure.resourcemanager.relay.models.PrivateEndpointConnections;
import com.azure.resourcemanager.relay.models.PrivateLinkResources;
import com.azure.resourcemanager.relay.models.WcfRelays;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
Expand All @@ -42,14 +46,18 @@

/** Entry point to RelayManager. Use these API to manage Azure Relay resources through Azure Resource Manager. */
public final class RelayManager {
private Operations operations;

private Namespaces namespaces;

private HybridConnections hybridConnections;

private WcfRelays wcfRelays;

private PrivateEndpointConnections privateEndpointConnections;

private PrivateLinkResources privateLinkResources;

private Operations operations;

private final RelayApi clientObject;

private RelayManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -215,7 +223,7 @@ public RelayManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.relay")
.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 @@ -272,18 +280,6 @@ public RelayManager authenticate(TokenCredential credential, AzureProfile profil
}
}

/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* Gets the resource collection API of Namespaces. It manages RelayNamespace, AuthorizationRule.
*
Expand Down Expand Up @@ -320,6 +316,43 @@ public WcfRelays wcfRelays() {
return wcfRelays;
}

/**
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
*
* @return Resource collection API of PrivateEndpointConnections.
*/
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections =
new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
return privateEndpointConnections;
}

/**
* Gets the resource collection API of PrivateLinkResources.
*
* @return Resource collection API of PrivateLinkResources.
*/
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
}
return privateLinkResources;
}

/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* @return Wrapped service client RelayApi providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
Expand Down
Loading

0 comments on commit a93c730

Please sign in to comment.