diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/CHANGELOG.md b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/CHANGELOG.md
index f9b2384881a4..a5d086975efb 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/CHANGELOG.md
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-04-04)
+- Azure Resource Manager HybridNetwork client library for Java. This package contains Microsoft Azure SDK for HybridNetwork Management SDK. The definitions in this swagger specification will be used to manage the Hybrid Network resources. Package tag package-2022-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-08-16)
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/README.md b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/README.md
index 34171242ae6b..efd05f6fa0fd 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/README.md
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager HybridNetwork client library for Java.
-This package contains Microsoft Azure SDK for HybridNetwork Management SDK. The definitions in this swagger specification will be used to manage the Hybrid Network resources. Package tag package-2021-05-01. 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 HybridNetwork Management SDK. The definitions in this swagger specification will be used to manage the Hybrid Network resources. Package tag package-2022-01-01-preview. 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-hybridnetwork
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/SAMPLE.md b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/SAMPLE.md
index 8dbf4b46d954..8532635019a3 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/SAMPLE.md
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/SAMPLE.md
@@ -24,6 +24,7 @@
- [CreateOrUpdate](#networkfunctions_createorupdate)
- [Delete](#networkfunctions_delete)
+- [ExecuteRequest](#networkfunctions_executerequest)
- [GetByResourceGroup](#networkfunctions_getbyresourcegroup)
- [List](#networkfunctions_list)
- [ListByResourceGroup](#networkfunctions_listbyresourcegroup)
@@ -60,6 +61,7 @@
- [Delete](#vendorskus_delete)
- [Get](#vendorskus_get)
- [List](#vendorskus_list)
+- [ListCredential](#vendorskus_listcredential)
## Vendors
@@ -70,26 +72,18 @@
### Devices_CreateOrUpdate
```java
-import com.azure.core.management.SubResource;
-
/** Samples for Devices CreateOrUpdate. */
public final class DevicesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/DeviceCreate.json
+ */
/**
* Sample code: Create or update device.
*
* @param manager Entry point to HybridNetworkManager.
*/
public static void createOrUpdateDevice(com.azure.resourcemanager.hybridnetwork.HybridNetworkManager manager) {
- manager
- .devices()
- .define("TestDevice")
- .withRegion("eastus")
- .withExistingResourceGroup("rg1")
- .withAzureStackEdge(
- new SubResource()
- .withId(
- "/subscriptions/subid1/resourcegroups/rg2/providers/Microsoft.DataboxEdge/DataboxEdgeDevices/TestDataboxEdgeDeviceName"))
- .create();
+ manager.devices().define("TestDevice").withRegion("eastus").withExistingResourceGroup("rg1").create();
}
}
```
@@ -101,6 +95,9 @@ import com.azure.core.util.Context;
/** Samples for Devices Delete. */
public final class DevicesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/DeviceDelete.json
+ */
/**
* Sample code: Delete device resource.
*
@@ -119,6 +116,9 @@ import com.azure.core.util.Context;
/** Samples for Devices GetByResourceGroup. */
public final class DevicesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/DeviceGet.json
+ */
/**
* Sample code: Get device resource.
*
@@ -137,6 +137,9 @@ import com.azure.core.util.Context;
/** Samples for Devices List. */
public final class DevicesListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/DeviceListBySubscription.json
+ */
/**
* Sample code: List all devices in a subscription.
*
@@ -156,6 +159,9 @@ import com.azure.core.util.Context;
/** Samples for Devices ListByResourceGroup. */
public final class DevicesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/DeviceListByResourceGroup.json
+ */
/**
* Sample code: List all devices in resource group.
*
@@ -175,6 +181,9 @@ import com.azure.core.util.Context;
/** Samples for Devices ListRegistrationKey. */
public final class DevicesListRegistrationKeySamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/DeviceListRegistrationKey.json
+ */
/**
* Sample code: Get device registration key.
*
@@ -196,6 +205,9 @@ import java.util.Map;
/** Samples for Devices UpdateTags. */
public final class DevicesUpdateTagsSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/DeviceUpdateTags.json
+ */
/**
* Sample code: Update hybrid network device tags.
*
@@ -228,6 +240,9 @@ import com.azure.core.util.Context;
/** Samples for NetworkFunctionVendorSkus ListBySku. */
public final class NetworkFunctionVendorSkusListBySkuSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionSkuDetailsGet.json
+ */
/**
* Sample code: Get network function sku details.
*
@@ -247,6 +262,9 @@ import com.azure.core.util.Context;
/** Samples for NetworkFunctionVendorSkus ListByVendor. */
public final class NetworkFunctionVendorSkusListByVendorSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionSkuListByVendor.json
+ */
/**
* Sample code: List vendors and skus.
*
@@ -265,12 +283,16 @@ import com.azure.core.util.Context;
/** Samples for NetworkFunctionVendors List. */
public final class NetworkFunctionVendorsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionVendorAndSkuListBySubscription.json
+ */
/**
- * Sample code: List vendors and skus.
+ * Sample code: List vendors and skus by subscription.
*
* @param manager Entry point to HybridNetworkManager.
*/
- public static void listVendorsAndSkus(com.azure.resourcemanager.hybridnetwork.HybridNetworkManager manager) {
+ public static void listVendorsAndSkusBySubscription(
+ com.azure.resourcemanager.hybridnetwork.HybridNetworkManager manager) {
manager.networkFunctionVendors().list(Context.NONE);
}
}
@@ -293,6 +315,9 @@ import java.util.Arrays;
/** Samples for NetworkFunctions CreateOrUpdate. */
public final class NetworkFunctionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionCreate.json
+ */
/**
* Sample code: Create network function resource.
*
@@ -365,6 +390,9 @@ import com.azure.core.util.Context;
/** Samples for NetworkFunctions Delete. */
public final class NetworkFunctionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionDelete.json
+ */
/**
* Sample code: Delete network function resource.
*
@@ -377,6 +405,45 @@ public final class NetworkFunctionsDeleteSamples {
}
```
+### NetworkFunctions_ExecuteRequest
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridnetwork.models.ExecuteRequestParameters;
+import com.azure.resourcemanager.hybridnetwork.models.HttpMethod;
+import com.azure.resourcemanager.hybridnetwork.models.RequestMetadata;
+
+/** Samples for NetworkFunctions ExecuteRequest. */
+public final class NetworkFunctionsExecuteRequestSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionsExecuteRequest.json
+ */
+ /**
+ * Sample code: Send request to network function services.
+ *
+ * @param manager Entry point to HybridNetworkManager.
+ */
+ public static void sendRequestToNetworkFunctionServices(
+ com.azure.resourcemanager.hybridnetwork.HybridNetworkManager manager) {
+ manager
+ .networkFunctions()
+ .executeRequest(
+ "rg",
+ "testNetworkfunction",
+ new ExecuteRequestParameters()
+ .withServiceEndpoint("serviceEndpoint")
+ .withRequestMetadata(
+ new RequestMetadata()
+ .withRelativePath("/simProfiles/testSimProfile")
+ .withHttpMethod(HttpMethod.POST)
+ .withSerializedBody(
+ "{\"subscriptionProfile\":\"ChantestSubscription15\",\"permanentKey\":\"00112233445566778899AABBCCDDEEFF\",\"opcOperatorCode\":\"63bfa50ee6523365ff14c1f45f88737d\",\"staticIpAddresses\":{\"internet\":{\"ipv4Addr\":\"198.51.100.1\",\"ipv6Prefix\":\"2001:db8:abcd:12::0/64\"},\"another_network\":{\"ipv6Prefix\":\"2001:111:cdef:22::0/64\"}}}")
+ .withApiVersion("apiVersionQueryString")),
+ Context.NONE);
+ }
+}
+```
+
### NetworkFunctions_GetByResourceGroup
```java
@@ -384,6 +451,9 @@ import com.azure.core.util.Context;
/** Samples for NetworkFunctions GetByResourceGroup. */
public final class NetworkFunctionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionGet.json
+ */
/**
* Sample code: Get network function resource.
*
@@ -403,6 +473,9 @@ import com.azure.core.util.Context;
/** Samples for NetworkFunctions List. */
public final class NetworkFunctionsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionListBySubscription.json
+ */
/**
* Sample code: List all network function resources in subscription.
*
@@ -422,6 +495,9 @@ import com.azure.core.util.Context;
/** Samples for NetworkFunctions ListByResourceGroup. */
public final class NetworkFunctionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionListByResourceGroup.json
+ */
/**
* Sample code: List network function in resource group.
*
@@ -444,6 +520,9 @@ import java.util.Map;
/** Samples for NetworkFunctions UpdateTags. */
public final class NetworkFunctionsUpdateTagsSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/NetworkFunctionUpdateTags.json
+ */
/**
* Sample code: Update tags for network function resource.
*
@@ -476,6 +555,9 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/GetOperations.json
+ */
/**
* Sample code: Get Registration Operations.
*
@@ -494,6 +576,9 @@ import com.azure.core.util.Context;
/** Samples for RoleInstances Get. */
public final class RoleInstancesGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/RoleInstanceGet.json
+ */
/**
* Sample code: Get the operational state of role instance of vendor network function.
*
@@ -513,6 +598,9 @@ import com.azure.core.util.Context;
/** Samples for RoleInstances List. */
public final class RoleInstancesListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/RoleInstanceListByVendorNetworkFunction.json
+ */
/**
* Sample code: List all role instances of vendor network function.
*
@@ -532,6 +620,9 @@ import com.azure.core.util.Context;
/** Samples for RoleInstances Restart. */
public final class RoleInstancesRestartSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/RoleInstanceRestart.json
+ */
/**
* Sample code: Restart a role instance of a vendor network function.
*
@@ -551,6 +642,9 @@ import com.azure.core.util.Context;
/** Samples for RoleInstances Start. */
public final class RoleInstancesStartSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/RoleInstanceStart.json
+ */
/**
* Sample code: Start a role instance of a vendor network function.
*
@@ -570,6 +664,9 @@ import com.azure.core.util.Context;
/** Samples for RoleInstances Stop. */
public final class RoleInstancesStopSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/RoleInstanceStop.json
+ */
/**
* Sample code: Stop a role instance of a vendor network function.
*
@@ -600,6 +697,9 @@ import java.util.Arrays;
/** Samples for VendorNetworkFunctions CreateOrUpdate. */
public final class VendorNetworkFunctionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorNfCreate.json
+ */
/**
* Sample code: Create or update vendor network function sub resource.
*
@@ -675,6 +775,9 @@ import com.azure.core.util.Context;
/** Samples for VendorNetworkFunctions Get. */
public final class VendorNetworkFunctionsGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorNfGet.json
+ */
/**
* Sample code: Get vendor network function sub resource by service key of network function.
*
@@ -694,6 +797,9 @@ import com.azure.core.util.Context;
/** Samples for VendorNetworkFunctions List. */
public final class VendorNetworkFunctionsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorNfListByVendor.json
+ */
/**
* Sample code: List all nfs of vendor resource.
*
@@ -711,6 +817,9 @@ public final class VendorNetworkFunctionsListSamples {
```java
/** Samples for VendorSkuPreview CreateOrUpdate. */
public final class VendorSkuPreviewCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuPreviewCreate.json
+ */
/**
* Sample code: Create or update preview subscription of vendor sku sub resource.
*
@@ -730,6 +839,9 @@ import com.azure.core.util.Context;
/** Samples for VendorSkuPreview Delete. */
public final class VendorSkuPreviewDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuPreviewDelete.json
+ */
/**
* Sample code: Delete preview subscription of vendor sku sub resource.
*
@@ -749,6 +861,9 @@ import com.azure.core.util.Context;
/** Samples for VendorSkuPreview Get. */
public final class VendorSkuPreviewGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuPreviewGet.json
+ */
/**
* Sample code: Get preview subscription of vendor sku sub resource.
*
@@ -768,6 +883,9 @@ import com.azure.core.util.Context;
/** Samples for VendorSkuPreview List. */
public final class VendorSkuPreviewListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuPreviewListBySku.json
+ */
/**
* Sample code: List all preview subscriptions of vendor sku sub resource.
*
@@ -795,6 +913,7 @@ import com.azure.resourcemanager.hybridnetwork.models.LinuxConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionRoleConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionRoleConfigurationType;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionTemplate;
+import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionType;
import com.azure.resourcemanager.hybridnetwork.models.NetworkInterface;
import com.azure.resourcemanager.hybridnetwork.models.NetworkInterfaceIpConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.OperatingSystemTypes;
@@ -812,6 +931,9 @@ import java.util.Arrays;
/** Samples for VendorSkus CreateOrUpdate. */
public final class VendorSkusCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuCreate.json
+ */
/**
* Sample code: Create or update the sku of vendor resource.
*
@@ -824,6 +946,7 @@ public final class VendorSkusCreateOrUpdateSamples {
.define("TestSku")
.withExistingVendor("TestVendor")
.withDeploymentMode(SkuDeploymentMode.PRIVATE_EDGE_ZONE)
+ .withNetworkFunctionType(NetworkFunctionType.VIRTUAL_NETWORK_FUNCTION)
.withPreview(true)
.withManagedApplicationTemplate(
SerializerFactory
@@ -922,6 +1045,9 @@ import com.azure.core.util.Context;
/** Samples for VendorSkus Delete. */
public final class VendorSkusDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuDelete.json
+ */
/**
* Sample code: Delete the sku of vendor resource.
*
@@ -941,6 +1067,9 @@ import com.azure.core.util.Context;
/** Samples for VendorSkus Get. */
public final class VendorSkusGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuGet.json
+ */
/**
* Sample code: Get the sku of vendor resource.
*
@@ -959,6 +1088,9 @@ import com.azure.core.util.Context;
/** Samples for VendorSkus List. */
public final class VendorSkusListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuListByVendor.json
+ */
/**
* Sample code: List all the vendor skus of vendor resource.
*
@@ -971,11 +1103,36 @@ public final class VendorSkusListSamples {
}
```
+### VendorSkus_ListCredential
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VendorSkus ListCredential. */
+public final class VendorSkusListCredentialSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorSkuListCredential.json
+ */
+ /**
+ * Sample code: Generate a credential for vendor sku.
+ *
+ * @param manager Entry point to HybridNetworkManager.
+ */
+ public static void generateACredentialForVendorSku(
+ com.azure.resourcemanager.hybridnetwork.HybridNetworkManager manager) {
+ manager.vendorSkus().listCredentialWithResponse("TestVendor", "TestSku", Context.NONE);
+ }
+}
+```
+
### Vendors_CreateOrUpdate
```java
/** Samples for Vendors CreateOrUpdate. */
public final class VendorsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorCreate.json
+ */
/**
* Sample code: Create or update Vendor resource.
*
@@ -995,6 +1152,9 @@ import com.azure.core.util.Context;
/** Samples for Vendors Delete. */
public final class VendorsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorDelete.json
+ */
/**
* Sample code: Delete vendor resource.
*
@@ -1013,6 +1173,9 @@ import com.azure.core.util.Context;
/** Samples for Vendors Get. */
public final class VendorsGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorGet.json
+ */
/**
* Sample code: Get Vendor resource.
*
@@ -1031,6 +1194,9 @@ import com.azure.core.util.Context;
/** Samples for Vendors List. */
public final class VendorsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2022-01-01-preview/examples/VendorListBySubscription.json
+ */
/**
* Sample code: List all vendor resources in subscription.
*
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/pom.xml b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/pom.xml
index 5958faf9fe4e..ecc94a06c1e3 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/pom.xml
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for HybridNetwork Management
- This package contains Microsoft Azure SDK for HybridNetwork Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The definitions in this swagger specification will be used to manage the Hybrid Network resources. Package tag package-2021-05-01.
+ This package contains Microsoft Azure SDK for HybridNetwork Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The definitions in this swagger specification will be used to manage the Hybrid Network resources. Package tag package-2022-01-01-preview.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/HybridNetworkManager.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/HybridNetworkManager.java
index 23417e19fb88..9091a201bd56 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/HybridNetworkManager.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/HybridNetworkManager.java
@@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -47,15 +48,20 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/**
* Entry point to HybridNetworkManager. The definitions in this swagger specification will be used to manage the Hybrid
* Network resources.
*/
public final class HybridNetworkManager {
+ private Devices devices;
+
private NetworkFunctions networkFunctions;
- private Devices devices;
+ private NetworkFunctionVendors networkFunctionVendors;
+
+ private NetworkFunctionVendorSkus networkFunctionVendorSkus;
private Operations operations;
@@ -65,10 +71,6 @@ public final class HybridNetworkManager {
private VendorSkuPreviews vendorSkuPreviews;
- private NetworkFunctionVendors networkFunctionVendors;
-
- private NetworkFunctionVendorSkus networkFunctionVendorSkus;
-
private VendorNetworkFunctions vendorNetworkFunctions;
private RoleInstances roleInstances;
@@ -111,7 +113,7 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -185,9 +187,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -232,11 +236,24 @@ public HybridNetworkManager authenticate(TokenCredential credential, AzureProfil
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.addAll(this.policies);
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -248,6 +265,14 @@ public HybridNetworkManager authenticate(TokenCredential credential, AzureProfil
}
}
+ /** @return Resource collection API of Devices. */
+ public Devices devices() {
+ if (this.devices == null) {
+ this.devices = new DevicesImpl(clientObject.getDevices(), this);
+ }
+ return devices;
+ }
+
/** @return Resource collection API of NetworkFunctions. */
public NetworkFunctions networkFunctions() {
if (this.networkFunctions == null) {
@@ -256,12 +281,22 @@ public NetworkFunctions networkFunctions() {
return networkFunctions;
}
- /** @return Resource collection API of Devices. */
- public Devices devices() {
- if (this.devices == null) {
- this.devices = new DevicesImpl(clientObject.getDevices(), this);
+ /** @return Resource collection API of NetworkFunctionVendors. */
+ public NetworkFunctionVendors networkFunctionVendors() {
+ if (this.networkFunctionVendors == null) {
+ this.networkFunctionVendors =
+ new NetworkFunctionVendorsImpl(clientObject.getNetworkFunctionVendors(), this);
}
- return devices;
+ return networkFunctionVendors;
+ }
+
+ /** @return Resource collection API of NetworkFunctionVendorSkus. */
+ public NetworkFunctionVendorSkus networkFunctionVendorSkus() {
+ if (this.networkFunctionVendorSkus == null) {
+ this.networkFunctionVendorSkus =
+ new NetworkFunctionVendorSkusImpl(clientObject.getNetworkFunctionVendorSkus(), this);
+ }
+ return networkFunctionVendorSkus;
}
/** @return Resource collection API of Operations. */
@@ -296,24 +331,6 @@ public VendorSkuPreviews vendorSkuPreviews() {
return vendorSkuPreviews;
}
- /** @return Resource collection API of NetworkFunctionVendors. */
- public NetworkFunctionVendors networkFunctionVendors() {
- if (this.networkFunctionVendors == null) {
- this.networkFunctionVendors =
- new NetworkFunctionVendorsImpl(clientObject.getNetworkFunctionVendors(), this);
- }
- return networkFunctionVendors;
- }
-
- /** @return Resource collection API of NetworkFunctionVendorSkus. */
- public NetworkFunctionVendorSkus networkFunctionVendorSkus() {
- if (this.networkFunctionVendorSkus == null) {
- this.networkFunctionVendorSkus =
- new NetworkFunctionVendorSkusImpl(clientObject.getNetworkFunctionVendorSkus(), this);
- }
- return networkFunctionVendorSkus;
- }
-
/** @return Resource collection API of VendorNetworkFunctions. */
public VendorNetworkFunctions vendorNetworkFunctions() {
if (this.vendorNetworkFunctions == null) {
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/DevicesClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/DevicesClient.java
index 5109c2b6fe93..1ed40a4940ce 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/DevicesClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/DevicesClient.java
@@ -25,9 +25,9 @@ public interface DevicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String deviceName);
/**
@@ -39,9 +39,9 @@ public interface DevicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String deviceName, Context context);
/**
@@ -91,7 +91,7 @@ public interface DevicesClient {
* @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 information about the specified device.
+ * @return information about the specified device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String deviceName, Context context);
@@ -105,9 +105,9 @@ public interface DevicesClient {
* @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 device resource.
+ * @return the {@link SyncPoller} for polling of device resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DeviceInner> beginCreateOrUpdate(
String resourceGroupName, String deviceName, DeviceInner parameters);
@@ -121,9 +121,9 @@ SyncPoller, DeviceInner> beginCreateOrUpdate(
* @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 device resource.
+ * @return the {@link SyncPoller} for polling of device resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DeviceInner> beginCreateOrUpdate(
String resourceGroupName, String deviceName, DeviceInner parameters, Context context);
@@ -180,7 +180,7 @@ SyncPoller, DeviceInner> beginCreateOrUpdate(
* @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 device resource.
+ * @return device resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateTagsWithResponse(
@@ -191,7 +191,7 @@ Response updateTagsWithResponse(
*
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -203,7 +203,7 @@ Response updateTagsWithResponse(
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -215,7 +215,7 @@ Response updateTagsWithResponse(
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -228,7 +228,7 @@ Response updateTagsWithResponse(
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -255,7 +255,7 @@ Response updateTagsWithResponse(
* @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 device registration key.
+ * @return the device registration key along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listRegistrationKeyWithResponse(
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/HybridNetworkManagementClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/HybridNetworkManagementClient.java
index a9613ddb088e..3294cec24fc7 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/HybridNetworkManagementClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/HybridNetworkManagementClient.java
@@ -44,6 +44,13 @@ public interface HybridNetworkManagementClient {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the DevicesClient object to access its operations.
+ *
+ * @return the DevicesClient object.
+ */
+ DevicesClient getDevices();
+
/**
* Gets the NetworkFunctionsClient object to access its operations.
*
@@ -52,11 +59,18 @@ public interface HybridNetworkManagementClient {
NetworkFunctionsClient getNetworkFunctions();
/**
- * Gets the DevicesClient object to access its operations.
+ * Gets the NetworkFunctionVendorsClient object to access its operations.
*
- * @return the DevicesClient object.
+ * @return the NetworkFunctionVendorsClient object.
*/
- DevicesClient getDevices();
+ NetworkFunctionVendorsClient getNetworkFunctionVendors();
+
+ /**
+ * Gets the NetworkFunctionVendorSkusClient object to access its operations.
+ *
+ * @return the NetworkFunctionVendorSkusClient object.
+ */
+ NetworkFunctionVendorSkusClient getNetworkFunctionVendorSkus();
/**
* Gets the OperationsClient object to access its operations.
@@ -86,20 +100,6 @@ public interface HybridNetworkManagementClient {
*/
VendorSkuPreviewsClient getVendorSkuPreviews();
- /**
- * Gets the NetworkFunctionVendorsClient object to access its operations.
- *
- * @return the NetworkFunctionVendorsClient object.
- */
- NetworkFunctionVendorsClient getNetworkFunctionVendors();
-
- /**
- * Gets the NetworkFunctionVendorSkusClient object to access its operations.
- *
- * @return the NetworkFunctionVendorSkusClient object.
- */
- NetworkFunctionVendorSkusClient getNetworkFunctionVendorSkus();
-
/**
* Gets the VendorNetworkFunctionsClient object to access its operations.
*
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorSkusClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorSkusClient.java
index 6c2238641de2..9a527172f9f6 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorSkusClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorSkusClient.java
@@ -20,7 +20,7 @@ public interface NetworkFunctionVendorSkusClient {
* @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 list of available network function skus.
+ * @return a list of available network function skus as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByVendor(String vendorName);
@@ -33,7 +33,7 @@ public interface NetworkFunctionVendorSkusClient {
* @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 list of available network function skus.
+ * @return a list of available network function skus as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByVendor(String vendorName, Context context);
@@ -46,7 +46,7 @@ public interface NetworkFunctionVendorSkusClient {
* @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 network function sku details.
+ * @return the network function sku details as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listBySku(String vendorName, String vendorSkuName);
@@ -60,7 +60,7 @@ public interface NetworkFunctionVendorSkusClient {
* @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 network function sku details.
+ * @return the network function sku details as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listBySku(
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorsClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorsClient.java
index afb4d4a622c7..5fab9ee4f7eb 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorsClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionVendorsClient.java
@@ -17,7 +17,7 @@ public interface NetworkFunctionVendorsClient {
*
* @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 network function vendor list result.
+ * @return the network function vendor list result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface NetworkFunctionVendorsClient {
* @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 network function vendor list result.
+ * @return the network function vendor list result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionsClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionsClient.java
index 9f2d8f1dc196..c530b92fa2c9 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionsClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/NetworkFunctionsClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.hybridnetwork.fluent.models.NetworkFunctionInner;
+import com.azure.resourcemanager.hybridnetwork.models.ExecuteRequestParameters;
import com.azure.resourcemanager.hybridnetwork.models.TagsObject;
/** An instance of this class provides access to all the operations defined in NetworkFunctionsClient. */
@@ -25,9 +26,9 @@ public interface NetworkFunctionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String networkFunctionName);
/**
@@ -40,9 +41,9 @@ public interface NetworkFunctionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String networkFunctionName, Context context);
@@ -95,7 +96,7 @@ SyncPoller, Void> beginDelete(
* @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 information about the specified network function resource.
+ * @return information about the specified network function resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -111,9 +112,9 @@ Response getByResourceGroupWithResponse(
* @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 network function resource response.
+ * @return the {@link SyncPoller} for polling of network function resource response.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NetworkFunctionInner> beginCreateOrUpdate(
String resourceGroupName, String networkFunctionName, NetworkFunctionInner parameters);
@@ -128,9 +129,9 @@ SyncPoller, NetworkFunctionInner> beginCreateOr
* @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 network function resource response.
+ * @return the {@link SyncPoller} for polling of network function resource response.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NetworkFunctionInner> beginCreateOrUpdate(
String resourceGroupName, String networkFunctionName, NetworkFunctionInner parameters, Context context);
@@ -191,7 +192,7 @@ NetworkFunctionInner createOrUpdate(
* @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 network function resource response.
+ * @return network function resource response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateTagsWithResponse(
@@ -202,7 +203,7 @@ Response updateTagsWithResponse(
*
* @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 response for network function API service call.
+ * @return response for network function API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -214,7 +215,7 @@ Response updateTagsWithResponse(
* @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 response for network function API service call.
+ * @return response for network function API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -226,7 +227,7 @@ Response updateTagsWithResponse(
* @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 response for network function API service call.
+ * @return response for network function API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -239,8 +240,67 @@ Response updateTagsWithResponse(
* @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 response for network function API service call.
+ * @return response for network function API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Execute a request to services on a network function.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkFunctionName The name of the network function.
+ * @param parameters Payload for execute request post call.
+ * @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> beginExecuteRequest(
+ String resourceGroupName, String networkFunctionName, ExecuteRequestParameters parameters);
+
+ /**
+ * Execute a request to services on a network function.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkFunctionName The name of the network function.
+ * @param parameters Payload for execute request post call.
+ * @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> beginExecuteRequest(
+ String resourceGroupName, String networkFunctionName, ExecuteRequestParameters parameters, Context context);
+
+ /**
+ * Execute a request to services on a network function.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkFunctionName The name of the network function.
+ * @param parameters Payload for execute request post call.
+ * @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 executeRequest(String resourceGroupName, String networkFunctionName, ExecuteRequestParameters parameters);
+
+ /**
+ * Execute a request to services on a network function.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkFunctionName The name of the network function.
+ * @param parameters Payload for execute request post call.
+ * @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 executeRequest(
+ String resourceGroupName, String networkFunctionName, ExecuteRequestParameters parameters, Context context);
}
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/OperationsClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/OperationsClient.java
index 68853e606ef3..0c9bdae862b0 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/OperationsClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @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 list of the operations.
+ * @return a list of the operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @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 list of the operations.
+ * @return a list of the operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/RoleInstancesClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/RoleInstancesClient.java
index 215dc4ececaf..fe2cbf076b37 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/RoleInstancesClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/RoleInstancesClient.java
@@ -25,9 +25,9 @@ public interface RoleInstancesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String locationName, String vendorName, String serviceKey, String roleInstanceName);
@@ -42,9 +42,9 @@ SyncPoller, Void> beginStart(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String locationName, String vendorName, String serviceKey, String roleInstanceName, Context context);
@@ -87,9 +87,9 @@ SyncPoller, Void> beginStart(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String locationName, String vendorName, String serviceKey, String roleInstanceName);
@@ -104,9 +104,9 @@ SyncPoller, Void> beginStop(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String locationName, String vendorName, String serviceKey, String roleInstanceName, Context context);
@@ -149,9 +149,9 @@ SyncPoller, Void> beginStop(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(
String locationName, String vendorName, String serviceKey, String roleInstanceName);
@@ -166,9 +166,9 @@ SyncPoller, Void> beginRestart(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(
String locationName, String vendorName, String serviceKey, String roleInstanceName, Context context);
@@ -227,7 +227,7 @@ SyncPoller, Void> beginRestart(
* @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 information of role instance of vendor network function.
+ * @return the information of role instance of vendor network function along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -242,7 +242,7 @@ Response getWithResponse(
* @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 list of role instances of vendor network function.
+ * @return list of role instances of vendor network function as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName, String vendorName, String serviceKey);
@@ -257,7 +257,7 @@ Response getWithResponse(
* @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 list of role instances of vendor network function.
+ * @return list of role instances of vendor network function as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName, String vendorName, String serviceKey, Context context);
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorNetworkFunctionsClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorNetworkFunctionsClient.java
index 86065f5e7395..528c0c6cec15 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorNetworkFunctionsClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorNetworkFunctionsClient.java
@@ -39,7 +39,7 @@ public interface VendorNetworkFunctionsClient {
* @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 information about the specified vendor network function.
+ * @return information about the specified vendor network function along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -56,9 +56,9 @@ Response getWithResponse(
* @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 vendor network function sub resource.
+ * @return the {@link SyncPoller} for polling of vendor network function sub resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VendorNetworkFunctionInner> beginCreateOrUpdate(
String locationName, String vendorName, String serviceKey, VendorNetworkFunctionInner parameters);
@@ -74,9 +74,9 @@ SyncPoller, VendorNetworkFunctionInner> b
* @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 vendor network function sub resource.
+ * @return the {@link SyncPoller} for polling of vendor network function sub resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VendorNetworkFunctionInner> beginCreateOrUpdate(
String locationName,
String vendorName,
@@ -132,7 +132,7 @@ VendorNetworkFunctionInner createOrUpdate(
* @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 response for vendors API service call.
+ * @return response for vendors API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName, String vendorName);
@@ -149,7 +149,7 @@ VendorNetworkFunctionInner createOrUpdate(
* @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 response for vendors API service call.
+ * @return response for vendors API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkuPreviewsClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkuPreviewsClient.java
index b75ad8410171..249480a1c385 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkuPreviewsClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkuPreviewsClient.java
@@ -23,7 +23,7 @@ public interface VendorSkuPreviewsClient {
* @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 list of customer subscriptions which can use a sku.
+ * @return a list of customer subscriptions which can use a sku as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String vendorName, String skuName);
@@ -37,7 +37,7 @@ public interface VendorSkuPreviewsClient {
* @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 list of customer subscriptions which can use a sku.
+ * @return a list of customer subscriptions which can use a sku as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String vendorName, String skuName, Context context);
@@ -52,9 +52,9 @@ public interface VendorSkuPreviewsClient {
* @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 customer subscription which can use a sku.
+ * @return the {@link SyncPoller} for polling of customer subscription which can use a sku.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PreviewSubscriptionInner> beginCreateOrUpdate(
String vendorName, String skuName, String previewSubscription, PreviewSubscriptionInner parameters);
@@ -69,9 +69,9 @@ SyncPoller, PreviewSubscriptionInner> begin
* @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 customer subscription which can use a sku.
+ * @return the {@link SyncPoller} for polling of customer subscription which can use a sku.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PreviewSubscriptionInner> beginCreateOrUpdate(
String vendorName,
String skuName,
@@ -140,7 +140,7 @@ PreviewSubscriptionInner createOrUpdate(
* @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 preview information of a vendor sku.
+ * @return the preview information of a vendor sku along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -155,9 +155,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String vendorName, String skuName, String previewSubscription);
/**
@@ -170,9 +170,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String vendorName, String skuName, String previewSubscription, Context context);
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkusClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkusClient.java
index c62638145ed2..ed9012940d1e 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkusClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorSkusClient.java
@@ -11,6 +11,7 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.hybridnetwork.fluent.models.SkuCredentialInner;
import com.azure.resourcemanager.hybridnetwork.fluent.models.VendorSkuInner;
/** An instance of this class provides access to all the operations defined in VendorSkusClient. */
@@ -23,9 +24,9 @@ public interface VendorSkusClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String vendorName, String skuName);
/**
@@ -37,9 +38,9 @@ public interface VendorSkusClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String vendorName, String skuName, Context context);
/**
@@ -89,7 +90,7 @@ public interface VendorSkusClient {
* @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 information about the specified sku.
+ * @return information about the specified sku along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String vendorName, String skuName, Context context);
@@ -103,9 +104,9 @@ public interface VendorSkusClient {
* @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 sku sub resource.
+ * @return the {@link SyncPoller} for polling of sku sub resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VendorSkuInner> beginCreateOrUpdate(
String vendorName, String skuName, VendorSkuInner parameters);
@@ -119,9 +120,9 @@ SyncPoller, VendorSkuInner> beginCreateOrUpdate(
* @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 sku sub resource.
+ * @return the {@link SyncPoller} for polling of sku sub resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VendorSkuInner> beginCreateOrUpdate(
String vendorName, String skuName, VendorSkuInner parameters, Context context);
@@ -161,7 +162,7 @@ SyncPoller, VendorSkuInner> beginCreateOrUpdate(
* @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 response for list vendor sku API service call.
+ * @return response for list vendor sku API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String vendorName);
@@ -174,8 +175,35 @@ SyncPoller, VendorSkuInner> beginCreateOrUpdate(
* @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 response for list vendor sku API service call.
+ * @return response for list vendor sku API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String vendorName, Context context);
+
+ /**
+ * Generate credentials for publishing SKU images.
+ *
+ * @param vendorName The name of the vendor.
+ * @param skuName The name of the sku.
+ * @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 Sku credential definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SkuCredentialInner listCredential(String vendorName, String skuName);
+
+ /**
+ * Generate credentials for publishing SKU images.
+ *
+ * @param vendorName The name of the vendor.
+ * @param skuName The name of the sku.
+ * @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 Sku credential definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listCredentialWithResponse(String vendorName, String skuName, Context context);
}
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorsClient.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorsClient.java
index f453b7bcdf7c..d34b18eda0b3 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorsClient.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/VendorsClient.java
@@ -22,9 +22,9 @@ public interface VendorsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String vendorName);
/**
@@ -35,9 +35,9 @@ public interface VendorsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String vendorName, Context context);
/**
@@ -83,7 +83,7 @@ public interface VendorsClient {
* @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 information about the specified vendor.
+ * @return information about the specified vendor along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String vendorName, Context context);
@@ -96,9 +96,9 @@ public interface VendorsClient {
* @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 vendor resource.
+ * @return the {@link SyncPoller} for polling of vendor resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VendorInner> beginCreateOrUpdate(String vendorName, VendorInner parameters);
/**
@@ -110,9 +110,9 @@ public interface VendorsClient {
* @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 vendor resource.
+ * @return the {@link SyncPoller} for polling of vendor resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VendorInner> beginCreateOrUpdate(
String vendorName, VendorInner parameters, Context context);
@@ -160,7 +160,7 @@ SyncPoller, VendorInner> beginCreateOrUpdate(
*
* @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 response for vendors API service call.
+ * @return response for vendors API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -172,7 +172,7 @@ SyncPoller, VendorInner> beginCreateOrUpdate(
* @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 response for vendors API service call.
+ * @return response for vendors API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceInner.java
index ec32ea5049cb..62a737b54126 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceInner.java
@@ -8,10 +8,8 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SubResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.Status;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -19,8 +17,6 @@
/** Device resource. */
@Fluent
public final class DeviceInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DeviceInner.class);
-
/*
* Device properties.
*/
@@ -83,29 +79,6 @@ public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
- /**
- * Get the azureStackEdge property: The reference to the Azure stack edge device. Once set, it cannot be updated.
- *
- * @return the azureStackEdge value.
- */
- public SubResource azureStackEdge() {
- return this.innerProperties() == null ? null : this.innerProperties().azureStackEdge();
- }
-
- /**
- * Set the azureStackEdge property: The reference to the Azure stack edge device. Once set, it cannot be updated.
- *
- * @param azureStackEdge the azureStackEdge value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withAzureStackEdge(SubResource azureStackEdge) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DevicePropertiesFormat();
- }
- this.innerProperties().withAzureStackEdge(azureStackEdge);
- return this;
- }
-
/**
* Get the networkFunctions property: The list of network functions deployed on the device.
*
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DevicePropertiesFormat.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DevicePropertiesFormat.java
index 711d43c11fc8..9e5c595fc3c4 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DevicePropertiesFormat.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DevicePropertiesFormat.java
@@ -4,24 +4,27 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridnetwork.models.AzureStackEdgeFormat;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.Status;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;
/** Device properties. */
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "deviceType")
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "deviceType",
+ defaultImpl = DevicePropertiesFormat.class)
@JsonTypeName("DevicePropertiesFormat")
-@Fluent
-public final class DevicePropertiesFormat {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DevicePropertiesFormat.class);
-
+@JsonSubTypes({@JsonSubTypes.Type(name = "AzureStackEdge", value = AzureStackEdgeFormat.class)})
+@Immutable
+public class DevicePropertiesFormat {
/*
* The current device status.
*/
@@ -34,13 +37,6 @@ public final class DevicePropertiesFormat {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /*
- * The reference to the Azure stack edge device. Once set, it cannot be
- * updated.
- */
- @JsonProperty(value = "azureStackEdge")
- private SubResource azureStackEdge;
-
/*
* The list of network functions deployed on the device.
*/
@@ -65,26 +61,6 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}
- /**
- * Get the azureStackEdge property: The reference to the Azure stack edge device. Once set, it cannot be updated.
- *
- * @return the azureStackEdge value.
- */
- public SubResource azureStackEdge() {
- return this.azureStackEdge;
- }
-
- /**
- * Set the azureStackEdge property: The reference to the Azure stack edge device. Once set, it cannot be updated.
- *
- * @param azureStackEdge the azureStackEdge value to set.
- * @return the DevicePropertiesFormat object itself.
- */
- public DevicePropertiesFormat withAzureStackEdge(SubResource azureStackEdge) {
- this.azureStackEdge = azureStackEdge;
- return this;
- }
-
/**
* Get the networkFunctions property: The list of network functions deployed on the device.
*
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceRegistrationKeyInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceRegistrationKeyInner.java
index c057d3f4d5cd..e5e0362ad89b 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceRegistrationKeyInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/DeviceRegistrationKeyInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The device registration key. */
@Immutable
public final class DeviceRegistrationKeyInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DeviceRegistrationKeyInner.class);
-
/*
* The registration key for the device.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionInner.java
index 22f09e260e09..31ac2a162eb0 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionInner.java
@@ -8,12 +8,10 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SubResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionUserConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
import com.azure.resourcemanager.hybridnetwork.models.VendorProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -21,8 +19,6 @@
/** Network function resource response. */
@Fluent
public final class NetworkFunctionInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkFunctionInner.class);
-
/*
* Network function properties.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionPropertiesFormat.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionPropertiesFormat.java
index aacc7647eb1e..d3553b99a352 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionPropertiesFormat.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionPropertiesFormat.java
@@ -6,20 +6,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionUserConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
import com.azure.resourcemanager.hybridnetwork.models.VendorProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Network function properties. */
@Fluent
public final class NetworkFunctionPropertiesFormat {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkFunctionPropertiesFormat.class);
-
/*
* The provisioning state of the network function resource.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionSkuRoleDetailsInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionSkuRoleDetailsInner.java
index d01c4fa53faa..e0112b58207e 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionSkuRoleDetailsInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionSkuRoleDetailsInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.NetworkInterface;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The network function user configuration. */
@Fluent
public final class NetworkFunctionSkuRoleDetailsInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkFunctionSkuRoleDetailsInner.class);
-
/*
* The name of the network function role.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionVendorInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionVendorInner.java
index 5cef0e8a63d3..b580eca5c56e 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionVendorInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/NetworkFunctionVendorInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The network function vendor. */
@Fluent
public final class NetworkFunctionVendorInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkFunctionVendorInner.class);
-
/*
* Vendors of Hybrid Network service provider.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/OperationInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/OperationInner.java
index 6b9d203790c9..7b91452aa93a 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/OperationInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/OperationInner.java
@@ -4,31 +4,53 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridnetwork.models.ActionType;
import com.azure.resourcemanager.hybridnetwork.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.hybridnetwork.models.Origin;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Object that describes a single Microsoft.HybridNetwork operation. */
-@Immutable
+/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
+@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
- * 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"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
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 ARM/control-plane operations.
+ */
+ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
*/
- @JsonProperty(value = "display", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonProperty(value = "display")
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"
+ */
+ @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
+ private Origin origin;
+
+ /*
+ * Enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ */
+ @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
+ private ActionType actionType;
+
/**
- * 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.
*/
@@ -37,7 +59,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 ARM/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.
*/
@@ -45,6 +77,37 @@ public OperationDisplay display() {
return this.display;
}
+ /**
+ * Set the display property: Localized display information for this particular operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * 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".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionInner.java
index 45287db05dc5..cd128553c5ca 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionInner.java
@@ -7,16 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Customer subscription which can use a sku. */
@Fluent
public final class PreviewSubscriptionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PreviewSubscriptionInner.class);
-
/*
* The Preview Subscription properties.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionProperties.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionProperties.java
index cd593a0e1667..7f2a9d039064 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionProperties.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/PreviewSubscriptionProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** PreviewSubscription properties. */
@Immutable
public final class PreviewSubscriptionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PreviewSubscriptionProperties.class);
-
/*
* The provisioning state of the PreviewSubscription resource.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceInner.java
index 081475372b8b..7809cd2f699c 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceInner.java
@@ -7,17 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.OperationalState;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The role instance sub resource. */
@Fluent
public final class RoleInstanceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RoleInstanceInner.class);
-
/*
* The role instance name.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceProperties.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceProperties.java
index 93322c317f29..d6cf5c96efe6 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceProperties.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/RoleInstanceProperties.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.OperationalState;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The role instance properties of the network function. */
@Fluent
public final class RoleInstanceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RoleInstanceProperties.class);
-
/*
* The provisioning state of the RoleInstance resource.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/SkuCredentialInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/SkuCredentialInner.java
new file mode 100644
index 000000000000..67e6efeb1cd1
--- /dev/null
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/SkuCredentialInner.java
@@ -0,0 +1,152 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridnetwork.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** The Sku credential definition. */
+@Fluent
+public final class SkuCredentialInner {
+ /*
+ * The username of the sku credential.
+ */
+ @JsonProperty(value = "username")
+ private String username;
+
+ /*
+ * The credential value.
+ */
+ @JsonProperty(value = "acrToken")
+ private String acrToken;
+
+ /*
+ * The Acr server url
+ */
+ @JsonProperty(value = "acrServerUrl")
+ private String acrServerUrl;
+
+ /*
+ * The repositories that could be accessed using the current credential.
+ */
+ @JsonProperty(value = "repositories")
+ private List repositories;
+
+ /*
+ * The UTC time when credential will expire.
+ */
+ @JsonProperty(value = "expiry")
+ private OffsetDateTime expiry;
+
+ /**
+ * Get the username property: The username of the sku credential.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: The username of the sku credential.
+ *
+ * @param username the username value to set.
+ * @return the SkuCredentialInner object itself.
+ */
+ public SkuCredentialInner withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the acrToken property: The credential value.
+ *
+ * @return the acrToken value.
+ */
+ public String acrToken() {
+ return this.acrToken;
+ }
+
+ /**
+ * Set the acrToken property: The credential value.
+ *
+ * @param acrToken the acrToken value to set.
+ * @return the SkuCredentialInner object itself.
+ */
+ public SkuCredentialInner withAcrToken(String acrToken) {
+ this.acrToken = acrToken;
+ return this;
+ }
+
+ /**
+ * Get the acrServerUrl property: The Acr server url.
+ *
+ * @return the acrServerUrl value.
+ */
+ public String acrServerUrl() {
+ return this.acrServerUrl;
+ }
+
+ /**
+ * Set the acrServerUrl property: The Acr server url.
+ *
+ * @param acrServerUrl the acrServerUrl value to set.
+ * @return the SkuCredentialInner object itself.
+ */
+ public SkuCredentialInner withAcrServerUrl(String acrServerUrl) {
+ this.acrServerUrl = acrServerUrl;
+ return this;
+ }
+
+ /**
+ * Get the repositories property: The repositories that could be accessed using the current credential.
+ *
+ * @return the repositories value.
+ */
+ public List repositories() {
+ return this.repositories;
+ }
+
+ /**
+ * Set the repositories property: The repositories that could be accessed using the current credential.
+ *
+ * @param repositories the repositories value to set.
+ * @return the SkuCredentialInner object itself.
+ */
+ public SkuCredentialInner withRepositories(List repositories) {
+ this.repositories = repositories;
+ return this;
+ }
+
+ /**
+ * Get the expiry property: The UTC time when credential will expire.
+ *
+ * @return the expiry value.
+ */
+ public OffsetDateTime expiry() {
+ return this.expiry;
+ }
+
+ /**
+ * Set the expiry property: The UTC time when credential will expire.
+ *
+ * @param expiry the expiry value to set.
+ * @return the SkuCredentialInner object itself.
+ */
+ public SkuCredentialInner withExpiry(OffsetDateTime expiry) {
+ this.expiry = expiry;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/SkuOverviewInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/SkuOverviewInner.java
index f26c81779ee0..78391b6abe61 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/SkuOverviewInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/SkuOverviewInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The network function sku overview. */
@Fluent
public final class SkuOverviewInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SkuOverviewInner.class);
-
/*
* The vendor sku name.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorDetails.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorDetails.java
index 0e2bb0efdd3b..27b302c0fb70 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorDetails.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorDetails.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The network function vendor details. */
@Fluent
public final class VendorDetails {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VendorDetails.class);
-
/*
* The network function vendor name.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorInner.java
index aaef286fbbfb..fc4176a60be6 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorInner.java
@@ -8,17 +8,13 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SubResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Vendor resource. */
@Fluent
public final class VendorInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VendorInner.class);
-
/*
* Vendor properties.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionInner.java
index 72f87bed3cf6..1869408d572a 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionInner.java
@@ -7,20 +7,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendorConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
import com.azure.resourcemanager.hybridnetwork.models.VendorProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Vendor network function sub resource. */
@Fluent
public final class VendorNetworkFunctionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VendorNetworkFunctionInner.class);
-
/*
* Network function details.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionPropertiesFormat.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionPropertiesFormat.java
index 5850168297e9..cb12a7b2d9f3 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionPropertiesFormat.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorNetworkFunctionPropertiesFormat.java
@@ -5,20 +5,16 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendorConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
import com.azure.resourcemanager.hybridnetwork.models.VendorProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Vendor network function properties. */
@Fluent
public final class VendorNetworkFunctionPropertiesFormat {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VendorNetworkFunctionPropertiesFormat.class);
-
/*
* The provisioning state of the vendor network function sub resource.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorPropertiesFormat.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorPropertiesFormat.java
index dcebfa72d144..c3533965f2b2 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorPropertiesFormat.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorPropertiesFormat.java
@@ -6,17 +6,13 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Vendor properties. */
@Immutable
public final class VendorPropertiesFormat {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VendorPropertiesFormat.class);
-
/*
* The provisioning state of the vendor resource.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuInner.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuInner.java
index 62a365326da6..322f443737b2 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuInner.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuInner.java
@@ -7,20 +7,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionTemplate;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionType;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.SkuDeploymentMode;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Sku sub resource. */
@Fluent
public final class VendorSkuInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VendorSkuInner.class);
-
/*
* Vendor sku details.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuPropertiesFormat.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuPropertiesFormat.java
index e847c0718846..4a52bb7ffa72 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuPropertiesFormat.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/fluent/models/VendorSkuPropertiesFormat.java
@@ -5,20 +5,16 @@
package com.azure.resourcemanager.hybridnetwork.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionTemplate;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionType;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
import com.azure.resourcemanager.hybridnetwork.models.SkuDeploymentMode;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Sku properties. */
@Fluent
public final class VendorSkuPropertiesFormat {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VendorSkuPropertiesFormat.class);
-
/*
* The provisioning state of the vendor sku sub resource.
*/
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DeviceImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DeviceImpl.java
index c6405efd41c7..45f512c27fd2 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DeviceImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DeviceImpl.java
@@ -61,10 +61,6 @@ public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
- public SubResource azureStackEdge() {
- return this.innerModel().azureStackEdge();
- }
-
public List networkFunctions() {
List inner = this.innerModel().networkFunctions();
if (inner != null) {
@@ -205,11 +201,6 @@ public DeviceImpl withTags(Map tags) {
}
}
- public DeviceImpl withAzureStackEdge(SubResource azureStackEdge) {
- this.innerModel().withAzureStackEdge(azureStackEdge);
- return this;
- }
-
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesClientImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesClientImpl.java
index f6e3c19f1d77..7a3510d04832 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesClientImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesClientImpl.java
@@ -31,7 +31,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.hybridnetwork.fluent.DevicesClient;
@@ -45,8 +44,6 @@
/** An instance of this class provides access to all the operations defined in DevicesClient. */
public final class DevicesClientImpl implements DevicesClient {
- private final ClientLogger logger = new ClientLogger(DevicesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final DevicesService service;
@@ -201,7 +198,7 @@ Mono> listByResourceGroupNext(
* @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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName, String deviceName) {
@@ -249,7 +246,7 @@ private Mono>> deleteWithResponseAsync(String resource
* @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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -294,14 +291,15 @@ private Mono>> deleteWithResponseAsync(
* @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 completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String deviceName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, deviceName);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
@@ -313,9 +311,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @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 completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String deviceName, Context context) {
context = this.client.mergeContext(context);
@@ -333,9 +331,9 @@ private PollerFlux, Void> beginDeleteAsync(
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String deviceName) {
return beginDeleteAsync(resourceGroupName, deviceName).getSyncPoller();
}
@@ -349,9 +347,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String deviceName, Context context) {
return beginDeleteAsync(resourceGroupName, deviceName, context).getSyncPoller();
@@ -365,7 +363,7 @@ public SyncPoller, Void> beginDelete(
* @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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String deviceName) {
@@ -381,7 +379,7 @@ private Mono deleteAsync(String resourceGroupName, String deviceName) {
* @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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String deviceName, Context context) {
@@ -427,7 +425,8 @@ public void delete(String resourceGroupName, String deviceName, Context context)
* @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 information about the specified device.
+ * @return information about the specified device along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -476,7 +475,8 @@ private Mono> getByResourceGroupWithResponseAsync(
* @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 information about the specified device.
+ * @return information about the specified device along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -521,7 +521,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @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 information about the specified device.
+ * @return information about the specified device on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String deviceName) {
@@ -560,7 +560,7 @@ public DeviceInner getByResourceGroup(String resourceGroupName, String deviceNam
* @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 information about the specified device.
+ * @return information about the specified device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -577,7 +577,7 @@ public Response getByResourceGroupWithResponse(
* @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 device resource.
+ * @return device resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -633,7 +633,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @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 device resource.
+ * @return device resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -685,9 +685,9 @@ private Mono>> createOrUpdateWithResponseAsync(
* @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 device resource.
+ * @return the {@link PollerFlux} for polling of device resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DeviceInner> beginCreateOrUpdateAsync(
String resourceGroupName, String deviceName, DeviceInner parameters) {
Mono>> mono =
@@ -695,7 +695,7 @@ private PollerFlux, DeviceInner> beginCreateOrUpdateAsyn
return this
.client
.getLroResult(
- mono, this.client.getHttpPipeline(), DeviceInner.class, DeviceInner.class, Context.NONE);
+ mono, this.client.getHttpPipeline(), DeviceInner.class, DeviceInner.class, this.client.getContext());
}
/**
@@ -708,9 +708,9 @@ private PollerFlux, DeviceInner> beginCreateOrUpdateAsyn
* @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 device resource.
+ * @return the {@link PollerFlux} for polling of device resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DeviceInner> beginCreateOrUpdateAsync(
String resourceGroupName, String deviceName, DeviceInner parameters, Context context) {
context = this.client.mergeContext(context);
@@ -731,9 +731,9 @@ private PollerFlux, DeviceInner> beginCreateOrUpdateAsyn
* @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 device resource.
+ * @return the {@link SyncPoller} for polling of device resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DeviceInner> beginCreateOrUpdate(
String resourceGroupName, String deviceName, DeviceInner parameters) {
return beginCreateOrUpdateAsync(resourceGroupName, deviceName, parameters).getSyncPoller();
@@ -749,9 +749,9 @@ public SyncPoller, DeviceInner> beginCreateOrUpdate(
* @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 device resource.
+ * @return the {@link SyncPoller} for polling of device resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DeviceInner> beginCreateOrUpdate(
String resourceGroupName, String deviceName, DeviceInner parameters, Context context) {
return beginCreateOrUpdateAsync(resourceGroupName, deviceName, parameters, context).getSyncPoller();
@@ -766,7 +766,7 @@ public SyncPoller, DeviceInner> beginCreateOrUpdate(
* @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 device resource.
+ * @return device resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String resourceGroupName, String deviceName, DeviceInner parameters) {
@@ -785,7 +785,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String d
* @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 device resource.
+ * @return device resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -838,7 +838,7 @@ public DeviceInner createOrUpdate(
* @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 device resource.
+ * @return device resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateTagsWithResponseAsync(
@@ -894,7 +894,7 @@ private Mono> updateTagsWithResponseAsync(
* @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 device resource.
+ * @return device resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateTagsWithResponseAsync(
@@ -946,7 +946,7 @@ private Mono> updateTagsWithResponseAsync(
* @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 device resource.
+ * @return device resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateTagsAsync(String resourceGroupName, String deviceName, TagsObject parameters) {
@@ -987,7 +987,7 @@ public DeviceInner updateTags(String resourceGroupName, String deviceName, TagsO
* @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 device resource.
+ * @return device resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateTagsWithResponse(
@@ -1000,7 +1000,8 @@ public Response updateTagsWithResponse(
*
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -1046,7 +1047,8 @@ private Mono> listSinglePageAsync() {
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -1087,7 +1089,7 @@ private Mono> listSinglePageAsync(Context context) {
*
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1102,7 +1104,7 @@ private PagedFlux listAsync() {
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -1115,7 +1117,7 @@ private PagedFlux listAsync(Context context) {
*
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -1129,7 +1131,7 @@ public PagedIterable list() {
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -1143,7 +1145,8 @@ public PagedIterable list(Context context) {
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
@@ -1195,7 +1198,8 @@ private Mono> listByResourceGroupSinglePageAsync(Stri
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -1244,7 +1248,7 @@ private Mono> listByResourceGroupSinglePageAsync(
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -1261,7 +1265,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
@@ -1277,7 +1281,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -1292,7 +1296,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName)
* @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 response for devices API service call.
+ * @return response for devices API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -1307,7 +1311,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName,
* @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 device registration key.
+ * @return the device registration key along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRegistrationKeyWithResponseAsync(
@@ -1356,7 +1360,7 @@ private Mono> listRegistrationKeyWithRespon
* @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 device registration key.
+ * @return the device registration key along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRegistrationKeyWithResponseAsync(
@@ -1401,7 +1405,7 @@ private Mono> listRegistrationKeyWithRespon
* @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 device registration key.
+ * @return the device registration key on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listRegistrationKeyAsync(String resourceGroupName, String deviceName) {
@@ -1440,7 +1444,7 @@ public DeviceRegistrationKeyInner listRegistrationKey(String resourceGroupName,
* @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 device registration key.
+ * @return the device registration key along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listRegistrationKeyWithResponse(
@@ -1455,7 +1459,8 @@ public Response listRegistrationKeyWithResponse(
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
@@ -1492,7 +1497,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(S
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) {
@@ -1527,7 +1533,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(S
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -1564,7 +1571,8 @@ private Mono> listByResourceGroupNextSinglePageAsync(
* @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 response for devices API service call.
+ * @return response for devices API service call along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesImpl.java
index 53ada1f4ca13..6a6723393e1d 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/DevicesImpl.java
@@ -15,10 +15,9 @@
import com.azure.resourcemanager.hybridnetwork.models.Device;
import com.azure.resourcemanager.hybridnetwork.models.DeviceRegistrationKey;
import com.azure.resourcemanager.hybridnetwork.models.Devices;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class DevicesImpl implements Devices {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DevicesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(DevicesImpl.class);
private final DevicesClient innerClient;
@@ -109,7 +108,7 @@ public Response listRegistrationKeyWithResponse(
public Device getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -117,7 +116,7 @@ public Device getById(String id) {
}
String deviceName = Utils.getValueFromIdByName(id, "devices");
if (deviceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'devices'.", id)));
@@ -128,7 +127,7 @@ public Device getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -136,7 +135,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String deviceName = Utils.getValueFromIdByName(id, "devices");
if (deviceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'devices'.", id)));
@@ -147,7 +146,7 @@ public Response getByIdWithResponse(String id, Context context) {
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -155,7 +154,7 @@ public void deleteById(String id) {
}
String deviceName = Utils.getValueFromIdByName(id, "devices");
if (deviceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'devices'.", id)));
@@ -166,7 +165,7 @@ public void deleteById(String id) {
public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -174,7 +173,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String deviceName = Utils.getValueFromIdByName(id, "devices");
if (deviceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'devices'.", id)));
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/HybridNetworkManagementClientImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/HybridNetworkManagementClientImpl.java
index 68afd30656ae..001861ae10d8 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/HybridNetworkManagementClientImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/HybridNetworkManagementClientImpl.java
@@ -45,8 +45,6 @@
/** Initializes a new instance of the HybridNetworkManagementClientImpl type. */
@ServiceClient(builder = HybridNetworkManagementClientBuilder.class)
public final class HybridNetworkManagementClientImpl implements HybridNetworkManagementClient {
- private final ClientLogger logger = new ClientLogger(HybridNetworkManagementClientImpl.class);
-
/** The ID of the target subscription. */
private final String subscriptionId;
@@ -119,6 +117,18 @@ public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
+ /** The DevicesClient object to access its operations. */
+ private final DevicesClient devices;
+
+ /**
+ * Gets the DevicesClient object to access its operations.
+ *
+ * @return the DevicesClient object.
+ */
+ public DevicesClient getDevices() {
+ return this.devices;
+ }
+
/** The NetworkFunctionsClient object to access its operations. */
private final NetworkFunctionsClient networkFunctions;
@@ -131,16 +141,28 @@ public NetworkFunctionsClient getNetworkFunctions() {
return this.networkFunctions;
}
- /** The DevicesClient object to access its operations. */
- private final DevicesClient devices;
+ /** The NetworkFunctionVendorsClient object to access its operations. */
+ private final NetworkFunctionVendorsClient networkFunctionVendors;
/**
- * Gets the DevicesClient object to access its operations.
+ * Gets the NetworkFunctionVendorsClient object to access its operations.
*
- * @return the DevicesClient object.
+ * @return the NetworkFunctionVendorsClient object.
*/
- public DevicesClient getDevices() {
- return this.devices;
+ public NetworkFunctionVendorsClient getNetworkFunctionVendors() {
+ return this.networkFunctionVendors;
+ }
+
+ /** The NetworkFunctionVendorSkusClient object to access its operations. */
+ private final NetworkFunctionVendorSkusClient networkFunctionVendorSkus;
+
+ /**
+ * Gets the NetworkFunctionVendorSkusClient object to access its operations.
+ *
+ * @return the NetworkFunctionVendorSkusClient object.
+ */
+ public NetworkFunctionVendorSkusClient getNetworkFunctionVendorSkus() {
+ return this.networkFunctionVendorSkus;
}
/** The OperationsClient object to access its operations. */
@@ -191,30 +213,6 @@ public VendorSkuPreviewsClient getVendorSkuPreviews() {
return this.vendorSkuPreviews;
}
- /** The NetworkFunctionVendorsClient object to access its operations. */
- private final NetworkFunctionVendorsClient networkFunctionVendors;
-
- /**
- * Gets the NetworkFunctionVendorsClient object to access its operations.
- *
- * @return the NetworkFunctionVendorsClient object.
- */
- public NetworkFunctionVendorsClient getNetworkFunctionVendors() {
- return this.networkFunctionVendors;
- }
-
- /** The NetworkFunctionVendorSkusClient object to access its operations. */
- private final NetworkFunctionVendorSkusClient networkFunctionVendorSkus;
-
- /**
- * Gets the NetworkFunctionVendorSkusClient object to access its operations.
- *
- * @return the NetworkFunctionVendorSkusClient object.
- */
- public NetworkFunctionVendorSkusClient getNetworkFunctionVendorSkus() {
- return this.networkFunctionVendorSkus;
- }
-
/** The VendorNetworkFunctionsClient object to access its operations. */
private final VendorNetworkFunctionsClient vendorNetworkFunctions;
@@ -261,15 +259,15 @@ public RoleInstancesClient getRoleInstances() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-05-01";
- this.networkFunctions = new NetworkFunctionsClientImpl(this);
+ this.apiVersion = "2022-01-01-preview";
this.devices = new DevicesClientImpl(this);
+ this.networkFunctions = new NetworkFunctionsClientImpl(this);
+ this.networkFunctionVendors = new NetworkFunctionVendorsClientImpl(this);
+ this.networkFunctionVendorSkus = new NetworkFunctionVendorSkusClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.vendors = new VendorsClientImpl(this);
this.vendorSkus = new VendorSkusClientImpl(this);
this.vendorSkuPreviews = new VendorSkuPreviewsClientImpl(this);
- this.networkFunctionVendors = new NetworkFunctionVendorsClientImpl(this);
- this.networkFunctionVendorSkus = new NetworkFunctionVendorSkusClientImpl(this);
this.vendorNetworkFunctions = new VendorNetworkFunctionsClientImpl(this);
this.roleInstances = new RoleInstancesClientImpl(this);
}
@@ -357,7 +355,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
managementError = null;
}
} catch (IOException | RuntimeException ioe) {
- logger.logThrowableAsWarning(ioe);
+ LOGGER.logThrowableAsWarning(ioe);
}
}
} else {
@@ -416,4 +414,6 @@ public Mono getBodyAsString(Charset charset) {
return Mono.just(new String(responseBody, charset));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(HybridNetworkManagementClientImpl.class);
}
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionImpl.java
index bd2971d8753d..3a21d2a1b729 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionImpl.java
@@ -9,6 +9,7 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.hybridnetwork.fluent.models.NetworkFunctionInner;
+import com.azure.resourcemanager.hybridnetwork.models.ExecuteRequestParameters;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunction;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionUserConfiguration;
import com.azure.resourcemanager.hybridnetwork.models.ProvisioningState;
@@ -210,6 +211,14 @@ public NetworkFunction refresh(Context context) {
return this;
}
+ public void executeRequest(ExecuteRequestParameters parameters) {
+ serviceManager.networkFunctions().executeRequest(resourceGroupName, networkFunctionName, parameters);
+ }
+
+ public void executeRequest(ExecuteRequestParameters parameters, Context context) {
+ serviceManager.networkFunctions().executeRequest(resourceGroupName, networkFunctionName, parameters, context);
+ }
+
public NetworkFunctionImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusClientImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusClientImpl.java
index 3d2a625f9e73..db1af3feb992 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusClientImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.fluent.NetworkFunctionVendorSkusClient;
import com.azure.resourcemanager.hybridnetwork.fluent.models.NetworkFunctionSkuRoleDetailsInner;
import com.azure.resourcemanager.hybridnetwork.fluent.models.SkuOverviewInner;
@@ -35,8 +34,6 @@
/** An instance of this class provides access to all the operations defined in NetworkFunctionVendorSkusClient. */
public final class NetworkFunctionVendorSkusClientImpl implements NetworkFunctionVendorSkusClient {
- private final ClientLogger logger = new ClientLogger(NetworkFunctionVendorSkusClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final NetworkFunctionVendorSkusService service;
@@ -120,7 +117,8 @@ Mono> listBySkuNext(
* @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 list of available network function skus.
+ * @return a list of available network function skus along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByVendorSinglePageAsync(String vendorName) {
@@ -171,7 +169,8 @@ private Mono> listByVendorSinglePageAsync(String
* @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 list of available network function skus.
+ * @return a list of available network function skus along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByVendorSinglePageAsync(String vendorName, Context context) {
@@ -218,7 +217,7 @@ private Mono> listByVendorSinglePageAsync(String
* @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 list of available network function skus.
+ * @return a list of available network function skus as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByVendorAsync(String vendorName) {
@@ -234,7 +233,7 @@ private PagedFlux listByVendorAsync(String vendorName) {
* @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 list of available network function skus.
+ * @return a list of available network function skus as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByVendorAsync(String vendorName, Context context) {
@@ -250,7 +249,7 @@ private PagedFlux listByVendorAsync(String vendorName, Context
* @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 list of available network function skus.
+ * @return a list of available network function skus as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByVendor(String vendorName) {
@@ -265,7 +264,7 @@ public PagedIterable listByVendor(String vendorName) {
* @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 list of available network function skus.
+ * @return a list of available network function skus as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByVendor(String vendorName, Context context) {
@@ -280,7 +279,8 @@ public PagedIterable listByVendor(String vendorName, Context c
* @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 network function sku details.
+ * @return the network function sku details along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySkuSinglePageAsync(
@@ -337,7 +337,8 @@ private Mono> listBySkuSingleP
* @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 network function sku details.
+ * @return the network function sku details along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySkuSinglePageAsync(
@@ -390,7 +391,7 @@ private Mono> listBySkuSingleP
* @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 network function sku details.
+ * @return the network function sku details as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listBySkuAsync(String vendorName, String vendorSkuName) {
@@ -408,7 +409,7 @@ private PagedFlux listBySkuAsync(String vend
* @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 network function sku details.
+ * @return the network function sku details as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listBySkuAsync(
@@ -426,7 +427,7 @@ private PagedFlux listBySkuAsync(
* @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 network function sku details.
+ * @return the network function sku details as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listBySku(String vendorName, String vendorSkuName) {
@@ -442,7 +443,7 @@ public PagedIterable listBySku(String vendor
* @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 network function sku details.
+ * @return the network function sku details as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listBySku(
@@ -457,7 +458,8 @@ public PagedIterable listBySku(
* @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 list of available network function skus.
+ * @return a list of available network function skus along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByVendorNextSinglePageAsync(String nextLink) {
@@ -493,7 +495,8 @@ private Mono> listByVendorNextSinglePageAsync(St
* @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 list of available network function skus.
+ * @return a list of available network function skus along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByVendorNextSinglePageAsync(String nextLink, Context context) {
@@ -528,7 +531,8 @@ private Mono> listByVendorNextSinglePageAsync(St
* @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 network function sku details.
+ * @return the network function sku details along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySkuNextSinglePageAsync(String nextLink) {
@@ -564,7 +568,8 @@ private Mono> listBySkuNextSin
* @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 network function sku details.
+ * @return the network function sku details along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySkuNextSinglePageAsync(
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusImpl.java
index 547e6a7debd1..a23a3df1a393 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorSkusImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionSkuRoleDetails;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendorSkus;
import com.azure.resourcemanager.hybridnetwork.models.SkuOverview;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class NetworkFunctionVendorSkusImpl implements NetworkFunctionVendorSkus {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkFunctionVendorSkusImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(NetworkFunctionVendorSkusImpl.class);
private final NetworkFunctionVendorSkusClient innerClient;
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsClientImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsClientImpl.java
index a9256239b222..75085c22f13e 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsClientImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridnetwork.fluent.NetworkFunctionVendorsClient;
import com.azure.resourcemanager.hybridnetwork.fluent.models.NetworkFunctionVendorInner;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendorListResult;
@@ -33,8 +32,6 @@
/** An instance of this class provides access to all the operations defined in NetworkFunctionVendorsClient. */
public final class NetworkFunctionVendorsClientImpl implements NetworkFunctionVendorsClient {
- private final ClientLogger logger = new ClientLogger(NetworkFunctionVendorsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final NetworkFunctionVendorsService service;
@@ -87,7 +84,8 @@ Mono> listNext(
*
* @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 network function vendor list result.
+ * @return the network function vendor list result along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -133,7 +131,8 @@ private Mono> listSinglePageAsync() {
* @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 network function vendor list result.
+ * @return the network function vendor list result along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -174,7 +173,7 @@ private Mono> listSinglePageAsync(Cont
*
* @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 network function vendor list result.
+ * @return the network function vendor list result as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -188,7 +187,7 @@ private PagedFlux listAsync() {
* @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 network function vendor list result.
+ * @return the network function vendor list result as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -201,7 +200,7 @@ private PagedFlux listAsync(Context context) {
*
* @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 network function vendor list result.
+ * @return the network function vendor list result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -215,7 +214,7 @@ public PagedIterable list() {
* @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 network function vendor list result.
+ * @return the network function vendor list result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -229,7 +228,8 @@ public PagedIterable list(Context context) {
* @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 network function vendor list result.
+ * @return the network function vendor list result along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -265,7 +265,8 @@ private Mono> listNextSinglePageAsync(
* @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 network function vendor list result.
+ * @return the network function vendor list result along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsImpl.java
index a956f80ab03b..8ab762bd8a98 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionVendorsImpl.java
@@ -11,10 +11,9 @@
import com.azure.resourcemanager.hybridnetwork.fluent.models.NetworkFunctionVendorInner;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendor;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendors;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class NetworkFunctionVendorsImpl implements NetworkFunctionVendors {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkFunctionVendorsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(NetworkFunctionVendorsImpl.class);
private final NetworkFunctionVendorsClient innerClient;
diff --git a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionsClientImpl.java b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionsClientImpl.java
index 10a76f91f392..575665356af0 100644
--- a/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionsClientImpl.java
+++ b/sdk/hybridnetwork/azure-resourcemanager-hybridnetwork/src/main/java/com/azure/resourcemanager/hybridnetwork/implementation/NetworkFunctionsClientImpl.java
@@ -14,6 +14,7 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -30,11 +31,11 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.hybridnetwork.fluent.NetworkFunctionsClient;
import com.azure.resourcemanager.hybridnetwork.fluent.models.NetworkFunctionInner;
+import com.azure.resourcemanager.hybridnetwork.models.ExecuteRequestParameters;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionListResult;
import com.azure.resourcemanager.hybridnetwork.models.TagsObject;
import java.nio.ByteBuffer;
@@ -43,8 +44,6 @@
/** An instance of this class provides access to all the operations defined in NetworkFunctionsClient. */
public final class NetworkFunctionsClientImpl implements NetworkFunctionsClient {
- private final ClientLogger logger = new ClientLogger(NetworkFunctionsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final NetworkFunctionsService service;
@@ -156,6 +155,22 @@ Mono> listByResourceGroup(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork"
+ + "/networkFunctions/{networkFunctionName}/executeRequest")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> executeRequest(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("networkFunctionName") String networkFunctionName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ExecuteRequestParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -186,7 +201,7 @@ Mono