diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 9774a0c2d7d5..85836f742e7f 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -308,7 +308,7 @@ com.azure.resourcemanager:azure-resourcemanager-mysql;1.0.2;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-postgresql;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-hdinsight;1.0.0;1.1.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-sqlvirtualmachine;1.0.0-beta.5;1.0.0-beta.6
-com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-costmanagement;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-recoveryservices;1.7.0;1.8.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-kusto;1.2.0;1.3.0-beta.1
diff --git a/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md b/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md
index 3b5feab88f88..07beb2fabb57 100644
--- a/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md
+++ b/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md
@@ -1,14 +1,225 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0 (2026-07-25)
-### Features Added
+- 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 api-version 2026-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.RelayNamespaceListResult` was removed
+
+#### `models.HybridConnectionListResult` was removed
+
+#### `models.WcfRelaysListResult` was removed
+
+#### `models.ProvisioningStateEnum` was removed
+
+#### `models.AuthorizationRuleListResult` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.AccessRights` was modified
+
+* `toString()` was removed
+* `models.AccessRights[] values()` -> `java.util.Collection values()`
+* `valueOf(java.lang.String)` was removed
+
+#### `models.Sku` was modified
+
+* `java.lang.String name()` -> `models.SkuName name()`
+* `validate()` was removed
+
+#### `models.ResourceNamespacePatch` was modified
+
+* `validate()` was removed
+
+#### `models.RelayNamespace` was modified
+
+* `models.ProvisioningStateEnum provisioningState()` -> `java.lang.String provisioningState()`
+
+#### `models.UnavailableReason` was modified
+
+* `valueOf(java.lang.String)` was removed
+* `toString()` was removed
+* `models.UnavailableReason[] values()` -> `java.util.Collection values()`
+
+#### `models.CheckNameAvailability` was modified
+
+* `validate()` was removed
+
+#### `models.RegenerateAccessKeyParameters` was modified
+
+* `validate()` was removed
+
+#### `models.SkuTier` was modified
+
+* `valueOf(java.lang.String)` was removed
+* `models.SkuTier[] values()` -> `java.util.Collection values()`
+* `toString()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `validate()` was removed
+
+#### `models.RelayUpdateParameters` was modified
+
+* `validate()` was removed
+* `models.ProvisioningStateEnum provisioningState()` -> `java.lang.String provisioningState()`
+
+#### `models.KeyType` was modified
+
+* `toString()` was removed
+* `models.KeyType[] values()` -> `java.util.Collection values()`
+* `valueOf(java.lang.String)` was removed
+
+#### `RelayManager` was modified
+
+* `fluent.RelayApi serviceClient()` -> `fluent.RelayManagementClient serviceClient()`
+
+### Features Added
+
+* `models.NetworkRuleSet` was added
+
+* `models.NWRuleSetIpRules` was added
+
+* `models.PrivateLinkConnectionStatus` was added
+
+* `models.DefaultAction` was added
+
+* `models.PublicNetworkAccess` was added
+
+* `models.PrivateLinkResource` was added
+
+* `models.PrivateEndpointConnection$Definition` was added
+
+* `models.PrivateEndpointConnection$UpdateStages` was added
+
+* `models.NetworkRuleIPAction` was added
+
+* `models.TlsVersion` was added
+
+* `models.ActionType` was added
+
+* `models.PrivateEndpointConnection$Update` was added
+
+* `models.EndPointProvisioningState` was added
+
+* `models.PrivateLinkResources` was added
+
+* `models.ConnectionState` was added
+
+* `models.PrivateEndpointConnection$DefinitionStages` was added
+
+* `models.PrivateEndpoint` was added
+
+* `models.PrivateLinkResourcesListResult` was added
+
+* `models.SkuName` was added
+
+* `models.Origin` was added
+
+* `models.PrivateEndpointConnection` was added
+
+* `models.PrivateEndpointConnections` was added
+
+#### `models.AccessRights` was modified
+
+* `AccessRights()` was added
+
+#### `models.Namespaces` was modified
+
+* `createOrUpdateNetworkRuleSet(java.lang.String,java.lang.String,fluent.models.NetworkRuleSetInner)` was added
+* `getNetworkRuleSet(java.lang.String,java.lang.String)` was added
+* `getNetworkRuleSetWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `createOrUpdateNetworkRuleSetWithResponse(java.lang.String,java.lang.String,fluent.models.NetworkRuleSetInner,com.azure.core.util.Context)` was added
+
+#### `models.Sku` was modified
+
+* `withName(models.SkuName)` was added
+
+#### `models.ResourceNamespacePatch` was modified
+
+* `systemData()` was added
+
+#### `models.RelayNamespace` was modified
+
+* `publicNetworkAccess()` was added
+* `minimumTlsVersion()` was added
+* `status()` was added
+* `systemData()` was added
+* `privateEndpointConnections()` was added
+
+#### `models.UnavailableReason` was modified
+
+* `UnavailableReason()` was added
+
+#### `models.HybridConnection` was modified
+
+* `region()` was added
+* `systemData()` was added
+* `regionName()` was added
+* `location()` was added
+
+#### `models.SkuTier` was modified
+
+* `SkuTier()` was added
+
+#### `models.OperationDisplay` was modified
+
+* `description()` was added
+
+#### `models.Operation` was modified
+
+* `actionType()` was added
+* `isDataAction()` was added
+* `origin()` was added
+
+#### `models.WcfRelay` was modified
+
+* `systemData()` was added
+* `location()` was added
+* `regionName()` was added
+* `region()` was added
+
+#### `models.RelayUpdateParameters` was modified
+
+* `minimumTlsVersion()` was added
+* `withPrivateEndpointConnections(java.util.List)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was added
+* `systemData()` was added
+* `withMinimumTlsVersion(models.TlsVersion)` was added
+* `privateEndpointConnections()` was added
+* `publicNetworkAccess()` was added
+* `status()` was added
+
+#### `models.KeyType` was modified
+
+* `KeyType()` was added
+
+#### `RelayManager` was modified
+
+* `privateEndpointConnections()` was added
+* `privateLinkResources()` was added
+
+#### `models.RelayNamespace$Update` was modified
+
+* `withPrivateEndpointConnections(java.util.List)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was added
+* `withMinimumTlsVersion(models.TlsVersion)` was added
+
+#### `models.RelayNamespace$Definition` was modified
+
+* `withPrivateEndpointConnections(java.util.List)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was added
+* `withMinimumTlsVersion(models.TlsVersion)` was added
+
+#### `models.AuthorizationRule` was modified
-### Other Changes
+* `location()` was added
+* `region()` was added
+* `systemData()` was added
+* `regionName()` was added
## 1.0.0 (2024-12-20)
diff --git a/sdk/relay/azure-resourcemanager-relay/README.md b/sdk/relay/azure-resourcemanager-relay/README.md
index bd3169daa6f9..8a8fe2b1b784 100644
--- a/sdk/relay/azure-resourcemanager-relay/README.md
+++ b/sdk/relay/azure-resourcemanager-relay/README.md
@@ -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 api-version 2026-01-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
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-relay
- 1.1.0-beta.1
+ 1.1.0
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ RelayManager manager = RelayManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/relay/azure-resourcemanager-relay/SAMPLE.md b/sdk/relay/azure-resourcemanager-relay/SAMPLE.md
index 4dff357308d5..8b1292c46c32 100644
--- a/sdk/relay/azure-resourcemanager-relay/SAMPLE.md
+++ b/sdk/relay/azure-resourcemanager-relay/SAMPLE.md
@@ -19,10 +19,12 @@
- [CheckNameAvailability](#namespaces_checknameavailability)
- [CreateOrUpdate](#namespaces_createorupdate)
- [CreateOrUpdateAuthorizationRule](#namespaces_createorupdateauthorizationrule)
+- [CreateOrUpdateNetworkRuleSet](#namespaces_createorupdatenetworkruleset)
- [Delete](#namespaces_delete)
- [DeleteAuthorizationRule](#namespaces_deleteauthorizationrule)
- [GetAuthorizationRule](#namespaces_getauthorizationrule)
- [GetByResourceGroup](#namespaces_getbyresourcegroup)
+- [GetNetworkRuleSet](#namespaces_getnetworkruleset)
- [List](#namespaces_list)
- [ListAuthorizationRules](#namespaces_listauthorizationrules)
- [ListByResourceGroup](#namespaces_listbyresourcegroup)
@@ -34,6 +36,18 @@
- [List](#operations_list)
+## PrivateEndpointConnections
+
+- [CreateOrUpdate](#privateendpointconnections_createorupdate)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [List](#privateendpointconnections_list)
+
+## PrivateLinkResources
+
+- [Get](#privatelinkresources_get)
+- [List](#privatelinkresources_list)
+
## WcfRelays
- [CreateOrUpdate](#wcfrelays_createorupdate)
@@ -54,9 +68,7 @@
*/
public final class HybridConnectionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionCreate.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionCreate.json
*/
/**
* Sample code: RelayHybridConnectionCreate.
@@ -85,9 +97,7 @@ import java.util.Arrays;
*/
public final class HybridConnectionsCreateOrUpdateAuthorizationRuleSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionAuthorizationRuleCreate.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionAuthorizationRuleCreate.json
*/
/**
* Sample code: RelayHybridConnectionAuthorizationRuleCreate.
@@ -113,9 +123,7 @@ public final class HybridConnectionsCreateOrUpdateAuthorizationRuleSamples {
*/
public final class HybridConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridconnectionDelete.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridconnectionDelete.json
*/
/**
* Sample code: RelayHybridconnectionDelete.
@@ -138,17 +146,15 @@ public final class HybridConnectionsDeleteSamples {
*/
public final class HybridConnectionsDeleteAuthorizationRuleSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionAutorizationRuleDelete.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionAuthorizationRuleDelete.json
*/
/**
- * Sample code: RelayHybridConnectionAutorizationRuleDelete.
+ * Sample code: RelayHybridConnectionAuthorizationRuleDelete.
*
* @param manager Entry point to RelayManager.
*/
public static void
- relayHybridConnectionAutorizationRuleDelete(com.azure.resourcemanager.relay.RelayManager manager) {
+ relayHybridConnectionAuthorizationRuleDelete(com.azure.resourcemanager.relay.RelayManager manager) {
manager.hybridConnections()
.deleteAuthorizationRuleWithResponse("resourcegroup", "example-RelayNamespace-01",
"example-Relay-Hybrid-01", "example-RelayAuthRules-01", com.azure.core.util.Context.NONE);
@@ -164,9 +170,7 @@ public final class HybridConnectionsDeleteAuthorizationRuleSamples {
*/
public final class HybridConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionGet.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionGet.json
*/
/**
* Sample code: RelayHybridConnectionGet.
@@ -189,16 +193,14 @@ public final class HybridConnectionsGetSamples {
*/
public final class HybridConnectionsGetAuthorizationRuleSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionAutorizationRuleGet.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionAuthorizationRuleGet.json
*/
/**
- * Sample code: RelayHybridConnectionAutorizationRuleGet.
+ * Sample code: RelayHybridConnectionAuthorizationRuleGet.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayHybridConnectionAutorizationRuleGet(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayHybridConnectionAuthorizationRuleGet(com.azure.resourcemanager.relay.RelayManager manager) {
manager.hybridConnections()
.getAuthorizationRuleWithResponse("resourcegroup", "example-RelayNamespace-01", "example-Relay-Hybrid-01",
"example-RelayAuthRules-01", com.azure.core.util.Context.NONE);
@@ -214,17 +216,15 @@ public final class HybridConnectionsGetAuthorizationRuleSamples {
*/
public final class HybridConnectionsListAuthorizationRulesSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionAutorizationRuleListAll.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionAuthorizationRuleListAll.json
*/
/**
- * Sample code: RelayHybridConnectionAutorizationRuleListAll.
+ * Sample code: RelayHybridConnectionAuthorizationRuleListAll.
*
* @param manager Entry point to RelayManager.
*/
public static void
- relayHybridConnectionAutorizationRuleListAll(com.azure.resourcemanager.relay.RelayManager manager) {
+ relayHybridConnectionAuthorizationRuleListAll(com.azure.resourcemanager.relay.RelayManager manager) {
manager.hybridConnections()
.listAuthorizationRules("resourcegroup", "example-RelayNamespace-01", "example-Relay-Hybrid-01",
com.azure.core.util.Context.NONE);
@@ -240,9 +240,7 @@ public final class HybridConnectionsListAuthorizationRulesSamples {
*/
public final class HybridConnectionsListByNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionListAll.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionListAll.json
*/
/**
* Sample code: RelayHybridConnectionListAll.
@@ -264,9 +262,7 @@ public final class HybridConnectionsListByNamespaceSamples {
*/
public final class HybridConnectionsListKeysSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionAuthorizationRuleListKey.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionAuthorizationRuleListKey.json
*/
/**
* Sample code: RelayHybridConnectionAuthorizationRuleListKey.
@@ -293,17 +289,15 @@ import com.azure.resourcemanager.relay.models.RegenerateAccessKeyParameters;
*/
public final class HybridConnectionsRegenerateKeysSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/HybridConnection/
- * RelayHybridConnectionAuthorizationRuleRegenrateKey.json
+ * x-ms-original-file: 2026-01-01/HybridConnection/RelayHybridConnectionAuthorizationRuleRegenerateKey.json
*/
/**
- * Sample code: RelayHybridConnectionAuthorizationRuleRegenrateKey.
+ * Sample code: RelayHybridConnectionAuthorizationRuleRegenerateKey.
*
* @param manager Entry point to RelayManager.
*/
public static void
- relayHybridConnectionAuthorizationRuleRegenrateKey(com.azure.resourcemanager.relay.RelayManager manager) {
+ relayHybridConnectionAuthorizationRuleRegenerateKey(com.azure.resourcemanager.relay.RelayManager manager) {
manager.hybridConnections()
.regenerateKeysWithResponse("resourcegroup", "example-RelayNamespace-01", "example-Relay-Hybrid-01",
"example-RelayAuthRules-01", new RegenerateAccessKeyParameters().withKeyType(KeyType.PRIMARY_KEY),
@@ -322,8 +316,7 @@ import com.azure.resourcemanager.relay.models.CheckNameAvailability;
*/
public final class NamespacesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceCheckNameAvailability.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceCheckNameAvailability.json
*/
/**
* Sample code: RelayCheckNameAvailability.
@@ -332,7 +325,7 @@ public final class NamespacesCheckNameAvailabilitySamples {
*/
public static void relayCheckNameAvailability(com.azure.resourcemanager.relay.RelayManager manager) {
manager.namespaces()
- .checkNameAvailabilityWithResponse(new CheckNameAvailability().withName("sdk-Namespace1321"),
+ .checkNameAvailabilityWithResponse(new CheckNameAvailability().withName("example-RelayNamespace1321"),
com.azure.core.util.Context.NONE);
}
}
@@ -342,7 +335,9 @@ public final class NamespacesCheckNameAvailabilitySamples {
```java
import com.azure.resourcemanager.relay.models.Sku;
+import com.azure.resourcemanager.relay.models.SkuName;
import com.azure.resourcemanager.relay.models.SkuTier;
+import com.azure.resourcemanager.relay.models.TlsVersion;
import java.util.HashMap;
import java.util.Map;
@@ -351,9 +346,7 @@ import java.util.Map;
*/
public final class NamespacesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceCreate.
- * json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceCreate.json
*/
/**
* Sample code: RelayNamespaceCreate.
@@ -362,11 +355,12 @@ public final class NamespacesCreateOrUpdateSamples {
*/
public static void relayNamespaceCreate(com.azure.resourcemanager.relay.RelayManager manager) {
manager.namespaces()
- .define("example-RelayNamespace-01")
- .withRegion("West US")
+ .define("example-RelayNamespace-5849")
+ .withRegion("South Central US")
.withExistingResourceGroup("resourcegroup")
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withSku(new Sku().withTier(SkuTier.STANDARD))
+ .withSku(new Sku().withName(SkuName.STANDARD).withTier(SkuTier.STANDARD))
+ .withMinimumTlsVersion(TlsVersion.ONE_TWO)
.create();
}
@@ -395,8 +389,7 @@ import java.util.Arrays;
*/
public final class NamespacesCreateOrUpdateAuthorizationRuleSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceAuthorizationRuleCreate.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceAuthorizationRuleCreate.json
*/
/**
* Sample code: RelayNameSpaceAuthorizationRuleCreate.
@@ -413,6 +406,43 @@ public final class NamespacesCreateOrUpdateAuthorizationRuleSamples {
}
```
+### Namespaces_CreateOrUpdateNetworkRuleSet
+
+```java
+import com.azure.resourcemanager.relay.fluent.models.NetworkRuleSetInner;
+import com.azure.resourcemanager.relay.models.DefaultAction;
+import com.azure.resourcemanager.relay.models.NWRuleSetIpRules;
+import com.azure.resourcemanager.relay.models.NetworkRuleIPAction;
+import java.util.Arrays;
+
+/**
+ * Samples for Namespaces CreateOrUpdateNetworkRuleSet.
+ */
+public final class NamespacesCreateOrUpdateNetworkRuleSetSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/VirtualNetworkRules/RelayNetworkRuleSetCreate.json
+ */
+ /**
+ * Sample code: NameSpaceNetworkRuleSetCreate.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void nameSpaceNetworkRuleSetCreate(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.namespaces()
+ .createOrUpdateNetworkRuleSetWithResponse("ResourceGroup", "example-RelayNamespace-6019",
+ new NetworkRuleSetInner().withTrustedServiceAccessEnabled(false)
+ .withDefaultAction(DefaultAction.DENY)
+ .withIpRules(Arrays.asList(
+ new NWRuleSetIpRules().withIpMask("1.1.1.1").withAction(NetworkRuleIPAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.2").withAction(NetworkRuleIPAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.3").withAction(NetworkRuleIPAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.4").withAction(NetworkRuleIPAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.5").withAction(NetworkRuleIPAction.ALLOW))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Namespaces_Delete
```java
@@ -421,9 +451,7 @@ public final class NamespacesCreateOrUpdateAuthorizationRuleSamples {
*/
public final class NamespacesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceDelete.
- * json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceDelete.json
*/
/**
* Sample code: RelayNameSpaceDelete.
@@ -431,7 +459,7 @@ public final class NamespacesDeleteSamples {
* @param manager Entry point to RelayManager.
*/
public static void relayNameSpaceDelete(com.azure.resourcemanager.relay.RelayManager manager) {
- manager.namespaces().delete("resourcegroup", "example-RelayNamespace-01", com.azure.core.util.Context.NONE);
+ manager.namespaces().delete("SouthCentralUS", "example-RelayNamespace-5849", com.azure.core.util.Context.NONE);
}
}
```
@@ -444,15 +472,14 @@ public final class NamespacesDeleteSamples {
*/
public final class NamespacesDeleteAuthorizationRuleSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceAutorizationRuleDelete.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceAuthorizationRuleDelete.json
*/
/**
- * Sample code: RelayNameSpaceAutorizationRuleDelete.
+ * Sample code: RelayNameSpaceAuthorizationRuleDelete.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayNameSpaceAutorizationRuleDelete(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayNameSpaceAuthorizationRuleDelete(com.azure.resourcemanager.relay.RelayManager manager) {
manager.namespaces()
.deleteAuthorizationRuleWithResponse("resourcegroup", "example-RelayNamespace-01",
"example-RelayAuthRules-01", com.azure.core.util.Context.NONE);
@@ -468,15 +495,14 @@ public final class NamespacesDeleteAuthorizationRuleSamples {
*/
public final class NamespacesGetAuthorizationRuleSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceAutorizationRuleGet.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceAuthorizationRuleGet.json
*/
/**
- * Sample code: RelayNameSpaceAutorizationRuleGet.
+ * Sample code: RelayNameSpaceAuthorizationRuleGet.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayNameSpaceAutorizationRuleGet(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayNameSpaceAuthorizationRuleGet(com.azure.resourcemanager.relay.RelayManager manager) {
manager.namespaces()
.getAuthorizationRuleWithResponse("resourcegroup", "example-RelayNamespace-01", "example-RelayAuthRules-01",
com.azure.core.util.Context.NONE);
@@ -492,8 +518,7 @@ public final class NamespacesGetAuthorizationRuleSamples {
*/
public final class NamespacesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceGet.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceGet.json
*/
/**
* Sample code: RelayNameSpaceGet.
@@ -502,7 +527,30 @@ public final class NamespacesGetByResourceGroupSamples {
*/
public static void relayNameSpaceGet(com.azure.resourcemanager.relay.RelayManager manager) {
manager.namespaces()
- .getByResourceGroupWithResponse("resourcegroup", "example-RelayNamespace-01",
+ .getByResourceGroupWithResponse("RG-eg", "example-RelayRelayNamespace-01",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Namespaces_GetNetworkRuleSet
+
+```java
+/**
+ * Samples for Namespaces GetNetworkRuleSet.
+ */
+public final class NamespacesGetNetworkRuleSetSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/VirtualNetworkRules/RelayNetworkRuleSetGet.json
+ */
+ /**
+ * Sample code: NameSpaceNetworkRuleSetGet.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void nameSpaceNetworkRuleSetGet(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.namespaces()
+ .getNetworkRuleSetWithResponse("ResourceGroup", "example-RelayNamespace-6019",
com.azure.core.util.Context.NONE);
}
}
@@ -516,8 +564,7 @@ public final class NamespacesGetByResourceGroupSamples {
*/
public final class NamespacesListSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceListBySubscription.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceListBySubscription.json
*/
/**
* Sample code: RelayNameSpaceListBySubscription.
@@ -538,15 +585,14 @@ public final class NamespacesListSamples {
*/
public final class NamespacesListAuthorizationRulesSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceAutorizationRuleListAll.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceAuthorizationRuleListAll.json
*/
/**
- * Sample code: RelayNameSpaceAutorizationRuleListAll.
+ * Sample code: RelayNameSpaceAuthorizationRuleListAll.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayNameSpaceAutorizationRuleListAll(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayNameSpaceAuthorizationRuleListAll(com.azure.resourcemanager.relay.RelayManager manager) {
manager.namespaces()
.listAuthorizationRules("resourcegroup", "example-RelayNamespace-01", com.azure.core.util.Context.NONE);
}
@@ -561,8 +607,7 @@ public final class NamespacesListAuthorizationRulesSamples {
*/
public final class NamespacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceListByResourceGroup.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceListByResourceGroup.json
*/
/**
* Sample code: RelayNameSpaceListByResourceGroup.
@@ -583,8 +628,7 @@ public final class NamespacesListByResourceGroupSamples {
*/
public final class NamespacesListKeysSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceAuthorizationRuleListKey.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceAuthorizationRuleListKey.json
*/
/**
* Sample code: RelayNameSpaceAuthorizationRuleListKey.
@@ -610,16 +654,15 @@ import com.azure.resourcemanager.relay.models.RegenerateAccessKeyParameters;
*/
public final class NamespacesRegenerateKeysSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/
- * RelayNameSpaceAuthorizationRuleRegenrateKey.json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceAuthorizationRuleRegenerateKey.json
*/
/**
- * Sample code: RelayNameSpaceAuthorizationRuleRegenrateKey.
+ * Sample code: RelayNameSpaceAuthorizationRuleRegenerateKey.
*
* @param manager Entry point to RelayManager.
*/
public static void
- relayNameSpaceAuthorizationRuleRegenrateKey(com.azure.resourcemanager.relay.RelayManager manager) {
+ relayNameSpaceAuthorizationRuleRegenerateKey(com.azure.resourcemanager.relay.RelayManager manager) {
manager.namespaces()
.regenerateKeysWithResponse("resourcegroup", "example-RelayNamespace-01", "example-RelayAuthRules-01",
new RegenerateAccessKeyParameters().withKeyType(KeyType.PRIMARY_KEY), com.azure.core.util.Context.NONE);
@@ -631,6 +674,7 @@ public final class NamespacesRegenerateKeysSamples {
```java
import com.azure.resourcemanager.relay.models.RelayNamespace;
+import com.azure.resourcemanager.relay.models.TlsVersion;
import java.util.HashMap;
import java.util.Map;
@@ -639,9 +683,7 @@ import java.util.Map;
*/
public final class NamespacesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceUpdate.
- * json
+ * x-ms-original-file: 2026-01-01/NameSpaces/RelayNameSpaceUpdate.json
*/
/**
* Sample code: RelayNameSpaceUpdate.
@@ -650,11 +692,11 @@ public final class NamespacesUpdateSamples {
*/
public static void relayNameSpaceUpdate(com.azure.resourcemanager.relay.RelayManager manager) {
RelayNamespace resource = manager.namespaces()
- .getByResourceGroupWithResponse("resourcegroup", "example-RelayNamespace-01",
- com.azure.core.util.Context.NONE)
+ .getByResourceGroupWithResponse("RG-eg", "example-RelayRelayNamespace-01", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withTags(mapOf("tag3", "value3", "tag4", "value4", "tag5", "value5", "tag6", "value6"))
+ .withMinimumTlsVersion(TlsVersion.ONE_THREE)
.apply();
}
@@ -680,8 +722,7 @@ public final class NamespacesUpdateSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/RelayOperations_List.json
+ * x-ms-original-file: 2026-01-01/RelayOperations_List.json
*/
/**
* Sample code: RelayOperationsList.
@@ -694,6 +735,151 @@ public final class OperationsListSamples {
}
```
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.relay.models.ConnectionState;
+import com.azure.resourcemanager.relay.models.PrivateEndpoint;
+import com.azure.resourcemanager.relay.models.PrivateLinkConnectionStatus;
+
+/**
+ * Samples for PrivateEndpointConnections CreateOrUpdate.
+ */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/PrivateEndpointConnections/PrivateEndpointConnectionsCreate.json
+ */
+ /**
+ * Sample code: NameSpacePrivateEndPointConnectionCreate.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void nameSpacePrivateEndPointConnectionCreate(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.privateEndpointConnections()
+ .define("{privateEndpointConnection name}")
+ .withExistingNamespace("resourcegroup", "example-RelayNamespace-5849")
+ .withPrivateEndpoint(new PrivateEndpoint().withId(
+ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Network/privateEndpoints/ali-relay-pve-1"))
+ .withPrivateLinkServiceConnectionState(
+ new ConnectionState().withStatus(PrivateLinkConnectionStatus.APPROVED).withDescription("You may pass"))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+/**
+ * Samples for PrivateEndpointConnections Delete.
+ */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/PrivateEndpointConnections/PrivateEndpointConnectionsDelete.json
+ */
+ /**
+ * Sample code: NameSpacePrivateEndPointConnectionDelete.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void nameSpacePrivateEndPointConnectionDelete(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.privateEndpointConnections()
+ .delete("myResourceGroup", "example-RelayNamespace-5849", "{privateEndpointConnection name}",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+/**
+ * Samples for PrivateEndpointConnections Get.
+ */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/PrivateEndpointConnections/PrivateEndpointConnectionsGet.json
+ */
+ /**
+ * Sample code: NameSpacePrivateEndPointConnectionGet.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void nameSpacePrivateEndPointConnectionGet(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.privateEndpointConnections()
+ .getWithResponse("myResourceGroup", "example-RelayNamespace-5849", "{privateEndpointConnection name}",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_List
+
+```java
+/**
+ * Samples for PrivateEndpointConnections List.
+ */
+public final class PrivateEndpointConnectionsListSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/PrivateEndpointConnections/PrivateEndpointConnectionsList.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnectionsList.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void privateEndpointConnectionsList(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.privateEndpointConnections()
+ .list("myResourceGroup", "example-RelayNamespace-5849", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_Get
+
+```java
+/**
+ * Samples for PrivateLinkResources Get.
+ */
+public final class PrivateLinkResourcesGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/PrivateEndpointConnections/PrivateLinkResourcesGet.json
+ */
+ /**
+ * Sample code: NameSpacePrivateLinkResourceGet.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void nameSpacePrivateLinkResourceGet(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.privateLinkResources()
+ .getWithResponse("resourcegroup", "example-RelayNamespace-5849", "{PrivateLinkResource name}",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_List
+
+```java
+/**
+ * Samples for PrivateLinkResources List.
+ */
+public final class PrivateLinkResourcesListSamples {
+ /*
+ * x-ms-original-file: 2026-01-01/PrivateEndpointConnections/PrivateLinkResourcesList.json
+ */
+ /**
+ * Sample code: NameSpacePrivateLinkResourcesGet.
+ *
+ * @param manager Entry point to RelayManager.
+ */
+ public static void nameSpacePrivateLinkResourcesGet(com.azure.resourcemanager.relay.RelayManager manager) {
+ manager.privateLinkResources()
+ .listWithResponse("resourcegroup", "example-RelayNamespace-5849", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### WcfRelays_CreateOrUpdate
```java
@@ -704,8 +890,7 @@ import com.azure.resourcemanager.relay.models.Relaytype;
*/
public final class WcfRelaysCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/RelayCreate.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayCreate.json
*/
/**
* Sample code: RelayCreate.
@@ -736,8 +921,7 @@ import java.util.Arrays;
*/
public final class WcfRelaysCreateOrUpdateAuthorizationRuleSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/
- * RelayAuthorizationRuleCreate.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayAuthorizationRuleCreate.json
*/
/**
* Sample code: RelayAuthorizationRuleCreate.
@@ -762,8 +946,7 @@ public final class WcfRelaysCreateOrUpdateAuthorizationRuleSamples {
*/
public final class WcfRelaysDeleteSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/RelayDelete.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayDelete.json
*/
/**
* Sample code: RelayDelete.
@@ -786,16 +969,14 @@ public final class WcfRelaysDeleteSamples {
*/
public final class WcfRelaysDeleteAuthorizationRuleSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/RelayAutorizationRuleDelete
- * .json
+ * x-ms-original-file: 2026-01-01/Relay/RelayAuthorizationRuleDelete.json
*/
/**
- * Sample code: RelayAutorizationRuleDelete.
+ * Sample code: RelayAuthorizationRuleDelete.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayAutorizationRuleDelete(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayAuthorizationRuleDelete(com.azure.resourcemanager.relay.RelayManager manager) {
manager.wcfRelays()
.deleteAuthorizationRuleWithResponse("resourcegroup", "example-RelayNamespace-01", "example-Relay-wcf-01",
"example-RelayAuthRules-01", com.azure.core.util.Context.NONE);
@@ -811,8 +992,7 @@ public final class WcfRelaysDeleteAuthorizationRuleSamples {
*/
public final class WcfRelaysGetSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/RelayGet.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayGet.json
*/
/**
* Sample code: RelayGet.
@@ -835,16 +1015,14 @@ public final class WcfRelaysGetSamples {
*/
public final class WcfRelaysGetAuthorizationRuleSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/RelayAutorizationRuleGet.
- * json
+ * x-ms-original-file: 2026-01-01/Relay/RelayAuthorizationRuleGet.json
*/
/**
- * Sample code: RelayAutorizationRuleGet.
+ * Sample code: RelayAuthorizationRuleGet.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayAutorizationRuleGet(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayAuthorizationRuleGet(com.azure.resourcemanager.relay.RelayManager manager) {
manager.wcfRelays()
.getAuthorizationRuleWithResponse("resourcegroup", "example-RelayNamespace-01", "example-Relay-wcf-01",
"example-RelayAuthRules-01", com.azure.core.util.Context.NONE);
@@ -860,15 +1038,14 @@ public final class WcfRelaysGetAuthorizationRuleSamples {
*/
public final class WcfRelaysListAuthorizationRulesSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/
- * RelayAutorizationRuleListAll.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayAuthorizationRuleListAll.json
*/
/**
- * Sample code: RelayAutorizationRuleListAll.
+ * Sample code: RelayAuthorizationRuleListAll.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayAutorizationRuleListAll(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayAuthorizationRuleListAll(com.azure.resourcemanager.relay.RelayManager manager) {
manager.wcfRelays()
.listAuthorizationRules("resourcegroup", "example-RelayNamespace-01", "example-Relay-Wcf-01",
com.azure.core.util.Context.NONE);
@@ -884,8 +1061,7 @@ public final class WcfRelaysListAuthorizationRulesSamples {
*/
public final class WcfRelaysListByNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/RelayListAll.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayListAll.json
*/
/**
* Sample code: RelayListAll.
@@ -907,8 +1083,7 @@ public final class WcfRelaysListByNamespaceSamples {
*/
public final class WcfRelaysListKeysSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/
- * RelayAuthorizationRuleListKey.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayAuthorizationRuleListKey.json
*/
/**
* Sample code: RelayAuthorizationRuleListKey.json.
@@ -934,15 +1109,14 @@ import com.azure.resourcemanager.relay.models.RegenerateAccessKeyParameters;
*/
public final class WcfRelaysRegenerateKeysSamples {
/*
- * x-ms-original-file: specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/Relay/
- * RelayAuthorizationRuleRegenrateKey.json
+ * x-ms-original-file: 2026-01-01/Relay/RelayAuthorizationRuleRegenerateKey.json
*/
/**
- * Sample code: RelayAuthorizationRuleRegenrateKey.json.
+ * Sample code: RelayAuthorizationRuleRegenerateKey.json.
*
* @param manager Entry point to RelayManager.
*/
- public static void relayAuthorizationRuleRegenrateKeyJson(com.azure.resourcemanager.relay.RelayManager manager) {
+ public static void relayAuthorizationRuleRegenerateKeyJson(com.azure.resourcemanager.relay.RelayManager manager) {
manager.wcfRelays()
.regenerateKeysWithResponse("resourcegroup", "example-RelayNamespace-01", "example-Relay-wcf-01",
"example-RelayAuthRules-01", new RegenerateAccessKeyParameters().withKeyType(KeyType.PRIMARY_KEY),
diff --git a/sdk/relay/azure-resourcemanager-relay/pom.xml b/sdk/relay/azure-resourcemanager-relay/pom.xml
index 0e3f83f9600d..a1dcdd7ba1b2 100644
--- a/sdk/relay/azure-resourcemanager-relay/pom.xml
+++ b/sdk/relay/azure-resourcemanager-relay/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-relay
- 1.1.0-beta.1
+ 1.1.0
jar
Microsoft Azure SDK for Relay Management
- 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.
+ 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 api-version 2026-01-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- false
+ true
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.java
index dd6f2154f63b..4ff27efe225b 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay;
@@ -22,21 +22,27 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.relay.fluent.RelayApi;
+import com.azure.resourcemanager.relay.fluent.RelayManagementClient;
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.RelayApiBuilder;
+import com.azure.resourcemanager.relay.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.relay.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.relay.implementation.RelayManagementClientBuilder;
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;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
@@ -47,18 +53,22 @@
public final class RelayManager {
private Operations operations;
- private Namespaces namespaces;
-
private HybridConnections hybridConnections;
private WcfRelays wcfRelays;
- private final RelayApi clientObject;
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private Namespaces namespaces;
+
+ private final RelayManagementClient clientObject;
private RelayManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new RelayApiBuilder().pipeline(httpPipeline)
+ this.clientObject = new RelayManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -105,6 +115,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-relay.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -212,12 +225,14 @@ public RelayManager authenticate(TokenCredential credential, AzureProfile profil
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.relay")
.append("/")
- .append("1.0.0");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -275,18 +290,6 @@ public Operations operations() {
return operations;
}
- /**
- * Gets the resource collection API of Namespaces. It manages RelayNamespace, AuthorizationRule.
- *
- * @return Resource collection API of Namespaces.
- */
- public Namespaces namespaces() {
- if (this.namespaces == null) {
- this.namespaces = new NamespacesImpl(clientObject.getNamespaces(), this);
- }
- return namespaces;
- }
-
/**
* Gets the resource collection API of HybridConnections. It manages HybridConnection.
*
@@ -312,12 +315,49 @@ public WcfRelays wcfRelays() {
}
/**
- * Gets wrapped service client RelayApi providing direct access to the underlying auto-generated API implementation,
- * based on Azure REST API.
+ * 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 Namespaces. It manages AuthorizationRule, RelayNamespace.
+ *
+ * @return Resource collection API of Namespaces.
+ */
+ public Namespaces namespaces() {
+ if (this.namespaces == null) {
+ this.namespaces = new NamespacesImpl(clientObject.getNamespaces(), this);
+ }
+ return namespaces;
+ }
+
+ /**
+ * Gets wrapped service client RelayManagementClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
*
- * @return Wrapped service client RelayApi.
+ * @return Wrapped service client RelayManagementClient.
*/
- public RelayApi serviceClient() {
+ public RelayManagementClient serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/HybridConnectionsClient.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/HybridConnectionsClient.java
index 3b75825a4a52..f2157aefae7a 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/HybridConnectionsClient.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/HybridConnectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent;
@@ -19,135 +19,116 @@
*/
public interface HybridConnectionsClient {
/**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @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 response of the list hybrid connection operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
-
- /**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace 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 response of the list hybrid connection operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNamespace(String resourceGroupName, String namespaceName,
- Context context);
-
- /**
- * Creates or updates a service hybrid connection. This operation is idempotent.
+ * Hybrid connection authorization rule for a hybrid connection by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param parameters Parameters supplied to create a hybrid connection.
+ * @param authorizationRuleName The authorization rule 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 description of hybrid connection resource along with {@link Response}.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, HybridConnectionInner parameters, Context context);
+ Response getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, Context context);
/**
- * Creates or updates a service hybrid connection. This operation is idempotent.
+ * Hybrid connection authorization rule for a hybrid connection by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param parameters Parameters supplied to create a hybrid connection.
+ * @param authorizationRuleName The authorization rule name.
* @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 description of hybrid connection resource.
+ * @return single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HybridConnectionInner createOrUpdate(String resourceGroupName, String namespaceName, String hybridConnectionName,
- HybridConnectionInner parameters);
+ AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName);
/**
- * Deletes a hybrid connection.
+ * Creates or updates an authorization rule for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
* @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 {@link Response}.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName,
- Context context);
+ Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
+ String namespaceName, String hybridConnectionName, String authorizationRuleName,
+ AuthorizationRuleInner parameters, Context context);
/**
- * Deletes a hybrid connection.
+ * Creates or updates an authorization rule for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
* @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 single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String namespaceName, String hybridConnectionName);
+ AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters);
/**
- * Returns the description for the specified hybrid connection.
+ * Deletes a hybrid connection authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule 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 description of hybrid connection resource along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, Context context);
+ Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, Context context);
/**
- * Returns the description for the specified hybrid connection.
+ * Deletes a hybrid connection authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
* @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 description of hybrid connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HybridConnectionInner get(String resourceGroupName, String namespaceName, String hybridConnectionName);
+ void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String hybridConnectionName,
+ String authorizationRuleName);
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
@@ -156,186 +137,205 @@ PagedIterable listAuthorizationRules(String resourceGrou
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection 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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
String hybridConnectionName, Context context);
/**
- * Creates or updates an authorization rule for a hybrid connection.
+ * Primary and secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
* @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 description of a namespace authorization rule along with {@link Response}.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName,
- AuthorizationRuleInner parameters, Context context);
+ Response listKeysWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, Context context);
/**
- * Creates or updates an authorization rule for a hybrid connection.
+ * Primary and secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
* @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 description of a namespace authorization rule.
+ * @return namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters);
+ AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String hybridConnectionName,
+ String authorizationRuleName);
/**
- * Deletes a hybrid connection authorization rule.
+ * Regenerates the primary or secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @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 {@link Response}.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, Context context);
+ Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters,
+ Context context);
/**
- * Deletes a hybrid connection authorization rule.
+ * Regenerates the primary or secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String hybridConnectionName,
- String authorizationRuleName);
+ AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String hybridConnectionName,
+ String authorizationRuleName, RegenerateAccessKeyParameters parameters);
/**
- * Hybrid connection authorization rule for a hybrid connection by name.
+ * Returns the description for the specified hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule 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 description of a namespace authorization rule along with {@link Response}.
+ * @return description of hybrid connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, Context context);
+ Response getWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, Context context);
/**
- * Hybrid connection authorization rule for a hybrid connection by name.
+ * Returns the description for the specified hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @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 description of a namespace authorization rule.
+ * @return description of hybrid connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName);
+ HybridConnectionInner get(String resourceGroupName, String namespaceName, String hybridConnectionName);
/**
- * Primary and secondary connection strings to the hybrid connection.
+ * Creates or updates a service hybrid connection. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to create a hybrid connection.
* @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 namespace/Relay Connection String along with {@link Response}.
+ * @return description of hybrid connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listKeysWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, HybridConnectionInner parameters, Context context);
/**
- * Primary and secondary connection strings to the hybrid connection.
+ * Creates or updates a service hybrid connection. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to create a hybrid connection.
* @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 namespace/Relay Connection String.
+ * @return description of hybrid connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String hybridConnectionName,
- String authorizationRuleName);
+ HybridConnectionInner createOrUpdate(String resourceGroupName, String namespaceName, String hybridConnectionName,
+ HybridConnectionInner parameters);
/**
- * Regenerates the primary or secondary connection strings to the hybrid connection.
+ * Deletes a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters,
+ Response deleteWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName,
Context context);
/**
- * Regenerates the primary or secondary connection strings to the hybrid connection.
+ * Deletes a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String hybridConnectionName,
- String authorizationRuleName, RegenerateAccessKeyParameters parameters);
+ void delete(String resourceGroupName, String namespaceName, String hybridConnectionName);
+
+ /**
+ * Lists the hybrid connection within the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @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 response of a HybridConnection list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
+
+ /**
+ * Lists the hybrid connection within the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace 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 response of a HybridConnection list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName,
+ Context context);
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/NamespacesClient.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/NamespacesClient.java
index c7fccb2f2cf7..e03a1d101990 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/NamespacesClient.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/NamespacesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent;
@@ -14,6 +14,7 @@
import com.azure.resourcemanager.relay.fluent.models.AccessKeysInner;
import com.azure.resourcemanager.relay.fluent.models.AuthorizationRuleInner;
import com.azure.resourcemanager.relay.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.relay.fluent.models.NetworkRuleSetInner;
import com.azure.resourcemanager.relay.fluent.models.RelayNamespaceInner;
import com.azure.resourcemanager.relay.models.CheckNameAvailability;
import com.azure.resourcemanager.relay.models.RegenerateAccessKeyParameters;
@@ -24,224 +25,283 @@
*/
public interface NamespacesClient {
/**
- * Check the specified namespace name availability.
+ * Authorization rule for a namespace by name.
*
- * @param parameters Parameters to check availability of the specified namespace name.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule 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 description of the check name availability request properties along with {@link Response}.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(CheckNameAvailability parameters,
- Context context);
+ Response getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
+ String authorizationRuleName, Context context);
/**
- * Check the specified namespace name availability.
+ * Authorization rule for a namespace by name.
*
- * @param parameters Parameters to check availability of the specified namespace name.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
* @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 description of the check name availability request properties.
+ * @return single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailability parameters);
+ AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName,
+ String authorizationRuleName);
/**
- * Lists all the available namespaces within the subscription regardless of the resourceGroups.
+ * Creates or updates an authorization rule for a namespace.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
+ * @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
+ String namespaceName, String authorizationRuleName, AuthorizationRuleInner parameters, Context context);
/**
- * Lists all the available namespaces within the subscription regardless of the resourceGroups.
+ * Creates or updates an authorization rule for a namespace.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
+ * @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 single item in a List or Get AuthorizationRule operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
+ String authorizationRuleName, AuthorizationRuleInner parameters);
+
+ /**
+ * Deletes a namespace authorization rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule 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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
+ String authorizationRuleName, Context context);
/**
- * Lists all the available namespaces within the ResourceGroup.
+ * Deletes a namespace authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
* @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
- * Lists all the available namespaces within the ResourceGroup.
+ * Authorization rules for a namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
* @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName);
/**
- * Create Azure Relay namespace.
+ * Authorization rules for a namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param parameters Parameters supplied to create a namespace 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 the {@link SyncPoller} for polling of description of a namespace resource.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, RelayNamespaceInner> beginCreateOrUpdate(String resourceGroupName,
- String namespaceName, RelayNamespaceInner parameters);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
+ Context context);
/**
- * Create Azure Relay namespace.
+ * Primary and secondary connection strings to the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param parameters Parameters supplied to create a namespace resource.
+ * @param authorizationRuleName The authorization rule 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 {@link SyncPoller} for polling of description of a namespace resource.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, RelayNamespaceInner> beginCreateOrUpdate(String resourceGroupName,
- String namespaceName, RelayNamespaceInner parameters, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(String resourceGroupName, String namespaceName,
+ String authorizationRuleName, Context context);
/**
- * Create Azure Relay namespace.
+ * Primary and secondary connection strings to the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param parameters Parameters supplied to create a namespace resource.
+ * @param authorizationRuleName The authorization rule name.
* @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 description of a namespace resource.
+ * @return namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RelayNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, RelayNamespaceInner parameters);
+ AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
- * Create Azure Relay namespace.
+ * Regenerates the primary or secondary connection strings to the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param parameters Parameters supplied to create a namespace resource.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @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 description of a namespace resource.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RelayNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, RelayNamespaceInner parameters,
- Context context);
+ Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName,
+ String authorizationRuleName, RegenerateAccessKeyParameters parameters, Context context);
/**
- * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ * Regenerates the primary or secondary connection strings to the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @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.
+ * @return namespace/Relay Connection String.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters);
/**
- * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ * Returns the description for the specified namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace 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 {@link SyncPoller} for polling of long-running operation.
+ * @return description of a namespace resource along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String namespaceName,
+ Context context);
/**
- * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ * Returns the description for the specified namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @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 description of a namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String namespaceName);
+ RelayNamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName);
/**
- * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ * Create Azure Relay namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param context The context to associate with this operation.
+ * @param parameters Parameters supplied to create a namespace 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 description of a namespace resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String namespaceName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RelayNamespaceInner> beginCreateOrUpdate(String resourceGroupName,
+ String namespaceName, RelayNamespaceInner parameters);
/**
- * Returns the description for the specified namespace.
+ * Create Azure Relay namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to create a namespace 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 description of a namespace resource along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of description of a namespace resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RelayNamespaceInner> beginCreateOrUpdate(String resourceGroupName,
+ String namespaceName, RelayNamespaceInner parameters, Context context);
+
+ /**
+ * Create Azure Relay namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to create a namespace 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 description of a namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String namespaceName,
- Context context);
+ RelayNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, RelayNamespaceInner parameters);
/**
- * Returns the description for the specified namespace.
+ * Create Azure Relay namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to create a namespace 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 description of a namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RelayNamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName);
+ RelayNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, RelayNamespaceInner parameters,
+ Context context);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param parameters Parameters for updating a namespace resource.
* @param context The context to associate with this operation.
@@ -258,7 +318,7 @@ Response updateWithResponse(String resourceGroupName, Strin
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param parameters Parameters for updating a namespace resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -270,186 +330,186 @@ Response updateWithResponse(String resourceGroupName, Strin
RelayNamespaceInner update(String resourceGroupName, String namespaceName, RelayUpdateParameters parameters);
/**
- * Authorization rules for a namespace.
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName);
/**
- * Authorization rules for a namespace.
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace 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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName, Context context);
/**
- * Creates or updates an authorization rule for a namespace.
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
- * @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 description of a namespace authorization rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
- String namespaceName, String authorizationRuleName, AuthorizationRuleInner parameters, Context context);
+ void delete(String resourceGroupName, String namespaceName);
/**
- * Creates or updates an authorization rule for a namespace.
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
+ * @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 description of a namespace authorization rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
- String authorizationRuleName, AuthorizationRuleInner parameters);
+ void delete(String resourceGroupName, String namespaceName, Context context);
/**
- * Deletes a namespace authorization rule.
+ * Lists all the available namespaces within the ResourceGroup.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 response of a RelayNamespace list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all the available namespaces within the ResourceGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 {@link Response}.
+ * @return the response of a RelayNamespace list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
- String authorizationRuleName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Deletes a namespace authorization rule.
+ * Lists all the available namespaces within the subscription regardless of the resourceGroups.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
+ * @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 response of a RelayNamespace list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the available namespaces within the subscription regardless of the resourceGroups.
+ *
+ * @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 response of a RelayNamespace list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
/**
- * Authorization rule for a namespace by name.
+ * Gets NetworkRuleSet for a Namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule 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 description of a namespace authorization rule along with {@link Response}.
+ * @return networkRuleSet for a Namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
- String authorizationRuleName, Context context);
+ Response getNetworkRuleSetWithResponse(String resourceGroupName, String namespaceName,
+ Context context);
/**
- * Authorization rule for a namespace by name.
+ * Gets NetworkRuleSet for a Namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
* @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 description of a namespace authorization rule.
+ * @return networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName,
- String authorizationRuleName);
+ NetworkRuleSetInner getNetworkRuleSet(String resourceGroupName, String namespaceName);
/**
- * Primary and secondary connection strings to the namespace.
+ * Create or update NetworkRuleSet for a Namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters The Namespace IpFilterRule.
* @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 namespace/Relay Connection String along with {@link Response}.
+ * @return description of topic resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listKeysWithResponse(String resourceGroupName, String namespaceName,
- String authorizationRuleName, Context context);
+ Response createOrUpdateNetworkRuleSetWithResponse(String resourceGroupName,
+ String namespaceName, NetworkRuleSetInner parameters, Context context);
/**
- * Primary and secondary connection strings to the namespace.
+ * Create or update NetworkRuleSet for a Namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters The Namespace IpFilterRule.
* @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 namespace/Relay Connection String.
+ * @return description of topic resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName);
+ NetworkRuleSetInner createOrUpdateNetworkRuleSet(String resourceGroupName, String namespaceName,
+ NetworkRuleSetInner parameters);
/**
- * Regenerates the primary or secondary connection strings to the namespace.
+ * Check the specified namespace name availability.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters Parameters supplied to regenerate authorization rule.
+ * @param parameters The 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 namespace/Relay Connection String along with {@link Response}.
+ * @return description of the check name availability request properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName,
- String authorizationRuleName, RegenerateAccessKeyParameters parameters, Context context);
+ Response checkNameAvailabilityWithResponse(CheckNameAvailability parameters,
+ Context context);
/**
- * Regenerates the primary or secondary connection strings to the namespace.
+ * Check the specified namespace name availability.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters Parameters supplied to regenerate authorization rule.
+ * @param parameters The request body.
* @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 namespace/Relay Connection String.
+ * @return description of the check name availability request properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String authorizationRuleName,
- RegenerateAccessKeyParameters parameters);
+ CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailability parameters);
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/OperationsClient.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/OperationsClient.java
index 24c5c6c5ccb9..f1e991a3f4fd 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/OperationsClient.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent;
@@ -15,23 +15,25 @@
*/
public interface OperationsClient {
/**
- * Lists all available Relay REST API operations.
+ * List the operations for the provider.
*
* @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 result of the request to list Relay operations as paginated response with {@link PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
- * Lists all available Relay REST API operations.
+ * List the operations for the provider.
*
* @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 result of the request to list Relay operations as paginated response with {@link PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/PrivateEndpointConnectionsClient.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..67d969c6ae83
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.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.relay.fluent.models.PrivateEndpointConnectionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
+ */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Gets a description for the specified Private Endpoint Connection name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection 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 a description for the specified Private Endpoint Connection name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String namespaceName,
+ String privateEndpointConnectionName, Context context);
+
+ /**
+ * Gets a description for the specified Private Endpoint Connection name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 description for the specified Private Endpoint Connection name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(String resourceGroupName, String namespaceName,
+ String privateEndpointConnectionName);
+
+ /**
+ * Creates or updates PrivateEndpointConnections of service namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace 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 the PrivateEndpointConnection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName, String namespaceName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters, Context context);
+
+ /**
+ * Creates or updates PrivateEndpointConnections of service namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace 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 properties of the PrivateEndpointConnection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String namespaceName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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, Void> beginDelete(String resourceGroupName, String namespaceName,
+ String privateEndpointConnectionName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName,
+ String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Gets the available PrivateEndpointConnections within a namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @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 available PrivateEndpointConnections within a namespace as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets the available PrivateEndpointConnections within a namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace 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 available PrivateEndpointConnections within a namespace as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName, Context context);
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/PrivateLinkResourcesClient.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..65e7dd390eb0
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.relay.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.relay.fluent.models.PrivateLinkResourcesListResultInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient.
+ */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets a private link resource by a specified group name for a container registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateLinkResourceName The name of the private link 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 a private link resource by a specified group name for a container registry along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String namespaceName,
+ String privateLinkResourceName, Context context);
+
+ /**
+ * Gets a private link resource by a specified group name for a container registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param privateLinkResourceName The name of the private link 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 a private link resource by a specified group name for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceInner get(String resourceGroupName, String namespaceName, String privateLinkResourceName);
+
+ /**
+ * Lists the private link resources for a container registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace 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 result of the List private link resources operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(String resourceGroupName, String namespaceName,
+ Context context);
+
+ /**
+ * Lists the private link resources for a container registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @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 result of the List private link resources operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourcesListResultInner list(String resourceGroupName, String namespaceName);
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/RelayApi.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/RelayManagementClient.java
similarity index 67%
rename from sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/RelayApi.java
rename to sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/RelayManagementClient.java
index 9de65c258930..ecddeee50649 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/RelayApi.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/RelayManagementClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent;
@@ -8,31 +8,30 @@
import java.time.Duration;
/**
- * The interface for RelayApi class.
+ * The interface for RelayManagementClient class.
*/
-public interface RelayApi {
+public interface RelayManagementClient {
/**
- * Gets Subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms
- * part of the URI for every service call.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -54,13 +53,6 @@ public interface RelayApi {
*/
OperationsClient getOperations();
- /**
- * Gets the NamespacesClient object to access its operations.
- *
- * @return the NamespacesClient object.
- */
- NamespacesClient getNamespaces();
-
/**
* Gets the HybridConnectionsClient object to access its operations.
*
@@ -74,4 +66,25 @@ public interface RelayApi {
* @return the WcfRelaysClient object.
*/
WcfRelaysClient getWcfRelays();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the NamespacesClient object to access its operations.
+ *
+ * @return the NamespacesClient object.
+ */
+ NamespacesClient getNamespaces();
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/WcfRelaysClient.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/WcfRelaysClient.java
index c7bedf470a00..ecba1f0076aa 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/WcfRelaysClient.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/WcfRelaysClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent;
@@ -19,134 +19,116 @@
*/
public interface WcfRelaysClient {
/**
- * Lists the WCF relays within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @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 response of the list WCF relay operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
-
- /**
- * Lists the WCF relays within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace 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 response of the list WCF relay operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNamespace(String resourceGroupName, String namespaceName, Context context);
-
- /**
- * Creates or updates a WCF relay. This operation is idempotent.
+ * Get authorizationRule for a WCF relay by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param parameters Parameters supplied to create a WCF relay.
+ * @param authorizationRuleName The authorization rule 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 description of the WCF relay resource along with {@link Response}.
+ * @return authorizationRule for a WCF relay by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String namespaceName, String relayName,
- WcfRelayInner parameters, Context context);
+ Response getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
+ String relayName, String authorizationRuleName, Context context);
/**
- * Creates or updates a WCF relay. This operation is idempotent.
+ * Get authorizationRule for a WCF relay by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param parameters Parameters supplied to create a WCF relay.
+ * @param authorizationRuleName The authorization rule name.
* @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 description of the WCF relay resource.
+ * @return authorizationRule for a WCF relay by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WcfRelayInner createOrUpdate(String resourceGroupName, String namespaceName, String relayName,
- WcfRelayInner parameters);
+ AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName, String relayName,
+ String authorizationRuleName);
/**
- * Deletes a WCF relay.
+ * Creates or updates an authorization rule for a WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
* @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 {@link Response}.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String namespaceName, String relayName,
+ Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
+ String namespaceName, String relayName, String authorizationRuleName, AuthorizationRuleInner parameters,
Context context);
/**
- * Deletes a WCF relay.
+ * Creates or updates an authorization rule for a WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
* @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 single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String namespaceName, String relayName);
+ AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
+ String relayName, String authorizationRuleName, AuthorizationRuleInner parameters);
/**
- * Returns the description for the specified WCF relay.
+ * Deletes a WCF relay authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
+ * @param authorizationRuleName The authorization rule 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 description of the WCF relay resource along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String namespaceName, String relayName,
- Context context);
+ Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String relayName,
+ String authorizationRuleName, Context context);
/**
- * Returns the description for the specified WCF relay.
+ * Deletes a WCF relay authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
+ * @param authorizationRuleName The authorization rule name.
* @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 description of the WCF relay resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WcfRelayInner get(String resourceGroupName, String namespaceName, String relayName);
+ void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String relayName,
+ String authorizationRuleName);
/**
* Authorization rules for a WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
@@ -155,185 +137,203 @@ PagedIterable listAuthorizationRules(String resourceGrou
/**
* Authorization rules for a WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay 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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
String relayName, Context context);
/**
- * Creates or updates an authorization rule for a WCF relay.
+ * Primary and secondary connection strings to the WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
* @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 description of a namespace authorization rule along with {@link Response}.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
- String namespaceName, String relayName, String authorizationRuleName, AuthorizationRuleInner parameters,
- Context context);
+ Response listKeysWithResponse(String resourceGroupName, String namespaceName, String relayName,
+ String authorizationRuleName, Context context);
/**
- * Creates or updates an authorization rule for a WCF relay.
+ * Primary and secondary connection strings to the WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
* @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 description of a namespace authorization rule.
+ * @return namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
- String relayName, String authorizationRuleName, AuthorizationRuleInner parameters);
+ AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String relayName,
+ String authorizationRuleName);
/**
- * Deletes a WCF relay authorization rule.
+ * Regenerates the primary or secondary connection strings to the WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @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 {@link Response}.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String relayName,
- String authorizationRuleName, Context context);
+ Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName,
+ String relayName, String authorizationRuleName, RegenerateAccessKeyParameters parameters, Context context);
/**
- * Deletes a WCF relay authorization rule.
+ * Regenerates the primary or secondary connection strings to the WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String relayName,
- String authorizationRuleName);
+ AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String relayName,
+ String authorizationRuleName, RegenerateAccessKeyParameters parameters);
/**
- * Get authorizationRule for a WCF relay by name.
+ * Returns the description for the specified WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param authorizationRuleName The authorization rule 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 authorizationRule for a WCF relay by name along with {@link Response}.
+ * @return description of the WCF relay resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
- String relayName, String authorizationRuleName, Context context);
+ Response getWithResponse(String resourceGroupName, String namespaceName, String relayName,
+ Context context);
/**
- * Get authorizationRule for a WCF relay by name.
+ * Returns the description for the specified WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param authorizationRuleName The authorization rule name.
* @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 authorizationRule for a WCF relay by name.
+ * @return description of the WCF relay resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName, String relayName,
- String authorizationRuleName);
+ WcfRelayInner get(String resourceGroupName, String namespaceName, String relayName);
/**
- * Primary and secondary connection strings to the WCF relay.
+ * Creates or updates a WCF relay. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to create a WCF relay.
* @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 namespace/Relay Connection String along with {@link Response}.
+ * @return description of the WCF relay resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listKeysWithResponse(String resourceGroupName, String namespaceName, String relayName,
- String authorizationRuleName, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String namespaceName, String relayName,
+ WcfRelayInner parameters, Context context);
/**
- * Primary and secondary connection strings to the WCF relay.
+ * Creates or updates a WCF relay. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to create a WCF relay.
* @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 namespace/Relay Connection String.
+ * @return description of the WCF relay resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String relayName,
- String authorizationRuleName);
+ WcfRelayInner createOrUpdate(String resourceGroupName, String namespaceName, String relayName,
+ WcfRelayInner parameters);
/**
- * Regenerates the primary or secondary connection strings to the WCF relay.
+ * Deletes a WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName,
- String relayName, String authorizationRuleName, RegenerateAccessKeyParameters parameters, Context context);
+ Response deleteWithResponse(String resourceGroupName, String namespaceName, String relayName,
+ Context context);
/**
- * Regenerates the primary or secondary connection strings to the WCF relay.
+ * Deletes a WCF relay.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param relayName The relay name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String relayName,
- String authorizationRuleName, RegenerateAccessKeyParameters parameters);
+ void delete(String resourceGroupName, String namespaceName, String relayName);
+
+ /**
+ * Lists the WCF relays within the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @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 response of the list WCF relay operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
+
+ /**
+ * Lists the WCF relays within the namespace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace 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 response of the list WCF relay operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName, Context context);
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AccessKeysInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AccessKeysInner.java
index b3b7c9f53c42..6117c9fe1cf2 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AccessKeysInner.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AccessKeysInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* Namespace/Relay Connection String.
*/
-@Fluent
+@Immutable
public final class AccessKeysInner implements JsonSerializable {
/*
* Primary connection string of the created namespace authorization rule.
@@ -44,7 +44,7 @@ public final class AccessKeysInner implements JsonSerializable
/**
* Creates an instance of AccessKeysInner class.
*/
- public AccessKeysInner() {
+ private AccessKeysInner() {
}
/**
@@ -56,17 +56,6 @@ public String primaryConnectionString() {
return this.primaryConnectionString;
}
- /**
- * Set the primaryConnectionString property: Primary connection string of the created namespace authorization rule.
- *
- * @param primaryConnectionString the primaryConnectionString value to set.
- * @return the AccessKeysInner object itself.
- */
- public AccessKeysInner withPrimaryConnectionString(String primaryConnectionString) {
- this.primaryConnectionString = primaryConnectionString;
- return this;
- }
-
/**
* Get the secondaryConnectionString property: Secondary connection string of the created namespace authorization
* rule.
@@ -77,18 +66,6 @@ public String secondaryConnectionString() {
return this.secondaryConnectionString;
}
- /**
- * Set the secondaryConnectionString property: Secondary connection string of the created namespace authorization
- * rule.
- *
- * @param secondaryConnectionString the secondaryConnectionString value to set.
- * @return the AccessKeysInner object itself.
- */
- public AccessKeysInner withSecondaryConnectionString(String secondaryConnectionString) {
- this.secondaryConnectionString = secondaryConnectionString;
- return this;
- }
-
/**
* Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
*
@@ -98,17 +75,6 @@ public String primaryKey() {
return this.primaryKey;
}
- /**
- * Set the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
- *
- * @param primaryKey the primaryKey value to set.
- * @return the AccessKeysInner object itself.
- */
- public AccessKeysInner withPrimaryKey(String primaryKey) {
- this.primaryKey = primaryKey;
- return this;
- }
-
/**
* Get the secondaryKey property: A base64-encoded 256-bit secondary key for signing and validating the SAS token.
*
@@ -118,17 +84,6 @@ public String secondaryKey() {
return this.secondaryKey;
}
- /**
- * Set the secondaryKey property: A base64-encoded 256-bit secondary key for signing and validating the SAS token.
- *
- * @param secondaryKey the secondaryKey value to set.
- * @return the AccessKeysInner object itself.
- */
- public AccessKeysInner withSecondaryKey(String secondaryKey) {
- this.secondaryKey = secondaryKey;
- return this;
- }
-
/**
* Get the keyName property: A string that describes the authorization rule.
*
@@ -138,25 +93,6 @@ public String keyName() {
return this.keyName;
}
- /**
- * Set the keyName property: A string that describes the authorization rule.
- *
- * @param keyName the keyName value to set.
- * @return the AccessKeysInner object itself.
- */
- public AccessKeysInner withKeyName(String keyName) {
- this.keyName = keyName;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleInner.java
index 6e79f15bb44b..9ac076d95cc3 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleInner.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleInner.java
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -15,14 +15,24 @@
import java.util.List;
/**
- * Description of a namespace authorization rule.
+ * Single item in a List or Get AuthorizationRule operation.
*/
@Fluent
public final class AuthorizationRuleInner extends ProxyResource {
/*
- * Authorization rule properties.
+ * Properties supplied to create or update AuthorizationRule
*/
- private AuthorizationRuleProperties innerProperties = new AuthorizationRuleProperties();
+ private AuthorizationRuleProperties innerProperties;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ private String location;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
/*
* The type of the resource.
@@ -46,7 +56,7 @@ public AuthorizationRuleInner() {
}
/**
- * Get the innerProperties property: Authorization rule properties.
+ * Get the innerProperties property: Properties supplied to create or update AuthorizationRule.
*
* @return the innerProperties value.
*/
@@ -54,6 +64,24 @@ private AuthorizationRuleProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -107,23 +135,6 @@ public AuthorizationRuleInner withRights(List rights) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model AuthorizationRuleInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(AuthorizationRuleInner.class);
-
/**
* {@inheritDoc}
*/
@@ -158,6 +169,10 @@ public static AuthorizationRuleInner fromJson(JsonReader jsonReader) throws IOEx
deserializedAuthorizationRuleInner.type = reader.getString();
} else if ("properties".equals(fieldName)) {
deserializedAuthorizationRuleInner.innerProperties = AuthorizationRuleProperties.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedAuthorizationRuleInner.location = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAuthorizationRuleInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleProperties.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleProperties.java
index 1c7a69e2de50..160e271553d3 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleProperties.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/AuthorizationRuleProperties.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +14,7 @@
import java.util.List;
/**
- * Authorization rule properties.
+ * Properties supplied to create or update AuthorizationRule.
*/
@Fluent
public final class AuthorizationRuleProperties implements JsonSerializable {
@@ -50,21 +49,6 @@ public AuthorizationRuleProperties withRights(List rights) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (rights() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property rights in model AuthorizationRuleProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(AuthorizationRuleProperties.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/CheckNameAvailabilityResultInner.java
index 00310dc89301..de67203061d1 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/CheckNameAvailabilityResultInner.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/CheckNameAvailabilityResultInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +15,7 @@
/**
* Description of the check name availability request properties.
*/
-@Fluent
+@Immutable
public final class CheckNameAvailabilityResultInner implements JsonSerializable {
/*
* The detailed info regarding the reason associated with the namespace.
@@ -35,7 +35,7 @@ public final class CheckNameAvailabilityResultInner implements JsonSerializable<
/**
* Creates an instance of CheckNameAvailabilityResultInner class.
*/
- public CheckNameAvailabilityResultInner() {
+ private CheckNameAvailabilityResultInner() {
}
/**
@@ -57,18 +57,6 @@ public Boolean nameAvailable() {
return this.nameAvailable;
}
- /**
- * Set the nameAvailable property: Value indicating namespace is available. Returns true if the namespace is
- * available; otherwise, false.
- *
- * @param nameAvailable the nameAvailable value to set.
- * @return the CheckNameAvailabilityResultInner object itself.
- */
- public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
- this.nameAvailable = nameAvailable;
- return this;
- }
-
/**
* Get the reason property: The reason for unavailability of a namespace.
*
@@ -78,25 +66,6 @@ public UnavailableReason reason() {
return this.reason;
}
- /**
- * Set the reason property: The reason for unavailability of a namespace.
- *
- * @param reason the reason value to set.
- * @return the CheckNameAvailabilityResultInner object itself.
- */
- public CheckNameAvailabilityResultInner withReason(UnavailableReason reason) {
- this.reason = reason;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionInner.java
index 3804f6f9b28a..f835879f037e 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionInner.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionInner.java
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -22,6 +23,16 @@ public final class HybridConnectionInner extends ProxyResource {
*/
private HybridConnectionProperties innerProperties;
+ /*
+ * The geo-location where the resource lives
+ */
+ private String location;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -52,6 +63,24 @@ private HybridConnectionProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -162,17 +191,6 @@ public HybridConnectionInner withUserMetadata(String userMetadata) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -207,6 +225,10 @@ public static HybridConnectionInner fromJson(JsonReader jsonReader) throws IOExc
deserializedHybridConnectionInner.type = reader.getString();
} else if ("properties".equals(fieldName)) {
deserializedHybridConnectionInner.innerProperties = HybridConnectionProperties.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedHybridConnectionInner.location = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedHybridConnectionInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionProperties.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionProperties.java
index f5ae8a3db939..31aa9f6988c9 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionProperties.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/HybridConnectionProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
@@ -125,14 +125,6 @@ public HybridConnectionProperties withUserMetadata(String userMetadata) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/NetworkRuleSetInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/NetworkRuleSetInner.java
new file mode 100644
index 000000000000..bd91850c611e
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/NetworkRuleSetInner.java
@@ -0,0 +1,243 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.relay.models.DefaultAction;
+import com.azure.resourcemanager.relay.models.NWRuleSetIpRules;
+import com.azure.resourcemanager.relay.models.PublicNetworkAccess;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Description of topic resource.
+ */
+@Fluent
+public final class NetworkRuleSetInner extends ProxyResource {
+ /*
+ * NetworkRuleSet properties
+ */
+ private NetworkRuleSetProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of NetworkRuleSetInner class.
+ */
+ public NetworkRuleSetInner() {
+ }
+
+ /**
+ * Get the innerProperties property: NetworkRuleSet properties.
+ *
+ * @return the innerProperties value.
+ */
+ private NetworkRuleSetProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @return the trustedServiceAccessEnabled value.
+ */
+ public Boolean trustedServiceAccessEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().trustedServiceAccessEnabled();
+ }
+
+ /**
+ * Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @param trustedServiceAccessEnabled the trustedServiceAccessEnabled value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withTrustedServiceAccessEnabled(trustedServiceAccessEnabled);
+ return this;
+ }
+
+ /**
+ * Get the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @return the defaultAction value.
+ */
+ public DefaultAction defaultAction() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultAction();
+ }
+
+ /**
+ * Set the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @param defaultAction the defaultAction value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withDefaultAction(DefaultAction defaultAction) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withDefaultAction(defaultAction);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Get the ipRules property: List of IpRules.
+ *
+ * @return the ipRules value.
+ */
+ public List ipRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipRules();
+ }
+
+ /**
+ * Set the ipRules property: List of IpRules.
+ *
+ * @param ipRules the ipRules value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withIpRules(List ipRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withIpRules(ipRules);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NetworkRuleSetInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NetworkRuleSetInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the NetworkRuleSetInner.
+ */
+ public static NetworkRuleSetInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NetworkRuleSetInner deserializedNetworkRuleSetInner = new NetworkRuleSetInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedNetworkRuleSetInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedNetworkRuleSetInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedNetworkRuleSetInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedNetworkRuleSetInner.innerProperties = NetworkRuleSetProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedNetworkRuleSetInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNetworkRuleSetInner;
+ });
+ }
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/NetworkRuleSetProperties.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/NetworkRuleSetProperties.java
new file mode 100644
index 000000000000..1dcc81fb3953
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/NetworkRuleSetProperties.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.relay.models.DefaultAction;
+import com.azure.resourcemanager.relay.models.NWRuleSetIpRules;
+import com.azure.resourcemanager.relay.models.PublicNetworkAccess;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * NetworkRuleSet properties.
+ */
+@Fluent
+public final class NetworkRuleSetProperties implements JsonSerializable {
+ /*
+ * Value that indicates whether Trusted Service Access is Enabled or not.
+ */
+ private Boolean trustedServiceAccessEnabled;
+
+ /*
+ * Default Action for Network Rule Set
+ */
+ private DefaultAction defaultAction;
+
+ /*
+ * This determines if traffic is allowed over public network. By default it is enabled
+ */
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * List of IpRules
+ */
+ private List ipRules;
+
+ /**
+ * Creates an instance of NetworkRuleSetProperties class.
+ */
+ public NetworkRuleSetProperties() {
+ }
+
+ /**
+ * Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @return the trustedServiceAccessEnabled value.
+ */
+ public Boolean trustedServiceAccessEnabled() {
+ return this.trustedServiceAccessEnabled;
+ }
+
+ /**
+ * Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @param trustedServiceAccessEnabled the trustedServiceAccessEnabled value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled) {
+ this.trustedServiceAccessEnabled = trustedServiceAccessEnabled;
+ return this;
+ }
+
+ /**
+ * Get the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @return the defaultAction value.
+ */
+ public DefaultAction defaultAction() {
+ return this.defaultAction;
+ }
+
+ /**
+ * Set the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @param defaultAction the defaultAction value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withDefaultAction(DefaultAction defaultAction) {
+ this.defaultAction = defaultAction;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the ipRules property: List of IpRules.
+ *
+ * @return the ipRules value.
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the ipRules property: List of IpRules.
+ *
+ * @param ipRules the ipRules value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("trustedServiceAccessEnabled", this.trustedServiceAccessEnabled);
+ jsonWriter.writeStringField("defaultAction", this.defaultAction == null ? null : this.defaultAction.toString());
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("ipRules", this.ipRules, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NetworkRuleSetProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NetworkRuleSetProperties if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the NetworkRuleSetProperties.
+ */
+ public static NetworkRuleSetProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NetworkRuleSetProperties deserializedNetworkRuleSetProperties = new NetworkRuleSetProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("trustedServiceAccessEnabled".equals(fieldName)) {
+ deserializedNetworkRuleSetProperties.trustedServiceAccessEnabled
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("defaultAction".equals(fieldName)) {
+ deserializedNetworkRuleSetProperties.defaultAction = DefaultAction.fromString(reader.getString());
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedNetworkRuleSetProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("ipRules".equals(fieldName)) {
+ List ipRules = reader.readArray(reader1 -> NWRuleSetIpRules.fromJson(reader1));
+ deserializedNetworkRuleSetProperties.ipRules = ipRules;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNetworkRuleSetProperties;
+ });
+ }
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/OperationInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/OperationInner.java
index e42c93d25e6b..507e531611ee 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/OperationInner.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/OperationInner.java
@@ -1,40 +1,63 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.relay.models.ActionType;
import com.azure.resourcemanager.relay.models.OperationDisplay;
+import com.azure.resourcemanager.relay.models.Origin;
import java.io.IOException;
/**
- * A Relay REST API operation.
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
*/
-@Fluent
+@Immutable
public final class OperationInner implements JsonSerializable {
/*
- * Operation name: {provider}/{resource}/{operation}
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
private String name;
/*
- * The object that represents the operation.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
*/
private OperationDisplay display;
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
/**
* Creates an instance of OperationInner class.
*/
- public OperationInner() {
+ private OperationInner() {
}
/**
- * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
*
* @return the name value.
*/
@@ -43,7 +66,17 @@ public String name() {
}
/**
- * Get the display property: The object that represents the operation.
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for Azure Resource Manager/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
*
* @return the display value.
*/
@@ -52,25 +85,23 @@ public OperationDisplay display() {
}
/**
- * Set the display property: The object that represents the operation.
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
*
- * @param display the display value to set.
- * @return the OperationInner object itself.
+ * @return the origin value.
*/
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
+ public Origin origin() {
+ return this.origin;
}
/**
- * Validates the instance.
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @return the actionType value.
*/
- public void validate() {
- if (display() != null) {
- display().validate();
- }
+ public ActionType actionType() {
+ return this.actionType;
}
/**
@@ -100,8 +131,14 @@ public static OperationInner fromJson(JsonReader jsonReader) throws IOException
if ("name".equals(fieldName)) {
deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
} else if ("display".equals(fieldName)) {
deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateEndpointConnectionInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..345f1dbe4632
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,234 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.relay.models.ConnectionState;
+import com.azure.resourcemanager.relay.models.EndPointProvisioningState;
+import com.azure.resourcemanager.relay.models.PrivateEndpoint;
+import java.io.IOException;
+
+/**
+ * Properties of the PrivateEndpointConnection.
+ */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Properties of the PrivateEndpointConnection.
+ */
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ private String location;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of PrivateEndpointConnectionInner class.
+ */
+ public PrivateEndpointConnectionInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the PrivateEndpointConnection.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public ConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner
+ withPrivateLinkServiceConnectionState(ConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @return the provisioningState value.
+ */
+ public EndPointProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withProvisioningState(EndPointProvisioningState provisioningState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateEndpointConnectionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateEndpointConnectionInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PrivateEndpointConnectionInner.
+ */
+ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateEndpointConnectionInner deserializedPrivateEndpointConnectionInner
+ = new PrivateEndpointConnectionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.innerProperties
+ = PrivateEndpointConnectionProperties.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.location = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateEndpointConnectionInner;
+ });
+ }
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..8140c9e5496b
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.relay.models.ConnectionState;
+import com.azure.resourcemanager.relay.models.EndPointProvisioningState;
+import com.azure.resourcemanager.relay.models.PrivateEndpoint;
+import java.io.IOException;
+
+/**
+ * Properties of the private endpoint connection resource.
+ */
+@Fluent
+public final class PrivateEndpointConnectionProperties
+ implements JsonSerializable {
+ /*
+ * The Private Endpoint resource for this Connection.
+ */
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * Details about the state of the connection.
+ */
+ private ConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * Provisioning state of the Private Endpoint Connection.
+ */
+ private EndPointProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of PrivateEndpointConnectionProperties class.
+ */
+ public PrivateEndpointConnectionProperties() {
+ }
+
+ /**
+ * Get the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public ConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties
+ withPrivateLinkServiceConnectionState(ConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @return the provisioningState value.
+ */
+ public EndPointProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withProvisioningState(EndPointProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("privateEndpoint", this.privateEndpoint);
+ jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState);
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateEndpointConnectionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateEndpointConnectionProperties if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the PrivateEndpointConnectionProperties.
+ */
+ public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateEndpointConnectionProperties deserializedPrivateEndpointConnectionProperties
+ = new PrivateEndpointConnectionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateEndpoint".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader);
+ } else if ("privateLinkServiceConnectionState".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState
+ = ConnectionState.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.provisioningState
+ = EndPointProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateEndpointConnectionProperties;
+ });
+ }
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourceInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 000000000000..aaa808b6cc21
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,172 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * A resource that supports private link capabilities.
+ */
+@Immutable
+public final class PrivateLinkResourceInner extends ProxyResource {
+ /*
+ * A resource that supports private link capabilities.
+ */
+ private PrivateLinkResourceProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of PrivateLinkResourceInner class.
+ */
+ private PrivateLinkResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: A resource that supports private link capabilities.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateLinkResourceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupId();
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredMembers();
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourceInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PrivateLinkResourceInner.
+ */
+ public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourceInner deserializedPrivateLinkResourceInner = new PrivateLinkResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.innerProperties
+ = PrivateLinkResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourceInner;
+ });
+ }
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourceProperties.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 000000000000..ef98d5dafabe
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Properties of PrivateLinkResource.
+ */
+@Immutable
+public final class PrivateLinkResourceProperties implements JsonSerializable {
+ /*
+ * The private link resource group id.
+ */
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ private List requiredMembers;
+
+ /*
+ * The private link resource Private link DNS zone name.
+ */
+ private List requiredZoneNames;
+
+ /**
+ * Creates an instance of PrivateLinkResourceProperties class.
+ */
+ private PrivateLinkResourceProperties() {
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("groupId", this.groupId);
+ jsonWriter.writeArrayField("requiredMembers", this.requiredMembers,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("requiredZoneNames", this.requiredZoneNames,
+ (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourceProperties if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the PrivateLinkResourceProperties.
+ */
+ public static PrivateLinkResourceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourceProperties deserializedPrivateLinkResourceProperties
+ = new PrivateLinkResourceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("groupId".equals(fieldName)) {
+ deserializedPrivateLinkResourceProperties.groupId = reader.getString();
+ } else if ("requiredMembers".equals(fieldName)) {
+ List requiredMembers = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateLinkResourceProperties.requiredMembers = requiredMembers;
+ } else if ("requiredZoneNames".equals(fieldName)) {
+ List requiredZoneNames = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateLinkResourceProperties.requiredZoneNames = requiredZoneNames;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourceProperties;
+ });
+ }
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourcesListResultInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourcesListResultInner.java
new file mode 100644
index 000000000000..b017e2301b68
--- /dev/null
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/PrivateLinkResourcesListResultInner.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.relay.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Result of the List private link resources operation.
+ */
+@Immutable
+public final class PrivateLinkResourcesListResultInner
+ implements JsonSerializable {
+ /*
+ * A collection of private link resources
+ */
+ private List value;
+
+ /*
+ * A link for the next page of private link resources.
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of PrivateLinkResourcesListResultInner class.
+ */
+ private PrivateLinkResourcesListResultInner() {
+ }
+
+ /**
+ * Get the value property: A collection of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: A link for the next page of private link resources.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourcesListResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourcesListResultInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PrivateLinkResourcesListResultInner.
+ */
+ public static PrivateLinkResourcesListResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourcesListResultInner deserializedPrivateLinkResourcesListResultInner
+ = new PrivateLinkResourcesListResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> PrivateLinkResourceInner.fromJson(reader1));
+ deserializedPrivateLinkResourcesListResultInner.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedPrivateLinkResourcesListResultInner.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourcesListResultInner;
+ });
+ }
+}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceInner.java
index 4cc495ffcf8d..34f156bebb1d 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceInner.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceInner.java
@@ -1,18 +1,21 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.relay.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.relay.models.PublicNetworkAccess;
import com.azure.resourcemanager.relay.models.Sku;
+import com.azure.resourcemanager.relay.models.TlsVersion;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.util.List;
import java.util.Map;
/**
@@ -20,15 +23,20 @@
*/
@Fluent
public final class RelayNamespaceInner extends Resource {
+ /*
+ * Description of Relay namespace
+ */
+ private RelayNamespaceProperties innerProperties;
+
/*
* SKU of the namespace.
*/
private Sku sku;
/*
- * Description of Relay namespace
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- private RelayNamespaceProperties innerProperties;
+ private SystemData systemData;
/*
* The type of the resource.
@@ -51,6 +59,15 @@ public final class RelayNamespaceInner extends Resource {
public RelayNamespaceInner() {
}
+ /**
+ * Get the innerProperties property: Description of Relay namespace.
+ *
+ * @return the innerProperties value.
+ */
+ private RelayNamespaceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the sku property: SKU of the namespace.
*
@@ -72,12 +89,12 @@ public RelayNamespaceInner withSku(Sku sku) {
}
/**
- * Get the innerProperties property: Description of Relay namespace.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
- * @return the innerProperties value.
+ * @return the systemData value.
*/
- private RelayNamespaceProperties innerProperties() {
- return this.innerProperties;
+ public SystemData systemData() {
+ return this.systemData;
}
/**
@@ -129,14 +146,23 @@ public RelayNamespaceInner withTags(Map tags) {
}
/**
- * Get the provisioningState property: The provisioningState property.
+ * Get the provisioningState property: Provisioning state of the Namespace.
*
* @return the provisioningState value.
*/
- public ProvisioningStateEnum provisioningState() {
+ public String provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the status property: Status of the Namespace.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
/**
* Get the createdAt property: The time the namespace was created.
*
@@ -174,17 +200,81 @@ public String metricId() {
}
/**
- * Validates the instance.
+ * Get the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
+ /**
+ * Set the privateEndpointConnections property: List of private endpoint connections.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the RelayNamespaceInner object itself.
*/
- public void validate() {
- if (sku() != null) {
- sku().validate();
+ public RelayNamespaceInner
+ withPrivateEndpointConnections(List privateEndpointConnections) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RelayNamespaceProperties();
}
- if (innerProperties() != null) {
- innerProperties().validate();
+ this.innerProperties().withPrivateEndpointConnections(privateEndpointConnections);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the RelayNamespaceInner object itself.
+ */
+ public RelayNamespaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RelayNamespaceProperties();
}
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Get the minimumTlsVersion property: The minimum TLS version for the namespace.
+ * Supported values are 1.2 and 1.3.
+ * The service defaults to 1.2 when the property is omitted.
+ * Existing namespaces configured with TLS 1.0 or 1.1 are reported as TLS 1.2.
+ *
+ * @return the minimumTlsVersion value.
+ */
+ public TlsVersion minimumTlsVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().minimumTlsVersion();
+ }
+
+ /**
+ * Set the minimumTlsVersion property: The minimum TLS version for the namespace.
+ * Supported values are 1.2 and 1.3.
+ * The service defaults to 1.2 when the property is omitted.
+ * Existing namespaces configured with TLS 1.0 or 1.1 are reported as TLS 1.2.
+ *
+ * @param minimumTlsVersion the minimumTlsVersion value to set.
+ * @return the RelayNamespaceInner object itself.
+ */
+ public RelayNamespaceInner withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RelayNamespaceProperties();
+ }
+ this.innerProperties().withMinimumTlsVersion(minimumTlsVersion);
+ return this;
}
/**
@@ -195,8 +285,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("sku", this.sku);
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -227,10 +317,12 @@ public static RelayNamespaceInner fromJson(JsonReader jsonReader) throws IOExcep
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedRelayNamespaceInner.withTags(tags);
- } else if ("sku".equals(fieldName)) {
- deserializedRelayNamespaceInner.sku = Sku.fromJson(reader);
} else if ("properties".equals(fieldName)) {
deserializedRelayNamespaceInner.innerProperties = RelayNamespaceProperties.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedRelayNamespaceInner.sku = Sku.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRelayNamespaceInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceProperties.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceProperties.java
index 8544e5a2123b..86bf0ba18e88 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceProperties.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/RelayNamespaceProperties.java
@@ -1,28 +1,35 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
import com.azure.core.util.CoreUtils;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.relay.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.relay.models.PublicNetworkAccess;
+import com.azure.resourcemanager.relay.models.TlsVersion;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.util.List;
/**
* Properties of the namespace.
*/
-@Immutable
+@Fluent
public final class RelayNamespaceProperties implements JsonSerializable {
/*
- * The provisioningState property.
+ * Provisioning state of the Namespace.
*/
- private ProvisioningStateEnum provisioningState;
+ private String provisioningState;
+
+ /*
+ * Status of the Namespace.
+ */
+ private String status;
/*
* The time the namespace was created.
@@ -44,6 +51,24 @@ public final class RelayNamespaceProperties implements JsonSerializable privateEndpointConnections;
+
+ /*
+ * This determines if traffic is allowed over public network. By default it is enabled.
+ */
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * The minimum TLS version for the namespace.
+ * Supported values are 1.2 and 1.3.
+ * The service defaults to 1.2 when the property is omitted.
+ * Existing namespaces configured with TLS 1.0 or 1.1 are reported as TLS 1.2.
+ */
+ private TlsVersion minimumTlsVersion;
+
/**
* Creates an instance of RelayNamespaceProperties class.
*/
@@ -51,14 +76,23 @@ public RelayNamespaceProperties() {
}
/**
- * Get the provisioningState property: The provisioningState property.
+ * Get the provisioningState property: Provisioning state of the Namespace.
*
* @return the provisioningState value.
*/
- public ProvisioningStateEnum provisioningState() {
+ public String provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the status property: Status of the Namespace.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
/**
* Get the createdAt property: The time the namespace was created.
*
@@ -96,11 +130,72 @@ public String metricId() {
}
/**
- * Validates the instance.
+ * Get the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Set the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the RelayNamespaceProperties object itself.
+ */
+ public RelayNamespaceProperties
+ withPrivateEndpointConnections(List privateEndpointConnections) {
+ this.privateEndpointConnections = privateEndpointConnections;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the RelayNamespaceProperties object itself.
+ */
+ public RelayNamespaceProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the minimumTlsVersion property: The minimum TLS version for the namespace.
+ * Supported values are 1.2 and 1.3.
+ * The service defaults to 1.2 when the property is omitted.
+ * Existing namespaces configured with TLS 1.0 or 1.1 are reported as TLS 1.2.
+ *
+ * @return the minimumTlsVersion value.
+ */
+ public TlsVersion minimumTlsVersion() {
+ return this.minimumTlsVersion;
+ }
+
+ /**
+ * Set the minimumTlsVersion property: The minimum TLS version for the namespace.
+ * Supported values are 1.2 and 1.3.
+ * The service defaults to 1.2 when the property is omitted.
+ * Existing namespaces configured with TLS 1.0 or 1.1 are reported as TLS 1.2.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @param minimumTlsVersion the minimumTlsVersion value to set.
+ * @return the RelayNamespaceProperties object itself.
*/
- public void validate() {
+ public RelayNamespaceProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ this.minimumTlsVersion = minimumTlsVersion;
+ return this;
}
/**
@@ -109,6 +204,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("privateEndpointConnections", this.privateEndpointConnections,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeStringField("minimumTlsVersion",
+ this.minimumTlsVersion == null ? null : this.minimumTlsVersion.toString());
return jsonWriter.writeEndObject();
}
@@ -128,8 +229,9 @@ public static RelayNamespaceProperties fromJson(JsonReader jsonReader) throws IO
reader.nextToken();
if ("provisioningState".equals(fieldName)) {
- deserializedRelayNamespaceProperties.provisioningState
- = ProvisioningStateEnum.fromString(reader.getString());
+ deserializedRelayNamespaceProperties.provisioningState = reader.getString();
+ } else if ("status".equals(fieldName)) {
+ deserializedRelayNamespaceProperties.status = reader.getString();
} else if ("createdAt".equals(fieldName)) {
deserializedRelayNamespaceProperties.createdAt = reader
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
@@ -140,6 +242,15 @@ public static RelayNamespaceProperties fromJson(JsonReader jsonReader) throws IO
deserializedRelayNamespaceProperties.serviceBusEndpoint = reader.getString();
} else if ("metricId".equals(fieldName)) {
deserializedRelayNamespaceProperties.metricId = reader.getString();
+ } else if ("privateEndpointConnections".equals(fieldName)) {
+ List privateEndpointConnections
+ = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
+ deserializedRelayNamespaceProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedRelayNamespaceProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("minimumTlsVersion".equals(fieldName)) {
+ deserializedRelayNamespaceProperties.minimumTlsVersion = TlsVersion.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayInner.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayInner.java
index dbb564772c99..98ccf27a58e1 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayInner.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayInner.java
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -23,6 +24,16 @@ public final class WcfRelayInner extends ProxyResource {
*/
private WcfRelayProperties innerProperties;
+ /*
+ * The geo-location where the resource lives
+ */
+ private String location;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -53,6 +64,24 @@ private WcfRelayProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -220,17 +249,6 @@ public WcfRelayInner withUserMetadata(String userMetadata) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -265,6 +283,10 @@ public static WcfRelayInner fromJson(JsonReader jsonReader) throws IOException {
deserializedWcfRelayInner.type = reader.getString();
} else if ("properties".equals(fieldName)) {
deserializedWcfRelayInner.innerProperties = WcfRelayProperties.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedWcfRelayInner.location = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedWcfRelayInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayProperties.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayProperties.java
index 4abf60d33f13..f4cf951248af 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayProperties.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/WcfRelayProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.fluent.models;
@@ -192,14 +192,6 @@ public WcfRelayProperties withUserMetadata(String userMetadata) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/package-info.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/package-info.java
index 0ba92b05852b..dd4167d20c04 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/package-info.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for RelayApi.
+ * Package containing the inner data models for Relay.
* Use these API to manage Azure Relay resources through Azure Resource Manager.
*/
package com.azure.resourcemanager.relay.fluent.models;
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/package-info.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/package-info.java
index 765a0edf833c..794956b1ceed 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/package-info.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for RelayApi.
+ * Package containing the service clients for Relay.
* Use these API to manage Azure Relay resources through Azure Resource Manager.
*/
package com.azure.resourcemanager.relay.fluent;
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AccessKeysImpl.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AccessKeysImpl.java
index d28735428fe6..2b1532bc8138 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AccessKeysImpl.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AccessKeysImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.implementation;
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AuthorizationRuleImpl.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AuthorizationRuleImpl.java
index 685115c50e6f..1f6aaf1793d8 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AuthorizationRuleImpl.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/AuthorizationRuleImpl.java
@@ -1,10 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.implementation;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.relay.fluent.models.AuthorizationRuleInner;
import com.azure.resourcemanager.relay.models.AccessKeys;
@@ -32,6 +34,14 @@ public String type() {
return this.innerModel().type();
}
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public List rights() {
List inner = this.innerModel().rights();
if (inner != null) {
@@ -41,6 +51,14 @@ public List rights() {
}
}
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/CheckNameAvailabilityResultImpl.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/CheckNameAvailabilityResultImpl.java
index c06029c80633..bb018924a30f 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/CheckNameAvailabilityResultImpl.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/CheckNameAvailabilityResultImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.implementation;
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionImpl.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionImpl.java
index 3d436e840e32..c53b1d25188f 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionImpl.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionImpl.java
@@ -1,9 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.implementation;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.relay.fluent.models.HybridConnectionInner;
import com.azure.resourcemanager.relay.models.HybridConnection;
@@ -27,6 +29,14 @@ public String type() {
return this.innerModel().type();
}
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public OffsetDateTime createdAt() {
return this.innerModel().createdAt();
}
@@ -47,6 +57,14 @@ public String userMetadata() {
return this.innerModel().userMetadata();
}
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionsClientImpl.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionsClientImpl.java
index 6b4b632ccb17..d6c39d4415bb 100644
--- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionsClientImpl.java
+++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/HybridConnectionsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.relay.implementation;
@@ -33,8 +33,8 @@
import com.azure.resourcemanager.relay.fluent.models.AccessKeysInner;
import com.azure.resourcemanager.relay.fluent.models.AuthorizationRuleInner;
import com.azure.resourcemanager.relay.fluent.models.HybridConnectionInner;
-import com.azure.resourcemanager.relay.models.AuthorizationRuleListResult;
-import com.azure.resourcemanager.relay.models.HybridConnectionListResult;
+import com.azure.resourcemanager.relay.implementation.models.AuthorizationRuleListResult;
+import com.azure.resourcemanager.relay.implementation.models.HybridConnectionListResult;
import com.azure.resourcemanager.relay.models.RegenerateAccessKeyParameters;
import reactor.core.publisher.Mono;
@@ -50,139 +50,228 @@ public final class HybridConnectionsClientImpl implements HybridConnectionsClien
/**
* The service client containing this operation class.
*/
- private final RelayApiImpl client;
+ private final RelayManagementClientImpl client;
/**
* Initializes an instance of HybridConnectionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- HybridConnectionsClientImpl(RelayApiImpl client) {
+ HybridConnectionsClientImpl(RelayManagementClientImpl client) {
this.service
= RestProxy.create(HybridConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for RelayApiHybridConnections to be used by the proxy service to perform
- * REST calls.
+ * The interface defining all the services for RelayManagementClientHybridConnections to be used by the proxy
+ * service to perform REST calls.
*/
- @Host("{$host}")
- @ServiceInterface(name = "RelayApiHybridConnec")
+ @Host("{endpoint}")
+ @ServiceInterface(name = "RelayManagementClientHybridConnections")
public interface HybridConnectionsService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByNamespace(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ Mono> getAuthorizationRule(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName,
+ @PathParam("authorizationRuleName") String authorizationRuleName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> createOrUpdate(@HostParam("$host") String endpoint,
+ Response getAuthorizationRuleSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") HybridConnectionInner parameters, @HeaderParam("Accept") String accept,
+ @PathParam("authorizationRuleName") String authorizationRuleName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
- @ExpectedResponses({ 200, 204 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(@HostParam("$host") String endpoint,
+ Mono> createOrUpdateAuthorizationRule(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("authorizationRuleName") String authorizationRuleName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AuthorizationRuleInner parameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Response createOrUpdateAuthorizationRuleSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
+ @PathParam("authorizationRuleName") String authorizationRuleName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AuthorizationRuleInner parameters, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> deleteAuthorizationRule(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName,
+ @PathParam("authorizationRuleName") String authorizationRuleName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteAuthorizationRuleSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName,
+ @PathParam("authorizationRuleName") String authorizationRuleName, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listAuthorizationRules(@HostParam("$host") String endpoint,
+ Mono> listAuthorizationRules(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
- @PathParam("hybridConnectionName") String hybridConnectionName,
+ @PathParam("hybridConnectionName") String hybridConnectionName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listAuthorizationRulesSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/listKeys")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> createOrUpdateAuthorizationRule(@HostParam("$host") String endpoint,
+ Mono> listKeys(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
- @PathParam("authorizationRuleName") String authorizationRuleName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") AuthorizationRuleInner parameters, @HeaderParam("Accept") String accept,
+ @PathParam("authorizationRuleName") String authorizationRuleName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
- @ExpectedResponses({ 200, 204 })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/listKeys")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> deleteAuthorizationRule(@HostParam("$host") String endpoint,
+ Response listKeysSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
- @PathParam("authorizationRuleName") String authorizationRuleName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("authorizationRuleName") String authorizationRuleName, @HeaderParam("Accept") String accept,
+ Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}")
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/regenerateKeys")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getAuthorizationRule(@HostParam("$host") String endpoint,
+ Mono> regenerateKeys(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
@PathParam("authorizationRuleName") String authorizationRuleName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") RegenerateAccessKeyParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/listKeys")
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/regenerateKeys")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listKeys(@HostParam("$host") String endpoint,
+ Response regenerateKeysSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
@PathParam("authorizationRuleName") String authorizationRuleName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") RegenerateAccessKeyParameters parameters, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/regenerateKeys")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> regenerateKeys(@HostParam("$host") String endpoint,
+ Mono> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@PathParam("hybridConnectionName") String hybridConnectionName,
- @PathParam("authorizationRuleName") String authorizationRuleName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") HybridConnectionInner parameters, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") RegenerateAccessKeyParameters parameters,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") HybridConnectionInner parameters, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
+ @PathParam("hybridConnectionName") String hybridConnectionName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByNamespace(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByNamespaceNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ Response listByNamespaceSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("namespaceName") String namespaceName,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -190,609 +279,311 @@ Mono> listByNamespaceNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listAuthorizationRulesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 response of the list hybrid connection operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNamespaceSinglePageAsync(String resourceGroupName,
- String namespaceName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByNamespace(this.client.getEndpoint(), resourceGroupName, namespaceName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
- /**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 response of the list hybrid connection operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNamespaceSinglePageAsync(String resourceGroupName,
- String namespaceName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByNamespace(this.client.getEndpoint(), resourceGroupName, namespaceName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 response of the list hybrid connection operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName) {
- return new PagedFlux<>(() -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName),
- nextLink -> listByNamespaceNextSinglePageAsync(nextLink));
- }
-
- /**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 response of the list hybrid connection operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName,
- Context context) {
- return new PagedFlux<>(() -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName, context),
- nextLink -> listByNamespaceNextSinglePageAsync(nextLink, context));
- }
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listAuthorizationRulesNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- /**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 response of the list hybrid connection operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByNamespace(String resourceGroupName, String namespaceName) {
- return new PagedIterable<>(listByNamespaceAsync(resourceGroupName, namespaceName));
- }
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByNamespaceNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- /**
- * Lists the hybrid connection within the namespace.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 response of the list hybrid connection operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByNamespace(String resourceGroupName, String namespaceName,
- Context context) {
- return new PagedIterable<>(listByNamespaceAsync(resourceGroupName, namespaceName, context));
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByNamespaceNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
- * Creates or updates a service hybrid connection. This operation is idempotent.
+ * Hybrid connection authorization rule for a hybrid connection by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param parameters Parameters supplied to create a hybrid connection.
+ * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, HybridConnectionInner parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ private Mono> getAuthorizationRuleWithResponseAsync(String resourceGroupName,
+ String namespaceName, String hybridConnectionName, String authorizationRuleName) {
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept,
- context))
+ .withContext(context -> service.getAuthorizationRule(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Creates or updates a service hybrid connection. This operation is idempotent.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param hybridConnectionName The hybrid connection name.
- * @param parameters Parameters supplied to create a hybrid connection.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, HybridConnectionInner parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, namespaceName, hybridConnectionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context);
- }
-
- /**
- * Creates or updates a service hybrid connection. This operation is idempotent.
+ * Hybrid connection authorization rule for a hybrid connection by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param parameters Parameters supplied to create a hybrid connection.
+ * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource on successful completion of {@link Mono}.
+ * @return single item in a List or Get AuthorizationRule operation on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, HybridConnectionInner parameters) {
- return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, parameters)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Mono getAuthorizationRuleAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName) {
+ return getAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Creates or updates a service hybrid connection. This operation is idempotent.
+ * Hybrid connection authorization rule for a hybrid connection by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param parameters Parameters supplied to create a hybrid connection.
+ * @param authorizationRuleName The authorization rule name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource along with {@link Response}.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, HybridConnectionInner parameters, Context context) {
- return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, parameters,
- context).block();
- }
-
- /**
- * Creates or updates a service hybrid connection. This operation is idempotent.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param hybridConnectionName The hybrid connection name.
- * @param parameters Parameters supplied to create a hybrid connection.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public HybridConnectionInner createOrUpdate(String resourceGroupName, String namespaceName,
- String hybridConnectionName, HybridConnectionInner parameters) {
- return createOrUpdateWithResponse(resourceGroupName, namespaceName, hybridConnectionName, parameters,
- Context.NONE).getValue();
- }
-
- /**
- * Deletes a hybrid connection.
- *
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
- * @param namespaceName The namespace name.
- * @param hybridConnectionName The hybrid connection name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ public Response getAuthorizationRuleWithResponse(String resourceGroupName,
+ String namespaceName, String hybridConnectionName, String authorizationRuleName, Context context) {
final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ return service.getAuthorizationRuleSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, accept, context);
}
/**
- * Deletes a hybrid connection.
+ * Hybrid connection authorization rule for a hybrid connection by name.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param context The context to associate with this operation.
+ * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 Response} on successful completion of {@link Mono}.
+ * @return single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), resourceGroupName, namespaceName, hybridConnectionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ public AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName) {
+ return getAuthorizationRuleWithResponse(resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, Context.NONE).getValue();
}
/**
- * Deletes a hybrid connection.
+ * Creates or updates an authorization rule for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 {@link Mono} that completes when a successful response is received.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String namespaceName, String hybridConnectionName) {
- return deleteWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName)
- .flatMap(ignored -> Mono.empty());
+ private Mono> createOrUpdateAuthorizationRuleWithResponseAsync(
+ String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName,
+ AuthorizationRuleInner parameters) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdateAuthorizationRule(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, namespaceName,
+ hybridConnectionName, authorizationRuleName, contentType, accept, parameters, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Deletes a hybrid connection.
+ * Creates or updates an authorization rule for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param context The context to associate with this operation.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 Response}.
+ * @return single item in a List or Get AuthorizationRule operation on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, context).block();
+ private Mono createOrUpdateAuthorizationRuleAsync(String resourceGroupName,
+ String namespaceName, String hybridConnectionName, String authorizationRuleName,
+ AuthorizationRuleInner parameters) {
+ return createOrUpdateAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Deletes a hybrid connection.
+ * Creates or updates an authorization rule for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in a List or Get AuthorizationRule operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String namespaceName, String hybridConnectionName) {
- deleteWithResponse(resourceGroupName, namespaceName, hybridConnectionName, Context.NONE);
+ public Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
+ String namespaceName, String hybridConnectionName, String authorizationRuleName,
+ AuthorizationRuleInner parameters, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateAuthorizationRuleSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, contentType, accept, parameters, context);
}
/**
- * Returns the description for the specified hybrid connection.
+ * Creates or updates an authorization rule for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The authorization rule parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ public AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters) {
+ return createOrUpdateAuthorizationRuleWithResponse(resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, parameters, Context.NONE).getValue();
}
/**
- * Returns the description for the specified hybrid connection.
+ * Deletes a hybrid connection authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param context The context to associate with this operation.
+ * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), resourceGroupName, namespaceName, hybridConnectionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ private Mono> deleteAuthorizationRuleWithResponseAsync(String resourceGroupName,
+ String namespaceName, String hybridConnectionName, String authorizationRuleName) {
+ return FluxUtil
+ .withContext(context -> service.deleteAuthorizationRule(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, namespaceName,
+ hybridConnectionName, authorizationRuleName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Returns the description for the specified hybrid connection.
+ * Deletes a hybrid connection authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName) {
- return getWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Mono deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName) {
+ return deleteAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName).flatMap(ignored -> Mono.empty());
}
/**
- * Returns the description for the specified hybrid connection.
+ * Deletes a hybrid connection authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, Context context) {
- return getWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, context).block();
+ public Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, Context context) {
+ return service.deleteAuthorizationRuleSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, context);
}
/**
- * Returns the description for the specified hybrid connection.
+ * Deletes a hybrid connection authorization rule.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of hybrid connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public HybridConnectionInner get(String resourceGroupName, String namespaceName, String hybridConnectionName) {
- return getWithResponse(resourceGroupName, namespaceName, hybridConnectionName, Context.NONE).getValue();
+ public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String hybridConnectionName,
+ String authorizationRuleName) {
+ deleteAuthorizationRuleWithResponse(resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, Context.NONE);
}
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 response from the list namespace operation along with {@link PagedResponse} on successful completion
- * of {@link Mono}.
+ * @return the response of a AuthorizationRule list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listAuthorizationRulesSinglePageAsync(String resourceGroupName,
String namespaceName, String hybridConnectionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listAuthorizationRules(this.client.getEndpoint(), resourceGroupName,
- namespaceName, hybridConnectionName, this.client.getApiVersion(), this.client.getSubscriptionId(),
- accept, context))
+ .withContext(context -> service.listAuthorizationRules(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, namespaceName,
+ hybridConnectionName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -801,908 +592,647 @@ private Mono> listAuthorizationRulesSingle
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 response from the list namespace operation along with {@link PagedResponse} on successful completion
- * of {@link Mono}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listAuthorizationRulesSinglePageAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listAuthorizationRules(this.client.getEndpoint(), resourceGroupName, namespaceName, hybridConnectionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAuthorizationRulesAsync(String resourceGroupName,
+ String namespaceName, String hybridConnectionName) {
+ return new PagedFlux<>(
+ () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, hybridConnectionName),
+ nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink));
}
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 response from the list namespace operation as paginated response with {@link PagedFlux}.
+ * @return the response of a AuthorizationRule list operation along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAuthorizationRulesAsync(String resourceGroupName,
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listAuthorizationRulesSinglePage(String resourceGroupName,
String namespaceName, String hybridConnectionName) {
- return new PagedFlux<>(
- () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, hybridConnectionName),
- nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink));
+ final String accept = "application/json";
+ Response res = service.listAuthorizationRulesSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, namespaceName,
+ hybridConnectionName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 response from the list namespace operation as paginated response with {@link PagedFlux}.
+ * @return the response of a AuthorizationRule list operation along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAuthorizationRulesAsync(String resourceGroupName,
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listAuthorizationRulesSinglePage(String resourceGroupName,
String namespaceName, String hybridConnectionName, Context context) {
- return new PagedFlux<>(() -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName,
- hybridConnectionName, context), nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink, context));
+ final String accept = "application/json";
+ Response res = service.listAuthorizationRulesSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, namespaceName,
+ hybridConnectionName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
String hybridConnectionName) {
- return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName, hybridConnectionName));
+ return new PagedIterable<>(
+ () -> listAuthorizationRulesSinglePage(resourceGroupName, namespaceName, hybridConnectionName),
+ nextLink -> listAuthorizationRulesNextSinglePage(nextLink));
}
/**
* Authorization rules for a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 response from the list namespace operation as paginated response with {@link PagedIterable}.
+ * @return the response of a AuthorizationRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
String hybridConnectionName, Context context) {
return new PagedIterable<>(
- listAuthorizationRulesAsync(resourceGroupName, namespaceName, hybridConnectionName, context));
+ () -> listAuthorizationRulesSinglePage(resourceGroupName, namespaceName, hybridConnectionName, context),
+ nextLink -> listAuthorizationRulesNextSinglePage(nextLink, context));
}
/**
- * Creates or updates an authorization rule for a hybrid connection.
+ * Primary and secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return namespace/Relay Connection String along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateAuthorizationRuleWithResponseAsync(
- String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName,
- AuthorizationRuleInner parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ private Mono> listKeysWithResponseAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName) {
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.createOrUpdateAuthorizationRule(this.client.getEndpoint(),
- resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context))
+ .withContext(context -> service.listKeys(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Creates or updates an authorization rule for a hybrid connection.
+ * Primary and secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param hybridConnectionName The hybrid connection name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/Relay Connection String on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listKeysAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName) {
+ return listKeysWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Primary and secondary connection strings to the hybrid connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateAuthorizationRuleWithResponseAsync(
- String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName,
- AuthorizationRuleInner parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ public Response listKeysWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, Context context) {
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdateAuthorizationRule(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, authorizationRuleName, this.client.getApiVersion(), this.client.getSubscriptionId(),
- parameters, accept, context);
+ return service.listKeysSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, accept, context);
}
/**
- * Creates or updates an authorization rule for a hybrid connection.
+ * Primary and secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule on successful completion of {@link Mono}.
+ * @return namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAuthorizationRuleAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName,
- AuthorizationRuleInner parameters) {
- return createOrUpdateAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ public AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String hybridConnectionName,
+ String authorizationRuleName) {
+ return listKeysWithResponse(resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName,
+ Context.NONE).getValue();
}
/**
- * Creates or updates an authorization rule for a hybrid connection.
+ * Regenerates the primary or secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
- * @param context The context to associate with this operation.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule along with {@link Response}.
+ * @return namespace/Relay Connection String along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
+ private Mono> regenerateKeysWithResponseAsync(String resourceGroupName,
String namespaceName, String hybridConnectionName, String authorizationRuleName,
- AuthorizationRuleInner parameters, Context context) {
- return createOrUpdateAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, parameters, context).block();
+ RegenerateAccessKeyParameters parameters) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.regenerateKeys(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, contentType, accept, parameters, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Creates or updates an authorization rule for a hybrid connection.
+ * Regenerates the primary or secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param parameters The authorization rule parameters.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule.
+ * @return namespace/Relay Connection String on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters) {
- return createOrUpdateAuthorizationRuleWithResponse(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, parameters, Context.NONE).getValue();
+ private Mono regenerateKeysAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters) {
+ return regenerateKeysWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Deletes a hybrid connection authorization rule.
+ * Regenerates the primary or secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate authorization rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 Response} on successful completion of {@link Mono}.
+ * @return namespace/Relay Connection String along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteAuthorizationRuleWithResponseAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ public Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters,
+ Context context) {
+ final String contentType = "application/json";
final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.deleteAuthorizationRule(this.client.getEndpoint(), resourceGroupName,
- namespaceName, hybridConnectionName, authorizationRuleName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ return service.regenerateKeysSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName,
+ authorizationRuleName, contentType, accept, parameters, context);
}
/**
- * Deletes a hybrid connection authorization rule.
+ * Regenerates the primary or secondary connection strings to the hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
* @param authorizationRuleName The authorization rule name.
- * @param context The context to associate with this operation.
+ * @param parameters Parameters supplied to regenerate authorization rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 Response} on successful completion of {@link Mono}.
+ * @return namespace/Relay Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteAuthorizationRuleWithResponseAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ public AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String hybridConnectionName,
+ String authorizationRuleName, RegenerateAccessKeyParameters parameters) {
+ return regenerateKeysWithResponse(resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName,
+ parameters, Context.NONE).getValue();
+ }
+
+ /**
+ * Returns the description for the specified hybrid connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param namespaceName The namespace name.
+ * @param hybridConnectionName The hybrid connection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of hybrid connection resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName) {
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.deleteAuthorizationRule(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, authorizationRuleName, this.client.getApiVersion(), this.client.getSubscriptionId(),
- accept, context);
+ return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Deletes a hybrid connection authorization rule.
+ * Returns the description for the specified hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 {@link Mono} that completes when a successful response is received.
+ * @return description of hybrid connection resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName) {
- return deleteAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName).flatMap(ignored -> Mono.empty());
+ private Mono getAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName) {
+ return getWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Deletes a hybrid connection authorization rule.
+ * Returns the description for the specified hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 Response}.
+ * @return description of hybrid connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, Context context) {
- return deleteAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, context).block();
+ public Response getWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, namespaceName, hybridConnectionName, accept, context);
}
/**
- * Deletes a hybrid connection authorization rule.
+ * Returns the description for the specified hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of hybrid connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String hybridConnectionName,
- String authorizationRuleName) {
- deleteAuthorizationRuleWithResponse(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, Context.NONE);
+ public HybridConnectionInner get(String resourceGroupName, String namespaceName, String hybridConnectionName) {
+ return getWithResponse(resourceGroupName, namespaceName, hybridConnectionName, Context.NONE).getValue();
}
/**
- * Hybrid connection authorization rule for a hybrid connection by name.
+ * Creates or updates a service hybrid connection. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to create a hybrid connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule along with {@link Response} on successful completion of
+ * @return description of hybrid connection resource along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getAuthorizationRuleWithResponseAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String namespaceName, String hybridConnectionName, HybridConnectionInner parameters) {
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.getAuthorizationRule(this.client.getEndpoint(), resourceGroupName,
- namespaceName, hybridConnectionName, authorizationRuleName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context))
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName, contentType,
+ accept, parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Hybrid connection authorization rule for a hybrid connection by name.
+ * Creates or updates a service hybrid connection. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
- * @param context The context to associate with this operation.
+ * @param parameters Parameters supplied to create a hybrid connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return description of hybrid connection resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getAuthorizationRuleWithResponseAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getAuthorizationRule(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, authorizationRuleName, this.client.getApiVersion(), this.client.getSubscriptionId(),
- accept, context);
+ private Mono createOrUpdateAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, HybridConnectionInner parameters) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, parameters)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Hybrid connection authorization rule for a hybrid connection by name.
+ * Creates or updates a service hybrid connection. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to create a hybrid connection.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule on successful completion of {@link Mono}.
+ * @return description of hybrid connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAuthorizationRuleAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName) {
- return getAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, HybridConnectionInner parameters, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName, contentType,
+ accept, parameters, context);
}
/**
- * Hybrid connection authorization rule for a hybrid connection by name.
+ * Creates or updates a service hybrid connection. This operation is idempotent.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
- * @param context The context to associate with this operation.
+ * @param parameters Parameters supplied to create a hybrid connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule along with {@link Response}.
+ * @return description of hybrid connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getAuthorizationRuleWithResponse(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName, Context context) {
- return getAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, context).block();
+ public HybridConnectionInner createOrUpdate(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, HybridConnectionInner parameters) {
+ return createOrUpdateWithResponse(resourceGroupName, namespaceName, hybridConnectionName, parameters,
+ Context.NONE).getValue();
}
/**
- * Hybrid connection authorization rule for a hybrid connection by name.
+ * Deletes a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of a namespace authorization rule.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName) {
- return getAuthorizationRuleWithResponse(resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, Context.NONE).getValue();
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String namespaceName,
+ String hybridConnectionName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Primary and secondary connection strings to the hybrid connection.
+ * Deletes a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return namespace/Relay Connection String along with {@link Response} on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listKeysWithResponseAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listKeys(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, authorizationRuleName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ private Mono deleteAsync(String resourceGroupName, String namespaceName, String hybridConnectionName) {
+ return deleteWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName)
+ .flatMap(ignored -> Mono.empty());
}
/**
- * Primary and secondary connection strings to the hybrid connection.
+ * Deletes a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return namespace/Relay Connection String along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listKeysWithResponseAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listKeys(this.client.getEndpoint(), resourceGroupName, namespaceName, hybridConnectionName,
- authorizationRuleName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ public Response deleteWithResponse(String resourceGroupName, String namespaceName,
+ String hybridConnectionName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, hybridConnectionName, context);
}
/**
- * Primary and secondary connection strings to the hybrid connection.
+ * Deletes a hybrid connection.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return namespace/Relay Connection String on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono listKeysAsync(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName) {
- return listKeysWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ public void delete(String resourceGroupName, String namespaceName, String hybridConnectionName) {
+ deleteWithResponse(resourceGroupName, namespaceName, hybridConnectionName, Context.NONE);
}
/**
- * Primary and secondary connection strings to the hybrid connection.
+ * Lists the hybrid connection within the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return namespace/Relay Connection String along with {@link Response}.
+ * @return the response of a HybridConnection list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response listKeysWithResponse(String resourceGroupName, String namespaceName,
- String hybridConnectionName, String authorizationRuleName, Context context) {
- return listKeysWithResponseAsync(resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName,
- context).block();
+ private Mono> listByNamespaceSinglePageAsync(String resourceGroupName,
+ String namespaceName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByNamespace(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, namespaceName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Primary and secondary connection strings to the hybrid connection.
+ * Lists the hybrid connection within the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return namespace/Relay Connection String.
+ * @return the response of a HybridConnection list operation as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String hybridConnectionName,
- String authorizationRuleName) {
- return listKeysWithResponse(resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName,
- Context.NONE).getValue();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName) {
+ return new PagedFlux<>(() -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName),
+ nextLink -> listByNamespaceNextSinglePageAsync(nextLink));
}
/**
- * Regenerates the primary or secondary connection strings to the hybrid connection.
+ * Lists the hybrid connection within the namespace.
*
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
- * @param hybridConnectionName The hybrid connection name.
- * @param authorizationRuleName The authorization rule name.
- * @param parameters Parameters supplied to regenerate authorization rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return namespace/Relay Connection String along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response of a HybridConnection list operation along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> regenerateKeysWithResponseAsync(String resourceGroupName,
- String namespaceName, String hybridConnectionName, String authorizationRuleName,
- RegenerateAccessKeyParameters parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (namespaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
- }
- if (hybridConnectionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter hybridConnectionName is required and cannot be null."));
- }
- if (authorizationRuleName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ private PagedResponse listByNamespaceSinglePage(String resourceGroupName,
+ String namespaceName) {
final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.regenerateKeys(this.client.getEndpoint(), resourceGroupName, namespaceName,
- hybridConnectionName, authorizationRuleName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), parameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ Response