diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md
index c16a57a39d9db..7496cd9d55e92 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-02-08)
+
+- Azure Resource Manager PaloAlto Networks Ngfw client library for Java. This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. Package tag package-preview-2024-02-07-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md
index d8eb72a1b1625..128b2969f0584 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager PaloAlto Networks Ngfw client library for Java.
-This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. Package tag package-2023-09-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 PaloAlto Networks Ngfw Management SDK. Package tag package-preview-2024-02-07-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-paloaltonetworks-ngfw
- 1.1.0
+ 1.2.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md
index 360da5e1c655a..c055240ef555e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md
@@ -84,11 +84,8 @@
- [GetSupportInfo](#localrulestacks_getsupportinfo)
- [List](#localrulestacks_list)
- [ListAdvancedSecurityObjects](#localrulestacks_listadvancedsecurityobjects)
-- [ListAppIds](#localrulestacks_listappids)
- [ListByResourceGroup](#localrulestacks_listbyresourcegroup)
-- [ListCountries](#localrulestacks_listcountries)
- [ListFirewalls](#localrulestacks_listfirewalls)
-- [ListPredefinedUrlCategories](#localrulestacks_listpredefinedurlcategories)
- [ListSecurityServices](#localrulestacks_listsecurityservices)
- [Revert](#localrulestacks_revert)
- [Update](#localrulestacks_update)
@@ -97,6 +94,13 @@
- [List](#operations_list)
+## PaloAltoNetworksCloudngfw
+
+- [CreateProductSerialNumber](#paloaltonetworkscloudngfw_createproductserialnumber)
+- [ListCloudManagerTenants](#paloaltonetworkscloudngfw_listcloudmanagertenants)
+- [ListProductSerialNumberStatus](#paloaltonetworkscloudngfw_listproductserialnumberstatus)
+- [ListSupportInfo](#paloaltonetworkscloudngfw_listsupportinfo)
+
## PostRules
- [CreateOrUpdate](#postrules_createorupdate)
@@ -135,34 +139,45 @@
```java
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import java.util.stream.Collectors;
/**
* Samples for CertificateObjectGlobalRulestack CreateOrUpdate.
*/
public final class CertificateObjectGlobalRulestackCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectGlobalRulestacks().createOrUpdate("praval", "armid1", new CertificateObjectGlobalRulestackResourceInner().withCertificateSelfSigned(BooleanEnum.TRUE), com.azure.core.util.Context.NONE);
+ public static void certificateObjectGlobalRulestackCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectGlobalRulestacks().createOrUpdate("praval", "armid1",
+ new CertificateObjectGlobalRulestackResourceInner().withCertificateSelfSigned(BooleanEnum.TRUE),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectGlobalRulestacks().createOrUpdate("praval", "armid1", new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("").withCertificateSelfSigned(BooleanEnum.TRUE).withAuditComment("comment").withDescription("description").withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"), com.azure.core.util.Context.NONE);
+ public static void certificateObjectGlobalRulestackCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectGlobalRulestacks().createOrUpdate("praval", "armid1",
+ new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("")
+ .withCertificateSelfSigned(BooleanEnum.TRUE).withAuditComment("comment").withDescription("description")
+ .withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -175,26 +190,32 @@ public final class CertificateObjectGlobalRulestackCreateOrUpdateSamples {
*/
public final class CertificateObjectGlobalRulestackDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void certificateObjectGlobalRulestackDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.certificateObjectGlobalRulestacks().delete("praval", "armid1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void certificateObjectGlobalRulestackDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.certificateObjectGlobalRulestacks().delete("praval", "armid1", com.azure.core.util.Context.NONE);
}
}
@@ -208,27 +229,35 @@ public final class CertificateObjectGlobalRulestackDeleteSamples {
*/
public final class CertificateObjectGlobalRulestackGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectGlobalRulestacks().getWithResponse("praval", "armid1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectGlobalRulestackGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectGlobalRulestacks().getWithResponse("praval", "armid1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectGlobalRulestacks().getWithResponse("praval", "armid1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectGlobalRulestackGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectGlobalRulestacks().getWithResponse("praval", "armid1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -241,26 +270,32 @@ public final class CertificateObjectGlobalRulestackGetSamples {
*/
public final class CertificateObjectGlobalRulestackListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_List_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_List_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_List_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void certificateObjectGlobalRulestackListMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.certificateObjectGlobalRulestacks().list("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectGlobalRulestack_List_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectGlobalRulestackListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void certificateObjectGlobalRulestackListMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.certificateObjectGlobalRulestacks().list("praval", com.azure.core.util.Context.NONE);
}
}
@@ -270,34 +305,42 @@ public final class CertificateObjectGlobalRulestackListSamples {
```java
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import java.util.stream.Collectors;
/**
* Samples for CertificateObjectLocalRulestack CreateOrUpdate.
*/
public final class CertificateObjectLocalRulestackCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1").withCertificateSelfSigned(BooleanEnum.TRUE).create();
+ public static void certificateObjectLocalRulestackCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1")
+ .withCertificateSelfSigned(BooleanEnum.TRUE).create();
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1").withCertificateSelfSigned(BooleanEnum.TRUE).withCertificateSignerResourceId("").withAuditComment("comment").withDescription("description").withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27").create();
+ public static void certificateObjectLocalRulestackCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1")
+ .withCertificateSelfSigned(BooleanEnum.TRUE).withCertificateSignerResourceId("").withAuditComment("comment")
+ .withDescription("description").withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27").create();
}
}
```
@@ -310,27 +353,35 @@ public final class CertificateObjectLocalRulestackCreateOrUpdateSamples {
*/
public final class CertificateObjectLocalRulestackDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().delete("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectLocalRulestackDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().delete("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().delete("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectLocalRulestackDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().delete("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -343,27 +394,35 @@ public final class CertificateObjectLocalRulestackDeleteSamples {
*/
public final class CertificateObjectLocalRulestackGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_Get_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectLocalRulestackGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectLocalRulestackGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -376,27 +435,35 @@ public final class CertificateObjectLocalRulestackGetSamples {
*/
public final class CertificateObjectLocalRulestackListByLocalRulestacksSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackListByLocalRulestacksMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectLocalRulestackListByLocalRulestacksMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
* Sample code: CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void certificateObjectLocalRulestackListByLocalRulestacksMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.certificateObjectLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void certificateObjectLocalRulestackListByLocalRulestacksMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.certificateObjectLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -409,26 +476,32 @@ public final class CertificateObjectLocalRulestackListByLocalRulestacksSamples {
*/
public final class FirewallStatusGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FirewallStatus_Get_MinimumSet_Gen.json
*/
/**
* Sample code: FirewallStatus_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallStatusGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallStatusGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewallStatus().getWithResponse("rgopenapi", "firewall1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FirewallStatus_Get_MaximumSet_Gen.json
*/
/**
* Sample code: FirewallStatus_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallStatusGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallStatusGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewallStatus().getWithResponse("rgopenapi", "firewall1", com.azure.core.util.Context.NONE);
}
}
@@ -442,26 +515,32 @@ public final class FirewallStatusGetSamples {
*/
public final class FirewallStatusListByFirewallsSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FirewallStatus_ListByFirewalls_MaximumSet_Gen.json
*/
/**
* Sample code: FirewallStatus_ListByFirewalls_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallStatusListByFirewallsMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallStatusListByFirewallsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewallStatus().listByFirewalls("rgopenapi", "firewall1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FirewallStatus_ListByFirewalls_MinimumSet_Gen.json
*/
/**
* Sample code: FirewallStatus_ListByFirewalls_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallStatusListByFirewallsMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallStatusListByFirewallsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewallStatus().listByFirewalls("rgopenapi", "firewall1", com.azure.core.util.Context.NONE);
}
}
@@ -497,34 +576,116 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.VwanConfiguration;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-import java.util.stream.Collectors;
/**
* Samples for Firewalls CreateOrUpdate.
*/
public final class FirewallsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().define("firewall1").withRegion("eastus").withExistingResourceGroup("firewall-rg").withNetworkProfile(new NetworkProfile().withVnetConfiguration(new VnetConfiguration().withVnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet").withAddressSpace("10.1.0.0/16")).withTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet").withAddressSpace("10.1.1.0/24")).withUnTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddressSpace("10.1.1.0/24")).withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddress("10.1.1.0/24"))).withVwanConfiguration(new VwanConfiguration().withNetworkVirtualApplianceId("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withVHub(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddressSpace("10.1.1.0/24")).withTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet").withAddressSpace("10.1.1.0/24")).withUnTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddressSpace("10.1.1.0/24")).withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddress("10.1.1.0/24"))).withNetworkType(NetworkType.VNET).withPublicIps(Arrays.asList(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1").withAddress("20.22.92.11"))).withEnableEgressNat(EgressNat.ENABLED).withEgressNatIp(Arrays.asList(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1").withAddress("20.22.92.111"))).withTrustedRanges(Arrays.asList("20.22.92.11"))).withDnsSettings(new DnsSettings().withEnableDnsProxy(DnsProxy.DISABLED).withEnabledDnsType(EnabledDnsType.CUSTOM).withDnsServers(Arrays.asList(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1").withAddress("20.22.92.111")))).withPlanData(new PlanData().withUsageType(UsageType.PAYG).withBillingCycle(BillingCycle.MONTHLY).withPlanId("liftrpantestplan")).withMarketplaceDetails(new MarketplaceDetails().withOfferId("liftr-pan-ame-test").withPublisherId("isvtestuklegacy").withMarketplaceSubscriptionStatus(MarketplaceSubscriptionStatus.PENDING_FULFILLMENT_START)).withTags(mapOf("tagName", "value")).withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE).withUserAssignedIdentities(mapOf("key16", new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa").withPrincipalId("aaaaaaaaaaaaaaa")))).withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withIsPanoramaManaged(BooleanEnum.TRUE).withPanoramaConfig(new PanoramaConfig().withConfigString("bas64EncodedString")).withAssociatedRulestack(new RulestackDetails().withResourceId("lrs1").withRulestackId("PANRSID").withLocation("eastus")).withFrontEndSettings(Arrays.asList(new FrontendSetting().withName("frontendsetting11").withProtocol(ProtocolType.TCP).withFrontendConfiguration(new EndpointConfiguration().withPort("80").withAddress(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1").withAddress("20.22.91.251"))).withBackendConfiguration(new EndpointConfiguration().withPort("80").withAddress(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2").withAddress("20.22.32.136"))))).create();
- }
-
- /*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_CreateOrUpdate_MinimumSet_Gen.json
+ public static void firewallsCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().define("firewall1").withRegion("eastus").withExistingResourceGroup("firewall-rg")
+ .withNetworkProfile(new NetworkProfile().withVnetConfiguration(new VnetConfiguration()
+ .withVnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet")
+ .withAddressSpace("10.1.0.0/16"))
+ .withTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withUnTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddress("10.1.1.0/24")))
+ .withVwanConfiguration(new VwanConfiguration()
+ .withNetworkVirtualApplianceId("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
+ .withVHub(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withUnTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddress("10.1.1.0/24")))
+ .withNetworkType(NetworkType.VNET)
+ .withPublicIps(Arrays.asList(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1")
+ .withAddress("20.22.92.11")))
+ .withEnableEgressNat(EgressNat.ENABLED)
+ .withEgressNatIp(Arrays.asList(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
+ .withAddress("20.22.92.111")))
+ .withTrustedRanges(Arrays.asList("20.22.92.11"))
+ .withPrivateSourceNatRulesDestination(Arrays.asList("20.22.92.11")))
+ .withDnsSettings(new DnsSettings().withEnableDnsProxy(DnsProxy.DISABLED)
+ .withEnabledDnsType(EnabledDnsType.CUSTOM)
+ .withDnsServers(Arrays.asList(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
+ .withAddress("20.22.92.111"))))
+ .withPlanData(new PlanData().withUsageType(UsageType.PAYG).withBillingCycle(BillingCycle.MONTHLY)
+ .withPlanId("liftrpantestplan"))
+ .withMarketplaceDetails(
+ new MarketplaceDetails().withOfferId("liftr-pan-ame-test").withPublisherId("isvtestuklegacy")
+ .withMarketplaceSubscriptionStatus(MarketplaceSubscriptionStatus.PENDING_FULFILLMENT_START))
+ .withTags(mapOf("tagName", "value"))
+ .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("key16",
+ new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa")
+ .withPrincipalId("aaaaaaaaaaaaaaa"))))
+ .withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withIsPanoramaManaged(BooleanEnum.TRUE)
+ .withPanoramaConfig(new PanoramaConfig().withConfigString("bas64EncodedString"))
+ .withAssociatedRulestack(
+ new RulestackDetails().withResourceId("lrs1").withRulestackId("PANRSID").withLocation("eastus"))
+ .withFrontEndSettings(Arrays.asList(new FrontendSetting().withName("frontendsetting11")
+ .withProtocol(ProtocolType.TCP)
+ .withFrontendConfiguration(new EndpointConfiguration().withPort("80")
+ .withAddress(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1")
+ .withAddress("20.22.91.251")))
+ .withBackendConfiguration(new EndpointConfiguration().withPort("80")
+ .withAddress(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2")
+ .withAddress("20.22.32.136")))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().define("firewall1").withRegion("eastus").withExistingResourceGroup("firewall-rg").withNetworkProfile(new NetworkProfile().withNetworkType(NetworkType.VNET).withPublicIps(Arrays.asList(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1").withAddress("20.22.92.11"))).withEnableEgressNat(EgressNat.ENABLED)).withDnsSettings(new DnsSettings()).withPlanData(new PlanData().withBillingCycle(BillingCycle.MONTHLY).withPlanId("liftrpantestplan")).withMarketplaceDetails(new MarketplaceDetails().withOfferId("liftr-pan-ame-test").withPublisherId("isvtestuklegacy")).create();
+ public static void firewallsCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().define("firewall1").withRegion("eastus").withExistingResourceGroup("firewall-rg")
+ .withNetworkProfile(new NetworkProfile().withNetworkType(NetworkType.VNET)
+ .withPublicIps(Arrays.asList(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1")
+ .withAddress("20.22.92.11")))
+ .withEnableEgressNat(EgressNat.ENABLED))
+ .withDnsSettings(new DnsSettings())
+ .withPlanData(new PlanData().withBillingCycle(BillingCycle.MONTHLY).withPlanId("liftrpantestplan"))
+ .withMarketplaceDetails(
+ new MarketplaceDetails().withOfferId("liftr-pan-ame-test").withPublisherId("isvtestuklegacy"))
+ .create();
}
// Use "Map.of" if available
@@ -549,26 +710,32 @@ public final class FirewallsCreateOrUpdateSamples {
*/
public final class FirewallsDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().delete("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().delete("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
}
}
@@ -582,27 +749,35 @@ public final class FirewallsDeleteSamples {
*/
public final class FirewallsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_Get_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().getByResourceGroupWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
+ public static void
+ firewallsGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().getByResourceGroupWithResponse("firewall-rg", "firewall1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_Get_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().getByResourceGroupWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
+ public static void
+ firewallsGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().getByResourceGroupWithResponse("firewall-rg", "firewall1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -615,27 +790,35 @@ public final class FirewallsGetByResourceGroupSamples {
*/
public final class FirewallsGetGlobalRulestackSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getGlobalRulestack_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_getGlobalRulestack_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_getGlobalRulestack_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetGlobalRulestackMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().getGlobalRulestackWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
+ public static void firewallsGetGlobalRulestackMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().getGlobalRulestackWithResponse("firewall-rg", "firewall1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getGlobalRulestack_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_getGlobalRulestack_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_getGlobalRulestack_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetGlobalRulestackMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().getGlobalRulestackWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
+ public static void firewallsGetGlobalRulestackMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().getGlobalRulestackWithResponse("firewall-rg", "firewall1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -648,26 +831,32 @@ public final class FirewallsGetGlobalRulestackSamples {
*/
public final class FirewallsGetLogProfileSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getLogProfile_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_getLogProfile_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_getLogProfile_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetLogProfileMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsGetLogProfileMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().getLogProfileWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getLogProfile_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_getLogProfile_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_getLogProfile_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetLogProfileMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsGetLogProfileMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().getLogProfileWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE);
}
}
@@ -681,27 +870,35 @@ public final class FirewallsGetLogProfileSamples {
*/
public final class FirewallsGetSupportInfoSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getSupportInfo_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_getSupportInfo_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_getSupportInfo_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetSupportInfoMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().getSupportInfoWithResponse("rgopenapi", "firewall1", null, com.azure.core.util.Context.NONE);
+ public static void firewallsGetSupportInfoMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().getSupportInfoWithResponse("rgopenapi", "firewall1", null,
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getSupportInfo_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_getSupportInfo_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_getSupportInfo_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsGetSupportInfoMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().getSupportInfoWithResponse("rgopenapi", "firewall1", "user1@domain.com", com.azure.core.util.Context.NONE);
+ public static void firewallsGetSupportInfoMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().getSupportInfoWithResponse("rgopenapi", "firewall1", "user1@domain.com",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -714,26 +911,32 @@ public final class FirewallsGetSupportInfoSamples {
*/
public final class FirewallsListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_ListBySubscription_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsListBySubscriptionMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsListBySubscriptionMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_ListBySubscription_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsListBySubscriptionMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsListBySubscriptionMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().list(com.azure.core.util.Context.NONE);
}
}
@@ -747,26 +950,32 @@ public final class FirewallsListSamples {
*/
public final class FirewallsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_ListByResourceGroup_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsListByResourceGroupMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsListByResourceGroupMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().listByResourceGroup("firewall-rg", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_ListByResourceGroup_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsListByResourceGroupMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void firewallsListByResourceGroupMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.firewalls().listByResourceGroup("firewall-rg", com.azure.core.util.Context.NONE);
}
}
@@ -783,34 +992,76 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogOption;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogType;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MonitorLog;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StorageAccount;
-import java.util.stream.Collectors;
/**
* Samples for Firewalls SaveLogProfile.
*/
public final class FirewallsSaveLogProfileSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_saveLogProfile_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_saveLogProfile_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_saveLogProfile_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsSaveLogProfileMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().saveLogProfileWithResponse("firewall-rg", "firewall1", new LogSettingsInner().withLogType(LogType.TRAFFIC).withLogOption(LogOption.SAME_DESTINATION).withApplicationInsights(new ApplicationInsights().withId("aaaaaaaaaaaaaaaa").withKey("fakeTokenPlaceholder")).withCommonDestination(new LogDestination().withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa")).withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa").withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa")).withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa").withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder"))).withTrafficLogDestination(new LogDestination().withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa")).withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa").withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa")).withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa").withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder"))).withThreatLogDestination(new LogDestination().withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa")).withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa").withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa")).withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa").withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder"))).withDecryptLogDestination(new LogDestination().withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa")).withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa").withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa")).withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa").withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa").withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder"))), com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_saveLogProfile_MinimumSet_Gen.json
+ public static void firewallsSaveLogProfileMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().saveLogProfileWithResponse("firewall-rg", "firewall1",
+ new LogSettingsInner().withLogType(LogType.TRAFFIC).withLogOption(LogOption.SAME_DESTINATION)
+ .withApplicationInsights(
+ new ApplicationInsights().withId("aaaaaaaaaaaaaaaa").withKey("fakeTokenPlaceholder"))
+ .withCommonDestination(new LogDestination()
+ .withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa"))
+ .withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa")
+ .withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa"))
+ .withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa")
+ .withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder")))
+ .withTrafficLogDestination(new LogDestination()
+ .withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa"))
+ .withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa")
+ .withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa"))
+ .withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa")
+ .withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder")))
+ .withThreatLogDestination(new LogDestination()
+ .withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa"))
+ .withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa")
+ .withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa"))
+ .withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa")
+ .withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder")))
+ .withDecryptLogDestination(new LogDestination()
+ .withStorageConfigurations(new StorageAccount().withId("aaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaa").withAccountName("aaaaaaaaaaaaaaaaaaaaaaa"))
+ .withEventHubConfigurations(new EventHub().withId("aaaaaaaaaa").withSubscriptionId("aaaaaaaaaa")
+ .withName("aaaaaaaa").withNameSpace("aaaaaaaaaaaaaaaaaaaaa").withPolicyName("aaaaaaaaaaaa"))
+ .withMonitorConfigurations(new MonitorLog().withId("aaaaaaaaaaaaaaaaaaa")
+ .withSubscriptionId("aaaaaaaaaaaaa").withWorkspace("aaaaaaaaaaa")
+ .withPrimaryKey("fakeTokenPlaceholder").withSecondaryKey("fakeTokenPlaceholder"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_saveLogProfile_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_saveLogProfile_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsSaveLogProfileMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.firewalls().saveLogProfileWithResponse("firewall-rg", "firewall1", null, com.azure.core.util.Context.NONE);
+ public static void firewallsSaveLogProfileMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.firewalls().saveLogProfileWithResponse("firewall-rg", "firewall1", null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -847,36 +1098,110 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.VwanConfiguration;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-import java.util.stream.Collectors;
/**
* Samples for Firewalls Update.
*/
public final class FirewallsUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Update_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_Update_MinimumSet_Gen.json
*/
/**
* Sample code: Firewalls_Update_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- FirewallResource resource = manager.firewalls().getByResourceGroupWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE).getValue();
+ public static void firewallsUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ FirewallResource resource = manager.firewalls()
+ .getByResourceGroupWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE).getValue();
resource.update().apply();
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Update_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Firewalls_Update_MaximumSet_Gen.json
*/
/**
* Sample code: Firewalls_Update_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void firewallsUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- FirewallResource resource = manager.firewalls().getByResourceGroupWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE).getValue();
- resource.update().withTags(mapOf("tagName", "value")).withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE).withUserAssignedIdentities(mapOf("key16", new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa").withPrincipalId("aaaaaaaaaaaaaaa")))).withProperties(new FirewallResourceUpdateProperties().withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withNetworkProfile(new NetworkProfile().withVnetConfiguration(new VnetConfiguration().withVnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet").withAddressSpace("10.1.0.0/16")).withTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet").withAddressSpace("10.1.1.0/24")).withUnTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddressSpace("10.1.1.0/24")).withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddress("10.1.1.0/24"))).withVwanConfiguration(new VwanConfiguration().withNetworkVirtualApplianceId("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withVHub(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddressSpace("10.1.1.0/24")).withTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet").withAddressSpace("10.1.1.0/24")).withUnTrustSubnet(new IpAddressSpace().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddressSpace("10.1.1.0/24")).withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet").withAddress("10.1.1.0/24"))).withNetworkType(NetworkType.VNET).withPublicIps(Arrays.asList(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1").withAddress("20.22.92.11"))).withEnableEgressNat(EgressNat.ENABLED).withEgressNatIp(Arrays.asList(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1").withAddress("20.22.92.111"))).withTrustedRanges(Arrays.asList("20.22.92.11"))).withIsPanoramaManaged(BooleanEnum.TRUE).withPanoramaConfig(new PanoramaConfig().withConfigString("bas64EncodedString")).withAssociatedRulestack(new RulestackDetails().withResourceId("aaaaaaaaaa").withRulestackId("aaaaaaaaaaaaaaaa").withLocation("eastus")).withDnsSettings(new DnsSettings().withEnableDnsProxy(DnsProxy.DISABLED).withEnabledDnsType(EnabledDnsType.CUSTOM).withDnsServers(Arrays.asList(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1").withAddress("20.22.92.111")))).withFrontEndSettings(Arrays.asList(new FrontendSetting().withName("frontendsetting11").withProtocol(ProtocolType.TCP).withFrontendConfiguration(new EndpointConfiguration().withPort("80").withAddress(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1").withAddress("20.22.91.251"))).withBackendConfiguration(new EndpointConfiguration().withPort("80").withAddress(new IpAddress().withResourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2").withAddress("20.22.32.136"))))).withPlanData(new PlanData().withUsageType(UsageType.PAYG).withBillingCycle(BillingCycle.WEEKLY).withPlanId("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")).withMarketplaceDetails(new MarketplaceDetails().withOfferId("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa").withPublisherId("aaaa").withMarketplaceSubscriptionStatus(MarketplaceSubscriptionStatus.PENDING_FULFILLMENT_START))).apply();
+ public static void firewallsUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ FirewallResource resource = manager.firewalls()
+ .getByResourceGroupWithResponse("firewall-rg", "firewall1", com.azure.core.util.Context.NONE).getValue();
+ resource.update().withTags(mapOf("tagName", "value"))
+ .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("key16",
+ new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa")
+ .withPrincipalId("aaaaaaaaaaaaaaa"))))
+ .withProperties(new FirewallResourceUpdateProperties().withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
+ .withNetworkProfile(new NetworkProfile().withVnetConfiguration(new VnetConfiguration()
+ .withVnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet")
+ .withAddressSpace("10.1.0.0/16"))
+ .withTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withUnTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddress("10.1.1.0/24")))
+ .withVwanConfiguration(new VwanConfiguration()
+ .withNetworkVirtualApplianceId("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
+ .withVHub(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withUnTrustSubnet(new IpAddressSpace().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddressSpace("10.1.1.0/24"))
+ .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId(
+ "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
+ .withAddress("10.1.1.0/24")))
+ .withNetworkType(NetworkType.VNET)
+ .withPublicIps(Arrays.asList(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1")
+ .withAddress("20.22.92.11")))
+ .withEnableEgressNat(EgressNat.ENABLED)
+ .withEgressNatIp(Arrays.asList(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
+ .withAddress("20.22.92.111")))
+ .withTrustedRanges(Arrays.asList("20.22.92.11"))
+ .withPrivateSourceNatRulesDestination(Arrays.asList("20.22.92.11")))
+ .withIsPanoramaManaged(BooleanEnum.TRUE)
+ .withPanoramaConfig(new PanoramaConfig().withConfigString("bas64EncodedString"))
+ .withAssociatedRulestack(new RulestackDetails().withResourceId("aaaaaaaaaa")
+ .withRulestackId("aaaaaaaaaaaaaaaa").withLocation("eastus"))
+ .withDnsSettings(new DnsSettings().withEnableDnsProxy(DnsProxy.DISABLED)
+ .withEnabledDnsType(EnabledDnsType.CUSTOM)
+ .withDnsServers(Arrays.asList(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
+ .withAddress("20.22.92.111"))))
+ .withFrontEndSettings(Arrays.asList(new FrontendSetting().withName("frontendsetting11")
+ .withProtocol(ProtocolType.TCP)
+ .withFrontendConfiguration(new EndpointConfiguration().withPort("80")
+ .withAddress(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1")
+ .withAddress("20.22.91.251")))
+ .withBackendConfiguration(new EndpointConfiguration().withPort("80")
+ .withAddress(new IpAddress().withResourceId(
+ "/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2")
+ .withAddress("20.22.32.136")))))
+ .withPlanData(new PlanData().withUsageType(UsageType.PAYG).withBillingCycle(BillingCycle.WEEKLY)
+ .withPlanId("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))
+ .withMarketplaceDetails(
+ new MarketplaceDetails().withOfferId("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa").withPublisherId("aaaa")
+ .withMarketplaceSubscriptionStatus(MarketplaceSubscriptionStatus.PENDING_FULFILLMENT_START)))
+ .apply();
}
// Use "Map.of" if available
@@ -904,27 +1229,39 @@ import java.util.Arrays;
*/
public final class FqdnListGlobalRulestackCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.fqdnListGlobalRulestacks().createOrUpdate("praval", "armid1", new FqdnListGlobalRulestackResourceInner().withDescription("string").withFqdnList(Arrays.asList("string1", "string2")).withEtag("aaaaaaaaaaaaaaaaaa").withAuditComment("string"), com.azure.core.util.Context.NONE);
+ public static void fqdnListGlobalRulestackCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.fqdnListGlobalRulestacks().createOrUpdate("praval", "armid1",
+ new FqdnListGlobalRulestackResourceInner().withDescription("string")
+ .withFqdnList(Arrays.asList("string1", "string2")).withEtag("aaaaaaaaaaaaaaaaaa")
+ .withAuditComment("string"),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.fqdnListGlobalRulestacks().createOrUpdate("praval", "armid1", new FqdnListGlobalRulestackResourceInner().withFqdnList(Arrays.asList("string1", "string2")), com.azure.core.util.Context.NONE);
+ public static void fqdnListGlobalRulestackCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.fqdnListGlobalRulestacks().createOrUpdate("praval", "armid1",
+ new FqdnListGlobalRulestackResourceInner().withFqdnList(Arrays.asList("string1", "string2")),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -937,26 +1274,32 @@ public final class FqdnListGlobalRulestackCreateOrUpdateSamples {
*/
public final class FqdnListGlobalRulestackDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListGlobalRulestackDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListGlobalRulestacks().delete("praval", "armid1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListGlobalRulestackDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListGlobalRulestacks().delete("praval", "armid1", com.azure.core.util.Context.NONE);
}
}
@@ -970,26 +1313,32 @@ public final class FqdnListGlobalRulestackDeleteSamples {
*/
public final class FqdnListGlobalRulestackGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListGlobalRulestackGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListGlobalRulestacks().getWithResponse("praval", "armid1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListGlobalRulestackGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListGlobalRulestacks().getWithResponse("praval", "armid1", com.azure.core.util.Context.NONE);
}
}
@@ -1003,26 +1352,32 @@ public final class FqdnListGlobalRulestackGetSamples {
*/
public final class FqdnListGlobalRulestackListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_List_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_List_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_List_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListGlobalRulestackListMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListGlobalRulestacks().list("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_List_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListGlobalRulestack_List_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListGlobalRulestack_List_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListGlobalRulestackListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListGlobalRulestackListMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListGlobalRulestacks().list("praval", com.azure.core.util.Context.NONE);
}
}
@@ -1038,27 +1393,36 @@ import java.util.Arrays;
*/
public final class FqdnListLocalRulestackCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.fqdnListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1").withFqdnList(Arrays.asList("string1", "string2")).withDescription("string").withEtag("aaaaaaaaaaaaaaaaaa").withAuditComment("string").create();
+ public static void fqdnListLocalRulestackCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.fqdnListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1")
+ .withFqdnList(Arrays.asList("string1", "string2")).withDescription("string").withEtag("aaaaaaaaaaaaaaaaaa")
+ .withAuditComment("string").create();
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.fqdnListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1").withFqdnList(Arrays.asList("string1", "string2")).create();
+ public static void fqdnListLocalRulestackCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.fqdnListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1")
+ .withFqdnList(Arrays.asList("string1", "string2")).create();
}
}
```
@@ -1071,26 +1435,32 @@ public final class FqdnListLocalRulestackCreateOrUpdateSamples {
*/
public final class FqdnListLocalRulestackDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListLocalRulestackDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListLocalRulestacks().delete("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListLocalRulestackDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListLocalRulestacks().delete("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
}
}
@@ -1104,27 +1474,35 @@ public final class FqdnListLocalRulestackDeleteSamples {
*/
public final class FqdnListLocalRulestackGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_Get_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.fqdnListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void fqdnListLocalRulestackGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.fqdnListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_Get_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.fqdnListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void fqdnListLocalRulestackGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.fqdnListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1137,26 +1515,32 @@ public final class FqdnListLocalRulestackGetSamples {
*/
public final class FqdnListLocalRulestackListByLocalRulestacksSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackListByLocalRulestacksMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListLocalRulestackListByLocalRulestacksMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
* Sample code: FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void fqdnListLocalRulestackListByLocalRulestacksMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void fqdnListLocalRulestackListByLocalRulestacksMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.fqdnListLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -1170,26 +1554,32 @@ public final class FqdnListLocalRulestackListByLocalRulestacksSamples {
*/
public final class GlobalRulestackCommitSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_commit_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_commit_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_commit_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackCommitMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackCommitMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().commit("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_commit_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_commit_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_commit_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackCommitMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackCommitMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().commit("praval", com.azure.core.util.Context.NONE);
}
}
@@ -1208,34 +1598,52 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-import java.util.stream.Collectors;
/**
* Samples for GlobalRulestack CreateOrUpdate.
*/
public final class GlobalRulestackCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().createOrUpdate("praval", new GlobalRulestackResourceInner().withLocation("eastus"), com.azure.core.util.Context.NONE);
+ public static void globalRulestackCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().createOrUpdate("praval", new GlobalRulestackResourceInner().withLocation("eastus"),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().createOrUpdate("praval", new GlobalRulestackResourceInner().withLocation("eastus").withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE).withUserAssignedIdentities(mapOf("key16", new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa").withPrincipalId("aaaaaaaaaaaaaaa")))).withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withPanLocation("eastus").withScope(ScopeType.GLOBAL).withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")).withDescription("global rulestacks").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("8.5.3").withSecurityServices(new SecurityServices().withVulnerabilityProfile("default").withAntiSpywareProfile("default").withAntiVirusProfile("default").withUrlFilteringProfile("default").withFileBlockingProfile("default").withDnsSubscription("default").withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default")), com.azure.core.util.Context.NONE);
+ public static void globalRulestackCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().createOrUpdate("praval", new GlobalRulestackResourceInner().withLocation("eastus")
+ .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("key16",
+ new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa")
+ .withPrincipalId("aaaaaaaaaaaaaaa"))))
+ .withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withPanLocation("eastus").withScope(ScopeType.GLOBAL)
+ .withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"))
+ .withDescription("global rulestacks").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("8.5.3")
+ .withSecurityServices(new SecurityServices().withVulnerabilityProfile("default")
+ .withAntiSpywareProfile("default").withAntiVirusProfile("default").withUrlFilteringProfile("default")
+ .withFileBlockingProfile("default").withDnsSubscription("default")
+ .withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -1260,26 +1668,32 @@ public final class GlobalRulestackCreateOrUpdateSamples {
*/
public final class GlobalRulestackDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().delete("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().delete("praval", com.azure.core.util.Context.NONE);
}
}
@@ -1293,26 +1707,32 @@ public final class GlobalRulestackDeleteSamples {
*/
public final class GlobalRulestackGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().getWithResponse("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().getWithResponse("praval", com.azure.core.util.Context.NONE);
}
}
@@ -1326,26 +1746,32 @@ public final class GlobalRulestackGetSamples {
*/
public final class GlobalRulestackGetChangeLogSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_getChangeLog_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_getChangeLog_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_getChangeLog_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackGetChangeLogMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackGetChangeLogMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().getChangeLogWithResponse("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_getChangeLog_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_getChangeLog_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_getChangeLog_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackGetChangeLogMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackGetChangeLogMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().getChangeLogWithResponse("praval", com.azure.core.util.Context.NONE);
}
}
@@ -1359,26 +1785,32 @@ public final class GlobalRulestackGetChangeLogSamples {
*/
public final class GlobalRulestackListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_List_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_List_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_List_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackListMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_List_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_List_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_List_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackListMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().list(com.azure.core.util.Context.NONE);
}
}
@@ -1388,34 +1820,41 @@ public final class GlobalRulestackListSamples {
```java
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum;
-import java.util.stream.Collectors;
/**
* Samples for GlobalRulestack ListAdvancedSecurityObjects.
*/
public final class GlobalRulestackListAdvancedSecurityObjectsSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListAdvancedSecurityObjectsMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listAdvancedSecurityObjectsWithResponse("praval", AdvSecurityObjectTypeEnum.fromString("globalRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListAdvancedSecurityObjectsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listAdvancedSecurityObjectsWithResponse("praval",
+ AdvSecurityObjectTypeEnum.fromString("globalRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListAdvancedSecurityObjectsMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listAdvancedSecurityObjectsWithResponse("praval", AdvSecurityObjectTypeEnum.fromString("globalRulestacks"), null, null, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListAdvancedSecurityObjectsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listAdvancedSecurityObjectsWithResponse("praval",
+ AdvSecurityObjectTypeEnum.fromString("globalRulestacks"), null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1428,27 +1867,35 @@ public final class GlobalRulestackListAdvancedSecurityObjectsSamples {
*/
public final class GlobalRulestackListAppIdsSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAppIds_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listAppIds_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listAppIds_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListAppIdsMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listAppIdsWithResponse("praval", "8543", "pref", "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListAppIdsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listAppIdsWithResponse("praval", "8543", "pref", "a6a321", 20,
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAppIds_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listAppIds_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listAppIds_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListAppIdsMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listAppIdsWithResponse("praval", null, null, null, null, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListAppIdsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listAppIdsWithResponse("praval", null, null, null, null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1461,26 +1908,32 @@ public final class GlobalRulestackListAppIdsSamples {
*/
public final class GlobalRulestackListCountriesSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listCountries_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listCountries_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listCountries_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListCountriesMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackListCountriesMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().listCountriesWithResponse("praval", null, null, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listCountries_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listCountries_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listCountries_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListCountriesMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackListCountriesMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().listCountriesWithResponse("praval", "a6a321", 20, com.azure.core.util.Context.NONE);
}
}
@@ -1494,26 +1947,32 @@ public final class GlobalRulestackListCountriesSamples {
*/
public final class GlobalRulestackListFirewallsSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listFirewalls_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listFirewalls_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listFirewalls_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListFirewallsMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackListFirewallsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().listFirewallsWithResponse("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listFirewalls_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listFirewalls_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listFirewalls_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListFirewallsMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackListFirewallsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().listFirewallsWithResponse("praval", com.azure.core.util.Context.NONE);
}
}
@@ -1527,27 +1986,35 @@ public final class GlobalRulestackListFirewallsSamples {
*/
public final class GlobalRulestackListPredefinedUrlCategoriesSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListPredefinedUrlCategoriesMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listPredefinedUrlCategoriesWithResponse("praval", "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListPredefinedUrlCategoriesMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listPredefinedUrlCategoriesWithResponse("praval", "a6a321", 20,
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListPredefinedUrlCategoriesMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listPredefinedUrlCategoriesWithResponse("praval", null, null, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListPredefinedUrlCategoriesMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listPredefinedUrlCategoriesWithResponse("praval", null, null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1556,34 +2023,41 @@ public final class GlobalRulestackListPredefinedUrlCategoriesSamples {
```java
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum;
-import java.util.stream.Collectors;
/**
* Samples for GlobalRulestack ListSecurityServices.
*/
public final class GlobalRulestackListSecurityServicesSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listSecurityServices_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listSecurityServices_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listSecurityServices_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListSecurityServicesMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listSecurityServicesWithResponse("praval", SecurityServicesTypeEnum.fromString("globalRulestacks"), null, null, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListSecurityServicesMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listSecurityServicesWithResponse("praval",
+ SecurityServicesTypeEnum.fromString("globalRulestacks"), null, null, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listSecurityServices_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_listSecurityServices_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_listSecurityServices_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackListSecurityServicesMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().listSecurityServicesWithResponse("praval", SecurityServicesTypeEnum.fromString("globalRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void globalRulestackListSecurityServicesMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().listSecurityServicesWithResponse("praval",
+ SecurityServicesTypeEnum.fromString("globalRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
}
}
```
@@ -1596,26 +2070,32 @@ public final class GlobalRulestackListSecurityServicesSamples {
*/
public final class GlobalRulestackRevertSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_revert_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_revert_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_revert_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackRevertMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackRevertMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().revertWithResponse("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_revert_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_revert_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_revert_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackRevertMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void globalRulestackRevertMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.globalRulestacks().revertWithResponse("praval", com.azure.core.util.Context.NONE);
}
}
@@ -1635,34 +2115,56 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-import java.util.stream.Collectors;
/**
* Samples for GlobalRulestack Update.
*/
public final class GlobalRulestackUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Update_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_Update_MaximumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_Update_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().updateWithResponse("praval", new GlobalRulestackResourceUpdate().withLocation("eastus").withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE).withUserAssignedIdentities(mapOf("key16", new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa").withPrincipalId("aaaaaaaaaaaaaaa")))).withProperties(new GlobalRulestackResourceUpdateProperties().withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withPanLocation("eastus").withScope(ScopeType.GLOBAL).withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")).withDescription("global rulestacks").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("8.5.3").withSecurityServices(new SecurityServices().withVulnerabilityProfile("default").withAntiSpywareProfile("default").withAntiVirusProfile("default").withUrlFilteringProfile("default").withFileBlockingProfile("default").withDnsSubscription("default").withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default"))), com.azure.core.util.Context.NONE);
+ public static void globalRulestackUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().updateWithResponse("praval",
+ new GlobalRulestackResourceUpdate().withLocation("eastus")
+ .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("key16",
+ new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa")
+ .withPrincipalId("aaaaaaaaaaaaaaa"))))
+ .withProperties(
+ new GlobalRulestackResourceUpdateProperties().withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
+ .withPanLocation("eastus").withScope(ScopeType.GLOBAL)
+ .withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"))
+ .withDescription("global rulestacks").withDefaultMode(DefaultMode.IPS)
+ .withMinAppIdVersion("8.5.3").withSecurityServices(
+ new SecurityServices().withVulnerabilityProfile("default").withAntiSpywareProfile("default")
+ .withAntiVirusProfile("default").withUrlFilteringProfile("default")
+ .withFileBlockingProfile("default").withDnsSubscription("default")
+ .withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default"))),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Update_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * GlobalRulestack_Update_MinimumSet_Gen.json
*/
/**
* Sample code: GlobalRulestack_Update_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void globalRulestackUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.globalRulestacks().updateWithResponse("praval", new GlobalRulestackResourceUpdate(), com.azure.core.util.Context.NONE);
+ public static void globalRulestackUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.globalRulestacks().updateWithResponse("praval", new GlobalRulestackResourceUpdate(),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -1691,34 +2193,55 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SourceAddr;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StateEnum;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.TagInfo;
import java.util.Arrays;
-import java.util.stream.Collectors;
/**
* Samples for LocalRules CreateOrUpdate.
*/
public final class LocalRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRules_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().define("1").withExistingLocalRulestack("firewall-rg", "lrs1").withRuleName("localRule1").create();
+ public static void localRulesCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().define("1").withExistingLocalRulestack("firewall-rg", "lrs1").withRuleName("localRule1")
+ .create();
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRules_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().define("1").withExistingLocalRulestack("firewall-rg", "lrs1").withRuleName("localRule1").withTags(Arrays.asList(new TagInfo().withKey("fakeTokenPlaceholder").withValue("value"))).withEtag("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0").withDescription("description of local rule").withRuleState(StateEnum.DISABLED).withSource(new SourceAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1"))).withNegateSource(BooleanEnum.TRUE).withDestination(new DestinationAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1")).withFqdnLists(Arrays.asList("FQDN1"))).withNegateDestination(BooleanEnum.TRUE).withApplications(Arrays.asList("app1")).withCategory(new Category().withUrlCustom(Arrays.asList("https://microsoft.com")).withFeeds(Arrays.asList("feed"))).withProtocol("HTTP").withProtocolPortList(Arrays.asList("80")).withInboundInspectionCertificate("cert1").withAuditComment("example comment").withActionType(ActionEnum.ALLOW).withEnableLogging(StateEnum.DISABLED).withDecryptionRuleType(DecryptionRuleTypeEnum.SSLOUTBOUND_INSPECTION).create();
+ public static void localRulesCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().define("1").withExistingLocalRulestack("firewall-rg", "lrs1").withRuleName("localRule1")
+ .withTags(Arrays.asList(new TagInfo().withKey("fakeTokenPlaceholder").withValue("value")))
+ .withEtag("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0").withDescription("description of local rule")
+ .withRuleState(StateEnum.DISABLED)
+ .withSource(new SourceAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India"))
+ .withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1")))
+ .withNegateSource(BooleanEnum.TRUE)
+ .withDestination(new DestinationAddr().withCidrs(Arrays.asList("1.0.0.1/10"))
+ .withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed"))
+ .withPrefixLists(Arrays.asList("PL1")).withFqdnLists(Arrays.asList("FQDN1")))
+ .withNegateDestination(BooleanEnum.TRUE).withApplications(Arrays.asList("app1"))
+ .withCategory(
+ new Category().withUrlCustom(Arrays.asList("https://microsoft.com")).withFeeds(Arrays.asList("feed")))
+ .withProtocol("HTTP").withProtocolPortList(Arrays.asList("80")).withInboundInspectionCertificate("cert1")
+ .withAuditComment("example comment").withActionType(ActionEnum.ALLOW).withEnableLogging(StateEnum.DISABLED)
+ .withDecryptionRuleType(DecryptionRuleTypeEnum.SSLOUTBOUND_INSPECTION).create();
}
}
```
@@ -1731,26 +2254,32 @@ public final class LocalRulesCreateOrUpdateSamples {
*/
public final class LocalRulesDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRules_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulesDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRules().delete("firewall-rg", "lrs1", "1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRules_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulesDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRules().delete("firewall-rg", "lrs1", "1", com.azure.core.util.Context.NONE);
}
}
@@ -1764,26 +2293,32 @@ public final class LocalRulesDeleteSamples {
*/
public final class LocalRulesGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_Get_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRules_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulesGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRules().getWithResponse("firewall-rg", "lrs1", "1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_Get_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRules_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulesGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRules().getWithResponse("firewall-rg", "lrs1", "1", com.azure.core.util.Context.NONE);
}
}
@@ -1797,27 +2332,35 @@ public final class LocalRulesGetSamples {
*/
public final class LocalRulesGetCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_getCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_getCounters_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRules_getCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesGetCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().getCountersWithResponse("firewall-rg", "lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
+ public static void localRulesGetCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().getCountersWithResponse("firewall-rg", "lrs1", "1", "firewall1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_getCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_getCounters_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRules_getCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesGetCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().getCountersWithResponse("firewall-rg", "lrs1", "1", null, com.azure.core.util.Context.NONE);
+ public static void localRulesGetCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().getCountersWithResponse("firewall-rg", "lrs1", "1", null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1830,26 +2373,32 @@ public final class LocalRulesGetCountersSamples {
*/
public final class LocalRulesListByLocalRulestacksSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_ListByLocalRulestacks_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRules_ListByLocalRulestacks_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesListByLocalRulestacksMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulesListByLocalRulestacksMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRules().listByLocalRulestacks("firewall-rg", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRules_ListByLocalRulestacks_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesListByLocalRulestacksMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulesListByLocalRulestacksMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRules().listByLocalRulestacks("firewall-rg", "lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -1863,27 +2412,35 @@ public final class LocalRulesListByLocalRulestacksSamples {
*/
public final class LocalRulesRefreshCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_refreshCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_refreshCounters_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRules_refreshCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesRefreshCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().refreshCountersWithResponse("firewall-rg", "lrs1", "1", null, com.azure.core.util.Context.NONE);
+ public static void localRulesRefreshCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().refreshCountersWithResponse("firewall-rg", "lrs1", "1", null,
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_refreshCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_refreshCounters_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRules_refreshCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesRefreshCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().refreshCountersWithResponse("firewall-rg", "lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
+ public static void localRulesRefreshCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().refreshCountersWithResponse("firewall-rg", "lrs1", "1", "firewall1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1896,27 +2453,35 @@ public final class LocalRulesRefreshCountersSamples {
*/
public final class LocalRulesResetCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_resetCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_resetCounters_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRules_resetCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesResetCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().resetCountersWithResponse("firewall-rg", "lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
+ public static void localRulesResetCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().resetCountersWithResponse("firewall-rg", "lrs1", "1", "firewall1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_resetCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRules_resetCounters_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRules_resetCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulesResetCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRules().resetCountersWithResponse("firewall-rg", "lrs1", "1", null, com.azure.core.util.Context.NONE);
+ public static void localRulesResetCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRules().resetCountersWithResponse("firewall-rg", "lrs1", "1", null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1929,26 +2494,32 @@ public final class LocalRulesResetCountersSamples {
*/
public final class LocalRulestacksCommitSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_commit_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_commit_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_commit_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksCommitMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksCommitMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().commit("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_commit_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_commit_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_commit_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksCommitMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksCommitMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().commit("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -1966,34 +2537,52 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-import java.util.stream.Collectors;
/**
* Samples for LocalRulestacks CreateOrUpdate.
*/
public final class LocalRulestacksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().define("lrs1").withRegion("eastus").withExistingResourceGroup("rgopenapi").create();
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().define("lrs1").withRegion("eastus").withExistingResourceGroup("rgopenapi").withTags(mapOf("tagName", "value")).withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE).withUserAssignedIdentities(mapOf("key16", new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa").withPrincipalId("aaaaaaaaaaaaaaa")))).withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withPanLocation("eastus").withScope(ScopeType.LOCAL).withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")).withDescription("local rulestacks").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("8.5.3").withSecurityServices(new SecurityServices().withVulnerabilityProfile("default").withAntiSpywareProfile("default").withAntiVirusProfile("default").withUrlFilteringProfile("default").withFileBlockingProfile("default").withDnsSubscription("default").withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default")).create();
+ public static void localRulestacksCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().define("lrs1").withRegion("eastus").withExistingResourceGroup("rgopenapi")
+ .withTags(mapOf("tagName", "value"))
+ .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("key16",
+ new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa")
+ .withPrincipalId("aaaaaaaaaaaaaaa"))))
+ .withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withPanLocation("eastus").withScope(ScopeType.LOCAL)
+ .withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"))
+ .withDescription("local rulestacks").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("8.5.3")
+ .withSecurityServices(new SecurityServices().withVulnerabilityProfile("default")
+ .withAntiSpywareProfile("default").withAntiVirusProfile("default").withUrlFilteringProfile("default")
+ .withFileBlockingProfile("default").withDnsSubscription("default")
+ .withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default"))
+ .create();
}
// Use "Map.of" if available
@@ -2018,26 +2607,32 @@ public final class LocalRulestacksCreateOrUpdateSamples {
*/
public final class LocalRulestacksDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().delete("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().delete("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -2051,26 +2646,32 @@ public final class LocalRulestacksDeleteSamples {
*/
public final class LocalRulestacksGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_Get_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().getByResourceGroupWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_Get_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().getByResourceGroupWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -2084,26 +2685,32 @@ public final class LocalRulestacksGetByResourceGroupSamples {
*/
public final class LocalRulestacksGetChangeLogSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getChangeLog_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_getChangeLog_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_getChangeLog_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksGetChangeLogMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksGetChangeLogMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().getChangeLogWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getChangeLog_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_getChangeLog_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_getChangeLog_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksGetChangeLogMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksGetChangeLogMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().getChangeLogWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -2117,27 +2724,35 @@ public final class LocalRulestacksGetChangeLogSamples {
*/
public final class LocalRulestacksGetSupportInfoSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getSupportInfo_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_getSupportInfo_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_getSupportInfo_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksGetSupportInfoMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().getSupportInfoWithResponse("rgopenapi", "lrs1", null, com.azure.core.util.Context.NONE);
+ public static void localRulestacksGetSupportInfoMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().getSupportInfoWithResponse("rgopenapi", "lrs1", null,
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getSupportInfo_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_getSupportInfo_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_getSupportInfo_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksGetSupportInfoMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().getSupportInfoWithResponse("rgopenapi", "lrs1", "user1@domain.com", com.azure.core.util.Context.NONE);
+ public static void localRulestacksGetSupportInfoMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().getSupportInfoWithResponse("rgopenapi", "lrs1", "user1@domain.com",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2150,26 +2765,32 @@ public final class LocalRulestacksGetSupportInfoSamples {
*/
public final class LocalRulestacksListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_ListBySubscription_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListBySubscriptionMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksListBySubscriptionMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_ListBySubscription_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListBySubscriptionMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void localRulestacksListBySubscriptionMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.localRulestacks().list(com.azure.core.util.Context.NONE);
}
}
@@ -2179,361 +2800,480 @@ public final class LocalRulestacksListSamples {
```java
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum;
-import java.util.stream.Collectors;
/**
* Samples for LocalRulestacks ListAdvancedSecurityObjects.
*/
public final class LocalRulestacksListAdvancedSecurityObjectsSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListAdvancedSecurityObjectsMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listAdvancedSecurityObjectsWithResponse("rgopenapi", "lrs1", AdvSecurityObjectTypeEnum.fromString("localRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void localRulestacksListAdvancedSecurityObjectsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listAdvancedSecurityObjectsWithResponse("rgopenapi", "lrs1",
+ AdvSecurityObjectTypeEnum.fromString("localRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json
*/
/**
* Sample code: LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListAdvancedSecurityObjectsMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listAdvancedSecurityObjectsWithResponse("rgopenapi", "lrs1", AdvSecurityObjectTypeEnum.fromString("localRulestacks"), null, null, com.azure.core.util.Context.NONE);
+ public static void localRulestacksListAdvancedSecurityObjectsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listAdvancedSecurityObjectsWithResponse("rgopenapi", "lrs1",
+ AdvSecurityObjectTypeEnum.fromString("localRulestacks"), null, null, com.azure.core.util.Context.NONE);
}
}
```
-### LocalRulestacks_ListAppIds
+### LocalRulestacks_ListByResourceGroup
```java
/**
- * Samples for LocalRulestacks ListAppIds.
+ * Samples for LocalRulestacks ListByResourceGroup.
*/
-public final class LocalRulestacksListAppIdsSamples {
+public final class LocalRulestacksListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAppIds_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listAppIds_MaximumSet_Gen.
+ * Sample code: LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListAppIdsMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listAppIdsWithResponse("rgopenapi", "lrs1", "8543", "pref", "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void localRulestacksListByResourceGroupMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAppIds_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listAppIds_MinimumSet_Gen.
+ * Sample code: LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListAppIdsMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listAppIdsWithResponse("rgopenapi", "lrs1", null, null, null, null, com.azure.core.util.Context.NONE);
+ public static void localRulestacksListByResourceGroupMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE);
}
}
```
-### LocalRulestacks_ListByResourceGroup
+### LocalRulestacks_ListFirewalls
```java
/**
- * Samples for LocalRulestacks ListByResourceGroup.
+ * Samples for LocalRulestacks ListFirewalls.
*/
-public final class LocalRulestacksListByResourceGroupSamples {
+public final class LocalRulestacksListFirewallsSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_listFirewalls_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.
+ * Sample code: LocalRulestacks_listFirewalls_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListByResourceGroupMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE);
+ public static void localRulestacksListFirewallsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listFirewallsWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_listFirewalls_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.
+ * Sample code: LocalRulestacks_listFirewalls_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListByResourceGroupMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE);
+ public static void localRulestacksListFirewallsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listFirewallsWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
}
```
-### LocalRulestacks_ListCountries
+### LocalRulestacks_ListSecurityServices
```java
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum;
+
/**
- * Samples for LocalRulestacks ListCountries.
+ * Samples for LocalRulestacks ListSecurityServices.
*/
-public final class LocalRulestacksListCountriesSamples {
+public final class LocalRulestacksListSecurityServicesSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listCountries_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_listSecurityServices_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listCountries_MaximumSet_Gen.
+ * Sample code: LocalRulestacks_listSecurityServices_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListCountriesMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listCountriesWithResponse("rgopenapi", "lrs1", "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void localRulestacksListSecurityServicesMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listSecurityServicesWithResponse("rgopenapi", "lrs1",
+ SecurityServicesTypeEnum.fromString("localRulestacks"), null, null, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listCountries_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_listSecurityServices_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listCountries_MinimumSet_Gen.
+ * Sample code: LocalRulestacks_listSecurityServices_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListCountriesMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listCountriesWithResponse("rgopenapi", "lrs1", null, null, com.azure.core.util.Context.NONE);
+ public static void localRulestacksListSecurityServicesMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().listSecurityServicesWithResponse("rgopenapi", "lrs1",
+ SecurityServicesTypeEnum.fromString("localRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
}
}
```
-### LocalRulestacks_ListFirewalls
+### LocalRulestacks_Revert
```java
/**
- * Samples for LocalRulestacks ListFirewalls.
+ * Samples for LocalRulestacks Revert.
*/
-public final class LocalRulestacksListFirewallsSamples {
+public final class LocalRulestacksRevertSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listFirewalls_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_revert_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listFirewalls_MinimumSet_Gen.
+ * Sample code: LocalRulestacks_revert_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListFirewallsMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listFirewallsWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void localRulestacksRevertMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().revertWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listFirewalls_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_revert_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listFirewalls_MaximumSet_Gen.
+ * Sample code: LocalRulestacks_revert_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListFirewallsMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listFirewallsWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void localRulestacksRevertMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.localRulestacks().revertWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
}
}
```
-### LocalRulestacks_ListPredefinedUrlCategories
+### LocalRulestacks_Update
```java
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerUserAssignedIdentity;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResource;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdateProperties;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for LocalRulestacks ListPredefinedUrlCategories.
+ * Samples for LocalRulestacks Update.
*/
-public final class LocalRulestacksListPredefinedUrlCategoriesSamples {
+public final class LocalRulestacksUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_Update_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.
+ * Sample code: LocalRulestacks_Update_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListPredefinedUrlCategoriesMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", null, null, com.azure.core.util.Context.NONE);
+ public static void localRulestacksUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ LocalRulestackResource resource = manager.localRulestacks()
+ .getByResourceGroupWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE).getValue();
+ resource.update().withTags(mapOf("tagName", "value"))
+ .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("key16",
+ new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa")
+ .withPrincipalId("aaaaaaaaaaaaaaa"))))
+ .withProperties(
+ new LocalRulestackResourceUpdateProperties().withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
+ .withPanLocation("eastus").withScope(ScopeType.LOCAL)
+ .withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"))
+ .withDescription("local rulestacks").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("8.5.3")
+ .withSecurityServices(
+ new SecurityServices().withVulnerabilityProfile("default").withAntiSpywareProfile("default")
+ .withAntiVirusProfile("default").withUrlFilteringProfile("default")
+ .withFileBlockingProfile("default").withDnsSubscription("default")
+ .withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default")))
+ .apply();
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * LocalRulestacks_Update_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen.
+ * Sample code: LocalRulestacks_Update_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListPredefinedUrlCategoriesMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void localRulestacksUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ LocalRulestackResource resource = manager.localRulestacks()
+ .getByResourceGroupWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE).getValue();
+ resource.update().apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### LocalRulestacks_ListSecurityServices
+### Operations_List
```java
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum;
-import java.util.stream.Collectors;
-
/**
- * Samples for LocalRulestacks ListSecurityServices.
+ * Samples for Operations List.
*/
-public final class LocalRulestacksListSecurityServicesSamples {
+public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listSecurityServices_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Operations_List_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listSecurityServices_MinimumSet_Gen.
+ * Sample code: Operations_List_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListSecurityServicesMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listSecurityServicesWithResponse("rgopenapi", "lrs1", SecurityServicesTypeEnum.fromString("localRulestacks"), null, null, com.azure.core.util.Context.NONE);
+ public static void operationsListMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listSecurityServices_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * Operations_List_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_listSecurityServices_MaximumSet_Gen.
+ * Sample code: Operations_List_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksListSecurityServicesMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listSecurityServicesWithResponse("rgopenapi", "lrs1", SecurityServicesTypeEnum.fromString("localRulestacks"), "a6a321", 20, com.azure.core.util.Context.NONE);
+ public static void operationsListMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
-### LocalRulestacks_Revert
+### PaloAltoNetworksCloudngfw_CreateProductSerialNumber
```java
/**
- * Samples for LocalRulestacks Revert.
+ * Samples for PaloAltoNetworksCloudngfw CreateProductSerialNumber.
*/
-public final class LocalRulestacksRevertSamples {
+public final class PaloAltoNetworksCloudngfwCreateProductSerialNumberSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_revert_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_createProductSerialNumber_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_revert_MaximumSet_Gen.
+ * Sample code: PaloAltoNetworksCloudngfw_createProductSerialNumber_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksRevertMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().revertWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void paloAltoNetworksCloudngfwCreateProductSerialNumberMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_revert_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_createProductSerialNumber_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_revert_MinimumSet_Gen.
+ * Sample code: PaloAltoNetworksCloudngfw_createProductSerialNumber_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksRevertMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().revertWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void paloAltoNetworksCloudngfwCreateProductSerialNumberMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE);
}
}
```
-### LocalRulestacks_Update
+### PaloAltoNetworksCloudngfw_ListCloudManagerTenants
```java
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerUserAssignedIdentity;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResource;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdateProperties;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.stream.Collectors;
-
/**
- * Samples for LocalRulestacks Update.
+ * Samples for PaloAltoNetworksCloudngfw ListCloudManagerTenants.
*/
-public final class LocalRulestacksUpdateSamples {
+public final class PaloAltoNetworksCloudngfwListCloudManagerTenantsSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Update_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listCloudManagerTenants_MaximumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_Update_MaximumSet_Gen.
+ * Sample code: PaloAltoNetworksCloudngfw_listCloudManagerTenants_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- LocalRulestackResource resource = manager.localRulestacks().getByResourceGroupWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE).getValue();
- resource.update().withTags(mapOf("tagName", "value")).withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE).withUserAssignedIdentities(mapOf("key16", new AzureResourceManagerUserAssignedIdentity().withClientId("aaaa").withPrincipalId("aaaaaaaaaaaaaaa")))).withProperties(new LocalRulestackResourceUpdateProperties().withPanEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12").withPanLocation("eastus").withScope(ScopeType.LOCAL).withAssociatedSubscriptions(Arrays.asList("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")).withDescription("local rulestacks").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("8.5.3").withSecurityServices(new SecurityServices().withVulnerabilityProfile("default").withAntiSpywareProfile("default").withAntiVirusProfile("default").withUrlFilteringProfile("default").withFileBlockingProfile("default").withDnsSubscription("default").withOutboundUnTrustCertificate("default").withOutboundTrustCertificate("default"))).apply();
+ public static void paloAltoNetworksCloudngfwListCloudManagerTenantsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Update_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listCloudManagerTenants_MinimumSet_Gen.json
*/
/**
- * Sample code: LocalRulestacks_Update_MinimumSet_Gen.
+ * Sample code: PaloAltoNetworksCloudngfw_listCloudManagerTenants_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void localRulestacksUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- LocalRulestackResource resource = manager.localRulestacks().getByResourceGroupWithResponse("rgopenapi", "lrs1", com.azure.core.util.Context.NONE).getValue();
- resource.update().apply();
+ public static void paloAltoNetworksCloudngfwListCloudManagerTenantsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE);
}
+}
+```
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+### PaloAltoNetworksCloudngfw_ListProductSerialNumberStatus
+
+```java
+/**
+ * Samples for PaloAltoNetworksCloudngfw ListProductSerialNumberStatus.
+ */
+public final class PaloAltoNetworksCloudngfwListProductSerialNumberStatusSamples {
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MinimumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListProductSerialNumberStatusMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws()
+ .listProductSerialNumberStatusWithResponse(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MaximumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListProductSerialNumberStatusMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws()
+ .listProductSerialNumberStatusWithResponse(com.azure.core.util.Context.NONE);
}
}
```
-### Operations_List
+### PaloAltoNetworksCloudngfw_ListSupportInfo
```java
/**
- * Samples for Operations List.
+ * Samples for PaloAltoNetworksCloudngfw ListSupportInfo.
*/
-public final class OperationsListSamples {
+public final class PaloAltoNetworksCloudngfwListSupportInfoSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Operations_List_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listSupportInfo_MaximumSet_Gen.json
*/
/**
- * Sample code: Operations_List_MinimumSet_Gen.
+ * Sample code: PaloAltoNetworksCloudngfw_listSupportInfo_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void operationsListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void paloAltoNetworksCloudngfwListSupportInfoMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listSupportInfoWithResponse(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Operations_List_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listSupportInfo_MinimumSet_Gen.json
*/
/**
- * Sample code: Operations_List_MaximumSet_Gen.
+ * Sample code: PaloAltoNetworksCloudngfw_listSupportInfo_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void operationsListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void paloAltoNetworksCloudngfwListSupportInfoMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listSupportInfoWithResponse(com.azure.core.util.Context.NONE);
}
}
```
@@ -2551,34 +3291,56 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SourceAddr;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StateEnum;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.TagInfo;
import java.util.Arrays;
-import java.util.stream.Collectors;
/**
* Samples for PostRules CreateOrUpdate.
*/
public final class PostRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: PostRules_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.postRules().createOrUpdate("lrs1", "1", new PostRulesResourceInner().withEtag("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0").withRuleName("postRule1").withDescription("description of post rule").withRuleState(StateEnum.DISABLED).withSource(new SourceAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1"))).withNegateSource(BooleanEnum.TRUE).withDestination(new DestinationAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1")).withFqdnLists(Arrays.asList("FQDN1"))).withNegateDestination(BooleanEnum.TRUE).withApplications(Arrays.asList("app1")).withCategory(new Category().withUrlCustom(Arrays.asList("https://microsoft.com")).withFeeds(Arrays.asList("feed"))).withProtocol("HTTP").withProtocolPortList(Arrays.asList("80")).withInboundInspectionCertificate("cert1").withAuditComment("example comment").withActionType(ActionEnum.ALLOW).withEnableLogging(StateEnum.DISABLED).withDecryptionRuleType(DecryptionRuleTypeEnum.SSLOUTBOUND_INSPECTION).withTags(Arrays.asList(new TagInfo().withKey("fakeTokenPlaceholder").withValue("value"))), com.azure.core.util.Context.NONE);
+ public static void postRulesCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.postRules().createOrUpdate("lrs1", "1", new PostRulesResourceInner()
+ .withEtag("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0").withRuleName("postRule1")
+ .withDescription("description of post rule").withRuleState(StateEnum.DISABLED)
+ .withSource(new SourceAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India"))
+ .withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1")))
+ .withNegateSource(BooleanEnum.TRUE)
+ .withDestination(new DestinationAddr().withCidrs(Arrays.asList("1.0.0.1/10"))
+ .withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed"))
+ .withPrefixLists(Arrays.asList("PL1")).withFqdnLists(Arrays.asList("FQDN1")))
+ .withNegateDestination(BooleanEnum.TRUE).withApplications(Arrays.asList("app1"))
+ .withCategory(
+ new Category().withUrlCustom(Arrays.asList("https://microsoft.com")).withFeeds(Arrays.asList("feed")))
+ .withProtocol("HTTP").withProtocolPortList(Arrays.asList("80")).withInboundInspectionCertificate("cert1")
+ .withAuditComment("example comment").withActionType(ActionEnum.ALLOW).withEnableLogging(StateEnum.DISABLED)
+ .withDecryptionRuleType(DecryptionRuleTypeEnum.SSLOUTBOUND_INSPECTION)
+ .withTags(Arrays.asList(new TagInfo().withKey("fakeTokenPlaceholder").withValue("value"))),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: PostRules_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.postRules().createOrUpdate("lrs1", "1", new PostRulesResourceInner().withRuleName("postRule1"), com.azure.core.util.Context.NONE);
+ public static void postRulesCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.postRules().createOrUpdate("lrs1", "1", new PostRulesResourceInner().withRuleName("postRule1"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2591,26 +3353,32 @@ public final class PostRulesCreateOrUpdateSamples {
*/
public final class PostRulesDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: PostRules_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().delete("lrs1", "1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: PostRules_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().delete("lrs1", "1", com.azure.core.util.Context.NONE);
}
}
@@ -2624,26 +3392,32 @@ public final class PostRulesDeleteSamples {
*/
public final class PostRulesGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_Get_MinimumSet_Gen.json
*/
/**
* Sample code: PostRules_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void
+ postRulesGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().getWithResponse("lrs1", "1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_Get_MaximumSet_Gen.json
*/
/**
* Sample code: PostRules_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void
+ postRulesGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().getWithResponse("lrs1", "1", com.azure.core.util.Context.NONE);
}
}
@@ -2657,26 +3431,32 @@ public final class PostRulesGetSamples {
*/
public final class PostRulesGetCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_getCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_getCounters_MinimumSet_Gen.json
*/
/**
* Sample code: PostRules_getCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesGetCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesGetCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().getCountersWithResponse("lrs1", "1", null, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_getCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_getCounters_MaximumSet_Gen.json
*/
/**
* Sample code: PostRules_getCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesGetCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesGetCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().getCountersWithResponse("lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
}
}
@@ -2690,26 +3470,32 @@ public final class PostRulesGetCountersSamples {
*/
public final class PostRulesListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_List_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_List_MinimumSet_Gen.json
*/
/**
* Sample code: PostRules_List_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesListMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().list("lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_List_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_List_MaximumSet_Gen.json
*/
/**
* Sample code: PostRules_List_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesListMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().list("lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -2723,26 +3509,32 @@ public final class PostRulesListSamples {
*/
public final class PostRulesRefreshCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_refreshCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_refreshCounters_MaximumSet_Gen.json
*/
/**
* Sample code: PostRules_refreshCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesRefreshCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesRefreshCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().refreshCountersWithResponse("lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_refreshCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_refreshCounters_MinimumSet_Gen.json
*/
/**
* Sample code: PostRules_refreshCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesRefreshCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesRefreshCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().refreshCountersWithResponse("lrs1", "1", null, com.azure.core.util.Context.NONE);
}
}
@@ -2756,26 +3548,32 @@ public final class PostRulesRefreshCountersSamples {
*/
public final class PostRulesResetCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_resetCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_resetCounters_MaximumSet_Gen.json
*/
/**
* Sample code: PostRules_resetCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesResetCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesResetCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().resetCountersWithResponse("lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_resetCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PostRules_resetCounters_MinimumSet_Gen.json
*/
/**
* Sample code: PostRules_resetCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void postRulesResetCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void postRulesResetCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.postRules().resetCountersWithResponse("lrs1", "1", null, com.azure.core.util.Context.NONE);
}
}
@@ -2794,34 +3592,56 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SourceAddr;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StateEnum;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.TagInfo;
import java.util.Arrays;
-import java.util.stream.Collectors;
/**
* Samples for PreRules CreateOrUpdate.
*/
public final class PreRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: PreRules_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.preRules().createOrUpdate("lrs1", "1", new PreRulesResourceInner().withEtag("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0").withRuleName("preRule1").withDescription("description of pre rule").withRuleState(StateEnum.DISABLED).withSource(new SourceAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1"))).withNegateSource(BooleanEnum.TRUE).withDestination(new DestinationAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1")).withFqdnLists(Arrays.asList("FQDN1"))).withNegateDestination(BooleanEnum.TRUE).withApplications(Arrays.asList("app1")).withCategory(new Category().withUrlCustom(Arrays.asList("https://microsoft.com")).withFeeds(Arrays.asList("feed"))).withProtocol("HTTP").withProtocolPortList(Arrays.asList("80")).withInboundInspectionCertificate("cert1").withAuditComment("example comment").withActionType(ActionEnum.ALLOW).withEnableLogging(StateEnum.DISABLED).withDecryptionRuleType(DecryptionRuleTypeEnum.SSLOUTBOUND_INSPECTION).withTags(Arrays.asList(new TagInfo().withKey("fakeTokenPlaceholder").withValue("value"))), com.azure.core.util.Context.NONE);
+ public static void preRulesCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.preRules().createOrUpdate("lrs1", "1", new PreRulesResourceInner()
+ .withEtag("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0").withRuleName("preRule1")
+ .withDescription("description of pre rule").withRuleState(StateEnum.DISABLED)
+ .withSource(new SourceAddr().withCidrs(Arrays.asList("1.0.0.1/10")).withCountries(Arrays.asList("India"))
+ .withFeeds(Arrays.asList("feed")).withPrefixLists(Arrays.asList("PL1")))
+ .withNegateSource(BooleanEnum.TRUE)
+ .withDestination(new DestinationAddr().withCidrs(Arrays.asList("1.0.0.1/10"))
+ .withCountries(Arrays.asList("India")).withFeeds(Arrays.asList("feed"))
+ .withPrefixLists(Arrays.asList("PL1")).withFqdnLists(Arrays.asList("FQDN1")))
+ .withNegateDestination(BooleanEnum.TRUE).withApplications(Arrays.asList("app1"))
+ .withCategory(
+ new Category().withUrlCustom(Arrays.asList("https://microsoft.com")).withFeeds(Arrays.asList("feed")))
+ .withProtocol("HTTP").withProtocolPortList(Arrays.asList("80")).withInboundInspectionCertificate("cert1")
+ .withAuditComment("example comment").withActionType(ActionEnum.ALLOW).withEnableLogging(StateEnum.DISABLED)
+ .withDecryptionRuleType(DecryptionRuleTypeEnum.SSLOUTBOUND_INSPECTION)
+ .withTags(Arrays.asList(new TagInfo().withKey("fakeTokenPlaceholder").withValue("value"))),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: PreRules_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.preRules().createOrUpdate("lrs1", "1", new PreRulesResourceInner().withRuleName("preRule1"), com.azure.core.util.Context.NONE);
+ public static void preRulesCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.preRules().createOrUpdate("lrs1", "1", new PreRulesResourceInner().withRuleName("preRule1"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2834,26 +3654,32 @@ public final class PreRulesCreateOrUpdateSamples {
*/
public final class PreRulesDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: PreRules_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().delete("lrs1", "1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: PreRules_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().delete("lrs1", "1", com.azure.core.util.Context.NONE);
}
}
@@ -2867,26 +3693,32 @@ public final class PreRulesDeleteSamples {
*/
public final class PreRulesGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_Get_MaximumSet_Gen.json
*/
/**
* Sample code: PreRules_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void
+ preRulesGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().getWithResponse("lrs1", "1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_Get_MinimumSet_Gen.json
*/
/**
* Sample code: PreRules_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void
+ preRulesGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().getWithResponse("lrs1", "1", com.azure.core.util.Context.NONE);
}
}
@@ -2900,26 +3732,32 @@ public final class PreRulesGetSamples {
*/
public final class PreRulesGetCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_getCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_getCounters_MinimumSet_Gen.json
*/
/**
* Sample code: PreRules_getCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesGetCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesGetCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().getCountersWithResponse("lrs1", "1", null, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_getCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_getCounters_MaximumSet_Gen.json
*/
/**
* Sample code: PreRules_getCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesGetCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesGetCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().getCountersWithResponse("lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
}
}
@@ -2933,26 +3771,32 @@ public final class PreRulesGetCountersSamples {
*/
public final class PreRulesListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_List_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_List_MinimumSet_Gen.json
*/
/**
* Sample code: PreRules_List_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void
+ preRulesListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().list("lrs1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_List_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_List_MaximumSet_Gen.json
*/
/**
* Sample code: PreRules_List_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void
+ preRulesListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().list("lrs1", com.azure.core.util.Context.NONE);
}
}
@@ -2966,26 +3810,32 @@ public final class PreRulesListSamples {
*/
public final class PreRulesRefreshCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_refreshCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_refreshCounters_MaximumSet_Gen.json
*/
/**
* Sample code: PreRules_refreshCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesRefreshCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesRefreshCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().refreshCountersWithResponse("lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_refreshCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_refreshCounters_MinimumSet_Gen.json
*/
/**
* Sample code: PreRules_refreshCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesRefreshCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesRefreshCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().refreshCountersWithResponse("lrs1", "1", null, com.azure.core.util.Context.NONE);
}
}
@@ -2999,26 +3849,32 @@ public final class PreRulesRefreshCountersSamples {
*/
public final class PreRulesResetCountersSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_resetCounters_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_resetCounters_MinimumSet_Gen.json
*/
/**
* Sample code: PreRules_resetCounters_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesResetCountersMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesResetCountersMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().resetCountersWithResponse("lrs1", "1", null, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_resetCounters_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PreRules_resetCounters_MaximumSet_Gen.json
*/
/**
* Sample code: PreRules_resetCounters_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void preRulesResetCountersMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void preRulesResetCountersMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.preRules().resetCountersWithResponse("lrs1", "1", "firewall1", com.azure.core.util.Context.NONE);
}
}
@@ -3035,27 +3891,39 @@ import java.util.Arrays;
*/
public final class PrefixListGlobalRulestackCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListGlobalRulestacks().createOrUpdate("praval", "armid1", new PrefixListGlobalRulestackResourceInner().withDescription("string").withPrefixList(Arrays.asList("1.0.0.0/24")).withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27").withAuditComment("comment"), com.azure.core.util.Context.NONE);
+ public static void prefixListGlobalRulestackCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListGlobalRulestacks().createOrUpdate("praval", "armid1",
+ new PrefixListGlobalRulestackResourceInner().withDescription("string")
+ .withPrefixList(Arrays.asList("1.0.0.0/24")).withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")
+ .withAuditComment("comment"),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListGlobalRulestacks().createOrUpdate("praval", "armid1", new PrefixListGlobalRulestackResourceInner().withPrefixList(Arrays.asList("1.0.0.0/24")), com.azure.core.util.Context.NONE);
+ public static void prefixListGlobalRulestackCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListGlobalRulestacks().createOrUpdate("praval", "armid1",
+ new PrefixListGlobalRulestackResourceInner().withPrefixList(Arrays.asList("1.0.0.0/24")),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3068,26 +3936,32 @@ public final class PrefixListGlobalRulestackCreateOrUpdateSamples {
*/
public final class PrefixListGlobalRulestackDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListGlobalRulestackDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListGlobalRulestacks().delete("praval", "armid1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListGlobalRulestackDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListGlobalRulestacks().delete("praval", "armid1", com.azure.core.util.Context.NONE);
}
}
@@ -3101,26 +3975,32 @@ public final class PrefixListGlobalRulestackDeleteSamples {
*/
public final class PrefixListGlobalRulestackGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListGlobalRulestackGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListGlobalRulestacks().getWithResponse("praval", "armid1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListGlobalRulestackGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListGlobalRulestacks().getWithResponse("praval", "armid1", com.azure.core.util.Context.NONE);
}
}
@@ -3134,26 +4014,32 @@ public final class PrefixListGlobalRulestackGetSamples {
*/
public final class PrefixListGlobalRulestackListSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_List_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_List_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_List_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackListMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListGlobalRulestackListMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListGlobalRulestacks().list("praval", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_List_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListGlobalRulestack_List_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListGlobalRulestack_List_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListGlobalRulestackListMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListGlobalRulestackListMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListGlobalRulestacks().list("praval", com.azure.core.util.Context.NONE);
}
}
@@ -3169,27 +4055,36 @@ import java.util.Arrays;
*/
public final class PrefixListLocalRulestackCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1").withPrefixList(Arrays.asList("1.0.0.0/24")).create();
+ public static void prefixListLocalRulestackCreateOrUpdateMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1")
+ .withPrefixList(Arrays.asList("1.0.0.0/24")).create();
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1").withPrefixList(Arrays.asList("1.0.0.0/24")).withDescription("string").withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27").withAuditComment("comment").create();
+ public static void prefixListLocalRulestackCreateOrUpdateMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListLocalRulestacks().define("armid1").withExistingLocalRulestack("rgopenapi", "lrs1")
+ .withPrefixList(Arrays.asList("1.0.0.0/24")).withDescription("string")
+ .withEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c27").withAuditComment("comment").create();
}
}
```
@@ -3202,26 +4097,32 @@ public final class PrefixListLocalRulestackCreateOrUpdateSamples {
*/
public final class PrefixListLocalRulestackDeleteSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Delete_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_Delete_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackDeleteMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListLocalRulestackDeleteMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListLocalRulestacks().delete("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Delete_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_Delete_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackDeleteMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ public static void prefixListLocalRulestackDeleteMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
manager.prefixListLocalRulestacks().delete("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
}
}
@@ -3235,27 +4136,35 @@ public final class PrefixListLocalRulestackDeleteSamples {
*/
public final class PrefixListLocalRulestackGetSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Get_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_Get_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_Get_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackGetMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void prefixListLocalRulestackGetMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Get_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_Get_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_Get_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackGetMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1", com.azure.core.util.Context.NONE);
+ public static void prefixListLocalRulestackGetMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListLocalRulestacks().getWithResponse("rgopenapi", "lrs1", "armid1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3268,27 +4177,35 @@ public final class PrefixListLocalRulestackGetSamples {
*/
public final class PrefixListLocalRulestackListByLocalRulestacksSamples {
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackListByLocalRulestacksMaximumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void prefixListLocalRulestackListByLocalRulestacksMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
* Sample code: PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.
*
* @param manager Entry point to PaloAltoNetworksNgfwManager.
*/
- public static void prefixListLocalRulestackListByLocalRulestacksMinimumSetGen(com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.prefixListLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1", com.azure.core.util.Context.NONE);
+ public static void prefixListLocalRulestackListByLocalRulestacksMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.prefixListLocalRulestacks().listByLocalRulestacks("rgopenapi", "lrs1",
+ com.azure.core.util.Context.NONE);
}
}
```
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml
index d4d2072e7a4c0..5cf9dff019747 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for PaloAlto Networks Ngfw Management
- This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-09-01.
+ This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-preview-2024-02-07-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
@@ -93,8 +94,6 @@
4.11.0
test
-
-
net.bytebuddy
byte-buddy
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/PaloAltoNetworksNgfwManager.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/PaloAltoNetworksNgfwManager.java
index d531454e8cb5c..f38392b42ee76 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/PaloAltoNetworksNgfwManager.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/PaloAltoNetworksNgfwManager.java
@@ -35,6 +35,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulestacksImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.OperationsImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwBuilder;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwsImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PostRulesImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PreRulesImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListGlobalRulestacksImpl;
@@ -49,6 +50,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRules;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestacks;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Operations;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PaloAltoNetworksCloudngfws;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PostRules;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PreRules;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestacks;
@@ -78,6 +80,8 @@ public final class PaloAltoNetworksNgfwManager {
private Operations operations;
+ private PaloAltoNetworksCloudngfws paloAltoNetworksCloudngfws;
+
private Firewalls firewalls;
private LocalRulestacks localRulestacks;
@@ -251,7 +255,7 @@ public PaloAltoNetworksNgfwManager authenticate(TokenCredential credential, Azur
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.paloaltonetworks.ngfw")
- .append("/").append("1.1.0");
+ .append("/").append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
@@ -377,6 +381,19 @@ public Operations operations() {
return operations;
}
+ /**
+ * Gets the resource collection API of PaloAltoNetworksCloudngfws.
+ *
+ * @return Resource collection API of PaloAltoNetworksCloudngfws.
+ */
+ public PaloAltoNetworksCloudngfws paloAltoNetworksCloudngfws() {
+ if (this.paloAltoNetworksCloudngfws == null) {
+ this.paloAltoNetworksCloudngfws
+ = new PaloAltoNetworksCloudngfwsImpl(clientObject.getPaloAltoNetworksCloudngfws(), this);
+ }
+ return paloAltoNetworksCloudngfws;
+ }
+
/**
* Gets the resource collection API of Firewalls. It manages FirewallResource.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulestacksClient.java
index c43c7e7b6472c..f51f9cfa459c5 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulestacksClient.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulestacksClient.java
@@ -13,11 +13,8 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.AdvSecurityObjectListResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ChangelogInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountriesResponseInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListAppIdResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListFirewallsResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SecurityServicesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum;
@@ -392,68 +389,6 @@ Response listAdvancedSecurityObjectsWithResp
AdvSecurityObjectListResponseInner listAdvancedSecurityObjects(String resourceGroupName, String localRulestackName,
AdvSecurityObjectTypeEnum type);
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param appIdVersion The appIdVersion parameter.
- * @param appPrefix The appPrefix parameter.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listAppIdsWithResponse(String resourceGroupName, String localRulestackName,
- String appIdVersion, String appPrefix, String skip, Integer top, Context context);
-
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ListAppIdResponseInner listAppIds(String resourceGroupName, String localRulestackName);
-
- /**
- * List of countries for Rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @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 countries Response Object along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listCountriesWithResponse(String resourceGroupName, String localRulestackName,
- String skip, Integer top, Context context);
-
- /**
- * List of countries for Rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return countries Response Object.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CountriesResponseInner listCountries(String resourceGroupName, String localRulestackName);
-
/**
* List of Firewalls associated with Rulestack.
*
@@ -482,37 +417,6 @@ Response listFirewallsWithResponse(String resourceGr
@ServiceMethod(returns = ReturnType.SINGLE)
ListFirewallsResponseInner listFirewalls(String resourceGroupName, String localRulestackName);
- /**
- * List predefined URL categories for rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @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 predefined url categories response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listPredefinedUrlCategoriesWithResponse(String resourceGroupName,
- String localRulestackName, String skip, Integer top, Context context);
-
- /**
- * List predefined URL categories for rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return predefined url categories response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PredefinedUrlCategoriesResponseInner listPredefinedUrlCategories(String resourceGroupName,
- String localRulestackName);
-
/**
* List the security services for rulestack.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfw.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfw.java
index 12b3c8e55a194..d17a59abd3781 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfw.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfw.java
@@ -95,6 +95,13 @@ public interface PaloAltoNetworksCloudngfw {
*/
OperationsClient getOperations();
+ /**
+ * Gets the PaloAltoNetworksCloudngfwsClient object to access its operations.
+ *
+ * @return the PaloAltoNetworksCloudngfwsClient object.
+ */
+ PaloAltoNetworksCloudngfwsClient getPaloAltoNetworksCloudngfws();
+
/**
* Gets the FirewallsClient object to access its operations.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfwsClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfwsClient.java
new file mode 100644
index 0000000000000..0781d926a636c
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfwsClient.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in PaloAltoNetworksCloudngfwsClient.
+ */
+public interface PaloAltoNetworksCloudngfwsClient {
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @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 create Product Serial Number Request status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createProductSerialNumberWithResponse(Context context);
+
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @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 create Product Serial Number Request status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProductSerialNumberRequestStatusInner createProductSerialNumber();
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @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 array of CloudManagerTenant along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response> listCloudManagerTenantsWithResponse(Context context);
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @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 array of CloudManagerTenant.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List listCloudManagerTenants();
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @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 product serial and status for the service along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listProductSerialNumberStatusWithResponse(Context context);
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @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 product serial and status for the service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProductSerialNumberStatusInner listProductSerialNumberStatus();
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @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 support information for the service along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listSupportInfoWithResponse(Context context);
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @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 support information for the service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SupportInfoModelInner listSupportInfo();
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CloudManagerTenantInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CloudManagerTenantInner.java
new file mode 100644
index 0000000000000..a8ed0ee8d3866
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CloudManagerTenantInner.java
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Cloud Manager Tenant.
+ */
+@Fluent
+public final class CloudManagerTenantInner {
+ /*
+ * Name of Cloud Manager Tenant
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Cloud Manager Tenant ID
+ */
+ @JsonProperty(value = "tenantId")
+ private String tenantId;
+
+ /**
+ * Creates an instance of CloudManagerTenantInner class.
+ */
+ public CloudManagerTenantInner() {
+ }
+
+ /**
+ * Get the name property: Name of Cloud Manager Tenant.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Name of Cloud Manager Tenant.
+ *
+ * @param name the name value to set.
+ * @return the CloudManagerTenantInner object itself.
+ */
+ public CloudManagerTenantInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: Cloud Manager Tenant ID.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenantId property: Cloud Manager Tenant ID.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the CloudManagerTenantInner object itself.
+ */
+ public CloudManagerTenantInner withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property name in model CloudManagerTenantInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CloudManagerTenantInner.class);
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountriesResponseInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountriesResponseInner.java
index 7d293299a6e68..15c290b5bea02 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountriesResponseInner.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountriesResponseInner.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Country;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -19,7 +18,7 @@ public final class CountriesResponseInner {
* List of countries
*/
@JsonProperty(value = "value", required = true)
- private List value;
+ private List value;
/*
* next link
@@ -38,7 +37,7 @@ public CountriesResponseInner() {
*
* @return the value value.
*/
- public List value() {
+ public List value() {
return this.value;
}
@@ -48,7 +47,7 @@ public List value() {
* @param value the value value to set.
* @return the CountriesResponseInner object itself.
*/
- public CountriesResponseInner withValue(List value) {
+ public CountriesResponseInner withValue(List value) {
this.value = value;
return this;
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountryInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountryInner.java
new file mode 100644
index 0000000000000..3011d34ea7db3
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountryInner.java
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Country Description.
+ */
+@Fluent
+public final class CountryInner {
+ /*
+ * country code
+ */
+ @JsonProperty(value = "code", required = true)
+ private String code;
+
+ /*
+ * code description
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * Creates an instance of CountryInner class.
+ */
+ public CountryInner() {
+ }
+
+ /**
+ * Get the code property: country code.
+ *
+ * @return the code value.
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Set the code property: country code.
+ *
+ * @param code the code value to set.
+ * @return the CountryInner object itself.
+ */
+ public CountryInner withCode(String code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * Get the description property: code description.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: code description.
+ *
+ * @param description the description value to set.
+ * @return the CountryInner object itself.
+ */
+ public CountryInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (code() == null) {
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property code in model CountryInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CountryInner.class);
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallDeploymentProperties.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallDeploymentProperties.java
index 8dd56edbcbf00..2e8b7faf8583b 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallDeploymentProperties.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallDeploymentProperties.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PlanData;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RulestackDetails;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerConfig;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -41,12 +42,24 @@ public final class FirewallDeploymentProperties {
@JsonProperty(value = "isPanoramaManaged")
private BooleanEnum isPanoramaManaged;
+ /*
+ * Strata Cloud Managed: Default is False. Default will be CloudSec managed
+ */
+ @JsonProperty(value = "isStrataCloudManaged")
+ private BooleanEnum isStrataCloudManaged;
+
/*
* Panorama Configuration
*/
@JsonProperty(value = "panoramaConfig")
private PanoramaConfig panoramaConfig;
+ /*
+ * Strata Cloud Manager Configuration, only applicable if Strata Cloud Manager is selected.
+ */
+ @JsonProperty(value = "strataCloudManagerConfig")
+ private StrataCloudManagerConfig strataCloudManagerConfig;
+
/*
* Associated Rulestack
*/
@@ -149,6 +162,26 @@ public FirewallDeploymentProperties withIsPanoramaManaged(BooleanEnum isPanorama
return this;
}
+ /**
+ * Get the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ *
+ * @return the isStrataCloudManaged value.
+ */
+ public BooleanEnum isStrataCloudManaged() {
+ return this.isStrataCloudManaged;
+ }
+
+ /**
+ * Set the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ *
+ * @param isStrataCloudManaged the isStrataCloudManaged value to set.
+ * @return the FirewallDeploymentProperties object itself.
+ */
+ public FirewallDeploymentProperties withIsStrataCloudManaged(BooleanEnum isStrataCloudManaged) {
+ this.isStrataCloudManaged = isStrataCloudManaged;
+ return this;
+ }
+
/**
* Get the panoramaConfig property: Panorama Configuration.
*
@@ -169,6 +202,29 @@ public FirewallDeploymentProperties withPanoramaConfig(PanoramaConfig panoramaCo
return this;
}
+ /**
+ * Get the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ *
+ * @return the strataCloudManagerConfig value.
+ */
+ public StrataCloudManagerConfig strataCloudManagerConfig() {
+ return this.strataCloudManagerConfig;
+ }
+
+ /**
+ * Set the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ *
+ * @param strataCloudManagerConfig the strataCloudManagerConfig value to set.
+ * @return the FirewallDeploymentProperties object itself.
+ */
+ public FirewallDeploymentProperties
+ withStrataCloudManagerConfig(StrataCloudManagerConfig strataCloudManagerConfig) {
+ this.strataCloudManagerConfig = strataCloudManagerConfig;
+ return this;
+ }
+
/**
* Get the associatedRulestack property: Associated Rulestack.
*
@@ -293,6 +349,9 @@ public void validate() {
if (panoramaConfig() != null) {
panoramaConfig().validate();
}
+ if (strataCloudManagerConfig() != null) {
+ strataCloudManagerConfig().validate();
+ }
if (associatedRulestack() != null) {
associatedRulestack().validate();
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallResourceInner.java
index 2dd90716bcda6..691891a4cedb0 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallResourceInner.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallResourceInner.java
@@ -18,6 +18,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PlanData;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RulestackDetails;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerConfig;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -176,6 +177,29 @@ public FirewallResourceInner withIsPanoramaManaged(BooleanEnum isPanoramaManaged
return this;
}
+ /**
+ * Get the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ *
+ * @return the isStrataCloudManaged value.
+ */
+ public BooleanEnum isStrataCloudManaged() {
+ return this.innerProperties() == null ? null : this.innerProperties().isStrataCloudManaged();
+ }
+
+ /**
+ * Set the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ *
+ * @param isStrataCloudManaged the isStrataCloudManaged value to set.
+ * @return the FirewallResourceInner object itself.
+ */
+ public FirewallResourceInner withIsStrataCloudManaged(BooleanEnum isStrataCloudManaged) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FirewallDeploymentProperties();
+ }
+ this.innerProperties().withIsStrataCloudManaged(isStrataCloudManaged);
+ return this;
+ }
+
/**
* Get the panoramaConfig property: Panorama Configuration.
*
@@ -199,6 +223,31 @@ public FirewallResourceInner withPanoramaConfig(PanoramaConfig panoramaConfig) {
return this;
}
+ /**
+ * Get the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ *
+ * @return the strataCloudManagerConfig value.
+ */
+ public StrataCloudManagerConfig strataCloudManagerConfig() {
+ return this.innerProperties() == null ? null : this.innerProperties().strataCloudManagerConfig();
+ }
+
+ /**
+ * Set the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ *
+ * @param strataCloudManagerConfig the strataCloudManagerConfig value to set.
+ * @return the FirewallResourceInner object itself.
+ */
+ public FirewallResourceInner withStrataCloudManagerConfig(StrataCloudManagerConfig strataCloudManagerConfig) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FirewallDeploymentProperties();
+ }
+ this.innerProperties().withStrataCloudManagerConfig(strataCloudManagerConfig);
+ return this;
+ }
+
/**
* Get the associatedRulestack property: Associated Rulestack.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusProperty.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusProperty.java
index efdcc91b801ea..e1b2aca604fe9 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusProperty.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusProperty.java
@@ -4,17 +4,18 @@
package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.HealthStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ReadOnlyProvisioningState;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Firewall Status.
*/
-@Immutable
+@Fluent
public final class FirewallStatusProperty {
/*
* Panorama Managed: Default is False. Default will be CloudSec managed
@@ -46,6 +47,18 @@ public final class FirewallStatusProperty {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ReadOnlyProvisioningState provisioningState;
+ /*
+ * Strata Cloud Manager
+ */
+ @JsonProperty(value = "isStrataCloudManaged", access = JsonProperty.Access.WRITE_ONLY)
+ private BooleanEnum isStrataCloudManaged;
+
+ /*
+ * This field is only present if Strata Cloud Manager is managing the policy for this firewall
+ */
+ @JsonProperty(value = "strataCloudManagerInfo")
+ private StrataCloudManagerInfo strataCloudManagerInfo;
+
/**
* Creates an instance of FirewallStatusProperty class.
*/
@@ -97,6 +110,37 @@ public ReadOnlyProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the isStrataCloudManaged property: Strata Cloud Manager.
+ *
+ * @return the isStrataCloudManaged value.
+ */
+ public BooleanEnum isStrataCloudManaged() {
+ return this.isStrataCloudManaged;
+ }
+
+ /**
+ * Get the strataCloudManagerInfo property: This field is only present if Strata Cloud Manager is managing the
+ * policy for this firewall.
+ *
+ * @return the strataCloudManagerInfo value.
+ */
+ public StrataCloudManagerInfo strataCloudManagerInfo() {
+ return this.strataCloudManagerInfo;
+ }
+
+ /**
+ * Set the strataCloudManagerInfo property: This field is only present if Strata Cloud Manager is managing the
+ * policy for this firewall.
+ *
+ * @param strataCloudManagerInfo the strataCloudManagerInfo value to set.
+ * @return the FirewallStatusProperty object itself.
+ */
+ public FirewallStatusProperty withStrataCloudManagerInfo(StrataCloudManagerInfo strataCloudManagerInfo) {
+ this.strataCloudManagerInfo = strataCloudManagerInfo;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -106,5 +150,8 @@ public void validate() {
if (panoramaStatus() != null) {
panoramaStatus().validate();
}
+ if (strataCloudManagerInfo() != null) {
+ strataCloudManagerInfo().validate();
+ }
}
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusResourceInner.java
index 4ff1ecc252732..579475c1fec73 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusResourceInner.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusResourceInner.java
@@ -4,7 +4,7 @@
package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
-import com.azure.core.annotation.Immutable;
+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;
@@ -12,12 +12,13 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.HealthStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ReadOnlyProvisioningState;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Firewall Status.
*/
-@Immutable
+@Fluent
public final class FirewallStatusResourceInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
@@ -100,6 +101,40 @@ public ReadOnlyProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the isStrataCloudManaged property: Strata Cloud Manager.
+ *
+ * @return the isStrataCloudManaged value.
+ */
+ public BooleanEnum isStrataCloudManaged() {
+ return this.innerProperties() == null ? null : this.innerProperties().isStrataCloudManaged();
+ }
+
+ /**
+ * Get the strataCloudManagerInfo property: This field is only present if Strata Cloud Manager is managing the
+ * policy for this firewall.
+ *
+ * @return the strataCloudManagerInfo value.
+ */
+ public StrataCloudManagerInfo strataCloudManagerInfo() {
+ return this.innerProperties() == null ? null : this.innerProperties().strataCloudManagerInfo();
+ }
+
+ /**
+ * Set the strataCloudManagerInfo property: This field is only present if Strata Cloud Manager is managing the
+ * policy for this firewall.
+ *
+ * @param strataCloudManagerInfo the strataCloudManagerInfo value to set.
+ * @return the FirewallStatusResourceInner object itself.
+ */
+ public FirewallStatusResourceInner withStrataCloudManagerInfo(StrataCloudManagerInfo strataCloudManagerInfo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FirewallStatusProperty();
+ }
+ this.innerProperties().withStrataCloudManagerInfo(strataCloudManagerInfo);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoriesResponseInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoriesResponseInner.java
index 766ac627ecfea..5fcba60c87c6b 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoriesResponseInner.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoriesResponseInner.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -19,7 +18,7 @@ public final class PredefinedUrlCategoriesResponseInner {
* predefined url categories
*/
@JsonProperty(value = "value", required = true)
- private List value;
+ private List value;
/*
* next link
@@ -38,7 +37,7 @@ public PredefinedUrlCategoriesResponseInner() {
*
* @return the value value.
*/
- public List value() {
+ public List value() {
return this.value;
}
@@ -48,7 +47,7 @@ public List value() {
* @param value the value value to set.
* @return the PredefinedUrlCategoriesResponseInner object itself.
*/
- public PredefinedUrlCategoriesResponseInner withValue(List value) {
+ public PredefinedUrlCategoriesResponseInner withValue(List value) {
this.value = value;
return this;
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoryInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoryInner.java
new file mode 100644
index 0000000000000..1e4b226b47596
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoryInner.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Predefined URL category object.
+ */
+@Fluent
+public final class PredefinedUrlCategoryInner {
+ /*
+ * The action property.
+ */
+ @JsonProperty(value = "action", required = true)
+ private String action;
+
+ /*
+ * The name property.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * Creates an instance of PredefinedUrlCategoryInner class.
+ */
+ public PredefinedUrlCategoryInner() {
+ }
+
+ /**
+ * Get the action property: The action property.
+ *
+ * @return the action value.
+ */
+ public String action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action property: The action property.
+ *
+ * @param action the action value to set.
+ * @return the PredefinedUrlCategoryInner object itself.
+ */
+ public PredefinedUrlCategoryInner withAction(String action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get the name property: The name property.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name property.
+ *
+ * @param name the name value to set.
+ * @return the PredefinedUrlCategoryInner object itself.
+ */
+ public PredefinedUrlCategoryInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (action() == null) {
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property action in model PredefinedUrlCategoryInner"));
+ }
+ if (name() == null) {
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property name in model PredefinedUrlCategoryInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PredefinedUrlCategoryInner.class);
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberRequestStatusInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberRequestStatusInner.java
new file mode 100644
index 0000000000000..90239557b1c5c
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberRequestStatusInner.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Create Product Serial Number Request status.
+ */
+@Fluent
+public final class ProductSerialNumberRequestStatusInner {
+ /*
+ * allocation status of the product serial number
+ */
+ @JsonProperty(value = "status", required = true)
+ private String status;
+
+ /**
+ * Creates an instance of ProductSerialNumberRequestStatusInner class.
+ */
+ public ProductSerialNumberRequestStatusInner() {
+ }
+
+ /**
+ * Get the status property: allocation status of the product serial number.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: allocation status of the product serial number.
+ *
+ * @param status the status value to set.
+ * @return the ProductSerialNumberRequestStatusInner object itself.
+ */
+ public ProductSerialNumberRequestStatusInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (status() == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property status in model ProductSerialNumberRequestStatusInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ProductSerialNumberRequestStatusInner.class);
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberStatusInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberStatusInner.java
new file mode 100644
index 0000000000000..5032a725adeaf
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberStatusInner.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Product serial and status for the service.
+ */
+@Fluent
+public final class ProductSerialNumberStatusInner {
+ /*
+ * product Serial associated with given resource
+ */
+ @JsonProperty(value = "serialNumber")
+ private String serialNumber;
+
+ /*
+ * allocation status of the product serial number
+ */
+ @JsonProperty(value = "status", required = true)
+ private ProductSerialStatusValues status;
+
+ /**
+ * Creates an instance of ProductSerialNumberStatusInner class.
+ */
+ public ProductSerialNumberStatusInner() {
+ }
+
+ /**
+ * Get the serialNumber property: product Serial associated with given resource.
+ *
+ * @return the serialNumber value.
+ */
+ public String serialNumber() {
+ return this.serialNumber;
+ }
+
+ /**
+ * Set the serialNumber property: product Serial associated with given resource.
+ *
+ * @param serialNumber the serialNumber value to set.
+ * @return the ProductSerialNumberStatusInner object itself.
+ */
+ public ProductSerialNumberStatusInner withSerialNumber(String serialNumber) {
+ this.serialNumber = serialNumber;
+ return this;
+ }
+
+ /**
+ * Get the status property: allocation status of the product serial number.
+ *
+ * @return the status value.
+ */
+ public ProductSerialStatusValues status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: allocation status of the product serial number.
+ *
+ * @param status the status value to set.
+ * @return the ProductSerialNumberStatusInner object itself.
+ */
+ public ProductSerialNumberStatusInner withStatus(ProductSerialStatusValues status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (status() == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property status in model ProductSerialNumberStatusInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ProductSerialNumberStatusInner.class);
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SupportInfoModelInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SupportInfoModelInner.java
new file mode 100644
index 0000000000000..e6e1f39cd012c
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SupportInfoModelInner.java
@@ -0,0 +1,420 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnableStatus;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RegistrationStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Support information for the service.
+ */
+@Fluent
+public final class SupportInfoModelInner {
+ /*
+ * product SKU associated with given resource
+ */
+ @JsonProperty(value = "productSku")
+ private String productSku;
+
+ /*
+ * product Serial associated with given resource
+ */
+ @JsonProperty(value = "productSerial")
+ private String productSerial;
+
+ /*
+ * account registered in Customer Support Portal
+ */
+ @JsonProperty(value = "accountRegistrationStatus")
+ private RegistrationStatus accountRegistrationStatus;
+
+ /*
+ * Support account associated with given resource
+ */
+ @JsonProperty(value = "accountId")
+ private String accountId;
+
+ /*
+ * Product usage is in free trial period
+ */
+ @JsonProperty(value = "freeTrial")
+ private EnableStatus freeTrial;
+
+ /*
+ * Free trial days remaining
+ */
+ @JsonProperty(value = "freeTrialDaysLeft")
+ private Integer freeTrialDaysLeft;
+
+ /*
+ * Free trial credit remaining
+ */
+ @JsonProperty(value = "freeTrialCreditLeft")
+ private Integer freeTrialCreditLeft;
+
+ /*
+ * URL for paloaltonetworks live community
+ */
+ @JsonProperty(value = "helpURL")
+ private String helpUrl;
+
+ /*
+ * URL for paloaltonetworks Customer Service Portal
+ */
+ @JsonProperty(value = "supportURL")
+ private String supportUrl;
+
+ /*
+ * URL for registering product in paloaltonetworks Customer Service Portal
+ */
+ @JsonProperty(value = "registerURL")
+ private String registerUrl;
+
+ /*
+ * URL for Strata Cloud Manager
+ */
+ @JsonProperty(value = "hubUrl")
+ private String hubUrl;
+
+ /*
+ * credits purchased, unit per hour
+ */
+ @JsonProperty(value = "credits")
+ private Integer credits;
+
+ /*
+ * monthly credit is computed as credits * days in calendar month
+ */
+ @JsonProperty(value = "monthlyCreditLeft")
+ private Integer monthlyCreditLeft;
+
+ /*
+ * date in format yyyy-mm-dd
+ */
+ @JsonProperty(value = "startDateForCredits")
+ private String startDateForCredits;
+
+ /*
+ * date in format yyyy-mm-dd
+ */
+ @JsonProperty(value = "endDateForCredits")
+ private String endDateForCredits;
+
+ /**
+ * Creates an instance of SupportInfoModelInner class.
+ */
+ public SupportInfoModelInner() {
+ }
+
+ /**
+ * Get the productSku property: product SKU associated with given resource.
+ *
+ * @return the productSku value.
+ */
+ public String productSku() {
+ return this.productSku;
+ }
+
+ /**
+ * Set the productSku property: product SKU associated with given resource.
+ *
+ * @param productSku the productSku value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withProductSku(String productSku) {
+ this.productSku = productSku;
+ return this;
+ }
+
+ /**
+ * Get the productSerial property: product Serial associated with given resource.
+ *
+ * @return the productSerial value.
+ */
+ public String productSerial() {
+ return this.productSerial;
+ }
+
+ /**
+ * Set the productSerial property: product Serial associated with given resource.
+ *
+ * @param productSerial the productSerial value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withProductSerial(String productSerial) {
+ this.productSerial = productSerial;
+ return this;
+ }
+
+ /**
+ * Get the accountRegistrationStatus property: account registered in Customer Support Portal.
+ *
+ * @return the accountRegistrationStatus value.
+ */
+ public RegistrationStatus accountRegistrationStatus() {
+ return this.accountRegistrationStatus;
+ }
+
+ /**
+ * Set the accountRegistrationStatus property: account registered in Customer Support Portal.
+ *
+ * @param accountRegistrationStatus the accountRegistrationStatus value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withAccountRegistrationStatus(RegistrationStatus accountRegistrationStatus) {
+ this.accountRegistrationStatus = accountRegistrationStatus;
+ return this;
+ }
+
+ /**
+ * Get the accountId property: Support account associated with given resource.
+ *
+ * @return the accountId value.
+ */
+ public String accountId() {
+ return this.accountId;
+ }
+
+ /**
+ * Set the accountId property: Support account associated with given resource.
+ *
+ * @param accountId the accountId value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withAccountId(String accountId) {
+ this.accountId = accountId;
+ return this;
+ }
+
+ /**
+ * Get the freeTrial property: Product usage is in free trial period.
+ *
+ * @return the freeTrial value.
+ */
+ public EnableStatus freeTrial() {
+ return this.freeTrial;
+ }
+
+ /**
+ * Set the freeTrial property: Product usage is in free trial period.
+ *
+ * @param freeTrial the freeTrial value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withFreeTrial(EnableStatus freeTrial) {
+ this.freeTrial = freeTrial;
+ return this;
+ }
+
+ /**
+ * Get the freeTrialDaysLeft property: Free trial days remaining.
+ *
+ * @return the freeTrialDaysLeft value.
+ */
+ public Integer freeTrialDaysLeft() {
+ return this.freeTrialDaysLeft;
+ }
+
+ /**
+ * Set the freeTrialDaysLeft property: Free trial days remaining.
+ *
+ * @param freeTrialDaysLeft the freeTrialDaysLeft value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withFreeTrialDaysLeft(Integer freeTrialDaysLeft) {
+ this.freeTrialDaysLeft = freeTrialDaysLeft;
+ return this;
+ }
+
+ /**
+ * Get the freeTrialCreditLeft property: Free trial credit remaining.
+ *
+ * @return the freeTrialCreditLeft value.
+ */
+ public Integer freeTrialCreditLeft() {
+ return this.freeTrialCreditLeft;
+ }
+
+ /**
+ * Set the freeTrialCreditLeft property: Free trial credit remaining.
+ *
+ * @param freeTrialCreditLeft the freeTrialCreditLeft value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withFreeTrialCreditLeft(Integer freeTrialCreditLeft) {
+ this.freeTrialCreditLeft = freeTrialCreditLeft;
+ return this;
+ }
+
+ /**
+ * Get the helpUrl property: URL for paloaltonetworks live community.
+ *
+ * @return the helpUrl value.
+ */
+ public String helpUrl() {
+ return this.helpUrl;
+ }
+
+ /**
+ * Set the helpUrl property: URL for paloaltonetworks live community.
+ *
+ * @param helpUrl the helpUrl value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withHelpUrl(String helpUrl) {
+ this.helpUrl = helpUrl;
+ return this;
+ }
+
+ /**
+ * Get the supportUrl property: URL for paloaltonetworks Customer Service Portal.
+ *
+ * @return the supportUrl value.
+ */
+ public String supportUrl() {
+ return this.supportUrl;
+ }
+
+ /**
+ * Set the supportUrl property: URL for paloaltonetworks Customer Service Portal.
+ *
+ * @param supportUrl the supportUrl value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withSupportUrl(String supportUrl) {
+ this.supportUrl = supportUrl;
+ return this;
+ }
+
+ /**
+ * Get the registerUrl property: URL for registering product in paloaltonetworks Customer Service Portal.
+ *
+ * @return the registerUrl value.
+ */
+ public String registerUrl() {
+ return this.registerUrl;
+ }
+
+ /**
+ * Set the registerUrl property: URL for registering product in paloaltonetworks Customer Service Portal.
+ *
+ * @param registerUrl the registerUrl value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withRegisterUrl(String registerUrl) {
+ this.registerUrl = registerUrl;
+ return this;
+ }
+
+ /**
+ * Get the hubUrl property: URL for Strata Cloud Manager.
+ *
+ * @return the hubUrl value.
+ */
+ public String hubUrl() {
+ return this.hubUrl;
+ }
+
+ /**
+ * Set the hubUrl property: URL for Strata Cloud Manager.
+ *
+ * @param hubUrl the hubUrl value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withHubUrl(String hubUrl) {
+ this.hubUrl = hubUrl;
+ return this;
+ }
+
+ /**
+ * Get the credits property: credits purchased, unit per hour.
+ *
+ * @return the credits value.
+ */
+ public Integer credits() {
+ return this.credits;
+ }
+
+ /**
+ * Set the credits property: credits purchased, unit per hour.
+ *
+ * @param credits the credits value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withCredits(Integer credits) {
+ this.credits = credits;
+ return this;
+ }
+
+ /**
+ * Get the monthlyCreditLeft property: monthly credit is computed as credits * days in calendar month.
+ *
+ * @return the monthlyCreditLeft value.
+ */
+ public Integer monthlyCreditLeft() {
+ return this.monthlyCreditLeft;
+ }
+
+ /**
+ * Set the monthlyCreditLeft property: monthly credit is computed as credits * days in calendar month.
+ *
+ * @param monthlyCreditLeft the monthlyCreditLeft value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withMonthlyCreditLeft(Integer monthlyCreditLeft) {
+ this.monthlyCreditLeft = monthlyCreditLeft;
+ return this;
+ }
+
+ /**
+ * Get the startDateForCredits property: date in format yyyy-mm-dd.
+ *
+ * @return the startDateForCredits value.
+ */
+ public String startDateForCredits() {
+ return this.startDateForCredits;
+ }
+
+ /**
+ * Set the startDateForCredits property: date in format yyyy-mm-dd.
+ *
+ * @param startDateForCredits the startDateForCredits value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withStartDateForCredits(String startDateForCredits) {
+ this.startDateForCredits = startDateForCredits;
+ return this;
+ }
+
+ /**
+ * Get the endDateForCredits property: date in format yyyy-mm-dd.
+ *
+ * @return the endDateForCredits value.
+ */
+ public String endDateForCredits() {
+ return this.endDateForCredits;
+ }
+
+ /**
+ * Set the endDateForCredits property: date in format yyyy-mm-dd.
+ *
+ * @param endDateForCredits the endDateForCredits value to set.
+ * @return the SupportInfoModelInner object itself.
+ */
+ public SupportInfoModelInner withEndDateForCredits(String endDateForCredits) {
+ this.endDateForCredits = endDateForCredits;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksImpl.java
index 2cb684677887a..d4cedb10e5311 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksImpl.java
@@ -30,13 +30,15 @@ public CertificateObjectGlobalRulestacksImpl(CertificateObjectGlobalRulestacksCl
public PagedIterable list(String globalRulestackName) {
PagedIterable inner
= this.serviceClient().list(globalRulestackName);
- return Utils.mapPage(inner, inner1 -> new CertificateObjectGlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new CertificateObjectGlobalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable list(String globalRulestackName, Context context) {
PagedIterable inner
= this.serviceClient().list(globalRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new CertificateObjectGlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new CertificateObjectGlobalRulestackResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String globalRulestackName, String name,
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestackResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestackResourceImpl.java
index 8d80a9c21c2c0..aa85a525ff74a 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestackResourceImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestackResourceImpl.java
@@ -121,9 +121,9 @@ public CertificateObjectLocalRulestackResource apply(Context context) {
com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.localRulestackName = Utils.getValueFromIdByName(innerObject.id(), "localRulestacks");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "certificates");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.localRulestackName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "localRulestacks");
+ this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "certificates");
}
public CertificateObjectLocalRulestackResource refresh() {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksImpl.java
index bfc6a75accc6f..f7b74f2979576 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksImpl.java
@@ -31,14 +31,16 @@ public PagedIterable listByLocalRulesta
String localRulestackName) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName);
- return Utils.mapPage(inner, inner1 -> new CertificateObjectLocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new CertificateObjectLocalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable listByLocalRulestacks(String resourceGroupName,
String localRulestackName, Context context) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new CertificateObjectLocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new CertificateObjectLocalRulestackResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String resourceGroupName,
@@ -73,17 +75,17 @@ public void delete(String resourceGroupName, String localRulestackName, String n
}
public CertificateObjectLocalRulestackResource getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "certificates");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "certificates");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
@@ -92,17 +94,17 @@ public CertificateObjectLocalRulestackResource getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "certificates");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "certificates");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
@@ -111,17 +113,17 @@ public Response getByIdWithResponse(Str
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "certificates");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "certificates");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
@@ -130,17 +132,17 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "certificates");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "certificates");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CloudManagerTenantImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CloudManagerTenantImpl.java
new file mode 100644
index 0000000000000..03385861b30fc
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CloudManagerTenantImpl.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CloudManagerTenant;
+
+public final class CloudManagerTenantImpl implements CloudManagerTenant {
+ private CloudManagerTenantInner innerObject;
+
+ private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager;
+
+ CloudManagerTenantImpl(CloudManagerTenantInner innerObject,
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String tenantId() {
+ return this.innerModel().tenantId();
+ }
+
+ public CloudManagerTenantInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountriesResponseImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountriesResponseImpl.java
index 8a87a7deff2d1..cffed0832edc9 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountriesResponseImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountriesResponseImpl.java
@@ -5,10 +5,12 @@
package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountriesResponseInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CountriesResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Country;
import java.util.Collections;
import java.util.List;
+import java.util.stream.Collectors;
public final class CountriesResponseImpl implements CountriesResponse {
private CountriesResponseInner innerObject;
@@ -22,9 +24,10 @@ public final class CountriesResponseImpl implements CountriesResponse {
}
public List value() {
- List inner = this.innerModel().value();
+ List inner = this.innerModel().value();
if (inner != null) {
- return Collections.unmodifiableList(inner);
+ return Collections.unmodifiableList(
+ inner.stream().map(inner1 -> new CountryImpl(inner1, this.manager())).collect(Collectors.toList()));
} else {
return Collections.emptyList();
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountryImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountryImpl.java
new file mode 100644
index 0000000000000..c4e35eb8a05db
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountryImpl.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Country;
+
+public final class CountryImpl implements Country {
+ private CountryInner innerObject;
+
+ private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager;
+
+ CountryImpl(CountryInner innerObject,
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String code() {
+ return this.innerModel().code();
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public CountryInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallResourceImpl.java
index 7405c9cc4a239..5576a257f4f25 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallResourceImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallResourceImpl.java
@@ -25,6 +25,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PlanData;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RulestackDetails;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerConfig;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfo;
import java.util.Collections;
import java.util.List;
@@ -81,10 +82,18 @@ public BooleanEnum isPanoramaManaged() {
return this.innerModel().isPanoramaManaged();
}
+ public BooleanEnum isStrataCloudManaged() {
+ return this.innerModel().isStrataCloudManaged();
+ }
+
public PanoramaConfig panoramaConfig() {
return this.innerModel().panoramaConfig();
}
+ public StrataCloudManagerConfig strataCloudManagerConfig() {
+ return this.innerModel().strataCloudManagerConfig();
+ }
+
public RulestackDetails associatedRulestack() {
return this.innerModel().associatedRulestack();
}
@@ -185,8 +194,8 @@ public FirewallResource apply(Context context) {
com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.firewallName = Utils.getValueFromIdByName(innerObject.id(), "firewalls");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.firewallName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "firewalls");
}
public FirewallResource refresh() {
@@ -294,11 +303,21 @@ public FirewallResourceImpl withIsPanoramaManaged(BooleanEnum isPanoramaManaged)
return this;
}
+ public FirewallResourceImpl withIsStrataCloudManaged(BooleanEnum isStrataCloudManaged) {
+ this.innerModel().withIsStrataCloudManaged(isStrataCloudManaged);
+ return this;
+ }
+
public FirewallResourceImpl withPanoramaConfig(PanoramaConfig panoramaConfig) {
this.innerModel().withPanoramaConfig(panoramaConfig);
return this;
}
+ public FirewallResourceImpl withStrataCloudManagerConfig(StrataCloudManagerConfig strataCloudManagerConfig) {
+ this.innerModel().withStrataCloudManagerConfig(strataCloudManagerConfig);
+ return this;
+ }
+
public FirewallResourceImpl withAssociatedRulestack(RulestackDetails associatedRulestack) {
this.innerModel().withAssociatedRulestack(associatedRulestack);
return this;
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusImpl.java
index 917712b251bd5..7fe683d900d10 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusImpl.java
@@ -30,14 +30,14 @@ public FirewallStatusImpl(FirewallStatusClient innerClient,
public PagedIterable listByFirewalls(String resourceGroupName, String firewallName) {
PagedIterable inner
= this.serviceClient().listByFirewalls(resourceGroupName, firewallName);
- return Utils.mapPage(inner, inner1 -> new FirewallStatusResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallStatusResourceImpl(inner1, this.manager()));
}
public PagedIterable listByFirewalls(String resourceGroupName, String firewallName,
Context context) {
PagedIterable inner
= this.serviceClient().listByFirewalls(resourceGroupName, firewallName, context);
- return Utils.mapPage(inner, inner1 -> new FirewallStatusResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallStatusResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String resourceGroupName, String firewallName,
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusResourceImpl.java
index 28cbcca09b7e3..d834dbc06d1a1 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusResourceImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusResourceImpl.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.HealthStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaStatus;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ReadOnlyProvisioningState;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerInfo;
public final class FirewallStatusResourceImpl implements FirewallStatusResource {
private FirewallStatusResourceInner innerObject;
@@ -59,6 +60,14 @@ public ReadOnlyProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
+ public BooleanEnum isStrataCloudManaged() {
+ return this.innerModel().isStrataCloudManaged();
+ }
+
+ public StrataCloudManagerInfo strataCloudManagerInfo() {
+ return this.innerModel().strataCloudManagerInfo();
+ }
+
public FirewallStatusResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsImpl.java
index 79adf3e26dd52..58736898a23fe 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsImpl.java
@@ -35,23 +35,23 @@ public FirewallsImpl(FirewallsClient innerClient,
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return Utils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
PagedIterable inner
= this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return Utils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager()));
}
public Response getByResourceGroupWithResponse(String resourceGroupName, String firewallName,
@@ -156,12 +156,12 @@ public void saveLogProfile(String resourceGroupName, String firewallName) {
}
public FirewallResource getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String firewallName = Utils.getValueFromIdByName(id, "firewalls");
+ String firewallName = ResourceManagerUtils.getValueFromIdByName(id, "firewalls");
if (firewallName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'firewalls'.", id)));
@@ -170,12 +170,12 @@ public FirewallResource getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String firewallName = Utils.getValueFromIdByName(id, "firewalls");
+ String firewallName = ResourceManagerUtils.getValueFromIdByName(id, "firewalls");
if (firewallName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'firewalls'.", id)));
@@ -184,12 +184,12 @@ public Response getByIdWithResponse(String id, Context context
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String firewallName = Utils.getValueFromIdByName(id, "firewalls");
+ String firewallName = ResourceManagerUtils.getValueFromIdByName(id, "firewalls");
if (firewallName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'firewalls'.", id)));
@@ -198,12 +198,12 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String firewallName = Utils.getValueFromIdByName(id, "firewalls");
+ String firewallName = ResourceManagerUtils.getValueFromIdByName(id, "firewalls");
if (firewallName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'firewalls'.", id)));
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksImpl.java
index 2be87f4fe0014..889f35b952e8e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksImpl.java
@@ -29,13 +29,15 @@ public FqdnListGlobalRulestacksImpl(FqdnListGlobalRulestacksClient innerClient,
public PagedIterable list(String globalRulestackName) {
PagedIterable inner = this.serviceClient().list(globalRulestackName);
- return Utils.mapPage(inner, inner1 -> new FqdnListGlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new FqdnListGlobalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable list(String globalRulestackName, Context context) {
PagedIterable inner
= this.serviceClient().list(globalRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new FqdnListGlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new FqdnListGlobalRulestackResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String globalRulestackName, String name,
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestackResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestackResourceImpl.java
index 3f97ee0d0cde5..56a9ce2ac024f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestackResourceImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestackResourceImpl.java
@@ -123,9 +123,9 @@ public FqdnListLocalRulestackResource apply(Context context) {
com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.localRulestackName = Utils.getValueFromIdByName(innerObject.id(), "localRulestacks");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "fqdnlists");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.localRulestackName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "localRulestacks");
+ this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "fqdnlists");
}
public FqdnListLocalRulestackResource refresh() {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksImpl.java
index 1942d07c505b1..76151bf42bd0a 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksImpl.java
@@ -31,14 +31,16 @@ public PagedIterable listByLocalRulestacks(Strin
String localRulestackName) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName);
- return Utils.mapPage(inner, inner1 -> new FqdnListLocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new FqdnListLocalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable listByLocalRulestacks(String resourceGroupName,
String localRulestackName, Context context) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new FqdnListLocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new FqdnListLocalRulestackResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String resourceGroupName, String localRulestackName,
@@ -72,17 +74,17 @@ public void delete(String resourceGroupName, String localRulestackName, String n
}
public FqdnListLocalRulestackResource getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "fqdnlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "fqdnlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'fqdnlists'.", id)));
@@ -91,17 +93,17 @@ public FqdnListLocalRulestackResource getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "fqdnlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "fqdnlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'fqdnlists'.", id)));
@@ -110,17 +112,17 @@ public Response getByIdWithResponse(String id, C
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "fqdnlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "fqdnlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'fqdnlists'.", id)));
@@ -129,17 +131,17 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "fqdnlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "fqdnlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'fqdnlists'.", id)));
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksImpl.java
index a56ffcb1016c3..33ca95820cf9e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksImpl.java
@@ -46,12 +46,12 @@ public GlobalRulestacksImpl(GlobalRulestacksClient innerClient,
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String globalRulestackName, Context context) {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesImpl.java
index 29edc1353cf42..01a93742b806d 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesImpl.java
@@ -35,14 +35,14 @@ public PagedIterable listByLocalRulestacks(String resourceGr
String localRulestackName) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName);
- return Utils.mapPage(inner, inner1 -> new LocalRulesResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulesResourceImpl(inner1, this.manager()));
}
public PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName,
Context context) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new LocalRulesResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulesResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String resourceGroupName, String localRulestackName,
@@ -128,17 +128,17 @@ public RuleCounterReset resetCounters(String resourceGroupName, String localRule
}
public LocalRulesResource getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String priority = Utils.getValueFromIdByName(id, "localRules");
+ String priority = ResourceManagerUtils.getValueFromIdByName(id, "localRules");
if (priority == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRules'.", id)));
@@ -147,17 +147,17 @@ public LocalRulesResource getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String priority = Utils.getValueFromIdByName(id, "localRules");
+ String priority = ResourceManagerUtils.getValueFromIdByName(id, "localRules");
if (priority == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRules'.", id)));
@@ -166,17 +166,17 @@ public Response getByIdWithResponse(String id, Context conte
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String priority = Utils.getValueFromIdByName(id, "localRules");
+ String priority = ResourceManagerUtils.getValueFromIdByName(id, "localRules");
if (priority == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRules'.", id)));
@@ -185,17 +185,17 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String priority = Utils.getValueFromIdByName(id, "localRules");
+ String priority = ResourceManagerUtils.getValueFromIdByName(id, "localRules");
if (priority == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRules'.", id)));
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesResourceImpl.java
index e797582856e10..3471afe60d18e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesResourceImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesResourceImpl.java
@@ -203,9 +203,9 @@ public LocalRulesResource apply(Context context) {
com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.localRulestackName = Utils.getValueFromIdByName(innerObject.id(), "localRulestacks");
- this.priority = Utils.getValueFromIdByName(innerObject.id(), "localRules");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.localRulestackName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "localRulestacks");
+ this.priority = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "localRules");
}
public LocalRulesResource refresh() {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestackResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestackResourceImpl.java
index 8b37b9a67a208..adbd3215fb1e2 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestackResourceImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestackResourceImpl.java
@@ -11,14 +11,11 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulestackResourceInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Changelog;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CountriesResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListAppIdResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListFirewallsResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResource;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdate;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdateProperties;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategoriesResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices;
@@ -178,8 +175,8 @@ public LocalRulestackResource apply(Context context) {
com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.localRulestackName = Utils.getValueFromIdByName(innerObject.id(), "localRulestacks");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.localRulestackName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "localRulestacks");
}
public LocalRulestackResource refresh() {
@@ -220,25 +217,6 @@ public SupportInfo getSupportInfo() {
return serviceManager.localRulestacks().getSupportInfo(resourceGroupName, localRulestackName);
}
- public Response listAppIdsWithResponse(String appIdVersion, String appPrefix, String skip,
- Integer top, Context context) {
- return serviceManager.localRulestacks().listAppIdsWithResponse(resourceGroupName, localRulestackName,
- appIdVersion, appPrefix, skip, top, context);
- }
-
- public ListAppIdResponse listAppIds() {
- return serviceManager.localRulestacks().listAppIds(resourceGroupName, localRulestackName);
- }
-
- public Response listCountriesWithResponse(String skip, Integer top, Context context) {
- return serviceManager.localRulestacks().listCountriesWithResponse(resourceGroupName, localRulestackName, skip,
- top, context);
- }
-
- public CountriesResponse listCountries() {
- return serviceManager.localRulestacks().listCountries(resourceGroupName, localRulestackName);
- }
-
public Response listFirewallsWithResponse(Context context) {
return serviceManager.localRulestacks().listFirewallsWithResponse(resourceGroupName, localRulestackName,
context);
@@ -248,16 +226,6 @@ public ListFirewallsResponse listFirewalls() {
return serviceManager.localRulestacks().listFirewalls(resourceGroupName, localRulestackName);
}
- public Response listPredefinedUrlCategoriesWithResponse(String skip, Integer top,
- Context context) {
- return serviceManager.localRulestacks().listPredefinedUrlCategoriesWithResponse(resourceGroupName,
- localRulestackName, skip, top, context);
- }
-
- public PredefinedUrlCategoriesResponse listPredefinedUrlCategories() {
- return serviceManager.localRulestacks().listPredefinedUrlCategories(resourceGroupName, localRulestackName);
- }
-
public Response revertWithResponse(Context context) {
return serviceManager.localRulestacks().revertWithResponse(resourceGroupName, localRulestackName, context);
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksClientImpl.java
index 6f5d289de66cb..e21c067c94ab3 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksClientImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksClientImpl.java
@@ -37,10 +37,12 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.AdvSecurityObjectListResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ChangelogInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountriesResponseInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListAppIdResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListFirewallsResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulestackResourceInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SecurityServicesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum;
@@ -1811,11 +1813,11 @@ public AdvSecurityObjectListResponseInner listAdvancedSecurityObjects(String res
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listAppIdsWithResponseAsync(String resourceGroupName,
- String localRulestackName, String appIdVersion, String appPrefix, String skip, Integer top) {
+ private Mono> listAppIdsSinglePageAsync(String resourceGroupName, String localRulestackName,
+ String appIdVersion, String appPrefix, String skip, Integer top) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1837,6 +1839,8 @@ private Mono> listAppIdsWithResponseAsync(Strin
.withContext(context -> service.listAppIds(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip,
top, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1853,11 +1857,11 @@ private Mono> listAppIdsWithResponseAsync(Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listAppIdsWithResponseAsync(String resourceGroupName,
- String localRulestackName, String appIdVersion, String appPrefix, String skip, Integer top, Context context) {
+ private Mono> listAppIdsSinglePageAsync(String resourceGroupName, String localRulestackName,
+ String appIdVersion, String appPrefix, String skip, Integer top, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1876,71 +1880,11 @@ private Mono> listAppIdsWithResponseAsync(Strin
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listAppIds(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top,
- accept, context);
- }
-
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono listAppIdsAsync(String resourceGroupName, String localRulestackName) {
- final String appIdVersion = null;
- final String appPrefix = null;
- final String skip = null;
- final Integer top = null;
- return listAppIdsWithResponseAsync(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param appIdVersion The appIdVersion parameter.
- * @param appPrefix The appPrefix parameter.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response listAppIdsWithResponse(String resourceGroupName, String localRulestackName,
- String appIdVersion, String appPrefix, String skip, Integer top, Context context) {
- return listAppIdsWithResponseAsync(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top,
- context).block();
- }
-
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ListAppIdResponseInner listAppIds(String resourceGroupName, String localRulestackName) {
- final String appIdVersion = null;
- final String appPrefix = null;
- final String skip = null;
- final Integer top = null;
- return listAppIdsWithResponse(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top,
- Context.NONE).getValue();
+ return service
+ .listAppIds(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
@@ -1953,10 +1897,10 @@ public ListAppIdResponseInner listAppIds(String resourceGroupName, String localR
* @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 countries Response Object along with {@link Response} on successful completion of {@link Mono}.
+ * @return countries Response Object along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listCountriesWithResponseAsync(String resourceGroupName,
+ private Mono> listCountriesSinglePageAsync(String resourceGroupName,
String localRulestackName, String skip, Integer top) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -1978,6 +1922,8 @@ private Mono> listCountriesWithResponseAsync(St
return FluxUtil
.withContext(context -> service.listCountries(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1992,10 +1938,10 @@ private Mono> listCountriesWithResponseAsync(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 countries Response Object along with {@link Response} on successful completion of {@link Mono}.
+ * @return countries Response Object along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listCountriesWithResponseAsync(String resourceGroupName,
+ private Mono> listCountriesSinglePageAsync(String resourceGroupName,
String localRulestackName, String skip, Integer top, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -2015,62 +1961,11 @@ private Mono> listCountriesWithResponseAsync(St
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listCountries(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, accept, context);
- }
-
- /**
- * List of countries for Rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return countries Response Object on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono listCountriesAsync(String resourceGroupName, String localRulestackName) {
- final String skip = null;
- final Integer top = null;
- return listCountriesWithResponseAsync(resourceGroupName, localRulestackName, skip, top)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * List of countries for Rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return countries Response Object along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response listCountriesWithResponse(String resourceGroupName,
- String localRulestackName, String skip, Integer top, Context context) {
- return listCountriesWithResponseAsync(resourceGroupName, localRulestackName, skip, top, context).block();
- }
-
- /**
- * List of countries for Rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return countries Response Object.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public CountriesResponseInner listCountries(String resourceGroupName, String localRulestackName) {
- final String skip = null;
- final Integer top = null;
- return listCountriesWithResponse(resourceGroupName, localRulestackName, skip, top, Context.NONE).getValue();
+ return service
+ .listCountries(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, localRulestackName, skip, top, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
@@ -2203,10 +2098,11 @@ public ListFirewallsResponseInner listFirewalls(String resourceGroupName, 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 predefined url categories response along with {@link Response} on successful completion of {@link Mono}.
+ * @return predefined url categories response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listPredefinedUrlCategoriesWithResponseAsync(
+ private Mono> listPredefinedUrlCategoriesSinglePageAsync(
String resourceGroupName, String localRulestackName, String skip, Integer top) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -2229,6 +2125,8 @@ private Mono> listPredefinedUrlCa
.withContext(
context -> service.listPredefinedUrlCategories(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -2243,10 +2141,11 @@ private Mono> listPredefinedUrlCa
* @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 predefined url categories response along with {@link Response} on successful completion of {@link Mono}.
+ * @return predefined url categories response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listPredefinedUrlCategoriesWithResponseAsync(
+ private Mono> listPredefinedUrlCategoriesSinglePageAsync(
String resourceGroupName, String localRulestackName, String skip, Integer top, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -2266,66 +2165,11 @@ private Mono> listPredefinedUrlCa
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listPredefinedUrlCategories(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, accept, context);
- }
-
- /**
- * List predefined URL categories for rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return predefined url categories response on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono listPredefinedUrlCategoriesAsync(String resourceGroupName,
- String localRulestackName) {
- final String skip = null;
- final Integer top = null;
- return listPredefinedUrlCategoriesWithResponseAsync(resourceGroupName, localRulestackName, skip, top)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * List predefined URL categories for rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return predefined url categories response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response listPredefinedUrlCategoriesWithResponse(
- String resourceGroupName, String localRulestackName, String skip, Integer top, Context context) {
- return listPredefinedUrlCategoriesWithResponseAsync(resourceGroupName, localRulestackName, skip, top, context)
- .block();
- }
-
- /**
- * List predefined URL categories for rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return predefined url categories response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PredefinedUrlCategoriesResponseInner listPredefinedUrlCategories(String resourceGroupName,
- String localRulestackName) {
- final String skip = null;
- final Integer top = null;
- return listPredefinedUrlCategoriesWithResponse(resourceGroupName, localRulestackName, skip, top, Context.NONE)
- .getValue();
+ return service
+ .listPredefinedUrlCategories(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksImpl.java
index b8c646730470a..543c728cfc147 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksImpl.java
@@ -12,22 +12,16 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.AdvSecurityObjectListResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ChangelogInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountriesResponseInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListAppIdResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListFirewallsResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SecurityServicesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectListResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Changelog;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CountriesResponse;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListAppIdResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListFirewallsResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResource;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestacks;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategoriesResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfo;
@@ -47,23 +41,23 @@ public LocalRulestacksImpl(LocalRulestacksClient innerClient,
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return Utils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
PagedIterable inner
= this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return Utils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager()));
}
public Response getByResourceGroupWithResponse(String resourceGroupName,
@@ -169,48 +163,6 @@ public AdvSecurityObjectListResponse listAdvancedSecurityObjects(String resource
}
}
- public Response listAppIdsWithResponse(String resourceGroupName, String localRulestackName,
- String appIdVersion, String appPrefix, String skip, Integer top, Context context) {
- Response inner = this.serviceClient().listAppIdsWithResponse(resourceGroupName,
- localRulestackName, appIdVersion, appPrefix, skip, top, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new ListAppIdResponseImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ListAppIdResponse listAppIds(String resourceGroupName, String localRulestackName) {
- ListAppIdResponseInner inner = this.serviceClient().listAppIds(resourceGroupName, localRulestackName);
- if (inner != null) {
- return new ListAppIdResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response listCountriesWithResponse(String resourceGroupName, String localRulestackName,
- String skip, Integer top, Context context) {
- Response inner
- = this.serviceClient().listCountriesWithResponse(resourceGroupName, localRulestackName, skip, top, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new CountriesResponseImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public CountriesResponse listCountries(String resourceGroupName, String localRulestackName) {
- CountriesResponseInner inner = this.serviceClient().listCountries(resourceGroupName, localRulestackName);
- if (inner != null) {
- return new CountriesResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response listFirewallsWithResponse(String resourceGroupName,
String localRulestackName, Context context) {
Response inner
@@ -232,29 +184,6 @@ public ListFirewallsResponse listFirewalls(String resourceGroupName, String loca
}
}
- public Response listPredefinedUrlCategoriesWithResponse(String resourceGroupName,
- String localRulestackName, String skip, Integer top, Context context) {
- Response inner = this.serviceClient()
- .listPredefinedUrlCategoriesWithResponse(resourceGroupName, localRulestackName, skip, top, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new PredefinedUrlCategoriesResponseImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public PredefinedUrlCategoriesResponse listPredefinedUrlCategories(String resourceGroupName,
- String localRulestackName) {
- PredefinedUrlCategoriesResponseInner inner
- = this.serviceClient().listPredefinedUrlCategories(resourceGroupName, localRulestackName);
- if (inner != null) {
- return new PredefinedUrlCategoriesResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response listSecurityServicesWithResponse(String resourceGroupName,
String localRulestackName, SecurityServicesTypeEnum type, String skip, Integer top, Context context) {
Response inner = this.serviceClient()
@@ -287,12 +216,12 @@ public void revert(String resourceGroupName, String localRulestackName) {
}
public LocalRulestackResource getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
@@ -301,12 +230,12 @@ public LocalRulestackResource getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
@@ -315,12 +244,12 @@ public Response getByIdWithResponse(String id, Context c
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
@@ -329,12 +258,12 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsImpl.java
index 29e2609ab4199..0e889e8802859 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsImpl.java
@@ -27,12 +27,12 @@ public OperationsImpl(OperationsClient innerClient,
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
}
private OperationsClient serviceClient() {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwImpl.java
index e7e4a672597d0..a845510d4b427 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwImpl.java
@@ -33,6 +33,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.OperationsClient;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfw;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwsClient;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient;
@@ -233,6 +234,20 @@ public OperationsClient getOperations() {
return this.operations;
}
+ /**
+ * The PaloAltoNetworksCloudngfwsClient object to access its operations.
+ */
+ private final PaloAltoNetworksCloudngfwsClient paloAltoNetworksCloudngfws;
+
+ /**
+ * Gets the PaloAltoNetworksCloudngfwsClient object to access its operations.
+ *
+ * @return the PaloAltoNetworksCloudngfwsClient object.
+ */
+ public PaloAltoNetworksCloudngfwsClient getPaloAltoNetworksCloudngfws() {
+ return this.paloAltoNetworksCloudngfws;
+ }
+
/**
* The FirewallsClient object to access its operations.
*/
@@ -348,7 +363,7 @@ public PrefixListLocalRulestacksClient getPrefixListLocalRulestacks() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-09-01";
+ this.apiVersion = "2024-02-07-preview";
this.globalRulestacks = new GlobalRulestacksClientImpl(this);
this.certificateObjectGlobalRulestacks = new CertificateObjectGlobalRulestacksClientImpl(this);
this.fqdnListGlobalRulestacks = new FqdnListGlobalRulestacksClientImpl(this);
@@ -356,6 +371,7 @@ public PrefixListLocalRulestacksClient getPrefixListLocalRulestacks() {
this.prefixListGlobalRulestacks = new PrefixListGlobalRulestacksClientImpl(this);
this.preRules = new PreRulesClientImpl(this);
this.operations = new OperationsClientImpl(this);
+ this.paloAltoNetworksCloudngfws = new PaloAltoNetworksCloudngfwsClientImpl(this);
this.firewalls = new FirewallsClientImpl(this);
this.localRulestacks = new LocalRulestacksClientImpl(this);
this.firewallStatus = new FirewallStatusClientImpl(this);
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwsClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwsClientImpl.java
new file mode 100644
index 0000000000000..c6175fc364423
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwsClientImpl.java
@@ -0,0 +1,450 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwsClient;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner;
+import java.util.List;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in PaloAltoNetworksCloudngfwsClient.
+ */
+public final class PaloAltoNetworksCloudngfwsClientImpl implements PaloAltoNetworksCloudngfwsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final PaloAltoNetworksCloudngfwsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final PaloAltoNetworksCloudngfwImpl client;
+
+ /**
+ * Initializes an instance of PaloAltoNetworksCloudngfwsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ PaloAltoNetworksCloudngfwsClientImpl(PaloAltoNetworksCloudngfwImpl client) {
+ this.service = RestProxy.create(PaloAltoNetworksCloudngfwsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for PaloAltoNetworksCloudngfwPaloAltoNetworksCloudngfws to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "PaloAltoNetworksClou")
+ public interface PaloAltoNetworksCloudngfwsService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/createProductSerialNumber")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createProductSerialNumber(
+ @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/listCloudManagerTenants")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> listCloudManagerTenants(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/listProductSerialNumberStatus")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listProductSerialNumberStatus(
+ @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/listSupportInfo")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listSupportInfo(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @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 create Product Serial Number Request status along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createProductSerialNumberWithResponseAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createProductSerialNumber(this.client.getEndpoint(),
+ this.client.getSubscriptionId(), this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return create Product Serial Number Request status along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ createProductSerialNumberWithResponseAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createProductSerialNumber(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @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 create Product Serial Number Request status on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createProductSerialNumberAsync() {
+ return createProductSerialNumberWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return create Product Serial Number Request status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createProductSerialNumberWithResponse(Context context) {
+ return createProductSerialNumberWithResponseAsync(context).block();
+ }
+
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @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 create Product Serial Number Request status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ProductSerialNumberRequestStatusInner createProductSerialNumber() {
+ return createProductSerialNumberWithResponse(Context.NONE).getValue();
+ }
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @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 array of CloudManagerTenant along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> listCloudManagerTenantsWithResponseAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listCloudManagerTenants(this.client.getEndpoint(),
+ this.client.getSubscriptionId(), this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return array of CloudManagerTenant along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> listCloudManagerTenantsWithResponseAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listCloudManagerTenants(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @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 array of CloudManagerTenant on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listCloudManagerTenantsAsync() {
+ return listCloudManagerTenantsWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return array of CloudManagerTenant along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response> listCloudManagerTenantsWithResponse(Context context) {
+ return listCloudManagerTenantsWithResponseAsync(context).block();
+ }
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @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 array of CloudManagerTenant.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public List listCloudManagerTenants() {
+ return listCloudManagerTenantsWithResponse(Context.NONE).getValue();
+ }
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @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 product serial and status for the service along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listProductSerialNumberStatusWithResponseAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listProductSerialNumberStatus(this.client.getEndpoint(),
+ this.client.getSubscriptionId(), this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product serial and status for the service along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listProductSerialNumberStatusWithResponseAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listProductSerialNumberStatus(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @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 product serial and status for the service on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listProductSerialNumberStatusAsync() {
+ return listProductSerialNumberStatusWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product serial and status for the service along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listProductSerialNumberStatusWithResponse(Context context) {
+ return listProductSerialNumberStatusWithResponseAsync(context).block();
+ }
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @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 product serial and status for the service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ProductSerialNumberStatusInner listProductSerialNumberStatus() {
+ return listProductSerialNumberStatusWithResponse(Context.NONE).getValue();
+ }
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @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 support information for the service along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSupportInfoWithResponseAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listSupportInfo(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return support information for the service along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSupportInfoWithResponseAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listSupportInfo(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @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 support information for the service on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listSupportInfoAsync() {
+ return listSupportInfoWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return support information for the service along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listSupportInfoWithResponse(Context context) {
+ return listSupportInfoWithResponseAsync(context).block();
+ }
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @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 support information for the service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SupportInfoModelInner listSupportInfo() {
+ return listSupportInfoWithResponse(Context.NONE).getValue();
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwsImpl.java
new file mode 100644
index 0000000000000..034a41bb60376
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwsImpl.java
@@ -0,0 +1,126 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwsClient;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CloudManagerTenant;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PaloAltoNetworksCloudngfws;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberRequestStatus;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberStatus;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfoModel;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class PaloAltoNetworksCloudngfwsImpl implements PaloAltoNetworksCloudngfws {
+ private static final ClientLogger LOGGER = new ClientLogger(PaloAltoNetworksCloudngfwsImpl.class);
+
+ private final PaloAltoNetworksCloudngfwsClient innerClient;
+
+ private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager;
+
+ public PaloAltoNetworksCloudngfwsImpl(PaloAltoNetworksCloudngfwsClient innerClient,
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response createProductSerialNumberWithResponse(Context context) {
+ Response inner
+ = this.serviceClient().createProductSerialNumberWithResponse(context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ProductSerialNumberRequestStatusImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ProductSerialNumberRequestStatus createProductSerialNumber() {
+ ProductSerialNumberRequestStatusInner inner = this.serviceClient().createProductSerialNumber();
+ if (inner != null) {
+ return new ProductSerialNumberRequestStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response> listCloudManagerTenantsWithResponse(Context context) {
+ Response> inner
+ = this.serviceClient().listCloudManagerTenantsWithResponse(context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ inner.getValue().stream().map(inner1 -> new CloudManagerTenantImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return null;
+ }
+ }
+
+ public List listCloudManagerTenants() {
+ List inner = this.serviceClient().listCloudManagerTenants();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner.stream()
+ .map(inner1 -> new CloudManagerTenantImpl(inner1, this.manager())).collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public Response listProductSerialNumberStatusWithResponse(Context context) {
+ Response inner
+ = this.serviceClient().listProductSerialNumberStatusWithResponse(context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ProductSerialNumberStatusImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ProductSerialNumberStatus listProductSerialNumberStatus() {
+ ProductSerialNumberStatusInner inner = this.serviceClient().listProductSerialNumberStatus();
+ if (inner != null) {
+ return new ProductSerialNumberStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response listSupportInfoWithResponse(Context context) {
+ Response inner = this.serviceClient().listSupportInfoWithResponse(context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new SupportInfoModelImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public SupportInfoModel listSupportInfo() {
+ SupportInfoModelInner inner = this.serviceClient().listSupportInfo();
+ if (inner != null) {
+ return new SupportInfoModelImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private PaloAltoNetworksCloudngfwsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesImpl.java
index ce4b426f40183..8034ad3029f8d 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesImpl.java
@@ -33,12 +33,12 @@ public PostRulesImpl(PostRulesClient innerClient,
public PagedIterable list(String globalRulestackName) {
PagedIterable inner = this.serviceClient().list(globalRulestackName);
- return Utils.mapPage(inner, inner1 -> new PostRulesResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PostRulesResourceImpl(inner1, this.manager()));
}
public PagedIterable list(String globalRulestackName, Context context) {
PagedIterable inner = this.serviceClient().list(globalRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new PostRulesResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PostRulesResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String globalRulestackName, String priority, Context context) {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesImpl.java
index be74ed93941df..1752c1c7dcfc3 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesImpl.java
@@ -33,12 +33,12 @@ public PreRulesImpl(PreRulesClient innerClient,
public PagedIterable list(String globalRulestackName) {
PagedIterable inner = this.serviceClient().list(globalRulestackName);
- return Utils.mapPage(inner, inner1 -> new PreRulesResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PreRulesResourceImpl(inner1, this.manager()));
}
public PagedIterable list(String globalRulestackName, Context context) {
PagedIterable inner = this.serviceClient().list(globalRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new PreRulesResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PreRulesResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String globalRulestackName, String priority, Context context) {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoriesResponseImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoriesResponseImpl.java
index 25a8dd83c85b4..73bc2b876b68f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoriesResponseImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoriesResponseImpl.java
@@ -5,10 +5,12 @@
package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategoriesResponse;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory;
import java.util.Collections;
import java.util.List;
+import java.util.stream.Collectors;
public final class PredefinedUrlCategoriesResponseImpl implements PredefinedUrlCategoriesResponse {
private PredefinedUrlCategoriesResponseInner innerObject;
@@ -22,9 +24,10 @@ public final class PredefinedUrlCategoriesResponseImpl implements PredefinedUrlC
}
public List value() {
- List inner = this.innerModel().value();
+ List inner = this.innerModel().value();
if (inner != null) {
- return Collections.unmodifiableList(inner);
+ return Collections.unmodifiableList(inner.stream()
+ .map(inner1 -> new PredefinedUrlCategoryImpl(inner1, this.manager())).collect(Collectors.toList()));
} else {
return Collections.emptyList();
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoryImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoryImpl.java
new file mode 100644
index 0000000000000..cffc014c94b15
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoryImpl.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory;
+
+public final class PredefinedUrlCategoryImpl implements PredefinedUrlCategory {
+ private PredefinedUrlCategoryInner innerObject;
+
+ private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager;
+
+ PredefinedUrlCategoryImpl(PredefinedUrlCategoryInner innerObject,
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String action() {
+ return this.innerModel().action();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public PredefinedUrlCategoryInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksImpl.java
index f27c32049dcf3..4714d2222c115 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksImpl.java
@@ -29,13 +29,15 @@ public PrefixListGlobalRulestacksImpl(PrefixListGlobalRulestacksClient innerClie
public PagedIterable list(String globalRulestackName) {
PagedIterable inner = this.serviceClient().list(globalRulestackName);
- return Utils.mapPage(inner, inner1 -> new PrefixListGlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new PrefixListGlobalRulestackResourceImpl(inner1, this.manager()));
}
public PagedIterable list(String globalRulestackName, Context context) {
PagedIterable inner
= this.serviceClient().list(globalRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new PrefixListGlobalRulestackResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new PrefixListGlobalRulestackResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String globalRulestackName, String name,
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksImpl.java
index fe62d0102dba2..b1bf9775a036a 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksImpl.java
@@ -31,14 +31,14 @@ public PagedIterable listByLocalRulestacks(String resourceGr
String localRulestackName) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName);
- return Utils.mapPage(inner, inner1 -> new PrefixListResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PrefixListResourceImpl(inner1, this.manager()));
}
public PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName,
Context context) {
PagedIterable inner
= this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName, context);
- return Utils.mapPage(inner, inner1 -> new PrefixListResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PrefixListResourceImpl(inner1, this.manager()));
}
public Response getWithResponse(String resourceGroupName, String localRulestackName,
@@ -71,17 +71,17 @@ public void delete(String resourceGroupName, String localRulestackName, String n
}
public PrefixListResource getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "prefixlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "prefixlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'prefixlists'.", id)));
@@ -90,17 +90,17 @@ public PrefixListResource getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "prefixlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "prefixlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'prefixlists'.", id)));
@@ -109,17 +109,17 @@ public Response getByIdWithResponse(String id, Context conte
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "prefixlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "prefixlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'prefixlists'.", id)));
@@ -128,17 +128,17 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String localRulestackName = Utils.getValueFromIdByName(id, "localRulestacks");
+ String localRulestackName = ResourceManagerUtils.getValueFromIdByName(id, "localRulestacks");
if (localRulestackName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'localRulestacks'.", id)));
}
- String name = Utils.getValueFromIdByName(id, "prefixlists");
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "prefixlists");
if (name == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'prefixlists'.", id)));
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListResourceImpl.java
index 2ddee5844b24a..ed1fbd6f4a570 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListResourceImpl.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListResourceImpl.java
@@ -122,9 +122,9 @@ public PrefixListResource apply(Context context) {
com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.localRulestackName = Utils.getValueFromIdByName(innerObject.id(), "localRulestacks");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "prefixlists");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.localRulestackName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "localRulestacks");
+ this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "prefixlists");
}
public PrefixListResource refresh() {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberRequestStatusImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberRequestStatusImpl.java
new file mode 100644
index 0000000000000..e4d434d9e5d84
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberRequestStatusImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberRequestStatus;
+
+public final class ProductSerialNumberRequestStatusImpl implements ProductSerialNumberRequestStatus {
+ private ProductSerialNumberRequestStatusInner innerObject;
+
+ private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager;
+
+ ProductSerialNumberRequestStatusImpl(ProductSerialNumberRequestStatusInner innerObject,
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String status() {
+ return this.innerModel().status();
+ }
+
+ public ProductSerialNumberRequestStatusInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberStatusImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberStatusImpl.java
new file mode 100644
index 0000000000000..dbb59ed4325e0
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberStatusImpl.java
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberStatus;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues;
+
+public final class ProductSerialNumberStatusImpl implements ProductSerialNumberStatus {
+ private ProductSerialNumberStatusInner innerObject;
+
+ private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager;
+
+ ProductSerialNumberStatusImpl(ProductSerialNumberStatusInner innerObject,
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String serialNumber() {
+ return this.innerModel().serialNumber();
+ }
+
+ public ProductSerialStatusValues status() {
+ return this.innerModel().status();
+ }
+
+ public ProductSerialNumberStatusInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/Utils.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ResourceManagerUtils.java
similarity index 99%
rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/Utils.java
rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ResourceManagerUtils.java
index 6b51a3989032f..084414a6b1a9e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/Utils.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ResourceManagerUtils.java
@@ -19,8 +19,8 @@
import java.util.stream.Stream;
import reactor.core.publisher.Flux;
-final class Utils {
- private Utils() {
+final class ResourceManagerUtils {
+ private ResourceManagerUtils() {
}
static String getValueFromIdByName(String id, String name) {
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoModelImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoModelImpl.java
new file mode 100644
index 0000000000000..96bc5ef0f2494
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoModelImpl.java
@@ -0,0 +1,90 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnableStatus;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RegistrationStatus;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfoModel;
+
+public final class SupportInfoModelImpl implements SupportInfoModel {
+ private SupportInfoModelInner innerObject;
+
+ private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager;
+
+ SupportInfoModelImpl(SupportInfoModelInner innerObject,
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String productSku() {
+ return this.innerModel().productSku();
+ }
+
+ public String productSerial() {
+ return this.innerModel().productSerial();
+ }
+
+ public RegistrationStatus accountRegistrationStatus() {
+ return this.innerModel().accountRegistrationStatus();
+ }
+
+ public String accountId() {
+ return this.innerModel().accountId();
+ }
+
+ public EnableStatus freeTrial() {
+ return this.innerModel().freeTrial();
+ }
+
+ public Integer freeTrialDaysLeft() {
+ return this.innerModel().freeTrialDaysLeft();
+ }
+
+ public Integer freeTrialCreditLeft() {
+ return this.innerModel().freeTrialCreditLeft();
+ }
+
+ public String helpUrl() {
+ return this.innerModel().helpUrl();
+ }
+
+ public String supportUrl() {
+ return this.innerModel().supportUrl();
+ }
+
+ public String registerUrl() {
+ return this.innerModel().registerUrl();
+ }
+
+ public String hubUrl() {
+ return this.innerModel().hubUrl();
+ }
+
+ public Integer credits() {
+ return this.innerModel().credits();
+ }
+
+ public Integer monthlyCreditLeft() {
+ return this.innerModel().monthlyCreditLeft();
+ }
+
+ public String startDateForCredits() {
+ return this.innerModel().startDateForCredits();
+ }
+
+ public String endDateForCredits() {
+ return this.innerModel().endDateForCredits();
+ }
+
+ public SupportInfoModelInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CloudManagerTenant.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CloudManagerTenant.java
new file mode 100644
index 0000000000000..bcff3eacd3834
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CloudManagerTenant.java
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner;
+
+/**
+ * An immutable client-side representation of CloudManagerTenant.
+ */
+public interface CloudManagerTenant {
+ /**
+ * Gets the name property: Name of Cloud Manager Tenant.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the tenantId property: Cloud Manager Tenant ID.
+ *
+ * @return the tenantId value.
+ */
+ String tenantId();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner object.
+ *
+ * @return the inner object.
+ */
+ CloudManagerTenantInner innerModel();
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Country.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Country.java
index fe5d26a16350d..637f4ea3bd80c 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Country.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Country.java
@@ -4,84 +4,30 @@
package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner;
/**
- * Country Description.
+ * An immutable client-side representation of Country.
*/
-@Fluent
-public final class Country {
- /*
- * country code
- */
- @JsonProperty(value = "code", required = true)
- private String code;
-
- /*
- * code description
- */
- @JsonProperty(value = "description")
- private String description;
-
+public interface Country {
/**
- * Creates an instance of Country class.
- */
- public Country() {
- }
-
- /**
- * Get the code property: country code.
+ * Gets the code property: country code.
*
* @return the code value.
*/
- public String code() {
- return this.code;
- }
-
- /**
- * Set the code property: country code.
- *
- * @param code the code value to set.
- * @return the Country object itself.
- */
- public Country withCode(String code) {
- this.code = code;
- return this;
- }
+ String code();
/**
- * Get the description property: code description.
+ * Gets the description property: code description.
*
* @return the description value.
*/
- public String description() {
- return this.description;
- }
-
- /**
- * Set the description property: code description.
- *
- * @param description the description value to set.
- * @return the Country object itself.
- */
- public Country withDescription(String description) {
- this.description = description;
- return this;
- }
+ String description();
/**
- * Validates the instance.
+ * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner object.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @return the inner object.
*/
- public void validate() {
- if (code() == null) {
- throw LOGGER
- .logExceptionAsError(new IllegalArgumentException("Missing required property code in model Country"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(Country.class);
+ CountryInner innerModel();
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnableStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnableStatus.java
new file mode 100644
index 0000000000000..34107de8a39e5
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnableStatus.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * Enable status.
+ */
+public final class EnableStatus extends ExpandableStringEnum {
+ /**
+ * Static value Enabled for EnableStatus.
+ */
+ public static final EnableStatus ENABLED = fromString("Enabled");
+
+ /**
+ * Static value Disabled for EnableStatus.
+ */
+ public static final EnableStatus DISABLED = fromString("Disabled");
+
+ /**
+ * Creates a new instance of EnableStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public EnableStatus() {
+ }
+
+ /**
+ * Creates or finds a EnableStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding EnableStatus.
+ */
+ @JsonCreator
+ public static EnableStatus fromString(String name) {
+ return fromString(name, EnableStatus.class);
+ }
+
+ /**
+ * Gets known EnableStatus values.
+ *
+ * @return known EnableStatus values.
+ */
+ public static Collection values() {
+ return values(EnableStatus.class);
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResource.java
index d61092e801a89..46ae9a47da0f2 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResource.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResource.java
@@ -87,6 +87,13 @@ public interface FirewallResource {
*/
BooleanEnum isPanoramaManaged();
+ /**
+ * Gets the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ *
+ * @return the isStrataCloudManaged value.
+ */
+ BooleanEnum isStrataCloudManaged();
+
/**
* Gets the panoramaConfig property: Panorama Configuration.
*
@@ -94,6 +101,14 @@ public interface FirewallResource {
*/
PanoramaConfig panoramaConfig();
+ /**
+ * Gets the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ *
+ * @return the strataCloudManagerConfig value.
+ */
+ StrataCloudManagerConfig strataCloudManagerConfig();
+
/**
* Gets the associatedRulestack property: Associated Rulestack.
*
@@ -272,8 +287,10 @@ interface WithMarketplaceDetails {
* The stage of the FirewallResource definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity,
- DefinitionStages.WithPanEtag, DefinitionStages.WithIsPanoramaManaged, DefinitionStages.WithPanoramaConfig,
+ interface WithCreate
+ extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithPanEtag,
+ DefinitionStages.WithIsPanoramaManaged, DefinitionStages.WithIsStrataCloudManaged,
+ DefinitionStages.WithPanoramaConfig, DefinitionStages.WithStrataCloudManagerConfig,
DefinitionStages.WithAssociatedRulestack, DefinitionStages.WithFrontEndSettings {
/**
* Executes the create request.
@@ -344,6 +361,20 @@ interface WithIsPanoramaManaged {
WithCreate withIsPanoramaManaged(BooleanEnum isPanoramaManaged);
}
+ /**
+ * The stage of the FirewallResource definition allowing to specify isStrataCloudManaged.
+ */
+ interface WithIsStrataCloudManaged {
+ /**
+ * Specifies the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be
+ * CloudSec managed.
+ *
+ * @param isStrataCloudManaged Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ * @return the next definition stage.
+ */
+ WithCreate withIsStrataCloudManaged(BooleanEnum isStrataCloudManaged);
+ }
+
/**
* The stage of the FirewallResource definition allowing to specify panoramaConfig.
*/
@@ -357,6 +388,21 @@ interface WithPanoramaConfig {
WithCreate withPanoramaConfig(PanoramaConfig panoramaConfig);
}
+ /**
+ * The stage of the FirewallResource definition allowing to specify strataCloudManagerConfig.
+ */
+ interface WithStrataCloudManagerConfig {
+ /**
+ * Specifies the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if
+ * Strata Cloud Manager is selected..
+ *
+ * @param strataCloudManagerConfig Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ * @return the next definition stage.
+ */
+ WithCreate withStrataCloudManagerConfig(StrataCloudManagerConfig strataCloudManagerConfig);
+ }
+
/**
* The stage of the FirewallResource definition allowing to specify associatedRulestack.
*/
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdateProperties.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdateProperties.java
index 6444aeb02b879..def2b55ff7bec 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdateProperties.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdateProperties.java
@@ -31,12 +31,24 @@ public final class FirewallResourceUpdateProperties {
@JsonProperty(value = "isPanoramaManaged")
private BooleanEnum isPanoramaManaged;
+ /*
+ * Strata Cloud Managed: Default is False. Default will be CloudSec managed
+ */
+ @JsonProperty(value = "isStrataCloudManaged")
+ private BooleanEnum isStrataCloudManaged;
+
/*
* Panorama Configuration
*/
@JsonProperty(value = "panoramaConfig")
private PanoramaConfig panoramaConfig;
+ /*
+ * Strata Cloud Manager Configuration, only applicable if Strata Cloud Manager is selected.
+ */
+ @JsonProperty(value = "strataCloudManagerConfig")
+ private StrataCloudManagerConfig strataCloudManagerConfig;
+
/*
* Associated Rulestack
*/
@@ -133,6 +145,26 @@ public FirewallResourceUpdateProperties withIsPanoramaManaged(BooleanEnum isPano
return this;
}
+ /**
+ * Get the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ *
+ * @return the isStrataCloudManaged value.
+ */
+ public BooleanEnum isStrataCloudManaged() {
+ return this.isStrataCloudManaged;
+ }
+
+ /**
+ * Set the isStrataCloudManaged property: Strata Cloud Managed: Default is False. Default will be CloudSec managed.
+ *
+ * @param isStrataCloudManaged the isStrataCloudManaged value to set.
+ * @return the FirewallResourceUpdateProperties object itself.
+ */
+ public FirewallResourceUpdateProperties withIsStrataCloudManaged(BooleanEnum isStrataCloudManaged) {
+ this.isStrataCloudManaged = isStrataCloudManaged;
+ return this;
+ }
+
/**
* Get the panoramaConfig property: Panorama Configuration.
*
@@ -153,6 +185,29 @@ public FirewallResourceUpdateProperties withPanoramaConfig(PanoramaConfig panora
return this;
}
+ /**
+ * Get the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ *
+ * @return the strataCloudManagerConfig value.
+ */
+ public StrataCloudManagerConfig strataCloudManagerConfig() {
+ return this.strataCloudManagerConfig;
+ }
+
+ /**
+ * Set the strataCloudManagerConfig property: Strata Cloud Manager Configuration, only applicable if Strata Cloud
+ * Manager is selected.
+ *
+ * @param strataCloudManagerConfig the strataCloudManagerConfig value to set.
+ * @return the FirewallResourceUpdateProperties object itself.
+ */
+ public FirewallResourceUpdateProperties
+ withStrataCloudManagerConfig(StrataCloudManagerConfig strataCloudManagerConfig) {
+ this.strataCloudManagerConfig = strataCloudManagerConfig;
+ return this;
+ }
+
/**
* Get the associatedRulestack property: Associated Rulestack.
*
@@ -265,6 +320,9 @@ public void validate() {
if (panoramaConfig() != null) {
panoramaConfig().validate();
}
+ if (strataCloudManagerConfig() != null) {
+ strataCloudManagerConfig().validate();
+ }
if (associatedRulestack() != null) {
associatedRulestack().validate();
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResource.java
index 1d1dadcfcf718..b77cbe392d2c4 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResource.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResource.java
@@ -74,6 +74,21 @@ public interface FirewallStatusResource {
*/
ReadOnlyProvisioningState provisioningState();
+ /**
+ * Gets the isStrataCloudManaged property: Strata Cloud Manager.
+ *
+ * @return the isStrataCloudManaged value.
+ */
+ BooleanEnum isStrataCloudManaged();
+
+ /**
+ * Gets the strataCloudManagerInfo property: This field is only present if Strata Cloud Manager is managing the
+ * policy for this firewall.
+ *
+ * @return the strataCloudManagerInfo value.
+ */
+ StrataCloudManagerInfo strataCloudManagerInfo();
+
/**
* Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusResourceInner object.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResource.java
index 4418a8a0982a2..5fad714d2a43a 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResource.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResource.java
@@ -509,53 +509,6 @@ interface WithProperties {
*/
SupportInfo getSupportInfo();
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param appIdVersion The appIdVersion parameter.
- * @param appPrefix The appPrefix parameter.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
- */
- Response listAppIdsWithResponse(String appIdVersion, String appPrefix, String skip, Integer top,
- Context context);
-
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- ListAppIdResponse listAppIds();
-
- /**
- * List of countries for Rulestack.
- *
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @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 countries Response Object along with {@link Response}.
- */
- Response listCountriesWithResponse(String skip, Integer top, Context context);
-
- /**
- * List of countries for Rulestack.
- *
- * @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 countries Response Object.
- */
- CountriesResponse listCountries();
-
/**
* List of Firewalls associated with Rulestack.
*
@@ -576,29 +529,6 @@ Response listAppIdsWithResponse(String appIdVersion, String a
*/
ListFirewallsResponse listFirewalls();
- /**
- * List predefined URL categories for rulestack.
- *
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @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 predefined url categories response along with {@link Response}.
- */
- Response listPredefinedUrlCategoriesWithResponse(String skip, Integer top,
- Context context);
-
- /**
- * List predefined URL categories for rulestack.
- *
- * @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 predefined url categories response.
- */
- PredefinedUrlCategoriesResponse listPredefinedUrlCategories();
-
/**
* Revert rulestack configuration.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestacks.java
index fcf633f2fc2cc..5196a6827ef4a 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestacks.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestacks.java
@@ -210,64 +210,6 @@ Response listAdvancedSecurityObjectsWithResponse(
AdvSecurityObjectListResponse listAdvancedSecurityObjects(String resourceGroupName, String localRulestackName,
AdvSecurityObjectTypeEnum type);
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param appIdVersion The appIdVersion parameter.
- * @param appPrefix The appPrefix parameter.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
- */
- Response listAppIdsWithResponse(String resourceGroupName, String localRulestackName,
- String appIdVersion, String appPrefix, String skip, Integer top, Context context);
-
- /**
- * List of AppIds for LocalRulestack ApiVersion.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- ListAppIdResponse listAppIds(String resourceGroupName, String localRulestackName);
-
- /**
- * List of countries for Rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @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 countries Response Object along with {@link Response}.
- */
- Response listCountriesWithResponse(String resourceGroupName, String localRulestackName,
- String skip, Integer top, Context context);
-
- /**
- * List of countries for Rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return countries Response Object.
- */
- CountriesResponse listCountries(String resourceGroupName, String localRulestackName);
-
/**
* List of Firewalls associated with Rulestack.
*
@@ -294,34 +236,6 @@ Response listFirewallsWithResponse(String resourceGroupNa
*/
ListFirewallsResponse listFirewalls(String resourceGroupName, String localRulestackName);
- /**
- * List predefined URL categories for rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @param skip The skip parameter.
- * @param top The top parameter.
- * @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 predefined url categories response along with {@link Response}.
- */
- Response listPredefinedUrlCategoriesWithResponse(String resourceGroupName,
- String localRulestackName, String skip, Integer top, Context context);
-
- /**
- * List predefined URL categories for rulestack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param localRulestackName LocalRulestack resource name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return predefined url categories response.
- */
- PredefinedUrlCategoriesResponse listPredefinedUrlCategories(String resourceGroupName, String localRulestackName);
-
/**
* List the security services for rulestack.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkProfile.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkProfile.java
index 99e23f773a177..584b3d262e3cc 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkProfile.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkProfile.java
@@ -56,6 +56,12 @@ public final class NetworkProfile {
@JsonProperty(value = "trustedRanges")
private List trustedRanges;
+ /*
+ * Array of ipv4 destination address for which source NAT is to be performed
+ */
+ @JsonProperty(value = "privateSourceNatRulesDestination")
+ private List privateSourceNatRulesDestination;
+
/**
* Creates an instance of NetworkProfile class.
*/
@@ -202,6 +208,28 @@ public NetworkProfile withTrustedRanges(List trustedRanges) {
return this;
}
+ /**
+ * Get the privateSourceNatRulesDestination property: Array of ipv4 destination address for which source NAT is to
+ * be performed.
+ *
+ * @return the privateSourceNatRulesDestination value.
+ */
+ public List privateSourceNatRulesDestination() {
+ return this.privateSourceNatRulesDestination;
+ }
+
+ /**
+ * Set the privateSourceNatRulesDestination property: Array of ipv4 destination address for which source NAT is to
+ * be performed.
+ *
+ * @param privateSourceNatRulesDestination the privateSourceNatRulesDestination value to set.
+ * @return the NetworkProfile object itself.
+ */
+ public NetworkProfile withPrivateSourceNatRulesDestination(List privateSourceNatRulesDestination) {
+ this.privateSourceNatRulesDestination = privateSourceNatRulesDestination;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PaloAltoNetworksCloudngfws.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PaloAltoNetworksCloudngfws.java
new file mode 100644
index 0000000000000..d3a02453a086a
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PaloAltoNetworksCloudngfws.java
@@ -0,0 +1,94 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import java.util.List;
+
+/**
+ * Resource collection API of PaloAltoNetworksCloudngfws.
+ */
+public interface PaloAltoNetworksCloudngfws {
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @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 create Product Serial Number Request status along with {@link Response}.
+ */
+ Response createProductSerialNumberWithResponse(Context context);
+
+ /**
+ * The createProductSerialNumber operation.
+ *
+ * @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 create Product Serial Number Request status.
+ */
+ ProductSerialNumberRequestStatus createProductSerialNumber();
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @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 array of CloudManagerTenant along with {@link Response}.
+ */
+ Response> listCloudManagerTenantsWithResponse(Context context);
+
+ /**
+ * The listCloudManagerTenants operation.
+ *
+ * @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 array of CloudManagerTenant.
+ */
+ List listCloudManagerTenants();
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @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 product serial and status for the service along with {@link Response}.
+ */
+ Response listProductSerialNumberStatusWithResponse(Context context);
+
+ /**
+ * The listProductSerialNumberStatus operation.
+ *
+ * @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 product serial and status for the service.
+ */
+ ProductSerialNumberStatus listProductSerialNumberStatus();
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @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 support information for the service along with {@link Response}.
+ */
+ Response listSupportInfoWithResponse(Context context);
+
+ /**
+ * The listSupportInfo operation.
+ *
+ * @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 support information for the service.
+ */
+ SupportInfoModel listSupportInfo();
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategory.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategory.java
index 02955895d864c..3145c6f809c5f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategory.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategory.java
@@ -4,88 +4,30 @@
package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner;
/**
- * Predefined URL category object.
+ * An immutable client-side representation of PredefinedUrlCategory.
*/
-@Fluent
-public final class PredefinedUrlCategory {
- /*
- * The action property.
- */
- @JsonProperty(value = "action", required = true)
- private String action;
-
- /*
- * The name property.
- */
- @JsonProperty(value = "name", required = true)
- private String name;
-
+public interface PredefinedUrlCategory {
/**
- * Creates an instance of PredefinedUrlCategory class.
- */
- public PredefinedUrlCategory() {
- }
-
- /**
- * Get the action property: The action property.
+ * Gets the action property: The action property.
*
* @return the action value.
*/
- public String action() {
- return this.action;
- }
-
- /**
- * Set the action property: The action property.
- *
- * @param action the action value to set.
- * @return the PredefinedUrlCategory object itself.
- */
- public PredefinedUrlCategory withAction(String action) {
- this.action = action;
- return this;
- }
+ String action();
/**
- * Get the name property: The name property.
+ * Gets the name property: The name property.
*
* @return the name value.
*/
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The name property.
- *
- * @param name the name value to set.
- * @return the PredefinedUrlCategory object itself.
- */
- public PredefinedUrlCategory withName(String name) {
- this.name = name;
- return this;
- }
+ String name();
/**
- * Validates the instance.
+ * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner object.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @return the inner object.
*/
- public void validate() {
- if (action() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property action in model PredefinedUrlCategory"));
- }
- if (name() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property name in model PredefinedUrlCategory"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(PredefinedUrlCategory.class);
+ PredefinedUrlCategoryInner innerModel();
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberRequestStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberRequestStatus.java
new file mode 100644
index 0000000000000..308529234d7a8
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberRequestStatus.java
@@ -0,0 +1,27 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner;
+
+/**
+ * An immutable client-side representation of ProductSerialNumberRequestStatus.
+ */
+public interface ProductSerialNumberRequestStatus {
+ /**
+ * Gets the status property: allocation status of the product serial number.
+ *
+ * @return the status value.
+ */
+ String status();
+
+ /**
+ * Gets the inner
+ * com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner object.
+ *
+ * @return the inner object.
+ */
+ ProductSerialNumberRequestStatusInner innerModel();
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberStatus.java
new file mode 100644
index 0000000000000..3a88e21785483
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberStatus.java
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner;
+
+/**
+ * An immutable client-side representation of ProductSerialNumberStatus.
+ */
+public interface ProductSerialNumberStatus {
+ /**
+ * Gets the serialNumber property: product Serial associated with given resource.
+ *
+ * @return the serialNumber value.
+ */
+ String serialNumber();
+
+ /**
+ * Gets the status property: allocation status of the product serial number.
+ *
+ * @return the status value.
+ */
+ ProductSerialStatusValues status();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner
+ * object.
+ *
+ * @return the inner object.
+ */
+ ProductSerialNumberStatusInner innerModel();
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialStatusValues.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialStatusValues.java
new file mode 100644
index 0000000000000..803c9ff3e136a
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialStatusValues.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * allocation status of the product serial number.
+ */
+public enum ProductSerialStatusValues {
+ /**
+ * Enum value Allocated.
+ */
+ ALLOCATED("Allocated"),
+
+ /**
+ * Enum value InProgress.
+ */
+ IN_PROGRESS("InProgress");
+
+ /**
+ * The actual serialized value for a ProductSerialStatusValues instance.
+ */
+ private final String value;
+
+ ProductSerialStatusValues(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a ProductSerialStatusValues instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed ProductSerialStatusValues object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static ProductSerialStatusValues fromString(String value) {
+ if (value == null) {
+ return null;
+ }
+ ProductSerialStatusValues[] items = ProductSerialStatusValues.values();
+ for (ProductSerialStatusValues item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RegistrationStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RegistrationStatus.java
new file mode 100644
index 0000000000000..6bab4c7ca2c19
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RegistrationStatus.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * Registration status.
+ */
+public final class RegistrationStatus extends ExpandableStringEnum {
+ /**
+ * Static value Registered for RegistrationStatus.
+ */
+ public static final RegistrationStatus REGISTERED = fromString("Registered");
+
+ /**
+ * Static value Not Registered for RegistrationStatus.
+ */
+ public static final RegistrationStatus NOT_REGISTERED = fromString("Not Registered");
+
+ /**
+ * Creates a new instance of RegistrationStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public RegistrationStatus() {
+ }
+
+ /**
+ * Creates or finds a RegistrationStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding RegistrationStatus.
+ */
+ @JsonCreator
+ public static RegistrationStatus fromString(String name) {
+ return fromString(name, RegistrationStatus.class);
+ }
+
+ /**
+ * Gets known RegistrationStatus values.
+ *
+ * @return known RegistrationStatus values.
+ */
+ public static Collection values() {
+ return values(RegistrationStatus.class);
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerConfig.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerConfig.java
new file mode 100644
index 0000000000000..afff91fa2a4f3
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerConfig.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * This field is only present if Strata Cloud Manager is managing the policy for this firewall.
+ */
+@Fluent
+public final class StrataCloudManagerConfig {
+ /*
+ * Strata Cloud Manager name which is intended to manage the policy for this firewall.
+ */
+ @JsonProperty(value = "cloudManagerName", required = true)
+ private String cloudManagerName;
+
+ /**
+ * Creates an instance of StrataCloudManagerConfig class.
+ */
+ public StrataCloudManagerConfig() {
+ }
+
+ /**
+ * Get the cloudManagerName property: Strata Cloud Manager name which is intended to manage the policy for this
+ * firewall.
+ *
+ * @return the cloudManagerName value.
+ */
+ public String cloudManagerName() {
+ return this.cloudManagerName;
+ }
+
+ /**
+ * Set the cloudManagerName property: Strata Cloud Manager name which is intended to manage the policy for this
+ * firewall.
+ *
+ * @param cloudManagerName the cloudManagerName value to set.
+ * @return the StrataCloudManagerConfig object itself.
+ */
+ public StrataCloudManagerConfig withCloudManagerName(String cloudManagerName) {
+ this.cloudManagerName = cloudManagerName;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (cloudManagerName() == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property cloudManagerName in model StrataCloudManagerConfig"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(StrataCloudManagerConfig.class);
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerInfo.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerInfo.java
new file mode 100644
index 0000000000000..583dac5895d5a
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerInfo.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Strata Cloud Manager Info.
+ */
+@Fluent
+public final class StrataCloudManagerInfo {
+ /*
+ * Strata Cloud Manager folder in which this firewall has been placed
+ */
+ @JsonProperty(value = "folderName")
+ private String folderName;
+
+ /*
+ * URL for Strata Cloud Manager
+ */
+ @JsonProperty(value = "hubUrl")
+ private String hubUrl;
+
+ /**
+ * Creates an instance of StrataCloudManagerInfo class.
+ */
+ public StrataCloudManagerInfo() {
+ }
+
+ /**
+ * Get the folderName property: Strata Cloud Manager folder in which this firewall has been placed.
+ *
+ * @return the folderName value.
+ */
+ public String folderName() {
+ return this.folderName;
+ }
+
+ /**
+ * Set the folderName property: Strata Cloud Manager folder in which this firewall has been placed.
+ *
+ * @param folderName the folderName value to set.
+ * @return the StrataCloudManagerInfo object itself.
+ */
+ public StrataCloudManagerInfo withFolderName(String folderName) {
+ this.folderName = folderName;
+ return this;
+ }
+
+ /**
+ * Get the hubUrl property: URL for Strata Cloud Manager.
+ *
+ * @return the hubUrl value.
+ */
+ public String hubUrl() {
+ return this.hubUrl;
+ }
+
+ /**
+ * Set the hubUrl property: URL for Strata Cloud Manager.
+ *
+ * @param hubUrl the hubUrl value to set.
+ * @return the StrataCloudManagerInfo object itself.
+ */
+ public StrataCloudManagerInfo withHubUrl(String hubUrl) {
+ this.hubUrl = hubUrl;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfoModel.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfoModel.java
new file mode 100644
index 0000000000000..cc508a88cfcc8
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfoModel.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.models;
+
+import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner;
+
+/**
+ * An immutable client-side representation of SupportInfoModel.
+ */
+public interface SupportInfoModel {
+ /**
+ * Gets the productSku property: product SKU associated with given resource.
+ *
+ * @return the productSku value.
+ */
+ String productSku();
+
+ /**
+ * Gets the productSerial property: product Serial associated with given resource.
+ *
+ * @return the productSerial value.
+ */
+ String productSerial();
+
+ /**
+ * Gets the accountRegistrationStatus property: account registered in Customer Support Portal.
+ *
+ * @return the accountRegistrationStatus value.
+ */
+ RegistrationStatus accountRegistrationStatus();
+
+ /**
+ * Gets the accountId property: Support account associated with given resource.
+ *
+ * @return the accountId value.
+ */
+ String accountId();
+
+ /**
+ * Gets the freeTrial property: Product usage is in free trial period.
+ *
+ * @return the freeTrial value.
+ */
+ EnableStatus freeTrial();
+
+ /**
+ * Gets the freeTrialDaysLeft property: Free trial days remaining.
+ *
+ * @return the freeTrialDaysLeft value.
+ */
+ Integer freeTrialDaysLeft();
+
+ /**
+ * Gets the freeTrialCreditLeft property: Free trial credit remaining.
+ *
+ * @return the freeTrialCreditLeft value.
+ */
+ Integer freeTrialCreditLeft();
+
+ /**
+ * Gets the helpUrl property: URL for paloaltonetworks live community.
+ *
+ * @return the helpUrl value.
+ */
+ String helpUrl();
+
+ /**
+ * Gets the supportUrl property: URL for paloaltonetworks Customer Service Portal.
+ *
+ * @return the supportUrl value.
+ */
+ String supportUrl();
+
+ /**
+ * Gets the registerUrl property: URL for registering product in paloaltonetworks Customer Service Portal.
+ *
+ * @return the registerUrl value.
+ */
+ String registerUrl();
+
+ /**
+ * Gets the hubUrl property: URL for Strata Cloud Manager.
+ *
+ * @return the hubUrl value.
+ */
+ String hubUrl();
+
+ /**
+ * Gets the credits property: credits purchased, unit per hour.
+ *
+ * @return the credits value.
+ */
+ Integer credits();
+
+ /**
+ * Gets the monthlyCreditLeft property: monthly credit is computed as credits * days in calendar month.
+ *
+ * @return the monthlyCreditLeft value.
+ */
+ Integer monthlyCreditLeft();
+
+ /**
+ * Gets the startDateForCredits property: date in format yyyy-mm-dd.
+ *
+ * @return the startDateForCredits value.
+ */
+ String startDateForCredits();
+
+ /**
+ * Gets the endDateForCredits property: date in format yyyy-mm-dd.
+ *
+ * @return the endDateForCredits value.
+ */
+ String endDateForCredits();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner object.
+ *
+ * @return the inner object.
+ */
+ SupportInfoModelInner innerModel();
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/module-info.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/module-info.java
index 2020691b9266d..9266047198682 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/module-info.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/module-info.java
@@ -4,13 +4,10 @@
module com.azure.resourcemanager.paloaltonetworks.ngfw {
requires transitive com.azure.core.management;
-
exports com.azure.resourcemanager.paloaltonetworks.ngfw;
exports com.azure.resourcemanager.paloaltonetworks.ngfw.fluent;
exports com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;
exports com.azure.resourcemanager.paloaltonetworks.ngfw.models;
-
- opens com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models
- to com.azure.core, com.fasterxml.jackson.databind;
+ opens com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models to com.azure.core, com.fasterxml.jackson.databind;
opens com.azure.resourcemanager.paloaltonetworks.ngfw.models to com.azure.core, com.fasterxml.jackson.databind;
}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/proxy-config.json b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/proxy-config.json
index 83664ba2b1282..bd525f911faa5 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/proxy-config.json
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/proxy-config.json
@@ -1 +1 @@
-[ [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.GlobalRulestacksClientImpl$GlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectGlobalRulestacksClientImpl$CertificateObjectGlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListGlobalRulestacksClientImpl$FqdnListGlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PostRulesClientImpl$PostRulesService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListGlobalRulestacksClientImpl$PrefixListGlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PreRulesClientImpl$PreRulesService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallsClientImpl$FirewallsService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulestacksClientImpl$LocalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallStatusClientImpl$FirewallStatusService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectLocalRulestacksClientImpl$CertificateObjectLocalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListLocalRulestacksClientImpl$FqdnListLocalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulesClientImpl$LocalRulesService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListLocalRulestacksClientImpl$PrefixListLocalRulestacksService" ] ]
\ No newline at end of file
+[ [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.GlobalRulestacksClientImpl$GlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectGlobalRulestacksClientImpl$CertificateObjectGlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListGlobalRulestacksClientImpl$FqdnListGlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PostRulesClientImpl$PostRulesService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListGlobalRulestacksClientImpl$PrefixListGlobalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PreRulesClientImpl$PreRulesService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwsClientImpl$PaloAltoNetworksCloudngfwsService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallsClientImpl$FirewallsService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulestacksClientImpl$LocalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallStatusClientImpl$FirewallStatusService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectLocalRulestacksClientImpl$CertificateObjectLocalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListLocalRulestacksClientImpl$FqdnListLocalRulestacksService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulesClientImpl$LocalRulesService" ], [ "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListLocalRulestacksClientImpl$PrefixListLocalRulestacksService" ] ]
\ No newline at end of file
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/reflect-config.json b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/reflect-config.json
index 9964a6ac5c20b..453e93436eca9 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/reflect-config.json
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-paloaltonetworks-ngfw/reflect-config.json
@@ -99,7 +99,7 @@
"allDeclaredFields" : true,
"allDeclaredMethods" : true
}, {
- "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.Country",
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner",
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
@@ -114,7 +114,7 @@
"allDeclaredFields" : true,
"allDeclaredMethods" : true
}, {
- "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory",
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner",
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
@@ -223,6 +223,11 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
}, {
"name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallResourceListResult",
"allDeclaredConstructors" : true,
@@ -268,6 +273,11 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerConfig",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
}, {
"name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.RulestackDetails",
"allDeclaredConstructors" : true,
@@ -298,6 +308,21 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
}, {
"name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceListResult",
"allDeclaredConstructors" : true,
@@ -378,6 +403,11 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerInfo",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
}, {
"name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdate",
"allDeclaredConstructors" : true,
@@ -528,6 +558,16 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.RegistrationStatus",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnableStatus",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
}, {
"name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogType",
"allDeclaredConstructors" : true,
@@ -553,4 +593,9 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
} ]
\ No newline at end of file
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackCreateOrUpdateSamples.java
index 3ee73e181679f..8b41d735abe1d 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackCreateOrUpdateSamples.java
@@ -13,7 +13,7 @@
public final class CertificateObjectGlobalRulestackCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
@@ -30,7 +30,7 @@ public static void certificateObjectGlobalRulestackCreateOrUpdateMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackDeleteSamples.java
index 8fa4c34622c85..81e65a343da63 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackDeleteSamples.java
@@ -10,7 +10,7 @@
public final class CertificateObjectGlobalRulestackDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void certificateObjectGlobalRulestackDeleteMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackGetSamples.java
index 87997622323a8..94f3d07599fe7 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackGetSamples.java
@@ -10,7 +10,7 @@
public final class CertificateObjectGlobalRulestackGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void certificateObjectGlobalRulestackGetMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackListSamples.java
index c7a07830f9bac..9485c62b7752d 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackListSamples.java
@@ -10,7 +10,7 @@
public final class CertificateObjectGlobalRulestackListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_List_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void certificateObjectGlobalRulestackListMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackCreateOrUpdateSamples.java
index 42cbaad1ad1ce..805fbdfc0e712 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackCreateOrUpdateSamples.java
@@ -12,7 +12,7 @@
public final class CertificateObjectLocalRulestackCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
@@ -28,7 +28,7 @@ public static void certificateObjectLocalRulestackCreateOrUpdateMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackDeleteSamples.java
index 82e7b343f1fb6..b57ac59cd3d03 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackDeleteSamples.java
@@ -10,7 +10,7 @@
public final class CertificateObjectLocalRulestackDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_Delete_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void certificateObjectLocalRulestackDeleteMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackGetSamples.java
index 7cfe6a73a20a8..4f13f6b0c6c94 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackGetSamples.java
@@ -10,7 +10,7 @@
public final class CertificateObjectLocalRulestackGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_Get_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void certificateObjectLocalRulestackGetMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackListByLocalRulestacksSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackListByLocalRulestacksSamples.java
index dffe35e7c0a8c..866367bdab1d6 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackListByLocalRulestacksSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackListByLocalRulestacksSamples.java
@@ -10,7 +10,7 @@
public final class CertificateObjectLocalRulestackListByLocalRulestacksSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void certificateObjectLocalRulestackListByLocalRulestacksMaximumSe
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusGetSamples.java
index e1314ab3ed3bc..4ab71f52a7548 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusGetSamples.java
@@ -10,7 +10,7 @@
public final class FirewallStatusGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FirewallStatus_Get_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void firewallStatusGetMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FirewallStatus_Get_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusListByFirewallsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusListByFirewallsSamples.java
index ac2fffbaad9e5..e6ef4fcc89439 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusListByFirewallsSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusListByFirewallsSamples.java
@@ -10,7 +10,7 @@
public final class FirewallStatusListByFirewallsSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FirewallStatus_ListByFirewalls_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void firewallStatusListByFirewallsMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FirewallStatus_ListByFirewalls_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsCreateOrUpdateSamples.java
index 7a844c0ee34f9..0b8b9588fc08e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsCreateOrUpdateSamples.java
@@ -38,7 +38,7 @@
public final class FirewallsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
@@ -84,7 +84,8 @@ public static void firewallsCreateOrUpdateMaximumSetGen(
.withEgressNatIp(Arrays.asList(new IpAddress().withResourceId(
"/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
.withAddress("20.22.92.111")))
- .withTrustedRanges(Arrays.asList("20.22.92.11")))
+ .withTrustedRanges(Arrays.asList("20.22.92.11"))
+ .withPrivateSourceNatRulesDestination(Arrays.asList("20.22.92.11")))
.withDnsSettings(new DnsSettings().withEnableDnsProxy(DnsProxy.DISABLED)
.withEnabledDnsType(EnabledDnsType.CUSTOM)
.withDnsServers(Arrays.asList(new IpAddress().withResourceId(
@@ -119,7 +120,7 @@ public static void firewallsCreateOrUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsDeleteSamples.java
index fc1658fcc6e9a..41d20ae585a7f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsDeleteSamples.java
@@ -10,7 +10,7 @@
public final class FirewallsDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_Delete_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void firewallsDeleteMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_Delete_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetByResourceGroupSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetByResourceGroupSamples.java
index 4ca4ad49a130d..ea0bff3bd4a0f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetByResourceGroupSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class FirewallsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_Get_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public final class FirewallsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_Get_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetGlobalRulestackSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetGlobalRulestackSamples.java
index d8026fbc71f49..f4b8e0833f22f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetGlobalRulestackSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetGlobalRulestackSamples.java
@@ -10,7 +10,7 @@
public final class FirewallsGetGlobalRulestackSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_getGlobalRulestack_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void firewallsGetGlobalRulestackMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_getGlobalRulestack_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetLogProfileSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetLogProfileSamples.java
index bf19f34d2bf3f..f79c615fbf72c 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetLogProfileSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetLogProfileSamples.java
@@ -10,7 +10,7 @@
public final class FirewallsGetLogProfileSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_getLogProfile_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void firewallsGetLogProfileMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_getLogProfile_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoSamples.java
index 281c1a412e7cd..86924c4c84fb1 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoSamples.java
@@ -10,7 +10,7 @@
public final class FirewallsGetSupportInfoSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_getSupportInfo_MinimumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void firewallsGetSupportInfoMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_getSupportInfo_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListByResourceGroupSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListByResourceGroupSamples.java
index 150fd82a54cd4..356e8dd7d9c83 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListByResourceGroupSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class FirewallsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void firewallsListByResourceGroupMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListSamples.java
index 8938a4e7d3b43..24aeb725b6c01 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsListSamples.java
@@ -10,7 +10,7 @@
public final class FirewallsListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_ListBySubscription_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void firewallsListBySubscriptionMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_ListBySubscription_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsSaveLogProfileSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsSaveLogProfileSamples.java
index 494bdde5b8887..ba3c4ae31a19b 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsSaveLogProfileSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsSaveLogProfileSamples.java
@@ -19,7 +19,7 @@
public final class FirewallsSaveLogProfileSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_saveLogProfile_MaximumSet_Gen.json
*/
/**
@@ -70,7 +70,7 @@ public static void firewallsSaveLogProfileMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_saveLogProfile_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsUpdateSamples.java
index 588e982f7104e..d8eee41687288 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsUpdateSamples.java
@@ -40,7 +40,7 @@
public final class FirewallsUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_Update_MinimumSet_Gen.json
*/
/**
@@ -57,7 +57,7 @@ public static void firewallsUpdateMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Firewalls_Update_MaximumSet_Gen.json
*/
/**
@@ -110,7 +110,8 @@ public static void firewallsUpdateMaximumSetGen(
.withEgressNatIp(Arrays.asList(new IpAddress().withResourceId(
"/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
.withAddress("20.22.92.111")))
- .withTrustedRanges(Arrays.asList("20.22.92.11")))
+ .withTrustedRanges(Arrays.asList("20.22.92.11"))
+ .withPrivateSourceNatRulesDestination(Arrays.asList("20.22.92.11")))
.withIsPanoramaManaged(BooleanEnum.TRUE)
.withPanoramaConfig(new PanoramaConfig().withConfigString("bas64EncodedString"))
.withAssociatedRulestack(new RulestackDetails().withResourceId("aaaaaaaaaa")
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackCreateOrUpdateSamples.java
index 2f32a027c03a0..bf8f3421699bf 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackCreateOrUpdateSamples.java
@@ -13,7 +13,7 @@
public final class FqdnListGlobalRulestackCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
@@ -32,7 +32,7 @@ public static void fqdnListGlobalRulestackCreateOrUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackDeleteSamples.java
index aa4190d15df1d..9f238b55f0daf 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackDeleteSamples.java
@@ -10,7 +10,7 @@
public final class FqdnListGlobalRulestackDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void fqdnListGlobalRulestackDeleteMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackGetSamples.java
index 862d063ec8edd..55f07a2d6cbc6 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackGetSamples.java
@@ -10,7 +10,7 @@
public final class FqdnListGlobalRulestackGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void fqdnListGlobalRulestackGetMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackListSamples.java
index 12cefe1603aef..427a791c1348f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackListSamples.java
@@ -10,7 +10,7 @@
public final class FqdnListGlobalRulestackListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_List_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void fqdnListGlobalRulestackListMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListGlobalRulestack_List_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackCreateOrUpdateSamples.java
index c6c2b6fd2067f..af6e590305882 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackCreateOrUpdateSamples.java
@@ -12,7 +12,7 @@
public final class FqdnListLocalRulestackCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
@@ -29,7 +29,7 @@ public static void fqdnListLocalRulestackCreateOrUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackDeleteSamples.java
index 1d8bed649c13f..78e53c9742682 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackDeleteSamples.java
@@ -10,7 +10,7 @@
public final class FqdnListLocalRulestackDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_Delete_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void fqdnListLocalRulestackDeleteMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_Delete_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackGetSamples.java
index eb7e012212246..3c8794a7f3d13 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackGetSamples.java
@@ -10,7 +10,7 @@
public final class FqdnListLocalRulestackGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_Get_MinimumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void fqdnListLocalRulestackGetMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_Get_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackListByLocalRulestacksSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackListByLocalRulestacksSamples.java
index 67355c6ef4b12..cba9d77236f5f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackListByLocalRulestacksSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackListByLocalRulestacksSamples.java
@@ -10,7 +10,7 @@
public final class FqdnListLocalRulestackListByLocalRulestacksSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void fqdnListLocalRulestackListByLocalRulestacksMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCommitSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCommitSamples.java
index 65ff401b21d41..62923c4516d86 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCommitSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCommitSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackCommitSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_commit_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackCommitMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_commit_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCreateOrUpdateSamples.java
index d5a6755219bf1..127df28c1c2c2 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackCreateOrUpdateSamples.java
@@ -21,7 +21,7 @@
public final class GlobalRulestackCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
@@ -37,7 +37,7 @@ public static void globalRulestackCreateOrUpdateMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackDeleteSamples.java
index f2111a96e14a5..13947d97538f5 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackDeleteSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackDeleteMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetChangeLogSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetChangeLogSamples.java
index 65e436efe4b71..42e1b64cd0856 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetChangeLogSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetChangeLogSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackGetChangeLogSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_getChangeLog_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackGetChangeLogMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_getChangeLog_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetSamples.java
index a71f2bc283b2d..0ee5fe411503b 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackGetSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackGetMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAdvancedSecurityObjectsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAdvancedSecurityObjectsSamples.java
index 00f2d4b5068d3..9164e677918ec 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAdvancedSecurityObjectsSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAdvancedSecurityObjectsSamples.java
@@ -12,7 +12,7 @@
public final class GlobalRulestackListAdvancedSecurityObjectsSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen.json
*/
/**
@@ -28,7 +28,7 @@ public static void globalRulestackListAdvancedSecurityObjectsMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAppIdsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAppIdsSamples.java
index 7064de24c2dcc..a2ff33fa711df 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAppIdsSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListAppIdsSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackListAppIdsSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listAppIds_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void globalRulestackListAppIdsMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listAppIds_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListCountriesSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListCountriesSamples.java
index 5f6667d9cb8bf..a2b460aac0d6f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListCountriesSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListCountriesSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackListCountriesSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listCountries_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackListCountriesMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listCountries_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListFirewallsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListFirewallsSamples.java
index f9babb35a6f9a..af9cdb1704cff 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListFirewallsSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListFirewallsSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackListFirewallsSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listFirewalls_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackListFirewallsMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listFirewalls_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListPredefinedUrlCategoriesSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListPredefinedUrlCategoriesSamples.java
index cf798257af6b5..71f05343325d5 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListPredefinedUrlCategoriesSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListPredefinedUrlCategoriesSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackListPredefinedUrlCategoriesSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void globalRulestackListPredefinedUrlCategoriesMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSamples.java
index 4067eb3403846..d966d5c6d699d 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_List_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackListMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_List_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSecurityServicesSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSecurityServicesSamples.java
index a3bc83d2a7478..15b871098102f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSecurityServicesSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackListSecurityServicesSamples.java
@@ -12,7 +12,7 @@
public final class GlobalRulestackListSecurityServicesSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listSecurityServices_MinimumSet_Gen.json
*/
/**
@@ -28,7 +28,7 @@ public static void globalRulestackListSecurityServicesMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_listSecurityServices_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackRevertSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackRevertSamples.java
index 2b6498cc18326..b408c3218c7f5 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackRevertSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackRevertSamples.java
@@ -10,7 +10,7 @@
public final class GlobalRulestackRevertSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_revert_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void globalRulestackRevertMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_revert_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackUpdateSamples.java
index 5a65075ce0116..212cd2228b1cf 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackUpdateSamples.java
@@ -22,7 +22,7 @@
public final class GlobalRulestackUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_Update_MaximumSet_Gen.json
*/
/**
@@ -53,7 +53,7 @@ public static void globalRulestackUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* GlobalRulestack_Update_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesCreateOrUpdateSamples.java
index ea33067c9c877..ae5dd78f38631 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesCreateOrUpdateSamples.java
@@ -20,7 +20,7 @@
public final class LocalRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
@@ -36,7 +36,7 @@ public static void localRulesCreateOrUpdateMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesDeleteSamples.java
index 4a4764efca3e4..4a1857af83c02 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesDeleteSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_Delete_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulesDeleteMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_Delete_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetCountersSamples.java
index b887439863094..6b1c67eeb4ef7 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetCountersSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulesGetCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_getCounters_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void localRulesGetCountersMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_getCounters_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetSamples.java
index 42cbe0e513db9..1d8e245b994f2 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulesGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_Get_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulesGetMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_Get_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesListByLocalRulestacksSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesListByLocalRulestacksSamples.java
index b345818dfb43e..2520dbab8cfc9 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesListByLocalRulestacksSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesListByLocalRulestacksSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulesListByLocalRulestacksSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulesListByLocalRulestacksMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesRefreshCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesRefreshCountersSamples.java
index ba8d883266bf4..8670b16b7f313 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesRefreshCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesRefreshCountersSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulesRefreshCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_refreshCounters_MinimumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void localRulesRefreshCountersMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_refreshCounters_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesResetCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesResetCountersSamples.java
index a9b9f51210485..83a4dd8910327 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesResetCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesResetCountersSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulesResetCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_resetCounters_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void localRulesResetCountersMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRules_resetCounters_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCommitSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCommitSamples.java
index 5b766ee151cbc..f170dec6c2ab6 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCommitSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCommitSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksCommitSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_commit_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksCommitMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_commit_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCreateOrUpdateSamples.java
index dae15a89792e5..505e1ed74b04d 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCreateOrUpdateSamples.java
@@ -20,7 +20,7 @@
public final class LocalRulestacksCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
@@ -35,7 +35,7 @@ public static void localRulestacksCreateOrUpdateMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksDeleteSamples.java
index c66779921336e..1676014d1b4d2 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksDeleteSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_Delete_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksDeleteMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_Delete_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetByResourceGroupSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetByResourceGroupSamples.java
index 4d1f5b3580cbc..85545782f360d 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetByResourceGroupSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_Get_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksGetMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_Get_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetChangeLogSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetChangeLogSamples.java
index 469aaeda0345e..6480b7a615cf0 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetChangeLogSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetChangeLogSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksGetChangeLogSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_getChangeLog_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksGetChangeLogMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_getChangeLog_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetSupportInfoSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetSupportInfoSamples.java
index ab2df1a4a01e5..2ab966c21e00a 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetSupportInfoSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetSupportInfoSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksGetSupportInfoSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_getSupportInfo_MinimumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void localRulestacksGetSupportInfoMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_getSupportInfo_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAdvancedSecurityObjectsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAdvancedSecurityObjectsSamples.java
index 92dd644d7bf22..7dbe12d5dc101 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAdvancedSecurityObjectsSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAdvancedSecurityObjectsSamples.java
@@ -12,7 +12,7 @@
public final class LocalRulestacksListAdvancedSecurityObjectsSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen.json
*/
/**
@@ -28,7 +28,7 @@ public static void localRulestacksListAdvancedSecurityObjectsMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsSamples.java
deleted file mode 100644
index 715085ab650de..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsSamples.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-/**
- * Samples for LocalRulestacks ListAppIds.
- */
-public final class LocalRulestacksListAppIdsSamples {
- /*
- * x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
- * LocalRulestacks_listAppIds_MaximumSet_Gen.json
- */
- /**
- * Sample code: LocalRulestacks_listAppIds_MaximumSet_Gen.
- *
- * @param manager Entry point to PaloAltoNetworksNgfwManager.
- */
- public static void localRulestacksListAppIdsMaximumSetGen(
- com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listAppIdsWithResponse("rgopenapi", "lrs1", "8543", "pref", "a6a321", 20,
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
- * LocalRulestacks_listAppIds_MinimumSet_Gen.json
- */
- /**
- * Sample code: LocalRulestacks_listAppIds_MinimumSet_Gen.
- *
- * @param manager Entry point to PaloAltoNetworksNgfwManager.
- */
- public static void localRulestacksListAppIdsMinimumSetGen(
- com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listAppIdsWithResponse("rgopenapi", "lrs1", null, null, null, null,
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListByResourceGroupSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListByResourceGroupSamples.java
index 36ae75ce3cfc6..d37769aa01313 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListByResourceGroupSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksListByResourceGroupMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListCountriesSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListCountriesSamples.java
deleted file mode 100644
index 7d1368180c9ba..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListCountriesSamples.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-/**
- * Samples for LocalRulestacks ListCountries.
- */
-public final class LocalRulestacksListCountriesSamples {
- /*
- * x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
- * LocalRulestacks_listCountries_MaximumSet_Gen.json
- */
- /**
- * Sample code: LocalRulestacks_listCountries_MaximumSet_Gen.
- *
- * @param manager Entry point to PaloAltoNetworksNgfwManager.
- */
- public static void localRulestacksListCountriesMaximumSetGen(
- com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listCountriesWithResponse("rgopenapi", "lrs1", "a6a321", 20,
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
- * LocalRulestacks_listCountries_MinimumSet_Gen.json
- */
- /**
- * Sample code: LocalRulestacks_listCountries_MinimumSet_Gen.
- *
- * @param manager Entry point to PaloAltoNetworksNgfwManager.
- */
- public static void localRulestacksListCountriesMinimumSetGen(
- com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listCountriesWithResponse("rgopenapi", "lrs1", null, null,
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListFirewallsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListFirewallsSamples.java
index b908aba96eb38..f4777eb4d63e6 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListFirewallsSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListFirewallsSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksListFirewallsSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_listFirewalls_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksListFirewallsMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_listFirewalls_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesSamples.java
deleted file mode 100644
index c95453b5640ee..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesSamples.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-/**
- * Samples for LocalRulestacks ListPredefinedUrlCategories.
- */
-public final class LocalRulestacksListPredefinedUrlCategoriesSamples {
- /*
- * x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
- * LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.json
- */
- /**
- * Sample code: LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.
- *
- * @param manager Entry point to PaloAltoNetworksNgfwManager.
- */
- public static void localRulestacksListPredefinedUrlCategoriesMinimumSetGen(
- com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", null, null,
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
- * LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen.json
- */
- /**
- * Sample code: LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen.
- *
- * @param manager Entry point to PaloAltoNetworksNgfwManager.
- */
- public static void localRulestacksListPredefinedUrlCategoriesMaximumSetGen(
- com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
- manager.localRulestacks().listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", "a6a321", 20,
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSamples.java
index 2eda00bc2890e..823d040c8242e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_ListBySubscription_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksListBySubscriptionMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_ListBySubscription_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSecurityServicesSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSecurityServicesSamples.java
index 58d1a8200a2f4..6c43d43b600b6 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSecurityServicesSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSecurityServicesSamples.java
@@ -12,7 +12,7 @@
public final class LocalRulestacksListSecurityServicesSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_listSecurityServices_MinimumSet_Gen.json
*/
/**
@@ -28,7 +28,7 @@ public static void localRulestacksListSecurityServicesMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_listSecurityServices_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksRevertSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksRevertSamples.java
index 19a14ec5181ef..338d7e710cb4b 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksRevertSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksRevertSamples.java
@@ -10,7 +10,7 @@
public final class LocalRulestacksRevertSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_revert_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void localRulestacksRevertMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_revert_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksUpdateSamples.java
index afffafec77aea..05fda4af20768 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksUpdateSamples.java
@@ -22,7 +22,7 @@
public final class LocalRulestacksUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_Update_MaximumSet_Gen.json
*/
/**
@@ -54,7 +54,7 @@ public static void localRulestacksUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* LocalRulestacks_Update_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationsListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationsListSamples.java
index 9e24a803b4bc5..78df0556bc445 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationsListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationsListSamples.java
@@ -10,7 +10,7 @@
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Operations_List_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void operationsListMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* Operations_List_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwCreateProductSerialNumberSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwCreateProductSerialNumberSamples.java
new file mode 100644
index 0000000000000..e5577cda5a3e4
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwCreateProductSerialNumberSamples.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
+
+/**
+ * Samples for PaloAltoNetworksCloudngfw CreateProductSerialNumber.
+ */
+public final class PaloAltoNetworksCloudngfwCreateProductSerialNumberSamples {
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_createProductSerialNumber_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_createProductSerialNumber_MaximumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwCreateProductSerialNumberMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_createProductSerialNumber_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_createProductSerialNumber_MinimumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwCreateProductSerialNumberMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListCloudManagerTenantsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListCloudManagerTenantsSamples.java
new file mode 100644
index 0000000000000..5f33936cff1e7
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListCloudManagerTenantsSamples.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
+
+/**
+ * Samples for PaloAltoNetworksCloudngfw ListCloudManagerTenants.
+ */
+public final class PaloAltoNetworksCloudngfwListCloudManagerTenantsSamples {
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listCloudManagerTenants_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listCloudManagerTenants_MaximumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListCloudManagerTenantsMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listCloudManagerTenants_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listCloudManagerTenants_MinimumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListCloudManagerTenantsMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListProductSerialNumberStatusSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListProductSerialNumberStatusSamples.java
new file mode 100644
index 0000000000000..14de92ce9ca2e
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListProductSerialNumberStatusSamples.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
+
+/**
+ * Samples for PaloAltoNetworksCloudngfw ListProductSerialNumberStatus.
+ */
+public final class PaloAltoNetworksCloudngfwListProductSerialNumberStatusSamples {
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MinimumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListProductSerialNumberStatusMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws()
+ .listProductSerialNumberStatusWithResponse(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listProductSerialNumberStatus_MaximumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListProductSerialNumberStatusMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws()
+ .listProductSerialNumberStatusWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListSupportInfoSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListSupportInfoSamples.java
new file mode 100644
index 0000000000000..fa2ac4c7b047e
--- /dev/null
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwListSupportInfoSamples.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
+
+/**
+ * Samples for PaloAltoNetworksCloudngfw ListSupportInfo.
+ */
+public final class PaloAltoNetworksCloudngfwListSupportInfoSamples {
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listSupportInfo_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listSupportInfo_MaximumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListSupportInfoMaximumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listSupportInfoWithResponse(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
+ * PaloAltoNetworksCloudngfw_listSupportInfo_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: PaloAltoNetworksCloudngfw_listSupportInfo_MinimumSet_Gen.
+ *
+ * @param manager Entry point to PaloAltoNetworksNgfwManager.
+ */
+ public static void paloAltoNetworksCloudngfwListSupportInfoMinimumSetGen(
+ com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) {
+ manager.paloAltoNetworksCloudngfws().listSupportInfoWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesCreateOrUpdateSamples.java
index b3813de1dd63c..ac0bbc0352904 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesCreateOrUpdateSamples.java
@@ -21,7 +21,7 @@
public final class PostRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
@@ -52,7 +52,7 @@ public static void postRulesCreateOrUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesDeleteSamples.java
index 990aa54d1baa5..b61b7b18f6325 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesDeleteSamples.java
@@ -10,7 +10,7 @@
public final class PostRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_Delete_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void postRulesDeleteMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_Delete_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetCountersSamples.java
index 9b49c290de163..d22e379337cf9 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetCountersSamples.java
@@ -10,7 +10,7 @@
public final class PostRulesGetCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_getCounters_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void postRulesGetCountersMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_getCounters_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetSamples.java
index 50772c8c4c9b5..34905113e38d0 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetSamples.java
@@ -10,7 +10,7 @@
public final class PostRulesGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_Get_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public final class PostRulesGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_Get_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesListSamples.java
index 859769d59a59e..13163499ab977 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesListSamples.java
@@ -10,7 +10,7 @@
public final class PostRulesListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_List_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void postRulesListMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_List_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesRefreshCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesRefreshCountersSamples.java
index 69d23b99f4046..363a9b9b697f9 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesRefreshCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesRefreshCountersSamples.java
@@ -10,7 +10,7 @@
public final class PostRulesRefreshCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_refreshCounters_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void postRulesRefreshCountersMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_refreshCounters_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesResetCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesResetCountersSamples.java
index 69ca9d2b68e0f..4bcfdec241650 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesResetCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesResetCountersSamples.java
@@ -10,7 +10,7 @@
public final class PostRulesResetCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_resetCounters_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void postRulesResetCountersMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PostRules_resetCounters_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesCreateOrUpdateSamples.java
index ebebdbe9caaaf..00ed1555027cc 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesCreateOrUpdateSamples.java
@@ -21,7 +21,7 @@
public final class PreRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
@@ -52,7 +52,7 @@ public static void preRulesCreateOrUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesDeleteSamples.java
index 7fc4e4ecd6371..7a449890e6f3c 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesDeleteSamples.java
@@ -10,7 +10,7 @@
public final class PreRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_Delete_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void preRulesDeleteMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_Delete_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetCountersSamples.java
index fcc1f424f2e39..d0a09402e632f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetCountersSamples.java
@@ -10,7 +10,7 @@
public final class PreRulesGetCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_getCounters_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void preRulesGetCountersMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_getCounters_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetSamples.java
index c21393d5db730..53f07bbe0da1e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetSamples.java
@@ -10,7 +10,7 @@
public final class PreRulesGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_Get_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public final class PreRulesGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_Get_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesListSamples.java
index 34a469e283283..0d1be7aedb342 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesListSamples.java
@@ -10,7 +10,7 @@
public final class PreRulesListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_List_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public final class PreRulesListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_List_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesRefreshCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesRefreshCountersSamples.java
index 00d1775b1a9fd..c06e41599bd54 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesRefreshCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesRefreshCountersSamples.java
@@ -10,7 +10,7 @@
public final class PreRulesRefreshCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_refreshCounters_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void preRulesRefreshCountersMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_refreshCounters_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesResetCountersSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesResetCountersSamples.java
index fdf9a3ef716c7..13fbd6340aaf6 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesResetCountersSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesResetCountersSamples.java
@@ -10,7 +10,7 @@
public final class PreRulesResetCountersSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_resetCounters_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void preRulesResetCountersMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PreRules_resetCounters_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackCreateOrUpdateSamples.java
index 72056aca16185..c1258c07da1da 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackCreateOrUpdateSamples.java
@@ -13,7 +13,7 @@
public final class PrefixListGlobalRulestackCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
@@ -32,7 +32,7 @@ public static void prefixListGlobalRulestackCreateOrUpdateMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackDeleteSamples.java
index 5eb02cb841163..10210289ae70e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackDeleteSamples.java
@@ -10,7 +10,7 @@
public final class PrefixListGlobalRulestackDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_Delete_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void prefixListGlobalRulestackDeleteMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackGetSamples.java
index bd02c6948bee7..2f31f86c87695 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackGetSamples.java
@@ -10,7 +10,7 @@
public final class PrefixListGlobalRulestackGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_Get_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void prefixListGlobalRulestackGetMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_Get_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackListSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackListSamples.java
index 377fb002f1907..8560110584b13 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackListSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackListSamples.java
@@ -10,7 +10,7 @@
public final class PrefixListGlobalRulestackListSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_List_MaximumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void prefixListGlobalRulestackListMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListGlobalRulestack_List_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackCreateOrUpdateSamples.java
index 0336880ab683d..c9e7579f97a3f 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackCreateOrUpdateSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackCreateOrUpdateSamples.java
@@ -12,7 +12,7 @@
public final class PrefixListLocalRulestackCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
@@ -28,7 +28,7 @@ public static void prefixListLocalRulestackCreateOrUpdateMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackDeleteSamples.java
index 972dfdfb6069f..1b8d820174f8e 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackDeleteSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackDeleteSamples.java
@@ -10,7 +10,7 @@
public final class PrefixListLocalRulestackDeleteSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_Delete_MinimumSet_Gen.json
*/
/**
@@ -25,7 +25,7 @@ public static void prefixListLocalRulestackDeleteMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_Delete_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackGetSamples.java
index b9e77cfae2154..24d318faf9e19 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackGetSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackGetSamples.java
@@ -10,7 +10,7 @@
public final class PrefixListLocalRulestackGetSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_Get_MinimumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void prefixListLocalRulestackGetMinimumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_Get_MaximumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackListByLocalRulestacksSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackListByLocalRulestacksSamples.java
index f8b04cae7c69f..b93ef8a1e7c61 100644
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackListByLocalRulestacksSamples.java
+++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestackListByLocalRulestacksSamples.java
@@ -10,7 +10,7 @@
public final class PrefixListLocalRulestackListByLocalRulestacksSamples {
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json
*/
/**
@@ -26,7 +26,7 @@ public static void prefixListLocalRulestackListByLocalRulestacksMaximumSetGen(
/*
* x-ms-original-file:
- * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/
+ * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/preview/2024-02-07-preview/examples/
* PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json
*/
/**
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AdvSecurityObjectListResponseInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AdvSecurityObjectListResponseInnerTests.java
deleted file mode 100644
index 31751137852e9..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AdvSecurityObjectListResponseInnerTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.AdvSecurityObjectListResponseInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectModel;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.NameDescriptionObject;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdvSecurityObjectListResponseInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdvSecurityObjectListResponseInner model = BinaryData.fromString(
- "{\"value\":{\"type\":\"sbbzo\",\"entry\":[{\"name\":\"igrxwburvjxxjn\",\"description\":\"ydptkoen\"}]},\"nextLink\":\"uknvudwti\"}")
- .toObject(AdvSecurityObjectListResponseInner.class);
- Assertions.assertEquals("sbbzo", model.value().type());
- Assertions.assertEquals("igrxwburvjxxjn", model.value().entry().get(0).name());
- Assertions.assertEquals("ydptkoen", model.value().entry().get(0).description());
- Assertions.assertEquals("uknvudwti", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdvSecurityObjectListResponseInner model = new AdvSecurityObjectListResponseInner()
- .withValue(new AdvSecurityObjectModel().withType("sbbzo").withEntry(
- Arrays.asList(new NameDescriptionObject().withName("igrxwburvjxxjn").withDescription("ydptkoen"))))
- .withNextLink("uknvudwti");
- model = BinaryData.fromObject(model).toObject(AdvSecurityObjectListResponseInner.class);
- Assertions.assertEquals("sbbzo", model.value().type());
- Assertions.assertEquals("igrxwburvjxxjn", model.value().entry().get(0).name());
- Assertions.assertEquals("ydptkoen", model.value().entry().get(0).description());
- Assertions.assertEquals("uknvudwti", model.nextLink());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AdvSecurityObjectModelTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AdvSecurityObjectModelTests.java
deleted file mode 100644
index bc678b8443dad..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AdvSecurityObjectModelTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectModel;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.NameDescriptionObject;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdvSecurityObjectModelTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdvSecurityObjectModel model = BinaryData.fromString(
- "{\"type\":\"bldngkpoc\",\"entry\":[{\"name\":\"azyxoegukg\",\"description\":\"piu\"},{\"name\":\"gygev\",\"description\":\"ntypmrbpizcdrqj\"},{\"name\":\"dpydn\",\"description\":\"hxdeoejz\"}]}")
- .toObject(AdvSecurityObjectModel.class);
- Assertions.assertEquals("bldngkpoc", model.type());
- Assertions.assertEquals("azyxoegukg", model.entry().get(0).name());
- Assertions.assertEquals("piu", model.entry().get(0).description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdvSecurityObjectModel model = new AdvSecurityObjectModel().withType("bldngkpoc")
- .withEntry(Arrays.asList(new NameDescriptionObject().withName("azyxoegukg").withDescription("piu"),
- new NameDescriptionObject().withName("gygev").withDescription("ntypmrbpizcdrqj"),
- new NameDescriptionObject().withName("dpydn").withDescription("hxdeoejz")));
- model = BinaryData.fromObject(model).toObject(AdvSecurityObjectModel.class);
- Assertions.assertEquals("bldngkpoc", model.type());
- Assertions.assertEquals("azyxoegukg", model.entry().get(0).name());
- Assertions.assertEquals("piu", model.entry().get(0).description());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AppSeenDataTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AppSeenDataTests.java
deleted file mode 100644
index 7075ba98c75e5..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AppSeenDataTests.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenInfo;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AppSeenDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AppSeenData model = BinaryData.fromString(
- "{\"count\":90744470,\"appSeenList\":[{\"title\":\"gxhuriplbp\",\"category\":\"dxunkbebxmubyyn\",\"subCategory\":\"wlrbqtkoievseo\",\"risk\":\"gqrlltmuwla\",\"tag\":\"wzizxbmpgcjefuzm\",\"technology\":\"vpbttd\",\"standardPorts\":\"morppxebmnzbtbh\"}]}")
- .toObject(AppSeenData.class);
- Assertions.assertEquals(90744470, model.count());
- Assertions.assertEquals("gxhuriplbp", model.appSeenList().get(0).title());
- Assertions.assertEquals("dxunkbebxmubyyn", model.appSeenList().get(0).category());
- Assertions.assertEquals("wlrbqtkoievseo", model.appSeenList().get(0).subCategory());
- Assertions.assertEquals("gqrlltmuwla", model.appSeenList().get(0).risk());
- Assertions.assertEquals("wzizxbmpgcjefuzm", model.appSeenList().get(0).tag());
- Assertions.assertEquals("vpbttd", model.appSeenList().get(0).technology());
- Assertions.assertEquals("morppxebmnzbtbh", model.appSeenList().get(0).standardPorts());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AppSeenData model = new AppSeenData().withCount(90744470)
- .withAppSeenList(Arrays.asList(new AppSeenInfo().withTitle("gxhuriplbp").withCategory("dxunkbebxmubyyn")
- .withSubCategory("wlrbqtkoievseo").withRisk("gqrlltmuwla").withTag("wzizxbmpgcjefuzm")
- .withTechnology("vpbttd").withStandardPorts("morppxebmnzbtbh")));
- model = BinaryData.fromObject(model).toObject(AppSeenData.class);
- Assertions.assertEquals(90744470, model.count());
- Assertions.assertEquals("gxhuriplbp", model.appSeenList().get(0).title());
- Assertions.assertEquals("dxunkbebxmubyyn", model.appSeenList().get(0).category());
- Assertions.assertEquals("wlrbqtkoievseo", model.appSeenList().get(0).subCategory());
- Assertions.assertEquals("gqrlltmuwla", model.appSeenList().get(0).risk());
- Assertions.assertEquals("wzizxbmpgcjefuzm", model.appSeenList().get(0).tag());
- Assertions.assertEquals("vpbttd", model.appSeenList().get(0).technology());
- Assertions.assertEquals("morppxebmnzbtbh", model.appSeenList().get(0).standardPorts());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AppSeenInfoTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AppSeenInfoTests.java
deleted file mode 100644
index 544ea723eb129..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AppSeenInfoTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenInfo;
-import org.junit.jupiter.api.Assertions;
-
-public final class AppSeenInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AppSeenInfo model = BinaryData.fromString(
- "{\"title\":\"pglkf\",\"category\":\"ohdneuel\",\"subCategory\":\"phsdyhto\",\"risk\":\"fikdowwqu\",\"tag\":\"v\",\"technology\":\"zx\",\"standardPorts\":\"lvithhqzonosgg\"}")
- .toObject(AppSeenInfo.class);
- Assertions.assertEquals("pglkf", model.title());
- Assertions.assertEquals("ohdneuel", model.category());
- Assertions.assertEquals("phsdyhto", model.subCategory());
- Assertions.assertEquals("fikdowwqu", model.risk());
- Assertions.assertEquals("v", model.tag());
- Assertions.assertEquals("zx", model.technology());
- Assertions.assertEquals("lvithhqzonosgg", model.standardPorts());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AppSeenInfo model = new AppSeenInfo().withTitle("pglkf").withCategory("ohdneuel").withSubCategory("phsdyhto")
- .withRisk("fikdowwqu").withTag("v").withTechnology("zx").withStandardPorts("lvithhqzonosgg");
- model = BinaryData.fromObject(model).toObject(AppSeenInfo.class);
- Assertions.assertEquals("pglkf", model.title());
- Assertions.assertEquals("ohdneuel", model.category());
- Assertions.assertEquals("phsdyhto", model.subCategory());
- Assertions.assertEquals("fikdowwqu", model.risk());
- Assertions.assertEquals("v", model.tag());
- Assertions.assertEquals("zx", model.technology());
- Assertions.assertEquals("lvithhqzonosgg", model.standardPorts());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AzureResourceManagerManagedIdentityPropertiesTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AzureResourceManagerManagedIdentityPropertiesTests.java
deleted file mode 100644
index 474bd914e4df1..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AzureResourceManagerManagedIdentityPropertiesTests.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerUserAssignedIdentity;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AzureResourceManagerManagedIdentityPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureResourceManagerManagedIdentityProperties model = BinaryData.fromString(
- "{\"tenantId\":\"urzafb\",\"principalId\":\"j\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ulpkudjkrl\":{\"clientId\":\"qcjm\",\"principalId\":\"javbqidtqajz\"},\"scpai\":{\"clientId\":\"bzhfepgzgqexz\",\"principalId\":\"c\"},\"onpimexgstxg\":{\"clientId\":\"hhbcsglummajtjao\",\"principalId\":\"obnbdxkqpxokaj\"}}}")
- .toObject(AzureResourceManagerManagedIdentityProperties.class);
- Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.type());
- Assertions.assertEquals("qcjm", model.userAssignedIdentities().get("ulpkudjkrl").clientId());
- Assertions.assertEquals("javbqidtqajz", model.userAssignedIdentities().get("ulpkudjkrl").principalId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureResourceManagerManagedIdentityProperties model
- = new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf("ulpkudjkrl",
- new AzureResourceManagerUserAssignedIdentity().withClientId("qcjm").withPrincipalId("javbqidtqajz"),
- "scpai",
- new AzureResourceManagerUserAssignedIdentity().withClientId("bzhfepgzgqexz").withPrincipalId("c"),
- "onpimexgstxg", new AzureResourceManagerUserAssignedIdentity().withClientId("hhbcsglummajtjao")
- .withPrincipalId("obnbdxkqpxokaj")));
- model = BinaryData.fromObject(model).toObject(AzureResourceManagerManagedIdentityProperties.class);
- Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.type());
- Assertions.assertEquals("qcjm", model.userAssignedIdentities().get("ulpkudjkrl").clientId());
- Assertions.assertEquals("javbqidtqajz", model.userAssignedIdentities().get("ulpkudjkrl").principalId());
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AzureResourceManagerUserAssignedIdentityTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AzureResourceManagerUserAssignedIdentityTests.java
deleted file mode 100644
index eb78441d07464..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/AzureResourceManagerUserAssignedIdentityTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerUserAssignedIdentity;
-import org.junit.jupiter.api.Assertions;
-
-public final class AzureResourceManagerUserAssignedIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureResourceManagerUserAssignedIdentity model
- = BinaryData.fromString("{\"clientId\":\"odgmaajrmvdjwz\",\"principalId\":\"ovmclwhijcoejct\"}")
- .toObject(AzureResourceManagerUserAssignedIdentity.class);
- Assertions.assertEquals("odgmaajrmvdjwz", model.clientId());
- Assertions.assertEquals("ovmclwhijcoejct", model.principalId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureResourceManagerUserAssignedIdentity model = new AzureResourceManagerUserAssignedIdentity()
- .withClientId("odgmaajrmvdjwz").withPrincipalId("ovmclwhijcoejct");
- model = BinaryData.fromObject(model).toObject(AzureResourceManagerUserAssignedIdentity.class);
- Assertions.assertEquals("odgmaajrmvdjwz", model.clientId());
- Assertions.assertEquals("ovmclwhijcoejct", model.principalId());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CategoryTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CategoryTests.java
deleted file mode 100644
index fbe7658a1740d..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CategoryTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Category;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class CategoryTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Category model = BinaryData
- .fromString(
- "{\"urlCustom\":[\"ewgdrjervn\",\"enq\",\"eh\"],\"feeds\":[\"doy\",\"mifthnzdnd\",\"l\",\"nayqi\"]}")
- .toObject(Category.class);
- Assertions.assertEquals("ewgdrjervn", model.urlCustom().get(0));
- Assertions.assertEquals("doy", model.feeds().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Category model = new Category().withUrlCustom(Arrays.asList("ewgdrjervn", "enq", "eh"))
- .withFeeds(Arrays.asList("doy", "mifthnzdnd", "l", "nayqi"));
- model = BinaryData.fromObject(model).toObject(Category.class);
- Assertions.assertEquals("ewgdrjervn", model.urlCustom().get(0));
- Assertions.assertEquals("doy", model.feeds().get(0));
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackResourceInnerTests.java
deleted file mode 100644
index d05907f284682..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackResourceInnerTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import org.junit.jupiter.api.Assertions;
-
-public final class CertificateObjectGlobalRulestackResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CertificateObjectGlobalRulestackResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"certificateSignerResourceId\":\"azjdyggd\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"xhbkuofq\",\"description\":\"yk\",\"etag\":\"enevfyexfwhybci\",\"provisioningState\":\"Failed\"},\"id\":\"dcsi\",\"name\":\"ynnaam\",\"type\":\"ectehf\"}")
- .toObject(CertificateObjectGlobalRulestackResourceInner.class);
- Assertions.assertEquals("azjdyggd", model.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, model.certificateSelfSigned());
- Assertions.assertEquals("xhbkuofq", model.auditComment());
- Assertions.assertEquals("yk", model.description());
- Assertions.assertEquals("enevfyexfwhybci", model.etag());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CertificateObjectGlobalRulestackResourceInner model = new CertificateObjectGlobalRulestackResourceInner()
- .withCertificateSignerResourceId("azjdyggd").withCertificateSelfSigned(BooleanEnum.TRUE)
- .withAuditComment("xhbkuofq").withDescription("yk").withEtag("enevfyexfwhybci");
- model = BinaryData.fromObject(model).toObject(CertificateObjectGlobalRulestackResourceInner.class);
- Assertions.assertEquals("azjdyggd", model.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, model.certificateSelfSigned());
- Assertions.assertEquals("xhbkuofq", model.auditComment());
- Assertions.assertEquals("yk", model.description());
- Assertions.assertEquals("enevfyexfwhybci", model.etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackResourceListResultTests.java
deleted file mode 100644
index 48c21db743528..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestackResourceListResultTests.java
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectGlobalRulestackResourceListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class CertificateObjectGlobalRulestackResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CertificateObjectGlobalRulestackResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"yyien\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"lwtgrhpdj\",\"description\":\"umasxazjpq\",\"etag\":\"gual\",\"provisioningState\":\"Accepted\"},\"id\":\"hejjz\",\"name\":\"v\",\"type\":\"udgwdslfho\"},{\"properties\":{\"certificateSignerResourceId\":\"mcy\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"lbjnpgacftadehx\",\"description\":\"tyfsoppusuesn\",\"etag\":\"dejbavo\",\"provisioningState\":\"Deleting\"},\"id\":\"mohctb\",\"name\":\"vudwx\",\"type\":\"ndnvo\"}],\"nextLink\":\"ujjugwdkcglh\"}")
- .toObject(CertificateObjectGlobalRulestackResourceListResult.class);
- Assertions.assertEquals("yyien", model.value().get(0).certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.FALSE, model.value().get(0).certificateSelfSigned());
- Assertions.assertEquals("lwtgrhpdj", model.value().get(0).auditComment());
- Assertions.assertEquals("umasxazjpq", model.value().get(0).description());
- Assertions.assertEquals("gual", model.value().get(0).etag());
- Assertions.assertEquals("ujjugwdkcglh", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CertificateObjectGlobalRulestackResourceListResult model
- = new CertificateObjectGlobalRulestackResourceListResult().withValue(Arrays.asList(
- new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("yyien")
- .withCertificateSelfSigned(BooleanEnum.FALSE).withAuditComment("lwtgrhpdj")
- .withDescription("umasxazjpq").withEtag("gual"),
- new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("mcy")
- .withCertificateSelfSigned(BooleanEnum.TRUE).withAuditComment("lbjnpgacftadehx")
- .withDescription("tyfsoppusuesn").withEtag("dejbavo")))
- .withNextLink("ujjugwdkcglh");
- model = BinaryData.fromObject(model).toObject(CertificateObjectGlobalRulestackResourceListResult.class);
- Assertions.assertEquals("yyien", model.value().get(0).certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.FALSE, model.value().get(0).certificateSelfSigned());
- Assertions.assertEquals("lwtgrhpdj", model.value().get(0).auditComment());
- Assertions.assertEquals("umasxazjpq", model.value().get(0).description());
- Assertions.assertEquals("gual", model.value().get(0).etag());
- Assertions.assertEquals("ujjugwdkcglh", model.nextLink());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksCreateOrUpdateMockTests.java
deleted file mode 100644
index 58332833dfc4a..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectGlobalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectGlobalRulestacksCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"certificateSignerResourceId\":\"xpunjqi\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"vvi\",\"description\":\"cgx\",\"etag\":\"csserxht\",\"provisioningState\":\"Succeeded\"},\"id\":\"hlwntsjgq\",\"name\":\"sxypruuu\",\"type\":\"bnchrsziz\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CertificateObjectGlobalRulestackResource response
- = manager.certificateObjectGlobalRulestacks().createOrUpdate("fvcl", "lxnfuijtkbusqogs",
- new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("kayi")
- .withCertificateSelfSigned(BooleanEnum.FALSE).withAuditComment("haru").withDescription("ji")
- .withEtag("fzyjqt"),
- com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("xpunjqi", response.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, response.certificateSelfSigned());
- Assertions.assertEquals("vvi", response.auditComment());
- Assertions.assertEquals("cgx", response.description());
- Assertions.assertEquals("csserxht", response.etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksDeleteMockTests.java
deleted file mode 100644
index 419f1eea75f53..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksDeleteMockTests.java
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectGlobalRulestacksDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.certificateObjectGlobalRulestacks().delete("yuel", "etndnbfqyggagf", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksGetWithResponseMockTests.java
deleted file mode 100644
index 666670606d11f..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksGetWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectGlobalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectGlobalRulestacksGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"certificateSignerResourceId\":\"ebnfxofvc\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"dirazf\",\"description\":\"ejwabmdujtmvco\",\"etag\":\"xcmjurbu\",\"provisioningState\":\"Deleting\"},\"id\":\"yqltqsro\",\"name\":\"tuwkffdj\",\"type\":\"tsysi\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CertificateObjectGlobalRulestackResource response = manager.certificateObjectGlobalRulestacks()
- .getWithResponse("eiookjbsah", "tdtpdelqacslmo", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("ebnfxofvc", response.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, response.certificateSelfSigned());
- Assertions.assertEquals("dirazf", response.auditComment());
- Assertions.assertEquals("ejwabmdujtmvco", response.description());
- Assertions.assertEquals("xcmjurbu", response.etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksListMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksListMockTests.java
deleted file mode 100644
index 99b779d8b53d8..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectGlobalRulestacksListMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectGlobalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectGlobalRulestacksListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"bgdlfgtdysna\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"lqbctqhamzjrw\",\"description\":\"qzeqyjleziunjxdf\",\"etag\":\"ntkwcegy\",\"provisioningState\":\"Failed\"},\"id\":\"nseqacjjvp\",\"name\":\"lguooqjagmd\",\"type\":\"tg\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.certificateObjectGlobalRulestacks().list("g", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("bgdlfgtdysna", response.iterator().next().certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, response.iterator().next().certificateSelfSigned());
- Assertions.assertEquals("lqbctqhamzjrw", response.iterator().next().auditComment());
- Assertions.assertEquals("qzeqyjleziunjxdf", response.iterator().next().description());
- Assertions.assertEquals("ntkwcegy", response.iterator().next().etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackResourceInnerTests.java
deleted file mode 100644
index 1477adb0de860..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackResourceInnerTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectLocalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import org.junit.jupiter.api.Assertions;
-
-public final class CertificateObjectLocalRulestackResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CertificateObjectLocalRulestackResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"certificateSignerResourceId\":\"aaeranokqgukk\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"vbroylaxxu\",\"description\":\"disdosfjbjsvgj\",\"etag\":\"hryvy\",\"provisioningState\":\"NotSpecified\"},\"id\":\"c\",\"name\":\"xgccknfnw\",\"type\":\"btmvpdvjdhttza\"}")
- .toObject(CertificateObjectLocalRulestackResourceInner.class);
- Assertions.assertEquals("aaeranokqgukk", model.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, model.certificateSelfSigned());
- Assertions.assertEquals("vbroylaxxu", model.auditComment());
- Assertions.assertEquals("disdosfjbjsvgj", model.description());
- Assertions.assertEquals("hryvy", model.etag());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CertificateObjectLocalRulestackResourceInner model = new CertificateObjectLocalRulestackResourceInner()
- .withCertificateSignerResourceId("aaeranokqgukk").withCertificateSelfSigned(BooleanEnum.TRUE)
- .withAuditComment("vbroylaxxu").withDescription("disdosfjbjsvgj").withEtag("hryvy");
- model = BinaryData.fromObject(model).toObject(CertificateObjectLocalRulestackResourceInner.class);
- Assertions.assertEquals("aaeranokqgukk", model.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, model.certificateSelfSigned());
- Assertions.assertEquals("vbroylaxxu", model.auditComment());
- Assertions.assertEquals("disdosfjbjsvgj", model.description());
- Assertions.assertEquals("hryvy", model.etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackResourceListResultTests.java
deleted file mode 100644
index 5379a348bc181..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestackResourceListResultTests.java
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectLocalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectLocalRulestackResourceListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class CertificateObjectLocalRulestackResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CertificateObjectLocalRulestackResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"kkzddrtkgdojbmx\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"refdee\",\"description\":\"ecuijpxtxs\",\"etag\":\"prtujwsawdd\",\"provisioningState\":\"Accepted\"},\"id\":\"bxv\",\"name\":\"titvtzeexavox\",\"type\":\"fglecdmdqbwp\"},{\"properties\":{\"certificateSignerResourceId\":\"q\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"fjacbslhhxudb\",\"description\":\"odhtnsirudhzm\",\"etag\":\"sckdlp\",\"provisioningState\":\"Canceled\"},\"id\":\"cxfailcfxwmdboxd\",\"name\":\"gsftufqobrjlnacg\",\"type\":\"ckknhxkizvy\"}],\"nextLink\":\"rzvul\"}")
- .toObject(CertificateObjectLocalRulestackResourceListResult.class);
- Assertions.assertEquals("kkzddrtkgdojbmx", model.value().get(0).certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, model.value().get(0).certificateSelfSigned());
- Assertions.assertEquals("refdee", model.value().get(0).auditComment());
- Assertions.assertEquals("ecuijpxtxs", model.value().get(0).description());
- Assertions.assertEquals("prtujwsawdd", model.value().get(0).etag());
- Assertions.assertEquals("rzvul", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CertificateObjectLocalRulestackResourceListResult model
- = new CertificateObjectLocalRulestackResourceListResult().withValue(Arrays.asList(
- new CertificateObjectLocalRulestackResourceInner().withCertificateSignerResourceId("kkzddrtkgdojbmx")
- .withCertificateSelfSigned(BooleanEnum.TRUE).withAuditComment("refdee")
- .withDescription("ecuijpxtxs").withEtag("prtujwsawdd"),
- new CertificateObjectLocalRulestackResourceInner().withCertificateSignerResourceId("q")
- .withCertificateSelfSigned(BooleanEnum.TRUE).withAuditComment("fjacbslhhxudb")
- .withDescription("odhtnsirudhzm").withEtag("sckdlp")))
- .withNextLink("rzvul");
- model = BinaryData.fromObject(model).toObject(CertificateObjectLocalRulestackResourceListResult.class);
- Assertions.assertEquals("kkzddrtkgdojbmx", model.value().get(0).certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, model.value().get(0).certificateSelfSigned());
- Assertions.assertEquals("refdee", model.value().get(0).auditComment());
- Assertions.assertEquals("ecuijpxtxs", model.value().get(0).description());
- Assertions.assertEquals("prtujwsawdd", model.value().get(0).etag());
- Assertions.assertEquals("rzvul", model.nextLink());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksCreateOrUpdateMockTests.java
deleted file mode 100644
index 0e7dd992c2b6e..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectLocalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectLocalRulestacksCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"certificateSignerResourceId\":\"u\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"mdwmf\",\"description\":\"pycvjqdvdwkqpldr\",\"etag\":\"fgnaavuagnteta\",\"provisioningState\":\"Succeeded\"},\"id\":\"pdctuhspfefyi\",\"name\":\"duyeuyl\",\"type\":\"phm\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CertificateObjectLocalRulestackResource response = manager.certificateObjectLocalRulestacks()
- .define("kdschlzvfictnkjj").withExistingLocalRulestack("ununm", "zkrvfyi")
- .withCertificateSelfSigned(BooleanEnum.FALSE).withCertificateSignerResourceId("cwnphbkgfyrtogm")
- .withAuditComment("pjscdfpdqwtygev").withDescription("mseharx").withEtag("vqnrxtmbpj").create();
-
- Assertions.assertEquals("u", response.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, response.certificateSelfSigned());
- Assertions.assertEquals("mdwmf", response.auditComment());
- Assertions.assertEquals("pycvjqdvdwkqpldr", response.description());
- Assertions.assertEquals("fgnaavuagnteta", response.etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksDeleteMockTests.java
deleted file mode 100644
index 5ab41c88df530..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksDeleteMockTests.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectLocalRulestacksDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.certificateObjectLocalRulestacks().delete("ptdmkrrbhmpful", "be", "gybpmfb",
- com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksGetWithResponseMockTests.java
deleted file mode 100644
index 56642d4870b3a..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksGetWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectLocalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectLocalRulestacksGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"certificateSignerResourceId\":\"hmptyrilkfbn\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"xvztpbnfnqtxj\",\"description\":\"m\",\"etag\":\"swbnfddepldwqjns\",\"provisioningState\":\"Accepted\"},\"id\":\"leexahvmywh\",\"name\":\"brcary\",\"type\":\"sjjzyvoaqajuveh\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CertificateObjectLocalRulestackResource response = manager.certificateObjectLocalRulestacks()
- .getWithResponse("ykcrraue", "kcsueho", "ddacbcbgydlqidy", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("hmptyrilkfbn", response.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.FALSE, response.certificateSelfSigned());
- Assertions.assertEquals("xvztpbnfnqtxj", response.auditComment());
- Assertions.assertEquals("m", response.description());
- Assertions.assertEquals("swbnfddepldwqjns", response.etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksListByLocalRulestacksMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksListByLocalRulestacksMockTests.java
deleted file mode 100644
index 1d42305de9882..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectLocalRulestacksListByLocalRulestacksMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectLocalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CertificateObjectLocalRulestacksListByLocalRulestacksMockTests {
- @Test
- public void testListByLocalRulestacks() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"xawqy\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"hd\",\"description\":\"myck\",\"etag\":\"xnx\",\"provisioningState\":\"Accepted\"},\"id\":\"ywymxgaabj\",\"name\":\"dtfohfaog\",\"type\":\"vkiwrsiwdyjqu\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.certificateObjectLocalRulestacks()
- .listByLocalRulestacks("exhvuqbozoolz", "ocarkuzlbcnndt", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("xawqy", response.iterator().next().certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.TRUE, response.iterator().next().certificateSelfSigned());
- Assertions.assertEquals("hd", response.iterator().next().auditComment());
- Assertions.assertEquals("myck", response.iterator().next().description());
- Assertions.assertEquals("xnx", response.iterator().next().etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectTests.java
deleted file mode 100644
index bec42145b416f..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CertificateObjectTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObject;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import org.junit.jupiter.api.Assertions;
-
-public final class CertificateObjectTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CertificateObject model = BinaryData.fromString(
- "{\"certificateSignerResourceId\":\"scjeypv\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"rkgqhcjrefo\",\"description\":\"mkqsleyyv\",\"etag\":\"qjpkcattpngjcrc\",\"provisioningState\":\"Failed\"}")
- .toObject(CertificateObject.class);
- Assertions.assertEquals("scjeypv", model.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.FALSE, model.certificateSelfSigned());
- Assertions.assertEquals("rkgqhcjrefo", model.auditComment());
- Assertions.assertEquals("mkqsleyyv", model.description());
- Assertions.assertEquals("qjpkcattpngjcrc", model.etag());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CertificateObject model = new CertificateObject().withCertificateSignerResourceId("scjeypv")
- .withCertificateSelfSigned(BooleanEnum.FALSE).withAuditComment("rkgqhcjrefo").withDescription("mkqsleyyv")
- .withEtag("qjpkcattpngjcrc");
- model = BinaryData.fromObject(model).toObject(CertificateObject.class);
- Assertions.assertEquals("scjeypv", model.certificateSignerResourceId());
- Assertions.assertEquals(BooleanEnum.FALSE, model.certificateSelfSigned());
- Assertions.assertEquals("rkgqhcjrefo", model.auditComment());
- Assertions.assertEquals("mkqsleyyv", model.description());
- Assertions.assertEquals("qjpkcattpngjcrc", model.etag());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ChangelogInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ChangelogInnerTests.java
deleted file mode 100644
index d9c9e7c4f589b..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ChangelogInnerTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ChangelogInner;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ChangelogInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ChangelogInner model = BinaryData.fromString(
- "{\"changes\":[\"zy\"],\"lastCommitted\":\"2021-08-05T17:04:54Z\",\"lastModified\":\"2021-11-07T07:40:57Z\"}")
- .toObject(ChangelogInner.class);
- Assertions.assertEquals("zy", model.changes().get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T17:04:54Z"), model.lastCommitted());
- Assertions.assertEquals(OffsetDateTime.parse("2021-11-07T07:40:57Z"), model.lastModified());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ChangelogInner model = new ChangelogInner().withChanges(Arrays.asList("zy"))
- .withLastCommitted(OffsetDateTime.parse("2021-08-05T17:04:54Z"))
- .withLastModified(OffsetDateTime.parse("2021-11-07T07:40:57Z"));
- model = BinaryData.fromObject(model).toObject(ChangelogInner.class);
- Assertions.assertEquals("zy", model.changes().get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T17:04:54Z"), model.lastCommitted());
- Assertions.assertEquals(OffsetDateTime.parse("2021-11-07T07:40:57Z"), model.lastModified());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/DestinationAddrTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/DestinationAddrTests.java
deleted file mode 100644
index 4521db02f112b..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/DestinationAddrTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DestinationAddr;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DestinationAddrTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DestinationAddr model = BinaryData.fromString(
- "{\"cidrs\":[\"bkrvrnsvshqj\",\"hxcr\",\"bfovasrruvwbhsq\"],\"countries\":[\"bcgjbirxbp\",\"bsrfbj\",\"dtws\"],\"feeds\":[\"ftpvjzbexil\"],\"prefixLists\":[\"fqqnvwpmqtaruo\",\"jmkcjhwqytj\"],\"fqdnLists\":[\"n\"]}")
- .toObject(DestinationAddr.class);
- Assertions.assertEquals("bkrvrnsvshqj", model.cidrs().get(0));
- Assertions.assertEquals("bcgjbirxbp", model.countries().get(0));
- Assertions.assertEquals("ftpvjzbexil", model.feeds().get(0));
- Assertions.assertEquals("fqqnvwpmqtaruo", model.prefixLists().get(0));
- Assertions.assertEquals("n", model.fqdnLists().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DestinationAddr model
- = new DestinationAddr().withCidrs(Arrays.asList("bkrvrnsvshqj", "hxcr", "bfovasrruvwbhsq"))
- .withCountries(Arrays.asList("bcgjbirxbp", "bsrfbj", "dtws")).withFeeds(Arrays.asList("ftpvjzbexil"))
- .withPrefixLists(Arrays.asList("fqqnvwpmqtaruo", "jmkcjhwqytj")).withFqdnLists(Arrays.asList("n"));
- model = BinaryData.fromObject(model).toObject(DestinationAddr.class);
- Assertions.assertEquals("bkrvrnsvshqj", model.cidrs().get(0));
- Assertions.assertEquals("bcgjbirxbp", model.countries().get(0));
- Assertions.assertEquals("ftpvjzbexil", model.feeds().get(0));
- Assertions.assertEquals("fqqnvwpmqtaruo", model.prefixLists().get(0));
- Assertions.assertEquals("n", model.fqdnLists().get(0));
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/DnsSettingsTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/DnsSettingsTests.java
deleted file mode 100644
index 265929e91ccb4..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/DnsSettingsTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DnsProxy;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DnsSettings;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnabledDnsType;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddress;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DnsSettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DnsSettings model = BinaryData.fromString(
- "{\"enableDnsProxy\":\"DISABLED\",\"enabledDnsType\":\"AZURE\",\"dnsServers\":[{\"resourceId\":\"nvrk\",\"address\":\"ou\"},{\"resourceId\":\"bre\",\"address\":\"aays\"}]}")
- .toObject(DnsSettings.class);
- Assertions.assertEquals(DnsProxy.DISABLED, model.enableDnsProxy());
- Assertions.assertEquals(EnabledDnsType.AZURE, model.enabledDnsType());
- Assertions.assertEquals("nvrk", model.dnsServers().get(0).resourceId());
- Assertions.assertEquals("ou", model.dnsServers().get(0).address());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DnsSettings model
- = new DnsSettings().withEnableDnsProxy(DnsProxy.DISABLED).withEnabledDnsType(EnabledDnsType.AZURE)
- .withDnsServers(Arrays.asList(new IpAddress().withResourceId("nvrk").withAddress("ou"),
- new IpAddress().withResourceId("bre").withAddress("aays")));
- model = BinaryData.fromObject(model).toObject(DnsSettings.class);
- Assertions.assertEquals(DnsProxy.DISABLED, model.enableDnsProxy());
- Assertions.assertEquals(EnabledDnsType.AZURE, model.enabledDnsType());
- Assertions.assertEquals("nvrk", model.dnsServers().get(0).resourceId());
- Assertions.assertEquals("ou", model.dnsServers().get(0).address());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/EndpointConfigurationTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/EndpointConfigurationTests.java
deleted file mode 100644
index 0a6cdf8336108..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/EndpointConfigurationTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.EndpointConfiguration;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddress;
-import org.junit.jupiter.api.Assertions;
-
-public final class EndpointConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- EndpointConfiguration model = BinaryData.fromString(
- "{\"port\":\"totxhojujb\",\"address\":{\"resourceId\":\"elmcuvhixbjxyfw\",\"address\":\"lrcoolsttpki\"}}")
- .toObject(EndpointConfiguration.class);
- Assertions.assertEquals("totxhojujb", model.port());
- Assertions.assertEquals("elmcuvhixbjxyfw", model.address().resourceId());
- Assertions.assertEquals("lrcoolsttpki", model.address().address());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- EndpointConfiguration model = new EndpointConfiguration().withPort("totxhojujb")
- .withAddress(new IpAddress().withResourceId("elmcuvhixbjxyfw").withAddress("lrcoolsttpki"));
- model = BinaryData.fromObject(model).toObject(EndpointConfiguration.class);
- Assertions.assertEquals("totxhojujb", model.port());
- Assertions.assertEquals("elmcuvhixbjxyfw", model.address().resourceId());
- Assertions.assertEquals("lrcoolsttpki", model.address().address());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/EventHubTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/EventHubTests.java
deleted file mode 100644
index 2abf1786f3488..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/EventHubTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.EventHub;
-import org.junit.jupiter.api.Assertions;
-
-public final class EventHubTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- EventHub model = BinaryData.fromString(
- "{\"id\":\"togebjoxsl\",\"subscriptionId\":\"nhl\",\"name\":\"rqnkkzjcjbtr\",\"nameSpace\":\"ehvvib\",\"policyName\":\"jj\"}")
- .toObject(EventHub.class);
- Assertions.assertEquals("togebjoxsl", model.id());
- Assertions.assertEquals("nhl", model.subscriptionId());
- Assertions.assertEquals("rqnkkzjcjbtr", model.name());
- Assertions.assertEquals("ehvvib", model.nameSpace());
- Assertions.assertEquals("jj", model.policyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- EventHub model = new EventHub().withId("togebjoxsl").withSubscriptionId("nhl").withName("rqnkkzjcjbtr")
- .withNameSpace("ehvvib").withPolicyName("jj");
- model = BinaryData.fromObject(model).toObject(EventHub.class);
- Assertions.assertEquals("togebjoxsl", model.id());
- Assertions.assertEquals("nhl", model.subscriptionId());
- Assertions.assertEquals("rqnkkzjcjbtr", model.name());
- Assertions.assertEquals("ehvvib", model.nameSpace());
- Assertions.assertEquals("jj", model.policyName());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusGetWithResponseMockTests.java
deleted file mode 100644
index e4fb22ac862c4..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusGetWithResponseMockTests.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallStatusResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FirewallStatusGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"INITIALIZING\",\"healthReason\":\"zji\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Failed\"},\"id\":\"absol\",\"name\":\"onqqlmgn\",\"type\":\"qxsjxte\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FirewallStatusResource response = manager.firewallStatus()
- .getWithResponse("svkskmqoz", "kivy", com.azure.core.util.Context.NONE).getValue();
-
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusListByFirewallsMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusListByFirewallsMockTests.java
deleted file mode 100644
index 3932076225bb2..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusListByFirewallsMockTests.java
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallStatusResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FirewallStatusListByFirewallsMockTests {
- @Test
- public void testListByFirewalls() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"value\":[{\"properties\":{\"isPanoramaManaged\":\"FALSE\",\"healthStatus\":\"INITIALIZING\",\"healthReason\":\"ibtyibuyvpirfqjp\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Deleted\"},\"id\":\"denrexkxbhxv\",\"name\":\"cnulgmnhjevdy\",\"type\":\"nfa\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.firewallStatus().listByFirewalls("pnx", "dvwnjkgvfnmxa", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusPropertyTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusPropertyTests.java
deleted file mode 100644
index d9277c3998b0d..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusPropertyTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusProperty;
-
-public final class FirewallStatusPropertyTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FirewallStatusProperty model = BinaryData.fromString(
- "{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"GREEN\",\"healthReason\":\"jcivmmg\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"DOWN\"},\"provisioningState\":\"Deleted\"}")
- .toObject(FirewallStatusProperty.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FirewallStatusProperty model = new FirewallStatusProperty();
- model = BinaryData.fromObject(model).toObject(FirewallStatusProperty.class);
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusResourceInnerTests.java
deleted file mode 100644
index 0caf8c3f66339..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusResourceInnerTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusResourceInner;
-
-public final class FirewallStatusResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FirewallStatusResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"isPanoramaManaged\":\"FALSE\",\"healthStatus\":\"GREEN\",\"healthReason\":\"rxvxcjzh\",\"panoramaStatus\":{\"panoramaServerStatus\":\"DOWN\",\"panoramaServer2Status\":\"DOWN\"},\"provisioningState\":\"Deleted\"},\"id\":\"qscjavftjuh\",\"name\":\"qaz\",\"type\":\"mtggu\"}")
- .toObject(FirewallStatusResourceInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FirewallStatusResourceInner model = new FirewallStatusResourceInner();
- model = BinaryData.fromObject(model).toObject(FirewallStatusResourceInner.class);
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusResourceListResultTests.java
deleted file mode 100644
index 86cde221fbcb4..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallStatusResourceListResultTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallStatusResourceListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FirewallStatusResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FirewallStatusResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"GREEN\",\"healthReason\":\"lcsethwwnpj\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Succeeded\"},\"id\":\"wahfbousnfepgfew\",\"name\":\"twly\",\"type\":\"gncxykxhdj\"}],\"nextLink\":\"immbcx\"}")
- .toObject(FirewallStatusResourceListResult.class);
- Assertions.assertEquals("immbcx", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FirewallStatusResourceListResult model = new FirewallStatusResourceListResult()
- .withValue(Arrays.asList(new FirewallStatusResourceInner())).withNextLink("immbcx");
- model = BinaryData.fromObject(model).toObject(FirewallStatusResourceListResult.class);
- Assertions.assertEquals("immbcx", model.nextLink());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsDeleteMockTests.java
deleted file mode 100644
index 9d2829605f154..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsDeleteMockTests.java
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FirewallsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.firewalls().delete("lbemyej", "riuxegthortuda", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetGlobalRulestackWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetGlobalRulestackWithResponseMockTests.java
deleted file mode 100644
index 0fe3637265a2e..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetGlobalRulestackWithResponseMockTests.java
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackInfo;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FirewallsGetGlobalRulestackWithResponseMockTests {
- @Test
- public void testGetGlobalRulestackWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"azureId\":\"gckbb\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- GlobalRulestackInfo response = manager.firewalls()
- .getGlobalRulestackWithResponse("lpjfelqerpptcbgq", "zmnhiilialwc", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("gckbb", response.azureId());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoWithResponseMockTests.java
deleted file mode 100644
index c19023aa13e3e..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FirewallsGetSupportInfoWithResponseMockTests.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfo;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FirewallsGetSupportInfoWithResponseMockTests {
- @Test
- public void testGetSupportInfoWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"productSku\":\"crkdlbn\",\"productSerial\":\"xvhcs\",\"accountRegistered\":\"FALSE\",\"accountId\":\"wxaeaovure\",\"userDomainSupported\":\"TRUE\",\"userRegistered\":\"FALSE\",\"freeTrial\":\"TRUE\",\"freeTrialDaysLeft\":793524985,\"freeTrialCreditLeft\":187101645,\"helpURL\":\"rzmwn\",\"supportURL\":\"pag\",\"registerURL\":\"mvmmagoaqylkjz\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SupportInfo response = manager.firewalls()
- .getSupportInfoWithResponse("byl", "ui", "vxva", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("crkdlbn", response.productSku());
- Assertions.assertEquals("xvhcs", response.productSerial());
- Assertions.assertEquals(BooleanEnum.FALSE, response.accountRegistered());
- Assertions.assertEquals("wxaeaovure", response.accountId());
- Assertions.assertEquals(BooleanEnum.TRUE, response.userDomainSupported());
- Assertions.assertEquals(BooleanEnum.FALSE, response.userRegistered());
- Assertions.assertEquals(BooleanEnum.TRUE, response.freeTrial());
- Assertions.assertEquals(793524985, response.freeTrialDaysLeft());
- Assertions.assertEquals(187101645, response.freeTrialCreditLeft());
- Assertions.assertEquals("rzmwn", response.helpUrl());
- Assertions.assertEquals("pag", response.supportUrl());
- Assertions.assertEquals("mvmmagoaqylkjz", response.registerUrl());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackResourceInnerTests.java
deleted file mode 100644
index 76dcfe71033bb..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackResourceInnerTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListGlobalRulestackResourceInner;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FqdnListGlobalRulestackResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FqdnListGlobalRulestackResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"description\":\"d\",\"fqdnList\":[\"atkpnp\",\"lexxbczwtru\",\"iqzbq\",\"vsovmyokac\"],\"etag\":\"kwlhzdo\",\"auditComment\":\"xjmflbvv\",\"provisioningState\":\"Failed\"},\"id\":\"kcciwwzjuqkhr\",\"name\":\"ajiwkuo\",\"type\":\"oskg\"}")
- .toObject(FqdnListGlobalRulestackResourceInner.class);
- Assertions.assertEquals("d", model.description());
- Assertions.assertEquals("atkpnp", model.fqdnList().get(0));
- Assertions.assertEquals("kwlhzdo", model.etag());
- Assertions.assertEquals("xjmflbvv", model.auditComment());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FqdnListGlobalRulestackResourceInner model = new FqdnListGlobalRulestackResourceInner().withDescription("d")
- .withFqdnList(Arrays.asList("atkpnp", "lexxbczwtru", "iqzbq", "vsovmyokac")).withEtag("kwlhzdo")
- .withAuditComment("xjmflbvv");
- model = BinaryData.fromObject(model).toObject(FqdnListGlobalRulestackResourceInner.class);
- Assertions.assertEquals("d", model.description());
- Assertions.assertEquals("atkpnp", model.fqdnList().get(0));
- Assertions.assertEquals("kwlhzdo", model.etag());
- Assertions.assertEquals("xjmflbvv", model.auditComment());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackResourceListResultTests.java
deleted file mode 100644
index 3e6d55b3f08eb..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestackResourceListResultTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListGlobalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListGlobalRulestackResourceListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FqdnListGlobalRulestackResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FqdnListGlobalRulestackResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"description\":\"jh\",\"fqdnList\":[\"daj\",\"nysounqe\"],\"etag\":\"noae\",\"auditComment\":\"fhyhltrpmopjmcma\",\"provisioningState\":\"Deleted\"},\"id\":\"thfuiuaodsfcpkvx\",\"name\":\"dpuozmyz\",\"type\":\"dagfuaxbezyiuok\"},{\"properties\":{\"description\":\"whrdxwzywqsmbsu\",\"fqdnList\":[\"xim\"],\"etag\":\"yocf\",\"auditComment\":\"ksymd\",\"provisioningState\":\"Failed\"},\"id\":\"kiiuxhqyudxor\",\"name\":\"qn\",\"type\":\"poczvyifqrvkdvjs\"}],\"nextLink\":\"rm\"}")
- .toObject(FqdnListGlobalRulestackResourceListResult.class);
- Assertions.assertEquals("jh", model.value().get(0).description());
- Assertions.assertEquals("daj", model.value().get(0).fqdnList().get(0));
- Assertions.assertEquals("noae", model.value().get(0).etag());
- Assertions.assertEquals("fhyhltrpmopjmcma", model.value().get(0).auditComment());
- Assertions.assertEquals("rm", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FqdnListGlobalRulestackResourceListResult model
- = new FqdnListGlobalRulestackResourceListResult()
- .withValue(Arrays.asList(
- new FqdnListGlobalRulestackResourceInner().withDescription("jh")
- .withFqdnList(Arrays.asList("daj", "nysounqe")).withEtag("noae")
- .withAuditComment("fhyhltrpmopjmcma"),
- new FqdnListGlobalRulestackResourceInner().withDescription("whrdxwzywqsmbsu")
- .withFqdnList(Arrays.asList("xim")).withEtag("yocf").withAuditComment("ksymd")))
- .withNextLink("rm");
- model = BinaryData.fromObject(model).toObject(FqdnListGlobalRulestackResourceListResult.class);
- Assertions.assertEquals("jh", model.value().get(0).description());
- Assertions.assertEquals("daj", model.value().get(0).fqdnList().get(0));
- Assertions.assertEquals("noae", model.value().get(0).etag());
- Assertions.assertEquals("fhyhltrpmopjmcma", model.value().get(0).auditComment());
- Assertions.assertEquals("rm", model.nextLink());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksCreateOrUpdateMockTests.java
deleted file mode 100644
index a4e3a7ae5ad06..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListGlobalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListGlobalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListGlobalRulestacksCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"description\":\"tprwnw\",\"fqdnList\":[\"oevytlyokr\",\"rouuxvnsasbcry\"],\"etag\":\"dizr\",\"auditComment\":\"lobdxna\",\"provisioningState\":\"Succeeded\"},\"id\":\"mlmvevfxzo\",\"name\":\"jhbzxliohrdddtf\",\"type\":\"xqbawpc\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FqdnListGlobalRulestackResource response = manager.fqdnListGlobalRulestacks().createOrUpdate("q", "fuarenlvhht",
- new FqdnListGlobalRulestackResourceInner().withDescription("nvnaf")
- .withFqdnList(Arrays.asList("kyfede", "jboslcqxypok", "hminqcymczngnbdx", "ewuninvud")).withEtag("h")
- .withAuditComment("dtvqe"),
- com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("tprwnw", response.description());
- Assertions.assertEquals("oevytlyokr", response.fqdnList().get(0));
- Assertions.assertEquals("dizr", response.etag());
- Assertions.assertEquals("lobdxna", response.auditComment());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksDeleteMockTests.java
deleted file mode 100644
index f0d352453238e..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksDeleteMockTests.java
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListGlobalRulestacksDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.fqdnListGlobalRulestacks().delete("bnzqcyknapq", "fyuicdh", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksGetWithResponseMockTests.java
deleted file mode 100644
index 4950e230963b0..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksGetWithResponseMockTests.java
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListGlobalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListGlobalRulestacksGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"description\":\"nmg\",\"fqdnList\":[\"ouxddbhfhpfpazj\"],\"etag\":\"ywjxh\",\"auditComment\":\"ulontacnpqwteht\",\"provisioningState\":\"Canceled\"},\"id\":\"hrljy\",\"name\":\"ogwxhnsduugwb\",\"type\":\"reur\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FqdnListGlobalRulestackResource response = manager.fqdnListGlobalRulestacks()
- .getWithResponse("narfdlpukhpyrn", "izjcpeog", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("nmg", response.description());
- Assertions.assertEquals("ouxddbhfhpfpazj", response.fqdnList().get(0));
- Assertions.assertEquals("ywjxh", response.etag());
- Assertions.assertEquals("ulontacnpqwteht", response.auditComment());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksListMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksListMockTests.java
deleted file mode 100644
index b892d7e1a8a07..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListGlobalRulestacksListMockTests.java
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListGlobalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListGlobalRulestacksListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"value\":[{\"properties\":{\"description\":\"tb\",\"fqdnList\":[\"plrohkpigq\"],\"etag\":\"suckzm\",\"auditComment\":\"klsnoxaxmqeqa\",\"provisioningState\":\"Accepted\"},\"id\":\"nhg\",\"name\":\"ydyynfsvkh\",\"type\":\"bvqt\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.fqdnListGlobalRulestacks().list("nlgmtrwahzjmu", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("tb", response.iterator().next().description());
- Assertions.assertEquals("plrohkpigq", response.iterator().next().fqdnList().get(0));
- Assertions.assertEquals("suckzm", response.iterator().next().etag());
- Assertions.assertEquals("klsnoxaxmqeqa", response.iterator().next().auditComment());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackResourceInnerTests.java
deleted file mode 100644
index 6df7fec891374..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackResourceInnerTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListLocalRulestackResourceInner;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FqdnListLocalRulestackResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FqdnListLocalRulestackResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"description\":\"ff\",\"fqdnList\":[\"qitmhheioqaqhv\"],\"etag\":\"ufuqyrx\",\"auditComment\":\"lcgqlsismj\",\"provisioningState\":\"Deleted\"},\"id\":\"dgamquhiosrsj\",\"name\":\"ivfcdisyirnx\",\"type\":\"hcz\"}")
- .toObject(FqdnListLocalRulestackResourceInner.class);
- Assertions.assertEquals("ff", model.description());
- Assertions.assertEquals("qitmhheioqaqhv", model.fqdnList().get(0));
- Assertions.assertEquals("ufuqyrx", model.etag());
- Assertions.assertEquals("lcgqlsismj", model.auditComment());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FqdnListLocalRulestackResourceInner model = new FqdnListLocalRulestackResourceInner().withDescription("ff")
- .withFqdnList(Arrays.asList("qitmhheioqaqhv")).withEtag("ufuqyrx").withAuditComment("lcgqlsismj");
- model = BinaryData.fromObject(model).toObject(FqdnListLocalRulestackResourceInner.class);
- Assertions.assertEquals("ff", model.description());
- Assertions.assertEquals("qitmhheioqaqhv", model.fqdnList().get(0));
- Assertions.assertEquals("ufuqyrx", model.etag());
- Assertions.assertEquals("lcgqlsismj", model.auditComment());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackResourceListResultTests.java
deleted file mode 100644
index 43f6bac40caaf..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestackResourceListResultTests.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListLocalRulestackResourceInner;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResourceListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FqdnListLocalRulestackResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FqdnListLocalRulestackResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"description\":\"dxihc\",\"fqdnList\":[\"phkmcrjdqnsdfz\",\"bg\",\"gkylkdghr\",\"euutlwxezwzh\"],\"etag\":\"vbwnhhtq\",\"auditComment\":\"ehgpp\",\"provisioningState\":\"Updating\"},\"id\":\"hpfeoajvgcxtxjc\",\"name\":\"heafidlt\",\"type\":\"gsresmkssj\"},{\"properties\":{\"description\":\"iftxfkf\",\"fqdnList\":[\"gpr\",\"ptil\",\"ucb\"],\"etag\":\"tgdqohmcwsldriz\",\"auditComment\":\"pwbralllibphbqz\",\"provisioningState\":\"Failed\"},\"id\":\"kakankjpdnjzhaj\",\"name\":\"ylhjlm\",\"type\":\"oyxprimr\"},{\"properties\":{\"description\":\"pteecjme\",\"fqdnList\":[\"ls\",\"vasylwxdzau\"],\"etag\":\"eoohguufuzboyj\",\"auditComment\":\"hwtzolb\",\"provisioningState\":\"Deleting\"},\"id\":\"m\",\"name\":\"xmeb\",\"type\":\"jscjpahl\"},{\"properties\":{\"description\":\"eabfqxnm\",\"fqdnList\":[\"qtibxyijddtv\"],\"etag\":\"ttadijae\",\"auditComment\":\"mrsieekp\",\"provisioningState\":\"Deleting\"},\"id\":\"apm\",\"name\":\"dqmeqwigpibudq\",\"type\":\"yxeb\"}],\"nextLink\":\"bpmzzn\"}")
- .toObject(FqdnListLocalRulestackResourceListResult.class);
- Assertions.assertEquals("dxihc", model.value().get(0).description());
- Assertions.assertEquals("phkmcrjdqnsdfz", model.value().get(0).fqdnList().get(0));
- Assertions.assertEquals("vbwnhhtq", model.value().get(0).etag());
- Assertions.assertEquals("ehgpp", model.value().get(0).auditComment());
- Assertions.assertEquals("bpmzzn", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FqdnListLocalRulestackResourceListResult model = new FqdnListLocalRulestackResourceListResult()
- .withValue(Arrays.asList(
- new FqdnListLocalRulestackResourceInner().withDescription("dxihc")
- .withFqdnList(Arrays.asList("phkmcrjdqnsdfz", "bg", "gkylkdghr", "euutlwxezwzh"))
- .withEtag("vbwnhhtq").withAuditComment("ehgpp"),
- new FqdnListLocalRulestackResourceInner().withDescription("iftxfkf")
- .withFqdnList(Arrays.asList("gpr", "ptil", "ucb")).withEtag("tgdqohmcwsldriz")
- .withAuditComment("pwbralllibphbqz"),
- new FqdnListLocalRulestackResourceInner().withDescription("pteecjme")
- .withFqdnList(Arrays.asList("ls", "vasylwxdzau")).withEtag("eoohguufuzboyj")
- .withAuditComment("hwtzolb"),
- new FqdnListLocalRulestackResourceInner().withDescription("eabfqxnm")
- .withFqdnList(Arrays.asList("qtibxyijddtv")).withEtag("ttadijae").withAuditComment("mrsieekp")))
- .withNextLink("bpmzzn");
- model = BinaryData.fromObject(model).toObject(FqdnListLocalRulestackResourceListResult.class);
- Assertions.assertEquals("dxihc", model.value().get(0).description());
- Assertions.assertEquals("phkmcrjdqnsdfz", model.value().get(0).fqdnList().get(0));
- Assertions.assertEquals("vbwnhhtq", model.value().get(0).etag());
- Assertions.assertEquals("ehgpp", model.value().get(0).auditComment());
- Assertions.assertEquals("bpmzzn", model.nextLink());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksCreateOrUpdateMockTests.java
deleted file mode 100644
index 41b9ba58a6606..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListLocalRulestacksCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"description\":\"aokgkskjivbsshaj\",\"fqdnList\":[\"u\",\"peexpgeumilhwuit\",\"dexyionofninbdb\"],\"etag\":\"xcwqqrsmpc\",\"auditComment\":\"prtug\",\"provisioningState\":\"Succeeded\"},\"id\":\"bcyksivmfogd\",\"name\":\"tbfcm\",\"type\":\"rftsjcwjjxs\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FqdnListLocalRulestackResource response = manager.fqdnListLocalRulestacks().define("hctmjtsgh")
- .withExistingLocalRulestack("xegqphr", "fn").withFqdnList(Arrays.asList("pzarpzeqacdld"))
- .withDescription("c").withEtag("mpypefcpczshnuq").withAuditComment("aizu").create();
-
- Assertions.assertEquals("aokgkskjivbsshaj", response.description());
- Assertions.assertEquals("u", response.fqdnList().get(0));
- Assertions.assertEquals("xcwqqrsmpc", response.etag());
- Assertions.assertEquals("prtug", response.auditComment());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksDeleteMockTests.java
deleted file mode 100644
index 70855e6c2aa40..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksDeleteMockTests.java
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListLocalRulestacksDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.fqdnListLocalRulestacks().delete("skoynuiylpc", "aewse", "vesk", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksGetWithResponseMockTests.java
deleted file mode 100644
index 901949c0b7961..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksGetWithResponseMockTests.java
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListLocalRulestacksGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr
- = "{\"properties\":{\"description\":\"ricctkwmuqqoa\",\"fqdnList\":[\"eiyglesrwvaexhdc\",\"rceqnkbrupob\",\"hdmljz\"],\"etag\":\"vume\",\"auditComment\":\"pbibn\",\"provisioningState\":\"Canceled\"},\"id\":\"epifexleqirccjc\",\"name\":\"ykcgxvrpjlvcz\",\"type\":\"odacpunettepdjxq\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito.when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito.when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure().withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FqdnListLocalRulestackResource response = manager.fqdnListLocalRulestacks()
- .getWithResponse("rngl", "mbiipsnawwlqk", "nxhhl", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("ricctkwmuqqoa", response.description());
- Assertions.assertEquals("eiyglesrwvaexhdc", response.fqdnList().get(0));
- Assertions.assertEquals("vume", response.etag());
- Assertions.assertEquals("pbibn", response.auditComment());
- }
-}
diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksListByLocalRulestacksMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksListByLocalRulestacksMockTests.java
deleted file mode 100644
index f6563a66a0d05..0000000000000
--- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnListLocalRulestacksListByLocalRulestacksMockTests.java
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager;
-import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class FqdnListLocalRulestacksListByLocalRulestacksMockTests {
- @Test
- public void testListByLocalRulestacks() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor