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 httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"atxtjrrlkmdskjhh\",\"fqdnList\":[\"lajfoxcxscvslxlh\"],\"etag\":\"vkrmukmyjmkx\",\"auditComment\":\"tcsloj\",\"provisioningState\":\"Succeeded\"},\"id\":\"dnqtoqxjhqx\",\"name\":\"s\",\"type\":\"htkbtnq\"}]}"; - - 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.fqdnListLocalRulestacks() - .listByLocalRulestacks("ybkcgsuthhllnmwy", "efxexlf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("atxtjrrlkmdskjhh", response.iterator().next().description()); - Assertions.assertEquals("lajfoxcxscvslxlh", response.iterator().next().fqdnList().get(0)); - Assertions.assertEquals("vkrmukmyjmkx", response.iterator().next().etag()); - Assertions.assertEquals("tcsloj", response.iterator().next().auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnObjectTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnObjectTests.java deleted file mode 100644 index 89fd2d79edd51..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FqdnObjectTests.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.FqdnObject; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FqdnObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FqdnObject model = BinaryData.fromString( - "{\"description\":\"auu\",\"fqdnList\":[\"jmvxie\",\"uugidyjrrfby\",\"osvexcsonpclhoc\",\"hslkevleggzf\"],\"etag\":\"hfmvfaxkffe\",\"auditComment\":\"th\",\"provisioningState\":\"Creating\"}") - .toObject(FqdnObject.class); - Assertions.assertEquals("auu", model.description()); - Assertions.assertEquals("jmvxie", model.fqdnList().get(0)); - Assertions.assertEquals("hfmvfaxkffe", model.etag()); - Assertions.assertEquals("th", model.auditComment()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FqdnObject model = new FqdnObject().withDescription("auu") - .withFqdnList(Arrays.asList("jmvxie", "uugidyjrrfby", "osvexcsonpclhoc", "hslkevleggzf")) - .withEtag("hfmvfaxkffe").withAuditComment("th"); - model = BinaryData.fromObject(model).toObject(FqdnObject.class); - Assertions.assertEquals("auu", model.description()); - Assertions.assertEquals("jmvxie", model.fqdnList().get(0)); - Assertions.assertEquals("hfmvfaxkffe", model.etag()); - Assertions.assertEquals("th", model.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FrontendSettingTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FrontendSettingTests.java deleted file mode 100644 index 51e6df1876550..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/FrontendSettingTests.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.models.EndpointConfiguration; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FrontendSetting; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddress; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProtocolType; -import org.junit.jupiter.api.Assertions; - -public final class FrontendSettingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FrontendSetting model = BinaryData.fromString( - "{\"name\":\"kixqtnqtt\",\"protocol\":\"UDP\",\"frontendConfiguration\":{\"port\":\"lwfffi\",\"address\":{\"resourceId\":\"pjpqqmtedltmmji\",\"address\":\"eozphv\"}},\"backendConfiguration\":{\"port\":\"auyqncygupkv\",\"address\":{\"resourceId\":\"mdscwxqupev\",\"address\":\"f\"}}}") - .toObject(FrontendSetting.class); - Assertions.assertEquals("kixqtnqtt", model.name()); - Assertions.assertEquals(ProtocolType.UDP, model.protocol()); - Assertions.assertEquals("lwfffi", model.frontendConfiguration().port()); - Assertions.assertEquals("pjpqqmtedltmmji", model.frontendConfiguration().address().resourceId()); - Assertions.assertEquals("eozphv", model.frontendConfiguration().address().address()); - Assertions.assertEquals("auyqncygupkv", model.backendConfiguration().port()); - Assertions.assertEquals("mdscwxqupev", model.backendConfiguration().address().resourceId()); - Assertions.assertEquals("f", model.backendConfiguration().address().address()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FrontendSetting model = new FrontendSetting().withName("kixqtnqtt").withProtocol(ProtocolType.UDP) - .withFrontendConfiguration(new EndpointConfiguration().withPort("lwfffi") - .withAddress(new IpAddress().withResourceId("pjpqqmtedltmmji").withAddress("eozphv"))) - .withBackendConfiguration(new EndpointConfiguration().withPort("auyqncygupkv") - .withAddress(new IpAddress().withResourceId("mdscwxqupev").withAddress("f"))); - model = BinaryData.fromObject(model).toObject(FrontendSetting.class); - Assertions.assertEquals("kixqtnqtt", model.name()); - Assertions.assertEquals(ProtocolType.UDP, model.protocol()); - Assertions.assertEquals("lwfffi", model.frontendConfiguration().port()); - Assertions.assertEquals("pjpqqmtedltmmji", model.frontendConfiguration().address().resourceId()); - Assertions.assertEquals("eozphv", model.frontendConfiguration().address().address()); - Assertions.assertEquals("auyqncygupkv", model.backendConfiguration().port()); - Assertions.assertEquals("mdscwxqupev", model.backendConfiguration().address().resourceId()); - Assertions.assertEquals("f", model.backendConfiguration().address().address()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackInfoInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackInfoInnerTests.java deleted file mode 100644 index 68d5805dbc523..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackInfoInnerTests.java +++ /dev/null @@ -1,25 +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.GlobalRulestackInfoInner; -import org.junit.jupiter.api.Assertions; - -public final class GlobalRulestackInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalRulestackInfoInner model - = BinaryData.fromString("{\"azureId\":\"wn\"}").toObject(GlobalRulestackInfoInner.class); - Assertions.assertEquals("wn", model.azureId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalRulestackInfoInner model = new GlobalRulestackInfoInner().withAzureId("wn"); - model = BinaryData.fromObject(model).toObject(GlobalRulestackInfoInner.class); - Assertions.assertEquals("wn", model.azureId()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceInnerTests.java deleted file mode 100644 index 134246447760c..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceInnerTests.java +++ /dev/null @@ -1,99 +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.GlobalRulestackResourceInner; -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.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 org.junit.jupiter.api.Assertions; - -public final class GlobalRulestackResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalRulestackResourceInner model = BinaryData.fromString( - "{\"properties\":{\"panEtag\":\"jfkgiawxk\",\"panLocation\":\"ypl\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"syyp\"],\"description\":\"dhsgcba\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"jkot\",\"provisioningState\":\"Accepted\",\"securityServices\":{\"vulnerabilityProfile\":\"ulzndlikwyqk\",\"antiSpywareProfile\":\"gibma\",\"antiVirusProfile\":\"akeqs\",\"urlFilteringProfile\":\"yb\",\"fileBlockingProfile\":\"qedqytbciqfoufl\",\"dnsSubscription\":\"nkzsmodmglou\",\"outboundUnTrustCertificate\":\"b\",\"outboundTrustCertificate\":\"tmut\"}},\"location\":\"uqktap\",\"identity\":{\"tenantId\":\"gcue\",\"principalId\":\"umkdosvqwhbmd\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"pbhtqqrolfpfpsa\":{\"clientId\":\"ddgmb\",\"principalId\":\"ex\"},\"erkujys\":{\"clientId\":\"bquxigjy\",\"principalId\":\"zjaoyfhrtxil\"},\"cpr\":{\"clientId\":\"eju\",\"principalId\":\"qawrlyxwj\"}}},\"id\":\"wbxgjvt\",\"name\":\"vpys\",\"type\":\"zdn\"}") - .toObject(GlobalRulestackResourceInner.class); - Assertions.assertEquals("uqktap", model.location()); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("ddgmb", model.identity().userAssignedIdentities().get("pbhtqqrolfpfpsa").clientId()); - Assertions.assertEquals("ex", model.identity().userAssignedIdentities().get("pbhtqqrolfpfpsa").principalId()); - Assertions.assertEquals("jfkgiawxk", model.panEtag()); - Assertions.assertEquals("ypl", model.panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("syyp", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("dhsgcba", model.description()); - Assertions.assertEquals(DefaultMode.IPS, model.defaultMode()); - Assertions.assertEquals("jkot", model.minAppIdVersion()); - Assertions.assertEquals("ulzndlikwyqk", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("gibma", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("akeqs", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("yb", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("qedqytbciqfoufl", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("nkzsmodmglou", model.securityServices().dnsSubscription()); - Assertions.assertEquals("b", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("tmut", model.securityServices().outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalRulestackResourceInner model = new GlobalRulestackResourceInner().withLocation("uqktap") - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("pbhtqqrolfpfpsa", - new AzureResourceManagerUserAssignedIdentity().withClientId("ddgmb").withPrincipalId("ex"), - "erkujys", - new AzureResourceManagerUserAssignedIdentity().withClientId("bquxigjy") - .withPrincipalId("zjaoyfhrtxil"), - "cpr", - new AzureResourceManagerUserAssignedIdentity().withClientId("eju").withPrincipalId("qawrlyxwj")))) - .withPanEtag("jfkgiawxk").withPanLocation("ypl").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("syyp")).withDescription("dhsgcba") - .withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("jkot") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("ulzndlikwyqk") - .withAntiSpywareProfile("gibma").withAntiVirusProfile("akeqs").withUrlFilteringProfile("yb") - .withFileBlockingProfile("qedqytbciqfoufl").withDnsSubscription("nkzsmodmglou") - .withOutboundUnTrustCertificate("b").withOutboundTrustCertificate("tmut")); - model = BinaryData.fromObject(model).toObject(GlobalRulestackResourceInner.class); - Assertions.assertEquals("uqktap", model.location()); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("ddgmb", model.identity().userAssignedIdentities().get("pbhtqqrolfpfpsa").clientId()); - Assertions.assertEquals("ex", model.identity().userAssignedIdentities().get("pbhtqqrolfpfpsa").principalId()); - Assertions.assertEquals("jfkgiawxk", model.panEtag()); - Assertions.assertEquals("ypl", model.panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("syyp", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("dhsgcba", model.description()); - Assertions.assertEquals(DefaultMode.IPS, model.defaultMode()); - Assertions.assertEquals("jkot", model.minAppIdVersion()); - Assertions.assertEquals("ulzndlikwyqk", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("gibma", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("akeqs", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("yb", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("qedqytbciqfoufl", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("nkzsmodmglou", model.securityServices().dnsSubscription()); - Assertions.assertEquals("b", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("tmut", model.securityServices().outboundTrustCertificate()); - } - - // 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/GlobalRulestackResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceListResultTests.java deleted file mode 100644 index 312626949a236..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceListResultTests.java +++ /dev/null @@ -1,161 +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.GlobalRulestackResourceInner; -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.GlobalRulestackResourceListResult; -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 org.junit.jupiter.api.Assertions; - -public final class GlobalRulestackResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalRulestackResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"panEtag\":\"hq\",\"panLocation\":\"gjxpybczmehmt\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"phrupidgsybbejhp\",\"oycmsxaobhdxbmt\",\"ioq\"],\"description\":\"ehtbm\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"wnoi\",\"provisioningState\":\"Failed\",\"securityServices\":{\"vulnerabilityProfile\":\"xybqsoqij\",\"antiSpywareProfile\":\"dmbpazlobcufpdz\",\"antiVirusProfile\":\"btcqq\",\"urlFilteringProfile\":\"qglhq\",\"fileBlockingProfile\":\"ufo\",\"dnsSubscription\":\"jywif\",\"outboundUnTrustCertificate\":\"esaagdfm\",\"outboundTrustCertificate\":\"zlhjxrifkwmrvkt\"}},\"location\":\"izntocipao\",\"identity\":{\"tenantId\":\"psqucmpoyf\",\"principalId\":\"fogknygjofjdde\",\"type\":\"None\",\"userAssignedIdentities\":{\"hs\":{\"clientId\":\"upewnwreitjzy\",\"principalId\":\"usarhmofc\"},\"arcryuanzwuxzdxt\":{\"clientId\":\"urkdtmlx\",\"principalId\":\"kuksjtxukcdm\"},\"rqobmtuk\":{\"clientId\":\"rlhm\",\"principalId\":\"fp\"}}},\"id\":\"ryrtihfxtijbpzv\",\"name\":\"nwzsymg\",\"type\":\"zufcyzkohdbi\"},{\"properties\":{\"panEtag\":\"nufhf\",\"panLocation\":\"jysagith\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"ifpikxwczby\",\"cnpqxuhivyqniwby\",\"rkxvdum\"],\"description\":\"rtfw\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"gaudcc\",\"provisioningState\":\"Accepted\",\"securityServices\":{\"vulnerabilityProfile\":\"cnyejhkryhtnapcz\",\"antiSpywareProfile\":\"okjye\",\"antiVirusProfile\":\"kvnipjoxz\",\"urlFilteringProfile\":\"chgejspodm\",\"fileBlockingProfile\":\"lzydehojwyahux\",\"dnsSubscription\":\"pmqnja\",\"outboundUnTrustCertificate\":\"ixjsprozvcputeg\",\"outboundTrustCertificate\":\"wmfdatscmdvpjhul\"}},\"location\":\"uuvmkjozkrwfnd\",\"identity\":{\"tenantId\":\"jpslwejd\",\"principalId\":\"wryoqpsoacc\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"xpaojakhmsbz\":{\"clientId\":\"ljlahbcryf\",\"principalId\":\"fdosyg\"}}},\"id\":\"crzevdphlx\",\"name\":\"olthqtrgqjbp\",\"type\":\"zfsinzgvf\"},{\"properties\":{\"panEtag\":\"rwzoxxjtfelluwf\",\"panLocation\":\"tonpe\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"jlxofpdvhpfxxyp\",\"ninmayhuyb\",\"kpode\"],\"description\":\"oginuvamiheognar\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"heotusiv\",\"provisioningState\":\"Deleting\",\"securityServices\":{\"vulnerabilityProfile\":\"iqihn\",\"antiSpywareProfile\":\"ngbwjz\",\"antiVirusProfile\":\"fygxgispemvtzfk\",\"urlFilteringProfile\":\"ubljofxqe\",\"fileBlockingProfile\":\"jaeq\",\"dnsSubscription\":\"qjbasvms\",\"outboundUnTrustCertificate\":\"qulngsntnbybkzgc\",\"outboundTrustCertificate\":\"wclxxwrl\"}},\"location\":\"douskcqvkocrcjdk\",\"identity\":{\"tenantId\":\"hxbnjbiksqrg\",\"principalId\":\"sainqpjwnzl\",\"type\":\"None\",\"userAssignedIdentities\":{\"yqduujit\":{\"clientId\":\"pee\",\"principalId\":\"mgxsab\"},\"pdappds\":{\"clientId\":\"czdzev\",\"principalId\":\"hkr\"},\"tmrldhugjzzdatq\":{\"clientId\":\"kvwrwjfeu\",\"principalId\":\"hutje\"}}},\"id\":\"oc\",\"name\":\"geablgphuticndvk\",\"type\":\"ozwyiftyhxhuro\"}],\"nextLink\":\"tyxolniwpwc\"}") - .toObject(GlobalRulestackResourceListResult.class); - Assertions.assertEquals("izntocipao", model.value().get(0).location()); - Assertions.assertEquals(ManagedIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("upewnwreitjzy", - model.value().get(0).identity().userAssignedIdentities().get("hs").clientId()); - Assertions.assertEquals("usarhmofc", - model.value().get(0).identity().userAssignedIdentities().get("hs").principalId()); - Assertions.assertEquals("hq", model.value().get(0).panEtag()); - Assertions.assertEquals("gjxpybczmehmt", model.value().get(0).panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.value().get(0).scope()); - Assertions.assertEquals("phrupidgsybbejhp", model.value().get(0).associatedSubscriptions().get(0)); - Assertions.assertEquals("ehtbm", model.value().get(0).description()); - Assertions.assertEquals(DefaultMode.NONE, model.value().get(0).defaultMode()); - Assertions.assertEquals("wnoi", model.value().get(0).minAppIdVersion()); - Assertions.assertEquals("xybqsoqij", model.value().get(0).securityServices().vulnerabilityProfile()); - Assertions.assertEquals("dmbpazlobcufpdz", model.value().get(0).securityServices().antiSpywareProfile()); - Assertions.assertEquals("btcqq", model.value().get(0).securityServices().antiVirusProfile()); - Assertions.assertEquals("qglhq", model.value().get(0).securityServices().urlFilteringProfile()); - Assertions.assertEquals("ufo", model.value().get(0).securityServices().fileBlockingProfile()); - Assertions.assertEquals("jywif", model.value().get(0).securityServices().dnsSubscription()); - Assertions.assertEquals("esaagdfm", model.value().get(0).securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("zlhjxrifkwmrvkt", model.value().get(0).securityServices().outboundTrustCertificate()); - Assertions.assertEquals("tyxolniwpwc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalRulestackResourceListResult model - = new GlobalRulestackResourceListResult() - .withValue( - Arrays - .asList( - new GlobalRulestackResourceInner() - .withLocation( - "izntocipao") - .withIdentity( - new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.NONE).withUserAssignedIdentities( - mapOf("hs", - new AzureResourceManagerUserAssignedIdentity() - .withClientId("upewnwreitjzy").withPrincipalId("usarhmofc"), - "arcryuanzwuxzdxt", - new AzureResourceManagerUserAssignedIdentity() - .withClientId("urkdtmlx").withPrincipalId("kuksjtxukcdm"), - "rqobmtuk", - new AzureResourceManagerUserAssignedIdentity().withClientId("rlhm") - .withPrincipalId("fp")))) - .withPanEtag("hq").withPanLocation("gjxpybczmehmt").withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions( - Arrays.asList("phrupidgsybbejhp", "oycmsxaobhdxbmt", "ioq")) - .withDescription("ehtbm").withDefaultMode( - DefaultMode.NONE) - .withMinAppIdVersion("wnoi") - .withSecurityServices(new SecurityServices() - .withVulnerabilityProfile("xybqsoqij").withAntiSpywareProfile("dmbpazlobcufpdz") - .withAntiVirusProfile("btcqq").withUrlFilteringProfile("qglhq") - .withFileBlockingProfile("ufo").withDnsSubscription("jywif") - .withOutboundUnTrustCertificate("esaagdfm").withOutboundTrustCertificate( - "zlhjxrifkwmrvkt")), - new GlobalRulestackResourceInner().withLocation("uuvmkjozkrwfnd") - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("xpaojakhmsbz", - new AzureResourceManagerUserAssignedIdentity().withClientId("ljlahbcryf") - .withPrincipalId("fdosyg")))) - .withPanEtag("nufhf").withPanLocation("jysagith").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions( - Arrays.asList("ifpikxwczby", "cnpqxuhivyqniwby", "rkxvdum")) - .withDescription("rtfw").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("gaudcc") - .withSecurityServices( - new SecurityServices() - .withVulnerabilityProfile("cnyejhkryhtnapcz").withAntiSpywareProfile("okjye") - .withAntiVirusProfile("kvnipjoxz").withUrlFilteringProfile("chgejspodm") - .withFileBlockingProfile("lzydehojwyahux").withDnsSubscription("pmqnja") - .withOutboundUnTrustCertificate( - "ixjsprozvcputeg") - .withOutboundTrustCertificate("wmfdatscmdvpjhul")), - new GlobalRulestackResourceInner().withLocation("douskcqvkocrcjdk") - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.NONE) - .withUserAssignedIdentities(mapOf("yqduujit", - new AzureResourceManagerUserAssignedIdentity().withClientId("pee") - .withPrincipalId("mgxsab"), - "pdappds", - new AzureResourceManagerUserAssignedIdentity().withClientId("czdzev") - .withPrincipalId("hkr"), - "tmrldhugjzzdatq", - new AzureResourceManagerUserAssignedIdentity().withClientId("kvwrwjfeu") - .withPrincipalId("hutje")))) - .withPanEtag("rwzoxxjtfelluwf").withPanLocation("tonpe").withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions(Arrays.asList("jlxofpdvhpfxxyp", "ninmayhuyb", "kpode")) - .withDescription("oginuvamiheognar").withDefaultMode(DefaultMode.NONE) - .withMinAppIdVersion("heotusiv") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("iqihn") - .withAntiSpywareProfile("ngbwjz").withAntiVirusProfile("fygxgispemvtzfk") - .withUrlFilteringProfile("ubljofxqe").withFileBlockingProfile("jaeq") - .withDnsSubscription("qjbasvms").withOutboundUnTrustCertificate("qulngsntnbybkzgc") - .withOutboundTrustCertificate("wclxxwrl")))) - .withNextLink("tyxolniwpwc"); - model = BinaryData.fromObject(model).toObject(GlobalRulestackResourceListResult.class); - Assertions.assertEquals("izntocipao", model.value().get(0).location()); - Assertions.assertEquals(ManagedIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("upewnwreitjzy", - model.value().get(0).identity().userAssignedIdentities().get("hs").clientId()); - Assertions.assertEquals("usarhmofc", - model.value().get(0).identity().userAssignedIdentities().get("hs").principalId()); - Assertions.assertEquals("hq", model.value().get(0).panEtag()); - Assertions.assertEquals("gjxpybczmehmt", model.value().get(0).panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.value().get(0).scope()); - Assertions.assertEquals("phrupidgsybbejhp", model.value().get(0).associatedSubscriptions().get(0)); - Assertions.assertEquals("ehtbm", model.value().get(0).description()); - Assertions.assertEquals(DefaultMode.NONE, model.value().get(0).defaultMode()); - Assertions.assertEquals("wnoi", model.value().get(0).minAppIdVersion()); - Assertions.assertEquals("xybqsoqij", model.value().get(0).securityServices().vulnerabilityProfile()); - Assertions.assertEquals("dmbpazlobcufpdz", model.value().get(0).securityServices().antiSpywareProfile()); - Assertions.assertEquals("btcqq", model.value().get(0).securityServices().antiVirusProfile()); - Assertions.assertEquals("qglhq", model.value().get(0).securityServices().urlFilteringProfile()); - Assertions.assertEquals("ufo", model.value().get(0).securityServices().fileBlockingProfile()); - Assertions.assertEquals("jywif", model.value().get(0).securityServices().dnsSubscription()); - Assertions.assertEquals("esaagdfm", model.value().get(0).securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("zlhjxrifkwmrvkt", model.value().get(0).securityServices().outboundTrustCertificate()); - Assertions.assertEquals("tyxolniwpwc", model.nextLink()); - } - - // 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/GlobalRulestackResourceUpdatePropertiesTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceUpdatePropertiesTests.java deleted file mode 100644 index 36c70d56e6573..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceUpdatePropertiesTests.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.util.BinaryData; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdateProperties; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class GlobalRulestackResourceUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalRulestackResourceUpdateProperties model = BinaryData.fromString( - "{\"panEtag\":\"igeho\",\"panLocation\":\"bowsk\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"zlcuiywgqywgndrv\",\"nhzgpphrcgyn\",\"ocpecfvmmco\",\"fsxlzevgbmqjqa\"],\"description\":\"y\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"kwlzuvccfwnfn\",\"securityServices\":{\"vulnerabilityProfile\":\"fionl\",\"antiSpywareProfile\":\"x\",\"antiVirusProfile\":\"qgtz\",\"urlFilteringProfile\":\"pnqbqqwxrjfe\",\"fileBlockingProfile\":\"lnwsubisn\",\"dnsSubscription\":\"mpmngnzscxaqwoo\",\"outboundUnTrustCertificate\":\"cbonqvpk\",\"outboundTrustCertificate\":\"rxnjeaseipheofl\"}}") - .toObject(GlobalRulestackResourceUpdateProperties.class); - Assertions.assertEquals("igeho", model.panEtag()); - Assertions.assertEquals("bowsk", model.panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("zlcuiywgqywgndrv", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("y", model.description()); - Assertions.assertEquals(DefaultMode.FIREWALL, model.defaultMode()); - Assertions.assertEquals("kwlzuvccfwnfn", model.minAppIdVersion()); - Assertions.assertEquals("fionl", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("x", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("qgtz", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("pnqbqqwxrjfe", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("lnwsubisn", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("mpmngnzscxaqwoo", model.securityServices().dnsSubscription()); - Assertions.assertEquals("cbonqvpk", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("rxnjeaseipheofl", model.securityServices().outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalRulestackResourceUpdateProperties model = new GlobalRulestackResourceUpdateProperties() - .withPanEtag("igeho").withPanLocation("bowsk").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions( - Arrays.asList("zlcuiywgqywgndrv", "nhzgpphrcgyn", "ocpecfvmmco", "fsxlzevgbmqjqa")) - .withDescription("y").withDefaultMode(DefaultMode.FIREWALL).withMinAppIdVersion("kwlzuvccfwnfn") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("fionl").withAntiSpywareProfile("x") - .withAntiVirusProfile("qgtz").withUrlFilteringProfile("pnqbqqwxrjfe") - .withFileBlockingProfile("lnwsubisn").withDnsSubscription("mpmngnzscxaqwoo") - .withOutboundUnTrustCertificate("cbonqvpk").withOutboundTrustCertificate("rxnjeaseipheofl")); - model = BinaryData.fromObject(model).toObject(GlobalRulestackResourceUpdateProperties.class); - Assertions.assertEquals("igeho", model.panEtag()); - Assertions.assertEquals("bowsk", model.panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("zlcuiywgqywgndrv", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("y", model.description()); - Assertions.assertEquals(DefaultMode.FIREWALL, model.defaultMode()); - Assertions.assertEquals("kwlzuvccfwnfn", model.minAppIdVersion()); - Assertions.assertEquals("fionl", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("x", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("qgtz", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("pnqbqqwxrjfe", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("lnwsubisn", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("mpmngnzscxaqwoo", model.securityServices().dnsSubscription()); - Assertions.assertEquals("cbonqvpk", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("rxnjeaseipheofl", model.securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceUpdateTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceUpdateTests.java deleted file mode 100644 index 3da2d53202f51..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestackResourceUpdateTests.java +++ /dev/null @@ -1,97 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdate; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdateProperties; -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 org.junit.jupiter.api.Assertions; - -public final class GlobalRulestackResourceUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalRulestackResourceUpdate model = BinaryData.fromString( - "{\"location\":\"aqsqsycbkbfk\",\"identity\":{\"tenantId\":\"dkexxppofm\",\"principalId\":\"x\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"bqe\":{\"clientId\":\"ddtocjjxhvp\",\"principalId\":\"uexhdzx\"}}},\"properties\":{\"panEtag\":\"xqbzvddntwnd\",\"panLocation\":\"cbtwnpzaoqvuh\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"cyddglmjthjqk\",\"pyeicxm\"],\"description\":\"iwqvhkh\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"gdtopbobjogh\",\"securityServices\":{\"vulnerabilityProfile\":\"u\",\"antiSpywareProfile\":\"a\",\"antiVirusProfile\":\"rzayv\",\"urlFilteringProfile\":\"pgvdf\",\"fileBlockingProfile\":\"otkftutqxlngx\",\"dnsSubscription\":\"fgugnxkrxdqmid\",\"outboundUnTrustCertificate\":\"hzrvqd\",\"outboundTrustCertificate\":\"bhj\"}}}") - .toObject(GlobalRulestackResourceUpdate.class); - Assertions.assertEquals("aqsqsycbkbfk", model.location()); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("ddtocjjxhvp", model.identity().userAssignedIdentities().get("bqe").clientId()); - Assertions.assertEquals("uexhdzx", model.identity().userAssignedIdentities().get("bqe").principalId()); - Assertions.assertEquals("xqbzvddntwnd", model.properties().panEtag()); - Assertions.assertEquals("cbtwnpzaoqvuh", model.properties().panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.properties().scope()); - Assertions.assertEquals("cyddglmjthjqk", model.properties().associatedSubscriptions().get(0)); - Assertions.assertEquals("iwqvhkh", model.properties().description()); - Assertions.assertEquals(DefaultMode.IPS, model.properties().defaultMode()); - Assertions.assertEquals("gdtopbobjogh", model.properties().minAppIdVersion()); - Assertions.assertEquals("u", model.properties().securityServices().vulnerabilityProfile()); - Assertions.assertEquals("a", model.properties().securityServices().antiSpywareProfile()); - Assertions.assertEquals("rzayv", model.properties().securityServices().antiVirusProfile()); - Assertions.assertEquals("pgvdf", model.properties().securityServices().urlFilteringProfile()); - Assertions.assertEquals("otkftutqxlngx", model.properties().securityServices().fileBlockingProfile()); - Assertions.assertEquals("fgugnxkrxdqmid", model.properties().securityServices().dnsSubscription()); - Assertions.assertEquals("hzrvqd", model.properties().securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("bhj", model.properties().securityServices().outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalRulestackResourceUpdate model = new GlobalRulestackResourceUpdate().withLocation("aqsqsycbkbfk") - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("bqe", - new AzureResourceManagerUserAssignedIdentity().withClientId("ddtocjjxhvp") - .withPrincipalId("uexhdzx")))) - .withProperties(new GlobalRulestackResourceUpdateProperties().withPanEtag("xqbzvddntwnd") - .withPanLocation("cbtwnpzaoqvuh").withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions(Arrays.asList("cyddglmjthjqk", "pyeicxm")).withDescription("iwqvhkh") - .withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("gdtopbobjogh") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("u").withAntiSpywareProfile("a") - .withAntiVirusProfile("rzayv").withUrlFilteringProfile("pgvdf") - .withFileBlockingProfile("otkftutqxlngx").withDnsSubscription("fgugnxkrxdqmid") - .withOutboundUnTrustCertificate("hzrvqd").withOutboundTrustCertificate("bhj"))); - model = BinaryData.fromObject(model).toObject(GlobalRulestackResourceUpdate.class); - Assertions.assertEquals("aqsqsycbkbfk", model.location()); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("ddtocjjxhvp", model.identity().userAssignedIdentities().get("bqe").clientId()); - Assertions.assertEquals("uexhdzx", model.identity().userAssignedIdentities().get("bqe").principalId()); - Assertions.assertEquals("xqbzvddntwnd", model.properties().panEtag()); - Assertions.assertEquals("cbtwnpzaoqvuh", model.properties().panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.properties().scope()); - Assertions.assertEquals("cyddglmjthjqk", model.properties().associatedSubscriptions().get(0)); - Assertions.assertEquals("iwqvhkh", model.properties().description()); - Assertions.assertEquals(DefaultMode.IPS, model.properties().defaultMode()); - Assertions.assertEquals("gdtopbobjogh", model.properties().minAppIdVersion()); - Assertions.assertEquals("u", model.properties().securityServices().vulnerabilityProfile()); - Assertions.assertEquals("a", model.properties().securityServices().antiSpywareProfile()); - Assertions.assertEquals("rzayv", model.properties().securityServices().antiVirusProfile()); - Assertions.assertEquals("pgvdf", model.properties().securityServices().urlFilteringProfile()); - Assertions.assertEquals("otkftutqxlngx", model.properties().securityServices().fileBlockingProfile()); - Assertions.assertEquals("fgugnxkrxdqmid", model.properties().securityServices().dnsSubscription()); - Assertions.assertEquals("hzrvqd", model.properties().securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("bhj", model.properties().securityServices().outboundTrustCertificate()); - } - - // 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/GlobalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksCreateOrUpdateMockTests.java deleted file mode 100644 index 18f11af22c0c0..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksCreateOrUpdateMockTests.java +++ /dev/null @@ -1,117 +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.GlobalRulestackResourceInner; -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.GlobalRulestackResource; -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.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -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 GlobalRulestacksCreateOrUpdateMockTests { - @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\":{\"panEtag\":\"e\",\"panLocation\":\"jetagltsxoatft\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"bs\",\"vefloccsrmozihmi\",\"g\",\"wtxxpkyjcx\"],\"description\":\"xgrytfmp\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"lrmcaykg\",\"provisioningState\":\"Succeeded\",\"securityServices\":{\"vulnerabilityProfile\":\"ztrksxwpndf\",\"antiSpywareProfile\":\"fnznth\",\"antiVirusProfile\":\"wkjaos\",\"urlFilteringProfile\":\"uzvoamktcqiosm\",\"fileBlockingProfile\":\"zah\",\"dnsSubscription\":\"qdlyrtl\",\"outboundUnTrustCertificate\":\"ap\",\"outboundTrustCertificate\":\"tz\"}},\"location\":\"atbhjmznn\",\"identity\":{\"tenantId\":\"qeqala\",\"principalId\":\"lagun\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"zqavbpdqmjx\":{\"clientId\":\"bwln\",\"principalId\":\"hyreeu\"},\"yuojqtobaxk\":{\"clientId\":\"yzglgo\",\"principalId\":\"tlmj\"},\"njqhdenxa\":{\"clientId\":\"ytunlbfjkwr\",\"principalId\":\"nkqbhsyrq\"},\"wtqabpxuckp\":{\"clientId\":\"kpak\",\"principalId\":\"ifmjnn\"}}},\"id\":\"qoweyirdhl\",\"name\":\"sn\",\"type\":\"wfl\"}"; - - 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)); - - GlobalRulestackResource response = manager.globalRulestacks().createOrUpdate("crpfbcunez", - new GlobalRulestackResourceInner().withLocation("xmonstshi") - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("zvners", - new AzureResourceManagerUserAssignedIdentity().withClientId("wjizcilnghgsh") - .withPrincipalId("jtbxqmuluxlx"), - "ziqgfuh", - new AzureResourceManagerUserAssignedIdentity().withClientId("cucrwnamikze") - .withPrincipalId("qbsms"), - "wix", - new AzureResourceManagerUserAssignedIdentity().withClientId("zruswh") - .withPrincipalId("czznvfbycjsxj")))) - .withPanEtag("e").withPanLocation("lfwyfwlwxjwetn").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("lafzvaylptr", "qqwzt", "mwqkchcxwaxf")) - .withDescription("zjkjexfdeqv").withDefaultMode(DefaultMode.FIREWALL) - .withMinAppIdVersion("lkkshkbffmbmx") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("wwp") - .withAntiSpywareProfile("xs").withAntiVirusProfile("tf").withUrlFilteringProfile("gicgaaoepttaq") - .withFileBlockingProfile("dewemxswv").withDnsSubscription("unzzjgehk") - .withOutboundUnTrustCertificate("imrt").withOutboundTrustCertificate("okffqyinljqepqwh")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("atbhjmznn", response.location()); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, response.identity().type()); - Assertions.assertEquals("bwln", response.identity().userAssignedIdentities().get("zqavbpdqmjx").clientId()); - Assertions.assertEquals("hyreeu", - response.identity().userAssignedIdentities().get("zqavbpdqmjx").principalId()); - Assertions.assertEquals("e", response.panEtag()); - Assertions.assertEquals("jetagltsxoatft", response.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, response.scope()); - Assertions.assertEquals("bs", response.associatedSubscriptions().get(0)); - Assertions.assertEquals("xgrytfmp", response.description()); - Assertions.assertEquals(DefaultMode.FIREWALL, response.defaultMode()); - Assertions.assertEquals("lrmcaykg", response.minAppIdVersion()); - Assertions.assertEquals("ztrksxwpndf", response.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("fnznth", response.securityServices().antiSpywareProfile()); - Assertions.assertEquals("wkjaos", response.securityServices().antiVirusProfile()); - Assertions.assertEquals("uzvoamktcqiosm", response.securityServices().urlFilteringProfile()); - Assertions.assertEquals("zah", response.securityServices().fileBlockingProfile()); - Assertions.assertEquals("qdlyrtl", response.securityServices().dnsSubscription()); - Assertions.assertEquals("ap", response.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("tz", response.securityServices().outboundTrustCertificate()); - } - - // 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/GlobalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksDeleteMockTests.java deleted file mode 100644 index c8483bad7a2f3..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksDeleteMockTests.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 GlobalRulestacksDeleteMockTests { - @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.globalRulestacks().delete("gox", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksGetChangeLogWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksGetChangeLogWithResponseMockTests.java deleted file mode 100644 index a0bfa682ab99a..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksGetChangeLogWithResponseMockTests.java +++ /dev/null @@ -1,58 +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.Changelog; -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 GlobalRulestacksGetChangeLogWithResponseMockTests { - @Test - public void testGetChangeLogWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"changes\":[\"wjedmurrxxgew\"],\"lastCommitted\":\"2021-06-22T20:24:57Z\",\"lastModified\":\"2021-05-29T11:10:18Z\"}"; - - 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)); - - Changelog response = manager.globalRulestacks() - .getChangeLogWithResponse("jiuqhibtozi", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("wjedmurrxxgew", response.changes().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T20:24:57Z"), response.lastCommitted()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T11:10:18Z"), response.lastModified()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksGetWithResponseMockTests.java deleted file mode 100644 index 17d808946383d..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksGetWithResponseMockTests.java +++ /dev/null @@ -1,77 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResource; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -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 GlobalRulestacksGetWithResponseMockTests { - @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\":{\"panEtag\":\"hsphaivmxyas\",\"panLocation\":\"vgsgzwywakoihkn\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"mlj\",\"lnymzotqy\",\"yuzcbmqqvxmvw\",\"gtayxonsupeujlz\"],\"description\":\"hcvsqltnzoi\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"gnxf\",\"provisioningState\":\"Canceled\",\"securityServices\":{\"vulnerabilityProfile\":\"p\",\"antiSpywareProfile\":\"xwdofdb\",\"antiVirusProfile\":\"qxeiiqbimhtmwwi\",\"urlFilteringProfile\":\"ehfqpofvwbc\",\"fileBlockingProfile\":\"embnkbw\",\"dnsSubscription\":\"vxkdivqihebwtswb\",\"outboundUnTrustCertificate\":\"wfmdurage\",\"outboundTrustCertificate\":\"zvcjfelisdjubggb\"}},\"location\":\"igkxkbsazga\",\"identity\":{\"tenantId\":\"cyrcmjdmspo\",\"principalId\":\"pv\",\"type\":\"None\",\"userAssignedIdentities\":{\"bzjedmstk\":{\"clientId\":\"ni\",\"principalId\":\"rz\"},\"ktwfa\":{\"clientId\":\"l\",\"principalId\":\"bcuiiz\"}}},\"id\":\"nv\",\"name\":\"dibmikostbzbkiwb\",\"type\":\"qnyophzfyls\"}"; - - 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)); - - GlobalRulestackResource response - = manager.globalRulestacks().getWithResponse("uamwabzxrvxc", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("igkxkbsazga", response.location()); - Assertions.assertEquals(ManagedIdentityType.NONE, response.identity().type()); - Assertions.assertEquals("ni", response.identity().userAssignedIdentities().get("bzjedmstk").clientId()); - Assertions.assertEquals("rz", response.identity().userAssignedIdentities().get("bzjedmstk").principalId()); - Assertions.assertEquals("hsphaivmxyas", response.panEtag()); - Assertions.assertEquals("vgsgzwywakoihkn", response.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, response.scope()); - Assertions.assertEquals("mlj", response.associatedSubscriptions().get(0)); - Assertions.assertEquals("hcvsqltnzoi", response.description()); - Assertions.assertEquals(DefaultMode.IPS, response.defaultMode()); - Assertions.assertEquals("gnxf", response.minAppIdVersion()); - Assertions.assertEquals("p", response.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("xwdofdb", response.securityServices().antiSpywareProfile()); - Assertions.assertEquals("qxeiiqbimhtmwwi", response.securityServices().antiVirusProfile()); - Assertions.assertEquals("ehfqpofvwbc", response.securityServices().urlFilteringProfile()); - Assertions.assertEquals("embnkbw", response.securityServices().fileBlockingProfile()); - Assertions.assertEquals("vxkdivqihebwtswb", response.securityServices().dnsSubscription()); - Assertions.assertEquals("wfmdurage", response.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("zvcjfelisdjubggb", response.securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListAdvancedSecurityObjectsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListAdvancedSecurityObjectsWithResponseMockTests.java deleted file mode 100644 index b4e6e2a9ab966..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListAdvancedSecurityObjectsWithResponseMockTests.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.AdvSecurityObjectListResponse; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum; -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 GlobalRulestacksListAdvancedSecurityObjectsWithResponseMockTests { - @Test - public void testListAdvancedSecurityObjectsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":{\"type\":\"xoe\",\"entry\":[{\"name\":\"injipnwjf\",\"description\":\"qlafcbahhpzpofoi\"},{\"name\":\"jwpfilkm\",\"description\":\"holvdn\"},{\"name\":\"viauogphua\",\"description\":\"vtiukyef\"}]},\"nextLink\":\"nmnahmnx\"}"; - - 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)); - - AdvSecurityObjectListResponse response - = manager.globalRulestacks().listAdvancedSecurityObjectsWithResponse("lkm", AdvSecurityObjectTypeEnum.FEEDS, - "zoyhlfbcgwg", 125495169, com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("xoe", response.value().type()); - Assertions.assertEquals("injipnwjf", response.value().entry().get(0).name()); - Assertions.assertEquals("qlafcbahhpzpofoi", response.value().entry().get(0).description()); - Assertions.assertEquals("nmnahmnx", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListAppIdsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListAppIdsWithResponseMockTests.java deleted file mode 100644 index d9f9556508a88..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListAppIdsWithResponseMockTests.java +++ /dev/null @@ -1,57 +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.ListAppIdResponse; -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 GlobalRulestacksListAppIdsWithResponseMockTests { - @Test - public void testListAppIdsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[\"wrsnewmozqvbu\",\"qmamhsycxhxzga\"],\"nextLink\":\"taboidvmf\"}"; - - 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)); - - ListAppIdResponse response = manager.globalRulestacks() - .listAppIdsWithResponse("k", "jqirwrw", "ooxf", "i", 423706619, com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("wrsnewmozqvbu", response.value().get(0)); - Assertions.assertEquals("taboidvmf", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListFirewallsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListFirewallsWithResponseMockTests.java deleted file mode 100644 index 54a024de47ddb..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListFirewallsWithResponseMockTests.java +++ /dev/null @@ -1,57 +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.ListFirewallsResponse; -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 GlobalRulestacksListFirewallsWithResponseMockTests { - @Test - public void testListFirewallsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":[\"hwpnulaiywzejywh\",\"lwkojpllndnpdw\",\"pqafgfugsnnfhy\",\"tefypococtfjgti\"],\"nextLink\":\"jvzuy\"}"; - - 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)); - - ListFirewallsResponse response = manager.globalRulestacks() - .listFirewallsWithResponse("obkauxofsh", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("hwpnulaiywzejywh", response.value().get(0)); - Assertions.assertEquals("jvzuy", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListMockTests.java deleted file mode 100644 index ae0efc536b80e..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListMockTests.java +++ /dev/null @@ -1,81 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResource; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -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 GlobalRulestacksListMockTests { - @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\":{\"panEtag\":\"yfu\",\"panLocation\":\"zsvtuikzhajqgl\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"rqryxynqn\"],\"description\":\"dpsovwxznptgo\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"b\",\"provisioningState\":\"Deleting\",\"securityServices\":{\"vulnerabilityProfile\":\"vf\",\"antiSpywareProfile\":\"kvntjlrigjkskyri\",\"antiVirusProfile\":\"vzidsxwaab\",\"urlFilteringProfile\":\"ifrygzn\",\"fileBlockingProfile\":\"axri\",\"dnsSubscription\":\"zob\",\"outboundUnTrustCertificate\":\"pxl\",\"outboundTrustCertificate\":\"lnelxieixynl\"}},\"location\":\"xecwcro\",\"identity\":{\"tenantId\":\"slhcawjutifd\",\"principalId\":\"mvi\",\"type\":\"None\",\"userAssignedIdentities\":{\"zvcpopm\":{\"clientId\":\"bttzhraglkafhonq\",\"principalId\":\"jeick\"}}},\"id\":\"lnwcltyjed\",\"name\":\"xxmlfmkqscazua\",\"type\":\"xtzx\"}]}"; - - 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.globalRulestacks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xecwcro", response.iterator().next().location()); - Assertions.assertEquals(ManagedIdentityType.NONE, response.iterator().next().identity().type()); - Assertions.assertEquals("bttzhraglkafhonq", - response.iterator().next().identity().userAssignedIdentities().get("zvcpopm").clientId()); - Assertions.assertEquals("jeick", - response.iterator().next().identity().userAssignedIdentities().get("zvcpopm").principalId()); - Assertions.assertEquals("yfu", response.iterator().next().panEtag()); - Assertions.assertEquals("zsvtuikzhajqgl", response.iterator().next().panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, response.iterator().next().scope()); - Assertions.assertEquals("rqryxynqn", response.iterator().next().associatedSubscriptions().get(0)); - Assertions.assertEquals("dpsovwxznptgo", response.iterator().next().description()); - Assertions.assertEquals(DefaultMode.NONE, response.iterator().next().defaultMode()); - Assertions.assertEquals("b", response.iterator().next().minAppIdVersion()); - Assertions.assertEquals("vf", response.iterator().next().securityServices().vulnerabilityProfile()); - Assertions.assertEquals("kvntjlrigjkskyri", response.iterator().next().securityServices().antiSpywareProfile()); - Assertions.assertEquals("vzidsxwaab", response.iterator().next().securityServices().antiVirusProfile()); - Assertions.assertEquals("ifrygzn", response.iterator().next().securityServices().urlFilteringProfile()); - Assertions.assertEquals("axri", response.iterator().next().securityServices().fileBlockingProfile()); - Assertions.assertEquals("zob", response.iterator().next().securityServices().dnsSubscription()); - Assertions.assertEquals("pxl", response.iterator().next().securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("lnelxieixynl", - response.iterator().next().securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListPredefinedUrlCategoriesWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListPredefinedUrlCategoriesWithResponseMockTests.java deleted file mode 100644 index 51bf2554ba071..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListPredefinedUrlCategoriesWithResponseMockTests.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.PredefinedUrlCategoriesResponse; -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 GlobalRulestacksListPredefinedUrlCategoriesWithResponseMockTests { - @Test - public void testListPredefinedUrlCategoriesWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":[{\"action\":\"szonwpngajinn\",\"name\":\"xjawrt\"},{\"action\":\"jfjmyccxlzh\",\"name\":\"oxovnekhenlusf\"},{\"action\":\"rd\",\"name\":\"jxtxrdc\"}],\"nextLink\":\"jvidttge\"}"; - - 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)); - - PredefinedUrlCategoriesResponse response - = manager.globalRulestacks().listPredefinedUrlCategoriesWithResponse("urmlmuo", "olbauirop", 713536788, - com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("szonwpngajinn", response.value().get(0).action()); - Assertions.assertEquals("xjawrt", response.value().get(0).name()); - Assertions.assertEquals("jvidttge", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListSecurityServicesWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListSecurityServicesWithResponseMockTests.java deleted file mode 100644 index ad165ad515452..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksListSecurityServicesWithResponseMockTests.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.SecurityServicesResponse; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum; -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 GlobalRulestacksListSecurityServicesWithResponseMockTests { - @Test - public void testListSecurityServicesWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":{\"type\":\"ecjxe\",\"entry\":[{\"name\":\"tuhxuicb\",\"description\":\"wmrswnjlxuzrh\"},{\"name\":\"pusxjb\",\"description\":\"ehgpdohzjqatu\"},{\"name\":\"o\",\"description\":\"e\"}]},\"nextLink\":\"ncnwfepbnwgf\"}"; - - 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)); - - SecurityServicesResponse response - = manager - .globalRulestacks().listSecurityServicesWithResponse("uslvyjtcvuwkasi", - SecurityServicesTypeEnum.ANTI_VIRUS, "esfuught", 1326845225, com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ecjxe", response.value().type()); - Assertions.assertEquals("tuhxuicb", response.value().entry().get(0).name()); - Assertions.assertEquals("wmrswnjlxuzrh", response.value().entry().get(0).description()); - Assertions.assertEquals("ncnwfepbnwgf", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksRevertWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksRevertWithResponseMockTests.java deleted file mode 100644 index d6110de78134d..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksRevertWithResponseMockTests.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 GlobalRulestacksRevertWithResponseMockTests { - @Test - public void testRevertWithResponse() 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(204); - 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.globalRulestacks().revertWithResponse("xjg", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksUpdateWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksUpdateWithResponseMockTests.java deleted file mode 100644 index 927be9161880c..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/GlobalRulestacksUpdateWithResponseMockTests.java +++ /dev/null @@ -1,123 +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.AzureResourceManagerManagedIdentityProperties; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerUserAssignedIdentity; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResource; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdate; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdateProperties; -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.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -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 GlobalRulestacksUpdateWithResponseMockTests { - @Test - public void testUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"properties\":{\"panEtag\":\"voniypfp\",\"panLocation\":\"cpzgpxtiv\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"dibgqjxgpnrhgov\",\"gpikqmh\",\"ao\"],\"description\":\"rmzvupo\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"fuyd\",\"provisioningState\":\"Deleting\",\"securityServices\":{\"vulnerabilityProfile\":\"xcnqmxqpswokmvkh\",\"antiSpywareProfile\":\"gdhbe\",\"antiVirusProfile\":\"qkzszuwiwtglxxh\",\"urlFilteringProfile\":\"fpgpicrmnzhrgm\",\"fileBlockingProfile\":\"j\",\"dnsSubscription\":\"vpqcb\",\"outboundUnTrustCertificate\":\"mbodthsqqgvri\",\"outboundTrustCertificate\":\"a\"}},\"location\":\"c\",\"identity\":{\"tenantId\":\"jfrnxousxauzlwv\",\"principalId\":\"mwohqfzizvuxmmkj\",\"type\":\"None\",\"userAssignedIdentities\":{\"zcugswvxwlmzqw\":{\"clientId\":\"wpztekovmribia\",\"principalId\":\"gplucfotangcfhny\"},\"pdkvg\":{\"clientId\":\"tx\",\"principalId\":\"mxmcuqudtcvclxy\"}}},\"id\":\"buiyji\",\"name\":\"uzphdugnei\",\"type\":\"n\"}"; - - 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)); - - GlobalRulestackResource response = manager.globalRulestacks() - .updateWithResponse("qmp", new GlobalRulestackResourceUpdate().withLocation("ruwnpqxpx") - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("gratzvzbglbyvict", - new AzureResourceManagerUserAssignedIdentity().withClientId("kzjv") - .withPrincipalId("iirhgfgrwsd"), - "hkwfbkgozxwop", - new AzureResourceManagerUserAssignedIdentity().withClientId("brxkjzwr").withPrincipalId("ffm"), - "xbiygnugjknfsmf", - new AzureResourceManagerUserAssignedIdentity().withClientId("yd").withPrincipalId("zqaclna"), - "mrnjh", - new AzureResourceManagerUserAssignedIdentity().withClientId("tuxuuyilflq") - .withPrincipalId("quvre")))) - .withProperties( - new GlobalRulestackResourceUpdateProperties().withPanEtag("jztczytqj").withPanLocation("h") - .withScope(ScopeType.GLOBAL).withAssociatedSubscriptions(Arrays.asList("prnjletlxsmr", "ddoui")) - .withDescription("mowaziynknlqwzdv").withDefaultMode(DefaultMode.FIREWALL) - .withMinAppIdVersion("xqszdtmaajquh") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("lrjvmtyg") - .withAntiSpywareProfile("mzyospspshck").withAntiVirusProfile("yjpmspbpssdfppyo") - .withUrlFilteringProfile("ieyujtvc").withFileBlockingProfile("cnyxrxmunjd") - .withDnsSubscription("glnkvxlxpagl").withOutboundUnTrustCertificate("vbgkcvkhpzv") - .withOutboundTrustCertificate("d"))), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("c", response.location()); - Assertions.assertEquals(ManagedIdentityType.NONE, response.identity().type()); - Assertions.assertEquals("wpztekovmribia", - response.identity().userAssignedIdentities().get("zcugswvxwlmzqw").clientId()); - Assertions.assertEquals("gplucfotangcfhny", - response.identity().userAssignedIdentities().get("zcugswvxwlmzqw").principalId()); - Assertions.assertEquals("voniypfp", response.panEtag()); - Assertions.assertEquals("cpzgpxtiv", response.panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, response.scope()); - Assertions.assertEquals("dibgqjxgpnrhgov", response.associatedSubscriptions().get(0)); - Assertions.assertEquals("rmzvupo", response.description()); - Assertions.assertEquals(DefaultMode.IPS, response.defaultMode()); - Assertions.assertEquals("fuyd", response.minAppIdVersion()); - Assertions.assertEquals("xcnqmxqpswokmvkh", response.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("gdhbe", response.securityServices().antiSpywareProfile()); - Assertions.assertEquals("qkzszuwiwtglxxh", response.securityServices().antiVirusProfile()); - Assertions.assertEquals("fpgpicrmnzhrgm", response.securityServices().urlFilteringProfile()); - Assertions.assertEquals("j", response.securityServices().fileBlockingProfile()); - Assertions.assertEquals("vpqcb", response.securityServices().dnsSubscription()); - Assertions.assertEquals("mbodthsqqgvri", response.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("a", response.securityServices().outboundTrustCertificate()); - } - - // 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/IpAddressSpaceTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/IpAddressSpaceTests.java deleted file mode 100644 index 937644db76cec..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/IpAddressSpaceTests.java +++ /dev/null @@ -1,27 +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.IpAddressSpace; -import org.junit.jupiter.api.Assertions; - -public final class IpAddressSpaceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpAddressSpace model = BinaryData.fromString("{\"resourceId\":\"hcexdrrvqa\",\"addressSpace\":\"kghtpwijnh\"}") - .toObject(IpAddressSpace.class); - Assertions.assertEquals("hcexdrrvqa", model.resourceId()); - Assertions.assertEquals("kghtpwijnh", model.addressSpace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpAddressSpace model = new IpAddressSpace().withResourceId("hcexdrrvqa").withAddressSpace("kghtpwijnh"); - model = BinaryData.fromObject(model).toObject(IpAddressSpace.class); - Assertions.assertEquals("hcexdrrvqa", model.resourceId()); - Assertions.assertEquals("kghtpwijnh", model.addressSpace()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/IpAddressTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/IpAddressTests.java deleted file mode 100644 index def05bbdd3ce3..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/IpAddressTests.java +++ /dev/null @@ -1,27 +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.IpAddress; -import org.junit.jupiter.api.Assertions; - -public final class IpAddressTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpAddress model = BinaryData.fromString("{\"resourceId\":\"svfycxzbfv\",\"address\":\"wvrvmtg\"}") - .toObject(IpAddress.class); - Assertions.assertEquals("svfycxzbfv", model.resourceId()); - Assertions.assertEquals("wvrvmtg", model.address()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpAddress model = new IpAddress().withResourceId("svfycxzbfv").withAddress("wvrvmtg"); - model = BinaryData.fromObject(model).toObject(IpAddress.class); - Assertions.assertEquals("svfycxzbfv", model.resourceId()); - Assertions.assertEquals("wvrvmtg", model.address()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ListAppIdResponseInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ListAppIdResponseInnerTests.java deleted file mode 100644 index 5dac45527268d..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ListAppIdResponseInnerTests.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.fluent.models.ListAppIdResponseInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListAppIdResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListAppIdResponseInner model = BinaryData.fromString( - "{\"value\":[\"bkh\",\"jdeyeamdpha\",\"alpbuxwgipwhon\",\"wkgshwa\"],\"nextLink\":\"ixzbinjeputtmryw\"}") - .toObject(ListAppIdResponseInner.class); - Assertions.assertEquals("bkh", model.value().get(0)); - Assertions.assertEquals("ixzbinjeputtmryw", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListAppIdResponseInner model - = new ListAppIdResponseInner().withValue(Arrays.asList("bkh", "jdeyeamdpha", "alpbuxwgipwhon", "wkgshwa")) - .withNextLink("ixzbinjeputtmryw"); - model = BinaryData.fromObject(model).toObject(ListAppIdResponseInner.class); - Assertions.assertEquals("bkh", model.value().get(0)); - Assertions.assertEquals("ixzbinjeputtmryw", model.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ListFirewallsResponseInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ListFirewallsResponseInnerTests.java deleted file mode 100644 index f7d21eb2abcb6..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ListFirewallsResponseInnerTests.java +++ /dev/null @@ -1,30 +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.ListFirewallsResponseInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListFirewallsResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListFirewallsResponseInner model = BinaryData - .fromString("{\"value\":[\"sicohoqqnwvlry\",\"vwhheunmmqhgyx\",\"konocu\"],\"nextLink\":\"klyaxuconu\"}") - .toObject(ListFirewallsResponseInner.class); - Assertions.assertEquals("sicohoqqnwvlry", model.value().get(0)); - Assertions.assertEquals("klyaxuconu", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListFirewallsResponseInner model = new ListFirewallsResponseInner() - .withValue(Arrays.asList("sicohoqqnwvlry", "vwhheunmmqhgyx", "konocu")).withNextLink("klyaxuconu"); - model = BinaryData.fromObject(model).toObject(ListFirewallsResponseInner.class); - Assertions.assertEquals("sicohoqqnwvlry", model.value().get(0)); - Assertions.assertEquals("klyaxuconu", model.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesDeleteMockTests.java deleted file mode 100644 index 957cdc9e2d99b..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesDeleteMockTests.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 LocalRulesDeleteMockTests { - @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.localRules().delete("ht", "llhsvidmyt", "l", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetCountersWithResponseMockTests.java deleted file mode 100644 index 44fbb6f170b53..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesGetCountersWithResponseMockTests.java +++ /dev/null @@ -1,73 +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.RuleCounter; -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 LocalRulesGetCountersWithResponseMockTests { - @Test - public void testGetCountersWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"priority\":\"aeukyawohpm\",\"ruleStackName\":\"qnucs\",\"ruleListName\":\"hsidsjtdlpbnin\",\"firewallName\":\"azlsvbzfcpuo\",\"ruleName\":\"e\",\"hitCount\":606826553,\"appSeen\":{\"count\":1093129601,\"appSeenList\":[{\"title\":\"klhsyekrdrenxol\",\"category\":\"i\",\"subCategory\":\"ehqbeivdlhydwbdb\",\"risk\":\"grlpuny\",\"tag\":\"jlkesmmpath\",\"technology\":\"btahdeanii\",\"standardPorts\":\"llbvgwzsfftedous\"},{\"title\":\"ktjtgra\",\"category\":\"aqo\",\"subCategory\":\"fkbebauzl\",\"risk\":\"btxxwpfhnjzud\",\"tag\":\"tpzkgmeboywhcz\",\"technology\":\"qrhm\",\"standardPorts\":\"gqbedygi\"},{\"title\":\"rzwnyk\",\"category\":\"id\",\"subCategory\":\"chl\",\"risk\":\"mpwctoflds\",\"tag\":\"acdhztxkbr\",\"technology\":\"g\",\"standardPorts\":\"rwjiyew\"},{\"title\":\"fj\",\"category\":\"rwq\",\"subCategory\":\"xet\",\"risk\":\"gcwvrrmdqntycna\",\"tag\":\"thvmaxgnuyeamcmh\",\"technology\":\"dfjeceho\",\"standardPorts\":\"wcpqtwl\"}]},\"timestamp\":\"2021-07-12T03:36:44Z\",\"requestTimestamp\":\"2021-10-04T17:18:20Z\",\"lastUpdatedTimestamp\":\"2021-01-29T11:40:24Z\"}"; - - 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)); - - RuleCounter response = manager.localRules() - .getCountersWithResponse("glxpnovyoanfbcsw", "agyw", "t", "igvjrktp", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("aeukyawohpm", response.priority()); - Assertions.assertEquals("qnucs", response.ruleStackName()); - Assertions.assertEquals("hsidsjtdlpbnin", response.ruleListName()); - Assertions.assertEquals("azlsvbzfcpuo", response.firewallName()); - Assertions.assertEquals("e", response.ruleName()); - Assertions.assertEquals(606826553, response.hitCount()); - Assertions.assertEquals(1093129601, response.appSeen().count()); - Assertions.assertEquals("klhsyekrdrenxol", response.appSeen().appSeenList().get(0).title()); - Assertions.assertEquals("i", response.appSeen().appSeenList().get(0).category()); - Assertions.assertEquals("ehqbeivdlhydwbdb", response.appSeen().appSeenList().get(0).subCategory()); - Assertions.assertEquals("grlpuny", response.appSeen().appSeenList().get(0).risk()); - Assertions.assertEquals("jlkesmmpath", response.appSeen().appSeenList().get(0).tag()); - Assertions.assertEquals("btahdeanii", response.appSeen().appSeenList().get(0).technology()); - Assertions.assertEquals("llbvgwzsfftedous", response.appSeen().appSeenList().get(0).standardPorts()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-12T03:36:44Z"), response.timestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-04T17:18:20Z"), response.requestTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T11:40:24Z"), response.lastUpdatedTimestamp()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesRefreshCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesRefreshCountersWithResponseMockTests.java deleted file mode 100644 index c5e1641ff96a6..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesRefreshCountersWithResponseMockTests.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 LocalRulesRefreshCountersWithResponseMockTests { - @Test - public void testRefreshCountersWithResponse() 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(204); - 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.localRules().refreshCountersWithResponse("vrbnyrukoil", "ciduwjle", "pjlh", "yxpzruzythqk", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesResetCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesResetCountersWithResponseMockTests.java deleted file mode 100644 index 24c0997a0a8e3..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulesResetCountersWithResponseMockTests.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.RuleCounterReset; -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 LocalRulesResetCountersWithResponseMockTests { - @Test - public void testResetCountersWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"priority\":\"zuvrzmzqmz\",\"ruleStackName\":\"rb\",\"ruleListName\":\"vnmdyfoeboj\",\"firewallName\":\"pp\",\"ruleName\":\"aohoqkpjtnq\"}"; - - 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)); - - RuleCounterReset response = manager.localRules().resetCountersWithResponse("whbgxvellvul", "xdm", "itmujdtvm", - "lyymffhmjpddny", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("rb", response.ruleStackName()); - Assertions.assertEquals("vnmdyfoeboj", response.ruleListName()); - Assertions.assertEquals("pp", response.firewallName()); - Assertions.assertEquals("aohoqkpjtnq", response.ruleName()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceInnerTests.java deleted file mode 100644 index 7639f0a7fb4a9..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceInnerTests.java +++ /dev/null @@ -1,108 +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.LocalRulestackResourceInner; -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.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 org.junit.jupiter.api.Assertions; - -public final class LocalRulestackResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LocalRulestackResourceInner model = BinaryData.fromString( - "{\"properties\":{\"panEtag\":\"ywdxsmic\",\"panLocation\":\"rwfscjfnynszquj\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"qytibyowbblgyavu\",\"pthjoxo\",\"smsks\",\"pi\"],\"description\":\"qolj\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"xxlxsffgcvizq\",\"provisioningState\":\"Deleting\",\"securityServices\":{\"vulnerabilityProfile\":\"w\",\"antiSpywareProfile\":\"oupfgfb\",\"antiVirusProfile\":\"ubdyhgk\",\"urlFilteringProfile\":\"in\",\"fileBlockingProfile\":\"owzfttsttkt\",\"dnsSubscription\":\"hbq\",\"outboundUnTrustCertificate\":\"tx\",\"outboundTrustCertificate\":\"zukxitmmqtgqq\"}},\"identity\":{\"tenantId\":\"rnxrxcpj\",\"principalId\":\"savokqdzf\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"nwxyiop\":{\"clientId\":\"jlfrq\",\"principalId\":\"bajlka\"},\"xkdmligo\":{\"clientId\":\"kqqfk\",\"principalId\":\"s\"},\"bteoybf\":{\"clientId\":\"brxk\",\"principalId\":\"loazuruocbgoo\"},\"b\":{\"clientId\":\"xakvvjgslor\",\"principalId\":\"lmywwtkgkxnyed\"}}},\"location\":\"vudtjuewbcihx\",\"tags\":{\"ybvpay\":\"hcjyxc\",\"gwjplmag\":\"kkudzp\"},\"id\":\"tcyohpfkyrk\",\"name\":\"bdgiogsjk\",\"type\":\"nwqjnoba\"}") - .toObject(LocalRulestackResourceInner.class); - Assertions.assertEquals("vudtjuewbcihx", model.location()); - Assertions.assertEquals("hcjyxc", model.tags().get("ybvpay")); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("jlfrq", model.identity().userAssignedIdentities().get("nwxyiop").clientId()); - Assertions.assertEquals("bajlka", model.identity().userAssignedIdentities().get("nwxyiop").principalId()); - Assertions.assertEquals("ywdxsmic", model.panEtag()); - Assertions.assertEquals("rwfscjfnynszquj", model.panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("qytibyowbblgyavu", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("qolj", model.description()); - Assertions.assertEquals(DefaultMode.NONE, model.defaultMode()); - Assertions.assertEquals("xxlxsffgcvizq", model.minAppIdVersion()); - Assertions.assertEquals("w", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("oupfgfb", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("ubdyhgk", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("in", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("owzfttsttkt", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("hbq", model.securityServices().dnsSubscription()); - Assertions.assertEquals("tx", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("zukxitmmqtgqq", model.securityServices().outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LocalRulestackResourceInner model - = new LocalRulestackResourceInner().withLocation("vudtjuewbcihx") - .withTags(mapOf("ybvpay", "hcjyxc", "gwjplmag", "kkudzp")) - .withIdentity( - new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("nwxyiop", - new AzureResourceManagerUserAssignedIdentity().withClientId("jlfrq") - .withPrincipalId("bajlka"), - "xkdmligo", - new AzureResourceManagerUserAssignedIdentity().withClientId("kqqfk").withPrincipalId("s"), - "bteoybf", - new AzureResourceManagerUserAssignedIdentity().withClientId("brxk") - .withPrincipalId("loazuruocbgoo"), - "b", - new AzureResourceManagerUserAssignedIdentity().withClientId("xakvvjgslor") - .withPrincipalId("lmywwtkgkxnyed")))) - .withPanEtag("ywdxsmic").withPanLocation("rwfscjfnynszquj").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("qytibyowbblgyavu", "pthjoxo", "smsks", "pi")) - .withDescription("qolj").withDefaultMode(DefaultMode.NONE).withMinAppIdVersion("xxlxsffgcvizq") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("w") - .withAntiSpywareProfile("oupfgfb").withAntiVirusProfile("ubdyhgk").withUrlFilteringProfile("in") - .withFileBlockingProfile("owzfttsttkt").withDnsSubscription("hbq") - .withOutboundUnTrustCertificate("tx").withOutboundTrustCertificate("zukxitmmqtgqq")); - model = BinaryData.fromObject(model).toObject(LocalRulestackResourceInner.class); - Assertions.assertEquals("vudtjuewbcihx", model.location()); - Assertions.assertEquals("hcjyxc", model.tags().get("ybvpay")); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("jlfrq", model.identity().userAssignedIdentities().get("nwxyiop").clientId()); - Assertions.assertEquals("bajlka", model.identity().userAssignedIdentities().get("nwxyiop").principalId()); - Assertions.assertEquals("ywdxsmic", model.panEtag()); - Assertions.assertEquals("rwfscjfnynszquj", model.panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("qytibyowbblgyavu", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("qolj", model.description()); - Assertions.assertEquals(DefaultMode.NONE, model.defaultMode()); - Assertions.assertEquals("xxlxsffgcvizq", model.minAppIdVersion()); - Assertions.assertEquals("w", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("oupfgfb", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("ubdyhgk", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("in", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("owzfttsttkt", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("hbq", model.securityServices().dnsSubscription()); - Assertions.assertEquals("tx", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("zukxitmmqtgqq", model.securityServices().outboundTrustCertificate()); - } - - // 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/LocalRulestackResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceListResultTests.java deleted file mode 100644 index 3f1669a6e39d3..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceListResultTests.java +++ /dev/null @@ -1,169 +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.LocalRulestackResourceInner; -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.LocalRulestackResourceListResult; -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 org.junit.jupiter.api.Assertions; - -public final class LocalRulestackResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LocalRulestackResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"panEtag\":\"xum\",\"panLocation\":\"ton\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"udfdlwgg\"],\"description\":\"sb\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"vtgsei\",\"provisioningState\":\"Creating\",\"securityServices\":{\"vulnerabilityProfile\":\"fxqknpirgneptt\",\"antiSpywareProfile\":\"msniffc\",\"antiVirusProfile\":\"qnrojlpijnkrxfrd\",\"urlFilteringProfile\":\"c\",\"fileBlockingProfile\":\"tizzronasxif\",\"dnsSubscription\":\"zq\",\"outboundUnTrustCertificate\":\"hftwesgog\",\"outboundTrustCertificate\":\"honnxkrlgnyhmos\"}},\"identity\":{\"tenantId\":\"kgthrrghxjbd\",\"principalId\":\"xvcxgfrpdsofbshr\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"nopqgikyzirtx\":{\"clientId\":\"swdvzyybycnun\",\"principalId\":\"srtkfa\"},\"qukrydxt\":{\"clientId\":\"uxzejntpsew\",\"principalId\":\"oi\"},\"pjbi\":{\"clientId\":\"ieoxorggufhyaomt\",\"principalId\":\"hhavgrvkffovjz\"}}},\"location\":\"jmfxumvf\",\"tags\":{\"wxnb\":\"yo\",\"rujbzbomvzzbtdc\":\"fezzxscyhwzdg\"},\"id\":\"vp\",\"name\":\"iyujviylwdshfs\",\"type\":\"n\"},{\"properties\":{\"panEtag\":\"gy\",\"panLocation\":\"rymsgaojfmw\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"rfh\",\"rctym\",\"xoftpipiwyczu\"],\"description\":\"a\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"lihhyuspskasdvlm\",\"provisioningState\":\"Canceled\",\"securityServices\":{\"vulnerabilityProfile\":\"x\",\"antiSpywareProfile\":\"ucvpamrs\",\"antiVirusProfile\":\"uzvx\",\"urlFilteringProfile\":\"i\",\"fileBlockingProfile\":\"nhn\",\"dnsSubscription\":\"xifqjzgxm\",\"outboundUnTrustCertificate\":\"ublwpcesutrg\",\"outboundTrustCertificate\":\"pauutpw\"}},\"identity\":{\"tenantId\":\"ih\",\"principalId\":\"qg\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"fceacvlhvygd\":{\"clientId\":\"qntcypsxjvfoimwk\",\"principalId\":\"ircizjxvy\"}}},\"location\":\"t\",\"tags\":{\"ztsfmznbaeqp\":\"twnawjslbiwkojgc\",\"qgaifmviklbydv\":\"chqnrnrpxehuwry\",\"volvtn\":\"hbejdznxcvdsrhnj\"},\"id\":\"v\",\"name\":\"fzg\",\"type\":\"mjdftu\"},{\"properties\":{\"panEtag\":\"ltducea\",\"panLocation\":\"mczuo\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"w\",\"qioknssxmojm\"],\"description\":\"p\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"vk\",\"provisioningState\":\"Canceled\",\"securityServices\":{\"vulnerabilityProfile\":\"ljyxgtczhe\",\"antiSpywareProfile\":\"bsdshmkxmaehvbbx\",\"antiVirusProfile\":\"iplt\",\"urlFilteringProfile\":\"htba\",\"fileBlockingProfile\":\"gx\",\"dnsSubscription\":\"rc\",\"outboundUnTrustCertificate\":\"yklyhpluodpvruud\",\"outboundTrustCertificate\":\"zibt\"}},\"identity\":{\"tenantId\":\"tgk\",\"principalId\":\"tvdxeclzedqb\",\"type\":\"None\",\"userAssignedIdentities\":{\"mlkxtrqjfs\":{\"clientId\":\"h\",\"principalId\":\"odqkdlwwqfb\"}}},\"location\":\"mbtxhwgf\",\"tags\":{\"ezbrhubskh\":\"tawc\",\"ookk\":\"dyg\",\"fmluiqtqzfavyvn\":\"fqjbvleo\"},\"id\":\"qybaryeua\",\"name\":\"jkqa\",\"type\":\"qgzsles\"},{\"properties\":{\"panEtag\":\"bhernntiew\",\"panLocation\":\"cv\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"behwagohb\"],\"description\":\"fkmr\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"vhmxtdrjfu\",\"provisioningState\":\"Updating\",\"securityServices\":{\"vulnerabilityProfile\":\"bj\",\"antiSpywareProfile\":\"wzcjznmwcpmgua\",\"antiVirusProfile\":\"raufactkahzova\",\"urlFilteringProfile\":\"ziuxxpshnee\",\"fileBlockingProfile\":\"lfg\",\"dnsSubscription\":\"qubkw\",\"outboundUnTrustCertificate\":\"enr\",\"outboundTrustCertificate\":\"utujba\"}},\"identity\":{\"tenantId\":\"uo\",\"principalId\":\"inyflnorwmduvwp\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"bjcrxgibbdaxco\":{\"clientId\":\"mygdxpgpqch\",\"principalId\":\"zepn\"},\"uuepzlrphwzsoldw\":{\"clientId\":\"ozauorsukokwb\",\"principalId\":\"lhlv\"},\"v\":{\"clientId\":\"uqdunvmnnrwrbi\",\"principalId\":\"ktalywjhhgdnhxms\"}}},\"location\":\"miloxggdufiqndie\",\"tags\":{\"dotcubiipuip\":\"ofjchvcyyysf\"},\"id\":\"oqonma\",\"name\":\"jeknizshq\",\"type\":\"cimpevfg\"}],\"nextLink\":\"lrri\"}") - .toObject(LocalRulestackResourceListResult.class); - Assertions.assertEquals("jmfxumvf", model.value().get(0).location()); - Assertions.assertEquals("yo", model.value().get(0).tags().get("wxnb")); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("swdvzyybycnun", - model.value().get(0).identity().userAssignedIdentities().get("nopqgikyzirtx").clientId()); - Assertions.assertEquals("srtkfa", - model.value().get(0).identity().userAssignedIdentities().get("nopqgikyzirtx").principalId()); - Assertions.assertEquals("xum", model.value().get(0).panEtag()); - Assertions.assertEquals("ton", model.value().get(0).panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.value().get(0).scope()); - Assertions.assertEquals("udfdlwgg", model.value().get(0).associatedSubscriptions().get(0)); - Assertions.assertEquals("sb", model.value().get(0).description()); - Assertions.assertEquals(DefaultMode.IPS, model.value().get(0).defaultMode()); - Assertions.assertEquals("vtgsei", model.value().get(0).minAppIdVersion()); - Assertions.assertEquals("fxqknpirgneptt", model.value().get(0).securityServices().vulnerabilityProfile()); - Assertions.assertEquals("msniffc", model.value().get(0).securityServices().antiSpywareProfile()); - Assertions.assertEquals("qnrojlpijnkrxfrd", model.value().get(0).securityServices().antiVirusProfile()); - Assertions.assertEquals("c", model.value().get(0).securityServices().urlFilteringProfile()); - Assertions.assertEquals("tizzronasxif", model.value().get(0).securityServices().fileBlockingProfile()); - Assertions.assertEquals("zq", model.value().get(0).securityServices().dnsSubscription()); - Assertions.assertEquals("hftwesgog", model.value().get(0).securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("honnxkrlgnyhmos", model.value().get(0).securityServices().outboundTrustCertificate()); - Assertions.assertEquals("lrri", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LocalRulestackResourceListResult model - = new LocalRulestackResourceListResult() - .withValue(Arrays.asList( - new LocalRulestackResourceInner().withLocation("jmfxumvf") - .withTags(mapOf("wxnb", "yo", "rujbzbomvzzbtdc", "fezzxscyhwzdg")) - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("nopqgikyzirtx", - new AzureResourceManagerUserAssignedIdentity().withClientId("swdvzyybycnun") - .withPrincipalId("srtkfa"), - "qukrydxt", - new AzureResourceManagerUserAssignedIdentity() - .withClientId("uxzejntpsew").withPrincipalId("oi"), - "pjbi", - new AzureResourceManagerUserAssignedIdentity().withClientId("ieoxorggufhyaomt") - .withPrincipalId("hhavgrvkffovjz")))) - .withPanEtag("xum").withPanLocation("ton").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("udfdlwgg")).withDescription("sb") - .withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("vtgsei") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("fxqknpirgneptt") - .withAntiSpywareProfile("msniffc").withAntiVirusProfile("qnrojlpijnkrxfrd") - .withUrlFilteringProfile("c").withFileBlockingProfile("tizzronasxif") - .withDnsSubscription("zq").withOutboundUnTrustCertificate("hftwesgog") - .withOutboundTrustCertificate("honnxkrlgnyhmos")), - new LocalRulestackResourceInner().withLocation("t") - .withTags(mapOf("ztsfmznbaeqp", "twnawjslbiwkojgc", "qgaifmviklbydv", "chqnrnrpxehuwry", - "volvtn", "hbejdznxcvdsrhnj")) - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("fceacvlhvygd", - new AzureResourceManagerUserAssignedIdentity().withClientId("qntcypsxjvfoimwk") - .withPrincipalId("ircizjxvy")))) - .withPanEtag("gy").withPanLocation("rymsgaojfmw").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("rfh", "rctym", "xoftpipiwyczu")) - .withDescription("a").withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("lihhyuspskasdvlm") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("x") - .withAntiSpywareProfile("ucvpamrs").withAntiVirusProfile("uzvx") - .withUrlFilteringProfile("i").withFileBlockingProfile( - "nhn") - .withDnsSubscription("xifqjzgxm").withOutboundUnTrustCertificate("ublwpcesutrg") - .withOutboundTrustCertificate("pauutpw")), - new LocalRulestackResourceInner().withLocation("mbtxhwgf") - .withTags(mapOf("ezbrhubskh", "tawc", "ookk", "dyg", "fmluiqtqzfavyvn", "fqjbvleo")) - .withIdentity( - new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE) - .withUserAssignedIdentities(mapOf("mlkxtrqjfs", - new AzureResourceManagerUserAssignedIdentity().withClientId("h") - .withPrincipalId("odqkdlwwqfb")))) - .withPanEtag("ltducea").withPanLocation("mczuo").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("w", "qioknssxmojm")).withDescription("p") - .withDefaultMode(DefaultMode.FIREWALL).withMinAppIdVersion("vk").withSecurityServices( - new SecurityServices().withVulnerabilityProfile("ljyxgtczhe") - .withAntiSpywareProfile("bsdshmkxmaehvbbx").withAntiVirusProfile("iplt") - .withUrlFilteringProfile("htba").withFileBlockingProfile("gx").withDnsSubscription("rc") - .withOutboundUnTrustCertificate("yklyhpluodpvruud") - .withOutboundTrustCertificate("zibt")), - new LocalRulestackResourceInner().withLocation("miloxggdufiqndie") - .withTags(mapOf("dotcubiipuip", "ofjchvcyyysf")) - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("bjcrxgibbdaxco", - new AzureResourceManagerUserAssignedIdentity().withClientId("mygdxpgpqch") - .withPrincipalId("zepn"), - "uuepzlrphwzsoldw", - new AzureResourceManagerUserAssignedIdentity() - .withClientId("ozauorsukokwb").withPrincipalId("lhlv"), - "v", - new AzureResourceManagerUserAssignedIdentity().withClientId("uqdunvmnnrwrbi") - .withPrincipalId("ktalywjhhgdnhxms")))) - .withPanEtag("bhernntiew").withPanLocation("cv").withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions(Arrays.asList("behwagohb")).withDescription("fkmr") - .withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("vhmxtdrjfu") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("bj") - .withAntiSpywareProfile("wzcjznmwcpmgua").withAntiVirusProfile("raufactkahzova") - .withUrlFilteringProfile("ziuxxpshnee").withFileBlockingProfile("lfg") - .withDnsSubscription("qubkw").withOutboundUnTrustCertificate("enr") - .withOutboundTrustCertificate("utujba")))) - .withNextLink("lrri"); - model = BinaryData.fromObject(model).toObject(LocalRulestackResourceListResult.class); - Assertions.assertEquals("jmfxumvf", model.value().get(0).location()); - Assertions.assertEquals("yo", model.value().get(0).tags().get("wxnb")); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("swdvzyybycnun", - model.value().get(0).identity().userAssignedIdentities().get("nopqgikyzirtx").clientId()); - Assertions.assertEquals("srtkfa", - model.value().get(0).identity().userAssignedIdentities().get("nopqgikyzirtx").principalId()); - Assertions.assertEquals("xum", model.value().get(0).panEtag()); - Assertions.assertEquals("ton", model.value().get(0).panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.value().get(0).scope()); - Assertions.assertEquals("udfdlwgg", model.value().get(0).associatedSubscriptions().get(0)); - Assertions.assertEquals("sb", model.value().get(0).description()); - Assertions.assertEquals(DefaultMode.IPS, model.value().get(0).defaultMode()); - Assertions.assertEquals("vtgsei", model.value().get(0).minAppIdVersion()); - Assertions.assertEquals("fxqknpirgneptt", model.value().get(0).securityServices().vulnerabilityProfile()); - Assertions.assertEquals("msniffc", model.value().get(0).securityServices().antiSpywareProfile()); - Assertions.assertEquals("qnrojlpijnkrxfrd", model.value().get(0).securityServices().antiVirusProfile()); - Assertions.assertEquals("c", model.value().get(0).securityServices().urlFilteringProfile()); - Assertions.assertEquals("tizzronasxif", model.value().get(0).securityServices().fileBlockingProfile()); - Assertions.assertEquals("zq", model.value().get(0).securityServices().dnsSubscription()); - Assertions.assertEquals("hftwesgog", model.value().get(0).securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("honnxkrlgnyhmos", model.value().get(0).securityServices().outboundTrustCertificate()); - Assertions.assertEquals("lrri", model.nextLink()); - } - - // 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/LocalRulestackResourceUpdatePropertiesTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceUpdatePropertiesTests.java deleted file mode 100644 index e9d31e796c88a..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceUpdatePropertiesTests.java +++ /dev/null @@ -1,65 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdateProperties; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LocalRulestackResourceUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LocalRulestackResourceUpdateProperties model = BinaryData.fromString( - "{\"panEtag\":\"juwasqvdaeyyguxa\",\"panLocation\":\"sqzhzbezkg\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"xasicddyvvjskg\",\"mocwa\",\"pqg\"],\"description\":\"jeaahhvjhh\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"ybbjjidjksyx\",\"securityServices\":{\"vulnerabilityProfile\":\"vxevblb\",\"antiSpywareProfile\":\"dnlj\",\"antiVirusProfile\":\"geuaulx\",\"urlFilteringProfile\":\"smjbnkppxyn\",\"fileBlockingProfile\":\"lsvxeizz\",\"dnsSubscription\":\"klnsrmffey\",\"outboundUnTrustCertificate\":\"ckt\",\"outboundTrustCertificate\":\"ymerteeammxq\"}}") - .toObject(LocalRulestackResourceUpdateProperties.class); - Assertions.assertEquals("juwasqvdaeyyguxa", model.panEtag()); - Assertions.assertEquals("sqzhzbezkg", model.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); - Assertions.assertEquals("xasicddyvvjskg", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("jeaahhvjhh", model.description()); - Assertions.assertEquals(DefaultMode.FIREWALL, model.defaultMode()); - Assertions.assertEquals("ybbjjidjksyx", model.minAppIdVersion()); - Assertions.assertEquals("vxevblb", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("dnlj", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("geuaulx", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("smjbnkppxyn", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("lsvxeizz", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("klnsrmffey", model.securityServices().dnsSubscription()); - Assertions.assertEquals("ckt", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("ymerteeammxq", model.securityServices().outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LocalRulestackResourceUpdateProperties model = new LocalRulestackResourceUpdateProperties() - .withPanEtag("juwasqvdaeyyguxa").withPanLocation("sqzhzbezkg").withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions(Arrays.asList("xasicddyvvjskg", "mocwa", "pqg")).withDescription("jeaahhvjhh") - .withDefaultMode(DefaultMode.FIREWALL).withMinAppIdVersion("ybbjjidjksyx") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("vxevblb") - .withAntiSpywareProfile("dnlj").withAntiVirusProfile("geuaulx").withUrlFilteringProfile("smjbnkppxyn") - .withFileBlockingProfile("lsvxeizz").withDnsSubscription("klnsrmffey") - .withOutboundUnTrustCertificate("ckt").withOutboundTrustCertificate("ymerteeammxq")); - model = BinaryData.fromObject(model).toObject(LocalRulestackResourceUpdateProperties.class); - Assertions.assertEquals("juwasqvdaeyyguxa", model.panEtag()); - Assertions.assertEquals("sqzhzbezkg", model.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); - Assertions.assertEquals("xasicddyvvjskg", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("jeaahhvjhh", model.description()); - Assertions.assertEquals(DefaultMode.FIREWALL, model.defaultMode()); - Assertions.assertEquals("ybbjjidjksyx", model.minAppIdVersion()); - Assertions.assertEquals("vxevblb", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("dnlj", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("geuaulx", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("smjbnkppxyn", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("lsvxeizz", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("klnsrmffey", model.securityServices().dnsSubscription()); - Assertions.assertEquals("ckt", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("ymerteeammxq", model.securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceUpdateTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceUpdateTests.java deleted file mode 100644 index dc78930377f1b..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestackResourceUpdateTests.java +++ /dev/null @@ -1,105 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdate; -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 org.junit.jupiter.api.Assertions; - -public final class LocalRulestackResourceUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LocalRulestackResourceUpdate model = BinaryData.fromString( - "{\"identity\":{\"tenantId\":\"yinzqodfvpgs\",\"principalId\":\"xgsg\",\"type\":\"None\",\"userAssignedIdentities\":{\"vetnwsdtutn\":{\"clientId\":\"djtxvzflbq\",\"principalId\":\"aqvlgafcqusr\"},\"kuqgsjjxundxgket\":{\"clientId\":\"duy\",\"principalId\":\"uzhyrmewipmvekdx\"},\"gpmuneqsxvmhfbuz\":{\"clientId\":\"hhzjhfj\",\"principalId\":\"vvmu\"}}},\"tags\":{\"ypoh\":\"hsasbhu\",\"sqy\":\"uemsly\"},\"properties\":{\"panEtag\":\"oobrlttyms\",\"panLocation\":\"ygqdnfwqzdz\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"xhnfhqly\",\"ijouwivkxoyzunb\"],\"description\":\"xrtikvcpwpgclr\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"soxfrken\",\"securityServices\":{\"vulnerabilityProfile\":\"yyefrpmpdnqqs\",\"antiSpywareProfile\":\"waoqvmmb\",\"antiVirusProfile\":\"qfr\",\"urlFilteringProfile\":\"lkzmegnitgvkxl\",\"fileBlockingProfile\":\"qdrfegcealzxwhc\",\"dnsSubscription\":\"symoyq\",\"outboundUnTrustCertificate\":\"wigdi\",\"outboundTrustCertificate\":\"kbxgom\"}}}") - .toObject(LocalRulestackResourceUpdate.class); - Assertions.assertEquals(ManagedIdentityType.NONE, model.identity().type()); - Assertions.assertEquals("djtxvzflbq", model.identity().userAssignedIdentities().get("vetnwsdtutn").clientId()); - Assertions.assertEquals("aqvlgafcqusr", - model.identity().userAssignedIdentities().get("vetnwsdtutn").principalId()); - Assertions.assertEquals("hsasbhu", model.tags().get("ypoh")); - Assertions.assertEquals("oobrlttyms", model.properties().panEtag()); - Assertions.assertEquals("ygqdnfwqzdz", model.properties().panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.properties().scope()); - Assertions.assertEquals("xhnfhqly", model.properties().associatedSubscriptions().get(0)); - Assertions.assertEquals("xrtikvcpwpgclr", model.properties().description()); - Assertions.assertEquals(DefaultMode.FIREWALL, model.properties().defaultMode()); - Assertions.assertEquals("soxfrken", model.properties().minAppIdVersion()); - Assertions.assertEquals("yyefrpmpdnqqs", model.properties().securityServices().vulnerabilityProfile()); - Assertions.assertEquals("waoqvmmb", model.properties().securityServices().antiSpywareProfile()); - Assertions.assertEquals("qfr", model.properties().securityServices().antiVirusProfile()); - Assertions.assertEquals("lkzmegnitgvkxl", model.properties().securityServices().urlFilteringProfile()); - Assertions.assertEquals("qdrfegcealzxwhc", model.properties().securityServices().fileBlockingProfile()); - Assertions.assertEquals("symoyq", model.properties().securityServices().dnsSubscription()); - Assertions.assertEquals("wigdi", model.properties().securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("kbxgom", model.properties().securityServices().outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LocalRulestackResourceUpdate model = new LocalRulestackResourceUpdate() - .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE) - .withUserAssignedIdentities(mapOf("vetnwsdtutn", - new AzureResourceManagerUserAssignedIdentity().withClientId("djtxvzflbq") - .withPrincipalId("aqvlgafcqusr"), - "kuqgsjjxundxgket", - new AzureResourceManagerUserAssignedIdentity().withClientId("duy") - .withPrincipalId("uzhyrmewipmvekdx"), - "gpmuneqsxvmhfbuz", - new AzureResourceManagerUserAssignedIdentity().withClientId("hhzjhfj").withPrincipalId("vvmu")))) - .withTags(mapOf("ypoh", "hsasbhu", "sqy", "uemsly")) - .withProperties(new LocalRulestackResourceUpdateProperties().withPanEtag("oobrlttyms") - .withPanLocation("ygqdnfwqzdz").withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("xhnfhqly", "ijouwivkxoyzunb")) - .withDescription("xrtikvcpwpgclr").withDefaultMode(DefaultMode.FIREWALL).withMinAppIdVersion("soxfrken") - .withSecurityServices( - new SecurityServices().withVulnerabilityProfile("yyefrpmpdnqqs").withAntiSpywareProfile("waoqvmmb") - .withAntiVirusProfile("qfr").withUrlFilteringProfile("lkzmegnitgvkxl") - .withFileBlockingProfile("qdrfegcealzxwhc").withDnsSubscription("symoyq") - .withOutboundUnTrustCertificate("wigdi").withOutboundTrustCertificate("kbxgom"))); - model = BinaryData.fromObject(model).toObject(LocalRulestackResourceUpdate.class); - Assertions.assertEquals(ManagedIdentityType.NONE, model.identity().type()); - Assertions.assertEquals("djtxvzflbq", model.identity().userAssignedIdentities().get("vetnwsdtutn").clientId()); - Assertions.assertEquals("aqvlgafcqusr", - model.identity().userAssignedIdentities().get("vetnwsdtutn").principalId()); - Assertions.assertEquals("hsasbhu", model.tags().get("ypoh")); - Assertions.assertEquals("oobrlttyms", model.properties().panEtag()); - Assertions.assertEquals("ygqdnfwqzdz", model.properties().panLocation()); - Assertions.assertEquals(ScopeType.LOCAL, model.properties().scope()); - Assertions.assertEquals("xhnfhqly", model.properties().associatedSubscriptions().get(0)); - Assertions.assertEquals("xrtikvcpwpgclr", model.properties().description()); - Assertions.assertEquals(DefaultMode.FIREWALL, model.properties().defaultMode()); - Assertions.assertEquals("soxfrken", model.properties().minAppIdVersion()); - Assertions.assertEquals("yyefrpmpdnqqs", model.properties().securityServices().vulnerabilityProfile()); - Assertions.assertEquals("waoqvmmb", model.properties().securityServices().antiSpywareProfile()); - Assertions.assertEquals("qfr", model.properties().securityServices().antiVirusProfile()); - Assertions.assertEquals("lkzmegnitgvkxl", model.properties().securityServices().urlFilteringProfile()); - Assertions.assertEquals("qdrfegcealzxwhc", model.properties().securityServices().fileBlockingProfile()); - Assertions.assertEquals("symoyq", model.properties().securityServices().dnsSubscription()); - Assertions.assertEquals("wigdi", model.properties().securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("kbxgom", model.properties().securityServices().outboundTrustCertificate()); - } - - // 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/LocalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCreateOrUpdateMockTests.java deleted file mode 100644 index e93a5e185d7fb..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksCreateOrUpdateMockTests.java +++ /dev/null @@ -1,118 +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.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.ManagedIdentityType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -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 LocalRulestacksCreateOrUpdateMockTests { - @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\":{\"panEtag\":\"lqqbtnyjpylxdbfv\",\"panLocation\":\"mvmsxbae\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"kottlwuhvajmailf\",\"mjjz\",\"kzwjiqullq\"],\"description\":\"dmvr\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"erndbrnyeofltfnn\",\"provisioningState\":\"Succeeded\",\"securityServices\":{\"vulnerabilityProfile\":\"jfynnfmuiiirip\",\"antiSpywareProfile\":\"hykfkxbb\",\"antiVirusProfile\":\"r\",\"urlFilteringProfile\":\"iutgnjizbeewoiy\",\"fileBlockingProfile\":\"vzbjuyrsrzi\",\"dnsSubscription\":\"tixgbd\",\"outboundUnTrustCertificate\":\"ifrevk\",\"outboundTrustCertificate\":\"pezkis\"}},\"identity\":{\"tenantId\":\"mdghsyparyb\",\"principalId\":\"fptb\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"qqzlgcndhz\":{\"clientId\":\"ciuiyqvldaswv\",\"principalId\":\"i\"},\"khgsnxuwwkpphefs\":{\"clientId\":\"rfc\",\"principalId\":\"r\"}}},\"location\":\"xlb\",\"tags\":{\"lwzacn\":\"meikj\",\"qbxyxoyfpuqqi\":\"wpfsuqtaaz\"},\"id\":\"ezxlhdjzqdca\",\"name\":\"wvpsoz\",\"type\":\"iihjriybmrzo\"}"; - - 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)); - - LocalRulestackResource response - = manager.localRulestacks().define("tuicds").withRegion("onoyjf").withExistingResourceGroup("akeciqchx") - .withTags(mapOf("lkfk", "ubyzn")) - .withIdentity(new AzureResourceManagerManagedIdentityProperties() - .withType(ManagedIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("djsllfr", - new AzureResourceManagerUserAssignedIdentity().withClientId("usuv").withPrincipalId("lczwci"), - "fczlfsyqkfrbzgow", - new AzureResourceManagerUserAssignedIdentity().withClientId("dmvxadq") - .withPrincipalId("frgnawbabgfbktyj"), - "qg", - new AzureResourceManagerUserAssignedIdentity().withClientId("qmje").withPrincipalId("cxn"), - "ywzash", - new AzureResourceManagerUserAssignedIdentity().withClientId("lusrv") - .withPrincipalId("simjceagbjqvlsu")))) - .withPanEtag("dfmmpzhzzwvy").withPanLocation("gyngydgrpxncak").withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions(Arrays.asList("djrkclamggl", "lmf", "jdoq")).withDescription("kgltyg") - .withDefaultMode(DefaultMode.IPS).withMinAppIdVersion("gqkayejsxtl") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("gziiucijjcea") - .withAntiSpywareProfile("ijjj").withAntiVirusProfile("va").withUrlFilteringProfile("a") - .withFileBlockingProfile("knxkvccxetyvkunm").withDnsSubscription("nohikkgq") - .withOutboundUnTrustCertificate("jwpindedvabbxbh").withOutboundTrustCertificate("dei")) - .create(); - - Assertions.assertEquals("xlb", response.location()); - Assertions.assertEquals("meikj", response.tags().get("lwzacn")); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, response.identity().type()); - Assertions.assertEquals("ciuiyqvldaswv", - response.identity().userAssignedIdentities().get("qqzlgcndhz").clientId()); - Assertions.assertEquals("i", response.identity().userAssignedIdentities().get("qqzlgcndhz").principalId()); - Assertions.assertEquals("lqqbtnyjpylxdbfv", response.panEtag()); - Assertions.assertEquals("mvmsxbae", response.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, response.scope()); - Assertions.assertEquals("kottlwuhvajmailf", response.associatedSubscriptions().get(0)); - Assertions.assertEquals("dmvr", response.description()); - Assertions.assertEquals(DefaultMode.NONE, response.defaultMode()); - Assertions.assertEquals("erndbrnyeofltfnn", response.minAppIdVersion()); - Assertions.assertEquals("jfynnfmuiiirip", response.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("hykfkxbb", response.securityServices().antiSpywareProfile()); - Assertions.assertEquals("r", response.securityServices().antiVirusProfile()); - Assertions.assertEquals("iutgnjizbeewoiy", response.securityServices().urlFilteringProfile()); - Assertions.assertEquals("vzbjuyrsrzi", response.securityServices().fileBlockingProfile()); - Assertions.assertEquals("tixgbd", response.securityServices().dnsSubscription()); - Assertions.assertEquals("ifrevk", response.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("pezkis", response.securityServices().outboundTrustCertificate()); - } - - // 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/LocalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksDeleteMockTests.java deleted file mode 100644 index 7e76990ccc318..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksDeleteMockTests.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 LocalRulestacksDeleteMockTests { - @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.localRulestacks().delete("tdsbezax", "f", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetByResourceGroupWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 148e19bdb0521..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,80 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResource; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -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 LocalRulestacksGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"properties\":{\"panEtag\":\"jiitnspxlzdesygr\",\"panLocation\":\"waiufanra\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"qfrojsydgrhyd\",\"ygywe\"],\"description\":\"kiecafygzm\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"vdsmaklixq\",\"provisioningState\":\"Creating\",\"securityServices\":{\"vulnerabilityProfile\":\"xalybxawoijpo\",\"antiSpywareProfile\":\"blxpkkwjdjodq\",\"antiVirusProfile\":\"kincnremeh\",\"urlFilteringProfile\":\"izhceumoqodkadp\",\"fileBlockingProfile\":\"ibngqladyw\",\"dnsSubscription\":\"whydt\",\"outboundUnTrustCertificate\":\"vvadswzs\",\"outboundTrustCertificate\":\"yemlowuowhlxln\"}},\"identity\":{\"tenantId\":\"mouvbl\",\"principalId\":\"okzkltr\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"dxlwyojbfqz\":{\"clientId\":\"vrfmvlihcvjd\",\"principalId\":\"crjidhftukv\"},\"valqjrhuzgfxo\":{\"clientId\":\"fnjyix\",\"principalId\":\"fratqxmbjroumzz\"}}},\"location\":\"tpusllywp\",\"tags\":{\"pdbollg\":\"otz\",\"owsocnequygdjbo\":\"yfqiuasig\",\"evadrmmwiu\":\"grmtqjk\",\"kxiidisczskoswo\":\"wvcmj\"},\"id\":\"iqazugamxzkr\",\"name\":\"coiisbamnppcce\",\"type\":\"u\"}"; - - 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)); - - LocalRulestackResource response = manager.localRulestacks() - .getByResourceGroupWithResponse("yxey", "uqi", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("tpusllywp", response.location()); - Assertions.assertEquals("otz", response.tags().get("pdbollg")); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("vrfmvlihcvjd", - response.identity().userAssignedIdentities().get("dxlwyojbfqz").clientId()); - Assertions.assertEquals("crjidhftukv", - response.identity().userAssignedIdentities().get("dxlwyojbfqz").principalId()); - Assertions.assertEquals("jiitnspxlzdesygr", response.panEtag()); - Assertions.assertEquals("waiufanra", response.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, response.scope()); - Assertions.assertEquals("qfrojsydgrhyd", response.associatedSubscriptions().get(0)); - Assertions.assertEquals("kiecafygzm", response.description()); - Assertions.assertEquals(DefaultMode.NONE, response.defaultMode()); - Assertions.assertEquals("vdsmaklixq", response.minAppIdVersion()); - Assertions.assertEquals("xalybxawoijpo", response.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("blxpkkwjdjodq", response.securityServices().antiSpywareProfile()); - Assertions.assertEquals("kincnremeh", response.securityServices().antiVirusProfile()); - Assertions.assertEquals("izhceumoqodkadp", response.securityServices().urlFilteringProfile()); - Assertions.assertEquals("ibngqladyw", response.securityServices().fileBlockingProfile()); - Assertions.assertEquals("whydt", response.securityServices().dnsSubscription()); - Assertions.assertEquals("vvadswzs", response.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("yemlowuowhlxln", response.securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetChangeLogWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetChangeLogWithResponseMockTests.java deleted file mode 100644 index 6b48597446b29..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetChangeLogWithResponseMockTests.java +++ /dev/null @@ -1,58 +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.Changelog; -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 LocalRulestacksGetChangeLogWithResponseMockTests { - @Test - public void testGetChangeLogWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"changes\":[\"epkpe\"],\"lastCommitted\":\"2021-06-28T20:48:42Z\",\"lastModified\":\"2021-07-29T17:20:07Z\"}"; - - 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)); - - Changelog response = manager.localRulestacks() - .getChangeLogWithResponse("kzxuiz", "y", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("epkpe", response.changes().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T20:48:42Z"), response.lastCommitted()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-29T17:20:07Z"), response.lastModified()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetSupportInfoWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetSupportInfoWithResponseMockTests.java deleted file mode 100644 index 90d6bc8eb5144..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksGetSupportInfoWithResponseMockTests.java +++ /dev/null @@ -1,69 +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 LocalRulestacksGetSupportInfoWithResponseMockTests { - @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\":\"blnsntrpcaqk\",\"productSerial\":\"f\",\"accountRegistered\":\"FALSE\",\"accountId\":\"mhklbnl\",\"userDomainSupported\":\"TRUE\",\"userRegistered\":\"TRUE\",\"freeTrial\":\"TRUE\",\"freeTrialDaysLeft\":1033707853,\"freeTrialCreditLeft\":1377010436,\"helpURL\":\"wusqx\",\"supportURL\":\"rp\",\"registerURL\":\"r\"}"; - - 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.localRulestacks() - .getSupportInfoWithResponse("qiubxdukecpxda", "v", "hctmmkosz", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("blnsntrpcaqk", response.productSku()); - Assertions.assertEquals("f", response.productSerial()); - Assertions.assertEquals(BooleanEnum.FALSE, response.accountRegistered()); - Assertions.assertEquals("mhklbnl", response.accountId()); - Assertions.assertEquals(BooleanEnum.TRUE, response.userDomainSupported()); - Assertions.assertEquals(BooleanEnum.TRUE, response.userRegistered()); - Assertions.assertEquals(BooleanEnum.TRUE, response.freeTrial()); - Assertions.assertEquals(1033707853, response.freeTrialDaysLeft()); - Assertions.assertEquals(1377010436, response.freeTrialCreditLeft()); - Assertions.assertEquals("wusqx", response.helpUrl()); - Assertions.assertEquals("rp", response.supportUrl()); - Assertions.assertEquals("r", response.registerUrl()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAdvancedSecurityObjectsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAdvancedSecurityObjectsWithResponseMockTests.java deleted file mode 100644 index 20ea778ad8666..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAdvancedSecurityObjectsWithResponseMockTests.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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectListResponse; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum; -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 LocalRulestacksListAdvancedSecurityObjectsWithResponseMockTests { - @Test - public void testListAdvancedSecurityObjectsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":{\"type\":\"gxnoqrxtdis\",\"entry\":[{\"name\":\"evhdlmydid\",\"description\":\"epfwwt\"},{\"name\":\"f\",\"description\":\"esxxhmwcdbckyoi\"},{\"name\":\"xkxhnegknjzrbhtm\",\"description\":\"lvukaobrlb\"}]},\"nextLink\":\"snbagnchjhg\"}"; - - 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)); - - AdvSecurityObjectListResponse response = manager.localRulestacks() - .listAdvancedSecurityObjectsWithResponse("yuuatvlmbjwcolbm", "lbnwtpcpahp", - AdvSecurityObjectTypeEnum.URL_CUSTOM, "rvxhmtfhocnxzcm", 762399451, com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gxnoqrxtdis", response.value().type()); - Assertions.assertEquals("evhdlmydid", response.value().entry().get(0).name()); - Assertions.assertEquals("epfwwt", response.value().entry().get(0).description()); - Assertions.assertEquals("snbagnchjhg", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsWithResponseMockTests.java deleted file mode 100644 index 289045d55ee6e..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsWithResponseMockTests.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.ListAppIdResponse; -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 LocalRulestacksListAppIdsWithResponseMockTests { - @Test - public void testListAppIdsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[\"iytssikizbc\"],\"nextLink\":\"q\"}"; - - 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)); - - ListAppIdResponse response = manager.localRulestacks().listAppIdsWithResponse("muowakywalhjy", "xcgqtagdrclsso", - "jomevtfycnlb", "gjco", "kk", 353901873, com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("iytssikizbc", response.value().get(0)); - Assertions.assertEquals("q", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListByResourceGroupMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListByResourceGroupMockTests.java deleted file mode 100644 index f6a3f85c23735..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListByResourceGroupMockTests.java +++ /dev/null @@ -1,83 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResource; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -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 LocalRulestacksListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":[{\"properties\":{\"panEtag\":\"pqsixymmp\",\"panLocation\":\"ivyqlkjuvsmbmsl\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"wzdbpqvybefgv\",\"x\",\"okcvtlubses\"],\"description\":\"cua\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"unlpirykycndz\",\"provisioningState\":\"Failed\",\"securityServices\":{\"vulnerabilityProfile\":\"reuykbbmnwagl\",\"antiSpywareProfile\":\"xoe\",\"antiVirusProfile\":\"nqlnfwmyymvqd\",\"urlFilteringProfile\":\"bhfckdvezcrcssb\",\"fileBlockingProfile\":\"ddubbnqfblhkal\",\"dnsSubscription\":\"pavawugiqjtio\",\"outboundUnTrustCertificate\":\"gdmin\",\"outboundTrustCertificate\":\"tteajohiygs\"}},\"identity\":{\"tenantId\":\"onhpcz\",\"principalId\":\"mktp\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"zulo\":{\"clientId\":\"sehch\",\"principalId\":\"ufmpqumqyjgy\"}}},\"location\":\"aeuzanh\",\"tags\":{\"wphpzfngqj\":\"hse\",\"fwbeqrkuorh\":\"lidftujwjj\",\"tiq\":\"ssruqnmdvhazcvj\",\"ukvlb\":\"wbqerzwxiytxtd\"},\"id\":\"ktg\",\"name\":\"styoua\",\"type\":\"bewreswmowegmmut\"}]}"; - - 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.localRulestacks().listByResourceGroup("zrltixldzyyf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("aeuzanh", response.iterator().next().location()); - Assertions.assertEquals("hse", response.iterator().next().tags().get("wphpzfngqj")); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, - response.iterator().next().identity().type()); - Assertions.assertEquals("sehch", - response.iterator().next().identity().userAssignedIdentities().get("zulo").clientId()); - Assertions.assertEquals("ufmpqumqyjgy", - response.iterator().next().identity().userAssignedIdentities().get("zulo").principalId()); - Assertions.assertEquals("pqsixymmp", response.iterator().next().panEtag()); - Assertions.assertEquals("ivyqlkjuvsmbmsl", response.iterator().next().panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, response.iterator().next().scope()); - Assertions.assertEquals("wzdbpqvybefgv", response.iterator().next().associatedSubscriptions().get(0)); - Assertions.assertEquals("cua", response.iterator().next().description()); - Assertions.assertEquals(DefaultMode.FIREWALL, response.iterator().next().defaultMode()); - Assertions.assertEquals("unlpirykycndz", response.iterator().next().minAppIdVersion()); - Assertions.assertEquals("reuykbbmnwagl", response.iterator().next().securityServices().vulnerabilityProfile()); - Assertions.assertEquals("xoe", response.iterator().next().securityServices().antiSpywareProfile()); - Assertions.assertEquals("nqlnfwmyymvqd", response.iterator().next().securityServices().antiVirusProfile()); - Assertions.assertEquals("bhfckdvezcrcssb", response.iterator().next().securityServices().urlFilteringProfile()); - Assertions.assertEquals("ddubbnqfblhkal", response.iterator().next().securityServices().fileBlockingProfile()); - Assertions.assertEquals("pavawugiqjtio", response.iterator().next().securityServices().dnsSubscription()); - Assertions.assertEquals("gdmin", response.iterator().next().securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("tteajohiygs", - response.iterator().next().securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListFirewallsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListFirewallsWithResponseMockTests.java deleted file mode 100644 index b9959a5947bc1..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListFirewallsWithResponseMockTests.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.ListFirewallsResponse; -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 LocalRulestacksListFirewallsWithResponseMockTests { - @Test - public void testListFirewallsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[\"ygtvxbyjanepub\",\"pkxyqvgxi\"],\"nextLink\":\"detv\"}"; - - 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)); - - ListFirewallsResponse response = manager.localRulestacks() - .listFirewallsWithResponse("iw", "wxlboncqbazqicq", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("ygtvxbyjanepub", response.value().get(0)); - Assertions.assertEquals("detv", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListMockTests.java deleted file mode 100644 index 9469bdd79e5e0..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListMockTests.java +++ /dev/null @@ -1,82 +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.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResource; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -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 LocalRulestacksListMockTests { - @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\":{\"panEtag\":\"fayorpravkjoges\",\"panLocation\":\"bnsmjkwynqxaek\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"wjtq\",\"kev\",\"yltjcrspxklu\",\"cclfgxannn\"],\"description\":\"t\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"ewxigpxvk\",\"provisioningState\":\"Failed\",\"securityServices\":{\"vulnerabilityProfile\":\"xvpif\",\"antiSpywareProfile\":\"aifyzyzeyuubeids\",\"antiVirusProfile\":\"fytoi\",\"urlFilteringProfile\":\"gygvfltgvdiho\",\"fileBlockingProfile\":\"krxwet\",\"dnsSubscription\":\"drcyrucpcun\",\"outboundUnTrustCertificate\":\"zdqumoe\",\"outboundTrustCertificate\":\"dnaienhqhskndnel\"}},\"identity\":{\"tenantId\":\"adlknwfoanni\",\"principalId\":\"petxivcnrlyxnu\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"zqymtuowogtgits\":{\"clientId\":\"blkwqpatvbqs\",\"principalId\":\"cjbctviv\"}}},\"location\":\"zvbrzcdbanfzndsc\",\"tags\":{\"ibqbnaomhjrm\":\"eatkdbmwnrdj\",\"maxljalfihcj\":\"u\"},\"id\":\"obcancdexxqcw\",\"name\":\"a\",\"type\":\"fgvaknokzwj\"}]}"; - - 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.localRulestacks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zvbrzcdbanfzndsc", response.iterator().next().location()); - Assertions.assertEquals("eatkdbmwnrdj", response.iterator().next().tags().get("ibqbnaomhjrm")); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals("blkwqpatvbqs", - response.iterator().next().identity().userAssignedIdentities().get("zqymtuowogtgits").clientId()); - Assertions.assertEquals("cjbctviv", - response.iterator().next().identity().userAssignedIdentities().get("zqymtuowogtgits").principalId()); - Assertions.assertEquals("fayorpravkjoges", response.iterator().next().panEtag()); - Assertions.assertEquals("bnsmjkwynqxaek", response.iterator().next().panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, response.iterator().next().scope()); - Assertions.assertEquals("wjtq", response.iterator().next().associatedSubscriptions().get(0)); - Assertions.assertEquals("t", response.iterator().next().description()); - Assertions.assertEquals(DefaultMode.NONE, response.iterator().next().defaultMode()); - Assertions.assertEquals("ewxigpxvk", response.iterator().next().minAppIdVersion()); - Assertions.assertEquals("xvpif", response.iterator().next().securityServices().vulnerabilityProfile()); - Assertions.assertEquals("aifyzyzeyuubeids", response.iterator().next().securityServices().antiSpywareProfile()); - Assertions.assertEquals("fytoi", response.iterator().next().securityServices().antiVirusProfile()); - Assertions.assertEquals("gygvfltgvdiho", response.iterator().next().securityServices().urlFilteringProfile()); - Assertions.assertEquals("krxwet", response.iterator().next().securityServices().fileBlockingProfile()); - Assertions.assertEquals("drcyrucpcun", response.iterator().next().securityServices().dnsSubscription()); - Assertions.assertEquals("zdqumoe", response.iterator().next().securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("dnaienhqhskndnel", - response.iterator().next().securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesWithResponseMockTests.java deleted file mode 100644 index 5281fa4c76d96..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesWithResponseMockTests.java +++ /dev/null @@ -1,58 +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.PredefinedUrlCategoriesResponse; -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 LocalRulestacksListPredefinedUrlCategoriesWithResponseMockTests { - @Test - public void testListPredefinedUrlCategoriesWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[{\"action\":\"y\",\"name\":\"xpvelszerqzevxo\"}],\"nextLink\":\"intxwa\"}"; - - 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)); - - PredefinedUrlCategoriesResponse response - = manager.localRulestacks().listPredefinedUrlCategoriesWithResponse("hkxdxuwsaifmc", "nosbz", - "ehgcvkbcknjo", 988926975, com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("y", response.value().get(0).action()); - Assertions.assertEquals("xpvelszerqzevxo", response.value().get(0).name()); - Assertions.assertEquals("intxwa", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSecurityServicesWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSecurityServicesWithResponseMockTests.java deleted file mode 100644 index bb17cf4c60a55..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListSecurityServicesWithResponseMockTests.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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesResponse; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum; -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 LocalRulestacksListSecurityServicesWithResponseMockTests { - @Test - public void testListSecurityServicesWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":{\"type\":\"afjrqpjiyrqjcrg\",\"entry\":[{\"name\":\"wmzwdfkbnrzorpdl\",\"description\":\"qctqjfg\"},{\"name\":\"xsaetg\",\"description\":\"gvpyigdaqqilzdc\"},{\"name\":\"uwjoedxnguca\",\"description\":\"pa\"}]},\"nextLink\":\"wwgilfjqqacdm\"}"; - - 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)); - - SecurityServicesResponse response = manager.localRulestacks().listSecurityServicesWithResponse("jglzoblqwaafrq", - "lhm", SecurityServicesTypeEnum.ANTI_VIRUS, "qb", 826879471, com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("afjrqpjiyrqjcrg", response.value().type()); - Assertions.assertEquals("wmzwdfkbnrzorpdl", response.value().entry().get(0).name()); - Assertions.assertEquals("qctqjfg", response.value().entry().get(0).description()); - Assertions.assertEquals("wwgilfjqqacdm", response.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksRevertWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksRevertWithResponseMockTests.java deleted file mode 100644 index b457e5fde1364..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksRevertWithResponseMockTests.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 LocalRulestacksRevertWithResponseMockTests { - @Test - public void testRevertWithResponse() 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(204); - 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.localRulestacks().revertWithResponse("xwxdcvjwc", "z", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MarketplaceDetailsTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MarketplaceDetailsTests.java deleted file mode 100644 index 0501b95da4c38..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MarketplaceDetailsTests.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.MarketplaceDetails; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MarketplaceSubscriptionStatus; -import org.junit.jupiter.api.Assertions; - -public final class MarketplaceDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketplaceDetails model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"curdoiwiitht\",\"offerId\":\"wubxc\",\"publisherId\":\"ihwqknfdntwjchr\",\"marketplaceSubscriptionStatus\":\"NotStarted\"}") - .toObject(MarketplaceDetails.class); - Assertions.assertEquals("wubxc", model.offerId()); - Assertions.assertEquals("ihwqknfdntwjchr", model.publisherId()); - Assertions.assertEquals(MarketplaceSubscriptionStatus.NOT_STARTED, model.marketplaceSubscriptionStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketplaceDetails model = new MarketplaceDetails().withOfferId("wubxc").withPublisherId("ihwqknfdntwjchr") - .withMarketplaceSubscriptionStatus(MarketplaceSubscriptionStatus.NOT_STARTED); - model = BinaryData.fromObject(model).toObject(MarketplaceDetails.class); - Assertions.assertEquals("wubxc", model.offerId()); - Assertions.assertEquals("ihwqknfdntwjchr", model.publisherId()); - Assertions.assertEquals(MarketplaceSubscriptionStatus.NOT_STARTED, model.marketplaceSubscriptionStatus()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/NameDescriptionObjectTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/NameDescriptionObjectTests.java deleted file mode 100644 index 9ed410059b120..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/NameDescriptionObjectTests.java +++ /dev/null @@ -1,27 +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.NameDescriptionObject; -import org.junit.jupiter.api.Assertions; - -public final class NameDescriptionObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NameDescriptionObject model = BinaryData.fromString("{\"name\":\"cwif\",\"description\":\"ttgzfbis\"}") - .toObject(NameDescriptionObject.class); - Assertions.assertEquals("cwif", model.name()); - Assertions.assertEquals("ttgzfbis", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NameDescriptionObject model = new NameDescriptionObject().withName("cwif").withDescription("ttgzfbis"); - model = BinaryData.fromObject(model).toObject(NameDescriptionObject.class); - Assertions.assertEquals("cwif", model.name()); - Assertions.assertEquals("ttgzfbis", model.description()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/NetworkProfileTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/NetworkProfileTests.java deleted file mode 100644 index 3d88b1eb9f702..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/NetworkProfileTests.java +++ /dev/null @@ -1,97 +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.EgressNat; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddress; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddressSpace; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.NetworkProfile; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.NetworkType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.VnetConfiguration; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.VwanConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkProfile model = BinaryData.fromString( - "{\"vnetConfiguration\":{\"vnet\":{\"resourceId\":\"xukndxdigr\",\"addressSpace\":\"uufzdmsyqtfihw\"},\"trustSubnet\":{\"resourceId\":\"otzi\",\"addressSpace\":\"amvpphoszqzudph\"},\"unTrustSubnet\":{\"resourceId\":\"mvdk\",\"addressSpace\":\"ynwcvtbv\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"hmtnvy\",\"address\":\"atkzwpcnpw\"}},\"vwanConfiguration\":{\"networkVirtualApplianceId\":\"a\",\"vHub\":{\"resourceId\":\"gvvs\",\"addressSpace\":\"yajguqfhwygzlv\"},\"trustSubnet\":{\"resourceId\":\"fxusemdwzr\",\"addressSpace\":\"hapfcqdpsqx\"},\"unTrustSubnet\":{\"resourceId\":\"svuo\",\"addressSpace\":\"gc\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"vezrypqlmfeo\",\"address\":\"rqwky\"}},\"networkType\":\"VWAN\",\"publicIps\":[{\"resourceId\":\"opgxedkowepb\",\"address\":\"cr\"}],\"enableEgressNat\":\"DISABLED\",\"egressNatIp\":[{\"resourceId\":\"csnjvcdwxlpqekft\",\"address\":\"htjsying\"},{\"resourceId\":\"qatmtdhtmdvy\",\"address\":\"ikdgszywkbir\"},{\"resourceId\":\"uzhlhkjoqrv\",\"address\":\"aatjinrvgoupmfi\"},{\"resourceId\":\"fggjioolvr\",\"address\":\"kvtkkg\"}],\"trustedRanges\":[\"wjygvjayvblmhvk\",\"uhbxvvy\"]}") - .toObject(NetworkProfile.class); - Assertions.assertEquals("xukndxdigr", model.vnetConfiguration().vnet().resourceId()); - Assertions.assertEquals("uufzdmsyqtfihw", model.vnetConfiguration().vnet().addressSpace()); - Assertions.assertEquals("otzi", model.vnetConfiguration().trustSubnet().resourceId()); - Assertions.assertEquals("amvpphoszqzudph", model.vnetConfiguration().trustSubnet().addressSpace()); - Assertions.assertEquals("mvdk", model.vnetConfiguration().unTrustSubnet().resourceId()); - Assertions.assertEquals("ynwcvtbv", model.vnetConfiguration().unTrustSubnet().addressSpace()); - Assertions.assertEquals("hmtnvy", model.vnetConfiguration().ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("atkzwpcnpw", model.vnetConfiguration().ipOfTrustSubnetForUdr().address()); - Assertions.assertEquals("a", model.vwanConfiguration().networkVirtualApplianceId()); - Assertions.assertEquals("gvvs", model.vwanConfiguration().vHub().resourceId()); - Assertions.assertEquals("yajguqfhwygzlv", model.vwanConfiguration().vHub().addressSpace()); - Assertions.assertEquals("fxusemdwzr", model.vwanConfiguration().trustSubnet().resourceId()); - Assertions.assertEquals("hapfcqdpsqx", model.vwanConfiguration().trustSubnet().addressSpace()); - Assertions.assertEquals("svuo", model.vwanConfiguration().unTrustSubnet().resourceId()); - Assertions.assertEquals("gc", model.vwanConfiguration().unTrustSubnet().addressSpace()); - Assertions.assertEquals("vezrypqlmfeo", model.vwanConfiguration().ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("rqwky", model.vwanConfiguration().ipOfTrustSubnetForUdr().address()); - Assertions.assertEquals(NetworkType.VWAN, model.networkType()); - Assertions.assertEquals("opgxedkowepb", model.publicIps().get(0).resourceId()); - Assertions.assertEquals("cr", model.publicIps().get(0).address()); - Assertions.assertEquals(EgressNat.DISABLED, model.enableEgressNat()); - Assertions.assertEquals("csnjvcdwxlpqekft", model.egressNatIp().get(0).resourceId()); - Assertions.assertEquals("htjsying", model.egressNatIp().get(0).address()); - Assertions.assertEquals("wjygvjayvblmhvk", model.trustedRanges().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkProfile model = new NetworkProfile() - .withVnetConfiguration(new VnetConfiguration() - .withVnet(new IpAddressSpace().withResourceId("xukndxdigr").withAddressSpace("uufzdmsyqtfihw")) - .withTrustSubnet(new IpAddressSpace().withResourceId("otzi").withAddressSpace("amvpphoszqzudph")) - .withUnTrustSubnet(new IpAddressSpace().withResourceId("mvdk").withAddressSpace("ynwcvtbv")) - .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("hmtnvy").withAddress("atkzwpcnpw"))) - .withVwanConfiguration(new VwanConfiguration().withNetworkVirtualApplianceId("a") - .withVHub(new IpAddressSpace().withResourceId("gvvs").withAddressSpace("yajguqfhwygzlv")) - .withTrustSubnet(new IpAddressSpace().withResourceId("fxusemdwzr").withAddressSpace("hapfcqdpsqx")) - .withUnTrustSubnet(new IpAddressSpace().withResourceId("svuo").withAddressSpace("gc")) - .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("vezrypqlmfeo").withAddress("rqwky"))) - .withNetworkType(NetworkType.VWAN) - .withPublicIps(Arrays.asList(new IpAddress().withResourceId("opgxedkowepb").withAddress("cr"))) - .withEnableEgressNat(EgressNat.DISABLED) - .withEgressNatIp(Arrays.asList(new IpAddress().withResourceId("csnjvcdwxlpqekft").withAddress("htjsying"), - new IpAddress().withResourceId("qatmtdhtmdvy").withAddress("ikdgszywkbir"), - new IpAddress().withResourceId("uzhlhkjoqrv").withAddress("aatjinrvgoupmfi"), - new IpAddress().withResourceId("fggjioolvr").withAddress("kvtkkg"))) - .withTrustedRanges(Arrays.asList("wjygvjayvblmhvk", "uhbxvvy")); - model = BinaryData.fromObject(model).toObject(NetworkProfile.class); - Assertions.assertEquals("xukndxdigr", model.vnetConfiguration().vnet().resourceId()); - Assertions.assertEquals("uufzdmsyqtfihw", model.vnetConfiguration().vnet().addressSpace()); - Assertions.assertEquals("otzi", model.vnetConfiguration().trustSubnet().resourceId()); - Assertions.assertEquals("amvpphoszqzudph", model.vnetConfiguration().trustSubnet().addressSpace()); - Assertions.assertEquals("mvdk", model.vnetConfiguration().unTrustSubnet().resourceId()); - Assertions.assertEquals("ynwcvtbv", model.vnetConfiguration().unTrustSubnet().addressSpace()); - Assertions.assertEquals("hmtnvy", model.vnetConfiguration().ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("atkzwpcnpw", model.vnetConfiguration().ipOfTrustSubnetForUdr().address()); - Assertions.assertEquals("a", model.vwanConfiguration().networkVirtualApplianceId()); - Assertions.assertEquals("gvvs", model.vwanConfiguration().vHub().resourceId()); - Assertions.assertEquals("yajguqfhwygzlv", model.vwanConfiguration().vHub().addressSpace()); - Assertions.assertEquals("fxusemdwzr", model.vwanConfiguration().trustSubnet().resourceId()); - Assertions.assertEquals("hapfcqdpsqx", model.vwanConfiguration().trustSubnet().addressSpace()); - Assertions.assertEquals("svuo", model.vwanConfiguration().unTrustSubnet().resourceId()); - Assertions.assertEquals("gc", model.vwanConfiguration().unTrustSubnet().addressSpace()); - Assertions.assertEquals("vezrypqlmfeo", model.vwanConfiguration().ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("rqwky", model.vwanConfiguration().ipOfTrustSubnetForUdr().address()); - Assertions.assertEquals(NetworkType.VWAN, model.networkType()); - Assertions.assertEquals("opgxedkowepb", model.publicIps().get(0).resourceId()); - Assertions.assertEquals("cr", model.publicIps().get(0).address()); - Assertions.assertEquals(EgressNat.DISABLED, model.enableEgressNat()); - Assertions.assertEquals("csnjvcdwxlpqekft", model.egressNatIp().get(0).resourceId()); - Assertions.assertEquals("htjsying", model.egressNatIp().get(0).address()); - Assertions.assertEquals("wjygvjayvblmhvk", model.trustedRanges().get(0)); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationDisplayTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationDisplayTests.java deleted file mode 100644 index b5d70879d5c23..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationDisplayTests.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.models.OperationDisplay; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"mkycgra\",\"resource\":\"juetaebur\",\"operation\":\"dmovsm\",\"description\":\"xwabmqoe\"}") - .toObject(OperationDisplay.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay(); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationInnerTests.java deleted file mode 100644 index 6efff84397ad1..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationInnerTests.java +++ /dev/null @@ -1,24 +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.OperationInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.OperationDisplay; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"dut\",\"isDataAction\":true,\"display\":{\"provider\":\"r\",\"resource\":\"qtvcofudflvkgj\",\"operation\":\"gdknnqv\",\"description\":\"znqntoru\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") - .toObject(OperationInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withDisplay(new OperationDisplay()); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationListResultTests.java deleted file mode 100644 index 4ea199c759e6f..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationListResultTests.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.models.OperationListResult; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"kggkfpa\",\"isDataAction\":false,\"display\":{\"provider\":\"ulpqblylsyxkqjn\",\"resource\":\"ervtiagxs\",\"operation\":\"zuempsbzkf\",\"description\":\"eyvpnqicvinvkj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"uukzclewyhmlw\",\"isDataAction\":false,\"display\":{\"provider\":\"pofncck\",\"resource\":\"fz\",\"operation\":\"hxx\",\"description\":\"yq\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"ztppriolxorjalto\",\"isDataAction\":false,\"display\":{\"provider\":\"sobqw\",\"resource\":\"dbnw\",\"operation\":\"fhucqdpfuv\",\"description\":\"sbjjc\"},\"origin\":\"user\",\"actionType\":\"Internal\"}],\"nextLink\":\"t\"}") - .toObject(OperationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult(); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationsListMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationsListMockTests.java deleted file mode 100644 index 362f9acb2ea92..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/OperationsListMockTests.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.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.Operation; -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 OperationsListMockTests { - @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\":[{\"name\":\"pkxkdtxfk\",\"isDataAction\":false,\"display\":{\"provider\":\"twknvgm\",\"resource\":\"ugtywatmqaqkue\",\"operation\":\"groeshoyg\",\"description\":\"byfqxkfaoy\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; - - 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.operations().list(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PanoramaStatusTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PanoramaStatusTests.java deleted file mode 100644 index 19019fda6f5cb..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PanoramaStatusTests.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.models.PanoramaStatus; - -public final class PanoramaStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PanoramaStatus model - = BinaryData.fromString("{\"panoramaServerStatus\":\"DOWN\",\"panoramaServer2Status\":\"DOWN\"}") - .toObject(PanoramaStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PanoramaStatus model = new PanoramaStatus(); - model = BinaryData.fromObject(model).toObject(PanoramaStatus.class); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PlanDataTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PlanDataTests.java deleted file mode 100644 index 4362b68b0bcab..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PlanDataTests.java +++ /dev/null @@ -1,33 +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.BillingCycle; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PlanData; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.UsageType; -import org.junit.jupiter.api.Assertions; - -public final class PlanDataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PlanData model = BinaryData.fromString( - "{\"usageType\":\"PAYG\",\"billingCycle\":\"MONTHLY\",\"planId\":\"nujrywvtyl\",\"effectiveDate\":\"2021-11-03T11:28:03Z\"}") - .toObject(PlanData.class); - Assertions.assertEquals(UsageType.PAYG, model.usageType()); - Assertions.assertEquals(BillingCycle.MONTHLY, model.billingCycle()); - Assertions.assertEquals("nujrywvtyl", model.planId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PlanData model = new PlanData().withUsageType(UsageType.PAYG).withBillingCycle(BillingCycle.MONTHLY) - .withPlanId("nujrywvtyl"); - model = BinaryData.fromObject(model).toObject(PlanData.class); - Assertions.assertEquals(UsageType.PAYG, model.usageType()); - Assertions.assertEquals(BillingCycle.MONTHLY, model.billingCycle()); - Assertions.assertEquals("nujrywvtyl", model.planId()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesDeleteMockTests.java deleted file mode 100644 index 82fcd33922c47..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesDeleteMockTests.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 PostRulesDeleteMockTests { - @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.postRules().delete("dyvt", "owx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetCountersWithResponseMockTests.java deleted file mode 100644 index c6d3b091b84dd..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesGetCountersWithResponseMockTests.java +++ /dev/null @@ -1,72 +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.RuleCounter; -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 PostRulesGetCountersWithResponseMockTests { - @Test - public void testGetCountersWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"priority\":\"vuhx\",\"ruleStackName\":\"mrutznabaobnsluj\",\"ruleListName\":\"ltymkmvguihywart\",\"firewallName\":\"phkixkykxdssjpe\",\"ruleName\":\"mucfxhikkf\",\"hitCount\":820394546,\"appSeen\":{\"count\":1139765013,\"appSeenList\":[{\"title\":\"incqlhriswsl\",\"category\":\"iiiovgqcgxuugq\",\"subCategory\":\"ctotiowlx\",\"risk\":\"e\",\"tag\":\"dptjgwdtgukranb\",\"technology\":\"wphqlkccuzgygqw\",\"standardPorts\":\"hoi\"},{\"title\":\"lwgniiprglvawu\",\"category\":\"z\",\"subCategory\":\"ufypiv\",\"risk\":\"sbbjpmcu\",\"tag\":\"kmifoxxkub\",\"technology\":\"phavpmhbrb\",\"standardPorts\":\"gvgovpbbttefjo\"}]},\"timestamp\":\"2021-09-11T19:23:39Z\",\"requestTimestamp\":\"2021-09-09T22:16:26Z\",\"lastUpdatedTimestamp\":\"2021-11-25T13:17:50Z\"}"; - - 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)); - - RuleCounter response = manager.postRules() - .getCountersWithResponse("gpiudeug", "sxze", "paxwkufyk", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("vuhx", response.priority()); - Assertions.assertEquals("mrutznabaobnsluj", response.ruleStackName()); - Assertions.assertEquals("ltymkmvguihywart", response.ruleListName()); - Assertions.assertEquals("phkixkykxdssjpe", response.firewallName()); - Assertions.assertEquals("mucfxhikkf", response.ruleName()); - Assertions.assertEquals(820394546, response.hitCount()); - Assertions.assertEquals(1139765013, response.appSeen().count()); - Assertions.assertEquals("incqlhriswsl", response.appSeen().appSeenList().get(0).title()); - Assertions.assertEquals("iiiovgqcgxuugq", response.appSeen().appSeenList().get(0).category()); - Assertions.assertEquals("ctotiowlx", response.appSeen().appSeenList().get(0).subCategory()); - Assertions.assertEquals("e", response.appSeen().appSeenList().get(0).risk()); - Assertions.assertEquals("dptjgwdtgukranb", response.appSeen().appSeenList().get(0).tag()); - Assertions.assertEquals("wphqlkccuzgygqw", response.appSeen().appSeenList().get(0).technology()); - Assertions.assertEquals("hoi", response.appSeen().appSeenList().get(0).standardPorts()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-11T19:23:39Z"), response.timestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T22:16:26Z"), response.requestTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-25T13:17:50Z"), response.lastUpdatedTimestamp()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesRefreshCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesRefreshCountersWithResponseMockTests.java deleted file mode 100644 index e7e86ed49c377..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesRefreshCountersWithResponseMockTests.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 PostRulesRefreshCountersWithResponseMockTests { - @Test - public void testRefreshCountersWithResponse() 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(204); - 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.postRules().refreshCountersWithResponse("qedikdfrd", "iqmrjgeihfqlggw", "iwzcxmjpbyeph", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesResetCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesResetCountersWithResponseMockTests.java deleted file mode 100644 index c21702aa2a3b5..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PostRulesResetCountersWithResponseMockTests.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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounterReset; -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 PostRulesResetCountersWithResponseMockTests { - @Test - public void testResetCountersWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"priority\":\"ui\",\"ruleStackName\":\"ey\",\"ruleListName\":\"wlpaugmrmfjlrxwt\",\"firewallName\":\"ukhfkvc\",\"ruleName\":\"izmoaeds\"}"; - - 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)); - - RuleCounterReset response = manager.postRules() - .resetCountersWithResponse("gt", "ljvrcmyfqipgxhnp", "myqwcab", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ey", response.ruleStackName()); - Assertions.assertEquals("wlpaugmrmfjlrxwt", response.ruleListName()); - Assertions.assertEquals("ukhfkvc", response.firewallName()); - Assertions.assertEquals("izmoaeds", response.ruleName()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesDeleteMockTests.java deleted file mode 100644 index 59394178b7bac..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesDeleteMockTests.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 PreRulesDeleteMockTests { - @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.preRules().delete("zptwrlohap", "infsz", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetCountersWithResponseMockTests.java deleted file mode 100644 index faca4c46d5edd..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesGetCountersWithResponseMockTests.java +++ /dev/null @@ -1,72 +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.RuleCounter; -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 PreRulesGetCountersWithResponseMockTests { - @Test - public void testGetCountersWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"priority\":\"jenkyh\",\"ruleStackName\":\"zv\",\"ruleListName\":\"xfxjelgcmpzqj\",\"firewallName\":\"hqxu\",\"ruleName\":\"yvca\",\"hitCount\":422708965,\"appSeen\":{\"count\":154545602,\"appSeenList\":[{\"title\":\"bsizus\",\"category\":\"szlbscm\",\"subCategory\":\"lzijiufehgmvflnw\",\"risk\":\"v\",\"tag\":\"kxrerlniylylyfwx\",\"technology\":\"utgqztwh\",\"standardPorts\":\"hmupgxyjtcdxabbu\"},{\"title\":\"ftabenbbklqp\",\"category\":\"zucafeddww\",\"subCategory\":\"lzafwxu\",\"risk\":\"gnhgook\",\"tag\":\"talvnbwgp\",\"technology\":\"emeluclv\",\"standardPorts\":\"jjukyrdnqodxah\"},{\"title\":\"xhqf\",\"category\":\"qnvzoqgyipemch\",\"subCategory\":\"avsczuejdtxp\",\"risk\":\"lghwzhome\",\"tag\":\"jjstliuhqawmo\",\"technology\":\"ia\",\"standardPorts\":\"cz\"},{\"title\":\"vodrrslblxydkxr\",\"category\":\"vvbxiwkgfbqljnq\",\"subCategory\":\"hychocokuleh\",\"risk\":\"rqlrqffawe\",\"tag\":\"urkphyjdxravju\",\"technology\":\"dbrxmrgc\",\"standardPorts\":\"bapxkiyfjjkb\"}]},\"timestamp\":\"2021-06-24T10:14:07Z\",\"requestTimestamp\":\"2021-04-28T23:33:04Z\",\"lastUpdatedTimestamp\":\"2021-07-08T05:49:52Z\"}"; - - 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)); - - RuleCounter response = manager.preRules() - .getCountersWithResponse("yglqdhmrjzral", "xpjb", "ypsjoq", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("jenkyh", response.priority()); - Assertions.assertEquals("zv", response.ruleStackName()); - Assertions.assertEquals("xfxjelgcmpzqj", response.ruleListName()); - Assertions.assertEquals("hqxu", response.firewallName()); - Assertions.assertEquals("yvca", response.ruleName()); - Assertions.assertEquals(422708965, response.hitCount()); - Assertions.assertEquals(154545602, response.appSeen().count()); - Assertions.assertEquals("bsizus", response.appSeen().appSeenList().get(0).title()); - Assertions.assertEquals("szlbscm", response.appSeen().appSeenList().get(0).category()); - Assertions.assertEquals("lzijiufehgmvflnw", response.appSeen().appSeenList().get(0).subCategory()); - Assertions.assertEquals("v", response.appSeen().appSeenList().get(0).risk()); - Assertions.assertEquals("kxrerlniylylyfwx", response.appSeen().appSeenList().get(0).tag()); - Assertions.assertEquals("utgqztwh", response.appSeen().appSeenList().get(0).technology()); - Assertions.assertEquals("hmupgxyjtcdxabbu", response.appSeen().appSeenList().get(0).standardPorts()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T10:14:07Z"), response.timestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-28T23:33:04Z"), response.requestTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-08T05:49:52Z"), response.lastUpdatedTimestamp()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesRefreshCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesRefreshCountersWithResponseMockTests.java deleted file mode 100644 index d61c99bcbd8cf..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesRefreshCountersWithResponseMockTests.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 PreRulesRefreshCountersWithResponseMockTests { - @Test - public void testRefreshCountersWithResponse() 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(204); - 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.preRules().refreshCountersWithResponse("duusioycblevpmcl", "jy", "kyxl", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesResetCountersWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesResetCountersWithResponseMockTests.java deleted file mode 100644 index 395bc4150f637..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PreRulesResetCountersWithResponseMockTests.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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounterReset; -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 PreRulesResetCountersWithResponseMockTests { - @Test - public void testResetCountersWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"priority\":\"owftptnuwjtks\",\"ruleStackName\":\"gcgqyhleseyqrhvy\",\"ruleListName\":\"dotjvdk\",\"firewallName\":\"swskuk\",\"ruleName\":\"asbvw\"}"; - - 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)); - - RuleCounterReset response = manager.preRules() - .resetCountersWithResponse("gsjgkzzlta", "hbzffovwmbjlzqs", "zpgvdwnapfd", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gcgqyhleseyqrhvy", response.ruleStackName()); - Assertions.assertEquals("dotjvdk", response.ruleListName()); - Assertions.assertEquals("swskuk", response.firewallName()); - Assertions.assertEquals("asbvw", response.ruleName()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoriesResponseInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoriesResponseInnerTests.java deleted file mode 100644 index 6dd2d32bc8b11..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoriesResponseInnerTests.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.PredefinedUrlCategoriesResponseInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PredefinedUrlCategoriesResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PredefinedUrlCategoriesResponseInner model = BinaryData.fromString( - "{\"value\":[{\"action\":\"zf\",\"name\":\"beypewrmjmw\"},{\"action\":\"vjektcxsenh\",\"name\":\"lrsf\"}],\"nextLink\":\"zpwv\"}") - .toObject(PredefinedUrlCategoriesResponseInner.class); - Assertions.assertEquals("zf", model.value().get(0).action()); - Assertions.assertEquals("beypewrmjmw", model.value().get(0).name()); - Assertions.assertEquals("zpwv", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PredefinedUrlCategoriesResponseInner model = new PredefinedUrlCategoriesResponseInner() - .withValue(Arrays.asList(new PredefinedUrlCategory().withAction("zf").withName("beypewrmjmw"), - new PredefinedUrlCategory().withAction("vjektcxsenh").withName("lrsf"))) - .withNextLink("zpwv"); - model = BinaryData.fromObject(model).toObject(PredefinedUrlCategoriesResponseInner.class); - Assertions.assertEquals("zf", model.value().get(0).action()); - Assertions.assertEquals("beypewrmjmw", model.value().get(0).name()); - Assertions.assertEquals("zpwv", model.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoryTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoryTests.java deleted file mode 100644 index 2ee6ce6399e35..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoryTests.java +++ /dev/null @@ -1,27 +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.PredefinedUrlCategory; -import org.junit.jupiter.api.Assertions; - -public final class PredefinedUrlCategoryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PredefinedUrlCategory model = BinaryData.fromString("{\"action\":\"qdqgbi\",\"name\":\"ylihkaetckt\"}") - .toObject(PredefinedUrlCategory.class); - Assertions.assertEquals("qdqgbi", model.action()); - Assertions.assertEquals("ylihkaetckt", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PredefinedUrlCategory model = new PredefinedUrlCategory().withAction("qdqgbi").withName("ylihkaetckt"); - model = BinaryData.fromObject(model).toObject(PredefinedUrlCategory.class); - Assertions.assertEquals("qdqgbi", model.action()); - Assertions.assertEquals("ylihkaetckt", model.name()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackResourceInnerTests.java deleted file mode 100644 index 2d6a7577815f2..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackResourceInnerTests.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.PrefixListGlobalRulestackResourceInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrefixListGlobalRulestackResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrefixListGlobalRulestackResourceInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"quxvypomgkop\",\"prefixList\":[\"hojvpajqgxysmocm\",\"qfqvmkc\"],\"etag\":\"zapvhelx\",\"auditComment\":\"glyatddckcbcuej\",\"provisioningState\":\"NotSpecified\"},\"id\":\"ciqibrhosx\",\"name\":\"dqrhzoymib\",\"type\":\"rq\"}") - .toObject(PrefixListGlobalRulestackResourceInner.class); - Assertions.assertEquals("quxvypomgkop", model.description()); - Assertions.assertEquals("hojvpajqgxysmocm", model.prefixList().get(0)); - Assertions.assertEquals("zapvhelx", model.etag()); - Assertions.assertEquals("glyatddckcbcuej", model.auditComment()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrefixListGlobalRulestackResourceInner model = new PrefixListGlobalRulestackResourceInner() - .withDescription("quxvypomgkop").withPrefixList(Arrays.asList("hojvpajqgxysmocm", "qfqvmkc")) - .withEtag("zapvhelx").withAuditComment("glyatddckcbcuej"); - model = BinaryData.fromObject(model).toObject(PrefixListGlobalRulestackResourceInner.class); - Assertions.assertEquals("quxvypomgkop", model.description()); - Assertions.assertEquals("hojvpajqgxysmocm", model.prefixList().get(0)); - Assertions.assertEquals("zapvhelx", model.etag()); - Assertions.assertEquals("glyatddckcbcuej", model.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackResourceListResultTests.java deleted file mode 100644 index f04a780b46ffa..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestackResourceListResultTests.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.PrefixListGlobalRulestackResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestackResourceListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrefixListGlobalRulestackResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrefixListGlobalRulestackResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"fuflrwdmhdlx\",\"prefixList\":[\"rxsagafcnihgwqa\"],\"etag\":\"edgfbcvkcvq\",\"auditComment\":\"keqdcvdrhvoods\",\"provisioningState\":\"Creating\"},\"id\":\"bzdopcj\",\"name\":\"vnhdldwmgxcxr\",\"type\":\"lpmutwuoegrpkhj\"},{\"properties\":{\"description\":\"iyq\",\"prefixList\":[\"uicpd\",\"gk\",\"zl\",\"mbmpaxmodfvuefy\"],\"etag\":\"bpfvm\",\"auditComment\":\"hrfou\",\"provisioningState\":\"Deleted\"},\"id\":\"akcp\",\"name\":\"iyzvqtmnub\",\"type\":\"xkp\"}],\"nextLink\":\"smond\"}") - .toObject(PrefixListGlobalRulestackResourceListResult.class); - Assertions.assertEquals("fuflrwdmhdlx", model.value().get(0).description()); - Assertions.assertEquals("rxsagafcnihgwqa", model.value().get(0).prefixList().get(0)); - Assertions.assertEquals("edgfbcvkcvq", model.value().get(0).etag()); - Assertions.assertEquals("keqdcvdrhvoods", model.value().get(0).auditComment()); - Assertions.assertEquals("smond", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrefixListGlobalRulestackResourceListResult model - = new PrefixListGlobalRulestackResourceListResult().withValue(Arrays.asList( - new PrefixListGlobalRulestackResourceInner().withDescription("fuflrwdmhdlx") - .withPrefixList(Arrays.asList("rxsagafcnihgwqa")).withEtag("edgfbcvkcvq") - .withAuditComment("keqdcvdrhvoods"), - new PrefixListGlobalRulestackResourceInner().withDescription("iyq") - .withPrefixList(Arrays.asList("uicpd", "gk", "zl", "mbmpaxmodfvuefy")).withEtag("bpfvm") - .withAuditComment("hrfou"))) - .withNextLink("smond"); - model = BinaryData.fromObject(model).toObject(PrefixListGlobalRulestackResourceListResult.class); - Assertions.assertEquals("fuflrwdmhdlx", model.value().get(0).description()); - Assertions.assertEquals("rxsagafcnihgwqa", model.value().get(0).prefixList().get(0)); - Assertions.assertEquals("edgfbcvkcvq", model.value().get(0).etag()); - Assertions.assertEquals("keqdcvdrhvoods", model.value().get(0).auditComment()); - Assertions.assertEquals("smond", model.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksCreateOrUpdateMockTests.java deleted file mode 100644 index c4c1885cbb729..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksCreateOrUpdateMockTests.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.PrefixListGlobalRulestackResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestackResource; -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 PrefixListGlobalRulestacksCreateOrUpdateMockTests { - @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\":\"qagnepzwakl\",\"prefixList\":[\"sbq\",\"qagwwrxaomz\"],\"etag\":\"glrrczez\",\"auditComment\":\"hltnjadhqoawjq\",\"provisioningState\":\"Succeeded\"},\"id\":\"ayfbpcm\",\"name\":\"plby\",\"type\":\"rueqthwm\"}"; - - 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)); - - PrefixListGlobalRulestackResource response = manager.prefixListGlobalRulestacks().createOrUpdate("dmxzjijpv", - "aurkihcirlde", - new PrefixListGlobalRulestackResourceInner().withDescription("rdcoxnbkkj") - .withPrefixList(Arrays.asList("urnnqbnqbpiz", "qltgrd")).withEtag("ypxrx").withAuditComment("fihwu"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qagnepzwakl", response.description()); - Assertions.assertEquals("sbq", response.prefixList().get(0)); - Assertions.assertEquals("glrrczez", response.etag()); - Assertions.assertEquals("hltnjadhqoawjq", response.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksDeleteMockTests.java deleted file mode 100644 index b57badb93705c..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksDeleteMockTests.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 PrefixListGlobalRulestacksDeleteMockTests { - @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.prefixListGlobalRulestacks().delete("nmbscbbx", "gdhxi", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksGetWithResponseMockTests.java deleted file mode 100644 index 29b233f6f3aab..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksGetWithResponseMockTests.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.PrefixListGlobalRulestackResource; -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 PrefixListGlobalRulestacksGetWithResponseMockTests { - @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\":\"c\",\"prefixList\":[\"zvxnqmhrp\"],\"etag\":\"df\",\"auditComment\":\"kois\",\"provisioningState\":\"Failed\"},\"id\":\"f\",\"name\":\"xuifmcsypobkdqz\",\"type\":\"dzsylollgtrczz\"}"; - - 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)); - - PrefixListGlobalRulestackResource response = manager.prefixListGlobalRulestacks() - .getWithResponse("lhkgmnsghp", "ycphdrwjjkhvyo", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("c", response.description()); - Assertions.assertEquals("zvxnqmhrp", response.prefixList().get(0)); - Assertions.assertEquals("df", response.etag()); - Assertions.assertEquals("kois", response.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksListMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksListMockTests.java deleted file mode 100644 index 3ee829d44a266..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListGlobalRulestacksListMockTests.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.PrefixListGlobalRulestackResource; -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 PrefixListGlobalRulestacksListMockTests { - @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\":\"cgyee\",\"prefixList\":[\"ei\",\"bp\",\"mgomg\"],\"etag\":\"mljdlrgmsplzga\",\"auditComment\":\"cshhv\",\"provisioningState\":\"Deleting\"},\"id\":\"nxkympqanxrjk\",\"name\":\"xtwbta\",\"type\":\"ypnyghshxc\"}]}"; - - 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.prefixListGlobalRulestacks().list("jwuive", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("cgyee", response.iterator().next().description()); - Assertions.assertEquals("ei", response.iterator().next().prefixList().get(0)); - Assertions.assertEquals("mljdlrgmsplzga", response.iterator().next().etag()); - Assertions.assertEquals("cshhv", response.iterator().next().auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksCreateOrUpdateMockTests.java deleted file mode 100644 index 7c2650c1bc3e5..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksCreateOrUpdateMockTests.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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListResource; -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 PrefixListLocalRulestacksCreateOrUpdateMockTests { - @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\":\"dmskxknpdgzigjsu\",\"prefixList\":[\"whgsaodkww\",\"bafo\",\"to\"],\"etag\":\"haquvwsxbgnvk\",\"auditComment\":\"vqchoadhrs\",\"provisioningState\":\"Succeeded\"},\"id\":\"vspabdsrgfajgl\",\"name\":\"rsubklrxhjnl\",\"type\":\"cetjdvq\"}"; - - 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)); - - PrefixListResource response - = manager.prefixListLocalRulestacks().define("ilrixysf").withExistingLocalRulestack("phgerhsmvgoh", "wzm") - .withPrefixList(Arrays.asList("ympmlqoin", "zduewihapfjii")).withDescription("msqywwwmhkruwae") - .withEtag("jdiq").withAuditComment("iej").create(); - - Assertions.assertEquals("dmskxknpdgzigjsu", response.description()); - Assertions.assertEquals("whgsaodkww", response.prefixList().get(0)); - Assertions.assertEquals("haquvwsxbgnvk", response.etag()); - Assertions.assertEquals("vqchoadhrs", response.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksDeleteMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksDeleteMockTests.java deleted file mode 100644 index ed3610377ef36..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksDeleteMockTests.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 PrefixListLocalRulestacksDeleteMockTests { - @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.prefixListLocalRulestacks().delete("zilfmnlikps", "msfeypofqpm", "hyqgsdrmmttjx", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksGetWithResponseMockTests.java deleted file mode 100644 index acfec4b207e04..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksGetWithResponseMockTests.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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListResource; -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 PrefixListLocalRulestacksGetWithResponseMockTests { - @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\":\"kdveksb\",\"prefixList\":[\"oduchvlscr\",\"pibfdy\",\"dusspyszekbhwlka\"],\"etag\":\"gkrehbf\",\"auditComment\":\"uybffljfiim\",\"provisioningState\":\"NotSpecified\"},\"id\":\"g\",\"name\":\"qtaadusrexxfavsq\",\"type\":\"udo\"}"; - - 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)); - - PrefixListResource response = manager.prefixListLocalRulestacks() - .getWithResponse("fepxyihpqadag", "hrdicxdwyjfo", "xwyovcxjsgbip", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("kdveksb", response.description()); - Assertions.assertEquals("oduchvlscr", response.prefixList().get(0)); - Assertions.assertEquals("gkrehbf", response.etag()); - Assertions.assertEquals("uybffljfiim", response.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksListByLocalRulestacksMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksListByLocalRulestacksMockTests.java deleted file mode 100644 index ac8cc693ea249..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListLocalRulestacksListByLocalRulestacksMockTests.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.PrefixListResource; -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 PrefixListLocalRulestacksListByLocalRulestacksMockTests { - @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\":{\"description\":\"kwaaesk\",\"prefixList\":[\"jlpzeqtoyrp\",\"ixlajmllpquevham\"],\"etag\":\"wg\",\"auditComment\":\"tmk\",\"provisioningState\":\"Succeeded\"},\"id\":\"kzwaqxofq\",\"name\":\"vchiqbpl\",\"type\":\"fidusztekxbyjgm\"}]}"; - - 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.prefixListLocalRulestacks() - .listByLocalRulestacks("vsgeafgf", "sehxlzsxezp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kwaaesk", response.iterator().next().description()); - Assertions.assertEquals("jlpzeqtoyrp", response.iterator().next().prefixList().get(0)); - Assertions.assertEquals("wg", response.iterator().next().etag()); - Assertions.assertEquals("tmk", response.iterator().next().auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListResourceInnerTests.java deleted file mode 100644 index 6a8d19595f10e..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListResourceInnerTests.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.PrefixListResourceInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrefixListResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrefixListResourceInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"exaoguya\",\"prefixList\":[\"ids\"],\"etag\":\"ultxijjumfq\",\"auditComment\":\"z\",\"provisioningState\":\"NotSpecified\"},\"id\":\"mcjn\",\"name\":\"zqdqxt\",\"type\":\"jw\"}") - .toObject(PrefixListResourceInner.class); - Assertions.assertEquals("exaoguya", model.description()); - Assertions.assertEquals("ids", model.prefixList().get(0)); - Assertions.assertEquals("ultxijjumfq", model.etag()); - Assertions.assertEquals("z", model.auditComment()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrefixListResourceInner model = new PrefixListResourceInner().withDescription("exaoguya") - .withPrefixList(Arrays.asList("ids")).withEtag("ultxijjumfq").withAuditComment("z"); - model = BinaryData.fromObject(model).toObject(PrefixListResourceInner.class); - Assertions.assertEquals("exaoguya", model.description()); - Assertions.assertEquals("ids", model.prefixList().get(0)); - Assertions.assertEquals("ultxijjumfq", model.etag()); - Assertions.assertEquals("z", model.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListResourceListResultTests.java deleted file mode 100644 index 59768c6156dd1..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixListResourceListResultTests.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.fluent.models.PrefixListResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListResourceListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrefixListResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrefixListResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"bzpcpiljhahzvec\",\"prefixList\":[\"dbn\",\"ieholewjwi\"],\"etag\":\"bwefqsfapaqtfer\",\"auditComment\":\"wexjkmfxapjwogq\",\"provisioningState\":\"Failed\"},\"id\":\"pud\",\"name\":\"dabtqwp\",\"type\":\"yawbzasqbu\"}],\"nextLink\":\"jg\"}") - .toObject(PrefixListResourceListResult.class); - Assertions.assertEquals("bzpcpiljhahzvec", model.value().get(0).description()); - Assertions.assertEquals("dbn", model.value().get(0).prefixList().get(0)); - Assertions.assertEquals("bwefqsfapaqtfer", model.value().get(0).etag()); - Assertions.assertEquals("wexjkmfxapjwogq", model.value().get(0).auditComment()); - Assertions.assertEquals("jg", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrefixListResourceListResult model - = new PrefixListResourceListResult().withValue(Arrays.asList(new PrefixListResourceInner() - .withDescription("bzpcpiljhahzvec").withPrefixList(Arrays.asList("dbn", "ieholewjwi")) - .withEtag("bwefqsfapaqtfer").withAuditComment("wexjkmfxapjwogq"))).withNextLink("jg"); - model = BinaryData.fromObject(model).toObject(PrefixListResourceListResult.class); - Assertions.assertEquals("bzpcpiljhahzvec", model.value().get(0).description()); - Assertions.assertEquals("dbn", model.value().get(0).prefixList().get(0)); - Assertions.assertEquals("bwefqsfapaqtfer", model.value().get(0).etag()); - Assertions.assertEquals("wexjkmfxapjwogq", model.value().get(0).auditComment()); - Assertions.assertEquals("jg", model.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixObjectTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixObjectTests.java deleted file mode 100644 index 7c38da553a4e2..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PrefixObjectTests.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.PrefixObject; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrefixObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrefixObject model = BinaryData.fromString( - "{\"description\":\"bahwfl\",\"prefixList\":[\"zdtmhrkwofy\",\"voqacpiexpbt\",\"iwbwoenwashrtdtk\"],\"etag\":\"qxwbpokulpiu\",\"auditComment\":\"aasipqi\",\"provisioningState\":\"Deleting\"}") - .toObject(PrefixObject.class); - Assertions.assertEquals("bahwfl", model.description()); - Assertions.assertEquals("zdtmhrkwofy", model.prefixList().get(0)); - Assertions.assertEquals("qxwbpokulpiu", model.etag()); - Assertions.assertEquals("aasipqi", model.auditComment()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrefixObject model = new PrefixObject().withDescription("bahwfl") - .withPrefixList(Arrays.asList("zdtmhrkwofy", "voqacpiexpbt", "iwbwoenwashrtdtk")).withEtag("qxwbpokulpiu") - .withAuditComment("aasipqi"); - model = BinaryData.fromObject(model).toObject(PrefixObject.class); - Assertions.assertEquals("bahwfl", model.description()); - Assertions.assertEquals("zdtmhrkwofy", model.prefixList().get(0)); - Assertions.assertEquals("qxwbpokulpiu", model.etag()); - Assertions.assertEquals("aasipqi", model.auditComment()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RuleCounterInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RuleCounterInnerTests.java deleted file mode 100644 index 2052572c78c4f..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RuleCounterInnerTests.java +++ /dev/null @@ -1,75 +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.RuleCounterInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenData; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenInfo; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RuleCounterInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuleCounterInner model = BinaryData.fromString( - "{\"priority\":\"hqlkthumaqo\",\"ruleStackName\":\"gycdu\",\"ruleListName\":\"r\",\"firewallName\":\"ccymvaolpsslql\",\"ruleName\":\"mmdnbbglzps\",\"hitCount\":1295617641,\"appSeen\":{\"count\":1146893782,\"appSeenList\":[{\"title\":\"wyhzdx\",\"category\":\"sadbz\",\"subCategory\":\"nvdfznuda\",\"risk\":\"dvxzbncblylpst\",\"tag\":\"bhhxsrzdzuc\",\"technology\":\"rsc\",\"standardPorts\":\"ntnev\"},{\"title\":\"iwjmygtdssls\",\"category\":\"tmweriofzpyq\",\"subCategory\":\"emwabnet\",\"risk\":\"hhszh\",\"tag\":\"d\",\"technology\":\"lvwiwubmwmbesl\",\"standardPorts\":\"nkww\"},{\"title\":\"pp\",\"category\":\"flcxoga\",\"subCategory\":\"konzmnsik\",\"risk\":\"mkqzeqqkdltfzxmh\",\"tag\":\"v\",\"technology\":\"gureodkwobdag\",\"standardPorts\":\"tibqdxbxwakb\"}]},\"timestamp\":\"2021-01-22T07:28:26Z\",\"requestTimestamp\":\"2021-06-17T07:32:41Z\",\"lastUpdatedTimestamp\":\"2021-06-30T02:36:31Z\"}") - .toObject(RuleCounterInner.class); - Assertions.assertEquals("hqlkthumaqo", model.priority()); - Assertions.assertEquals("gycdu", model.ruleStackName()); - Assertions.assertEquals("r", model.ruleListName()); - Assertions.assertEquals("ccymvaolpsslql", model.firewallName()); - Assertions.assertEquals("mmdnbbglzps", model.ruleName()); - Assertions.assertEquals(1295617641, model.hitCount()); - Assertions.assertEquals(1146893782, model.appSeen().count()); - Assertions.assertEquals("wyhzdx", model.appSeen().appSeenList().get(0).title()); - Assertions.assertEquals("sadbz", model.appSeen().appSeenList().get(0).category()); - Assertions.assertEquals("nvdfznuda", model.appSeen().appSeenList().get(0).subCategory()); - Assertions.assertEquals("dvxzbncblylpst", model.appSeen().appSeenList().get(0).risk()); - Assertions.assertEquals("bhhxsrzdzuc", model.appSeen().appSeenList().get(0).tag()); - Assertions.assertEquals("rsc", model.appSeen().appSeenList().get(0).technology()); - Assertions.assertEquals("ntnev", model.appSeen().appSeenList().get(0).standardPorts()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T07:28:26Z"), model.timestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T07:32:41Z"), model.requestTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T02:36:31Z"), model.lastUpdatedTimestamp()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuleCounterInner model = new RuleCounterInner().withPriority("hqlkthumaqo").withRuleStackName("gycdu") - .withRuleListName("r").withFirewallName("ccymvaolpsslql").withRuleName("mmdnbbglzps") - .withHitCount(1295617641) - .withAppSeen(new AppSeenData().withCount(1146893782).withAppSeenList(Arrays.asList( - new AppSeenInfo().withTitle("wyhzdx").withCategory("sadbz").withSubCategory("nvdfznuda") - .withRisk("dvxzbncblylpst").withTag("bhhxsrzdzuc").withTechnology("rsc").withStandardPorts("ntnev"), - new AppSeenInfo().withTitle("iwjmygtdssls").withCategory("tmweriofzpyq").withSubCategory("emwabnet") - .withRisk("hhszh").withTag("d").withTechnology("lvwiwubmwmbesl").withStandardPorts("nkww"), - new AppSeenInfo().withTitle("pp").withCategory("flcxoga").withSubCategory("konzmnsik") - .withRisk("mkqzeqqkdltfzxmh").withTag("v").withTechnology("gureodkwobdag") - .withStandardPorts("tibqdxbxwakb")))) - .withTimestamp(OffsetDateTime.parse("2021-01-22T07:28:26Z")) - .withRequestTimestamp(OffsetDateTime.parse("2021-06-17T07:32:41Z")) - .withLastUpdatedTimestamp(OffsetDateTime.parse("2021-06-30T02:36:31Z")); - model = BinaryData.fromObject(model).toObject(RuleCounterInner.class); - Assertions.assertEquals("hqlkthumaqo", model.priority()); - Assertions.assertEquals("gycdu", model.ruleStackName()); - Assertions.assertEquals("r", model.ruleListName()); - Assertions.assertEquals("ccymvaolpsslql", model.firewallName()); - Assertions.assertEquals("mmdnbbglzps", model.ruleName()); - Assertions.assertEquals(1295617641, model.hitCount()); - Assertions.assertEquals(1146893782, model.appSeen().count()); - Assertions.assertEquals("wyhzdx", model.appSeen().appSeenList().get(0).title()); - Assertions.assertEquals("sadbz", model.appSeen().appSeenList().get(0).category()); - Assertions.assertEquals("nvdfznuda", model.appSeen().appSeenList().get(0).subCategory()); - Assertions.assertEquals("dvxzbncblylpst", model.appSeen().appSeenList().get(0).risk()); - Assertions.assertEquals("bhhxsrzdzuc", model.appSeen().appSeenList().get(0).tag()); - Assertions.assertEquals("rsc", model.appSeen().appSeenList().get(0).technology()); - Assertions.assertEquals("ntnev", model.appSeen().appSeenList().get(0).standardPorts()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T07:28:26Z"), model.timestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T07:32:41Z"), model.requestTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T02:36:31Z"), model.lastUpdatedTimestamp()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RuleCounterResetInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RuleCounterResetInnerTests.java deleted file mode 100644 index 8a2c3d303b0f2..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RuleCounterResetInnerTests.java +++ /dev/null @@ -1,33 +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.RuleCounterResetInner; -import org.junit.jupiter.api.Assertions; - -public final class RuleCounterResetInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuleCounterResetInner model = BinaryData.fromString( - "{\"priority\":\"c\",\"ruleStackName\":\"fwdsj\",\"ruleListName\":\"aljutiiswac\",\"firewallName\":\"gdkz\",\"ruleName\":\"wkfvhqcrailvp\"}") - .toObject(RuleCounterResetInner.class); - Assertions.assertEquals("fwdsj", model.ruleStackName()); - Assertions.assertEquals("aljutiiswac", model.ruleListName()); - Assertions.assertEquals("gdkz", model.firewallName()); - Assertions.assertEquals("wkfvhqcrailvp", model.ruleName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuleCounterResetInner model = new RuleCounterResetInner().withRuleStackName("fwdsj") - .withRuleListName("aljutiiswac").withFirewallName("gdkz").withRuleName("wkfvhqcrailvp"); - model = BinaryData.fromObject(model).toObject(RuleCounterResetInner.class); - Assertions.assertEquals("fwdsj", model.ruleStackName()); - Assertions.assertEquals("aljutiiswac", model.ruleListName()); - Assertions.assertEquals("gdkz", model.firewallName()); - Assertions.assertEquals("wkfvhqcrailvp", model.ruleName()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RulestackDetailsTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RulestackDetailsTests.java deleted file mode 100644 index e80d3b51c5de5..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RulestackDetailsTests.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.RulestackDetails; -import org.junit.jupiter.api.Assertions; - -public final class RulestackDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RulestackDetails model - = BinaryData.fromString("{\"resourceId\":\"ugzxnf\",\"rulestackId\":\"zpxdt\",\"location\":\"dm\"}") - .toObject(RulestackDetails.class); - Assertions.assertEquals("ugzxnf", model.resourceId()); - Assertions.assertEquals("zpxdt", model.rulestackId()); - Assertions.assertEquals("dm", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RulestackDetails model - = new RulestackDetails().withResourceId("ugzxnf").withRulestackId("zpxdt").withLocation("dm"); - model = BinaryData.fromObject(model).toObject(RulestackDetails.class); - Assertions.assertEquals("ugzxnf", model.resourceId()); - Assertions.assertEquals("zpxdt", model.rulestackId()); - Assertions.assertEquals("dm", model.location()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RulestackPropertiesTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RulestackPropertiesTests.java deleted file mode 100644 index a2506d24b5e74..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/RulestackPropertiesTests.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.util.BinaryData; -import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RulestackProperties; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RulestackPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RulestackProperties model = BinaryData.fromString( - "{\"panEtag\":\"jq\",\"panLocation\":\"hmuouqfprwzwbn\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"wu\"],\"description\":\"gazxuf\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"kyfi\",\"provisioningState\":\"Canceled\",\"securityServices\":{\"vulnerabilityProfile\":\"fvzwdzuhty\",\"antiSpywareProfile\":\"isdkfthwxmnteiw\",\"antiVirusProfile\":\"pvkmijcmmxdcuf\",\"urlFilteringProfile\":\"srp\",\"fileBlockingProfile\":\"zidnsezcxtbzsgfy\",\"dnsSubscription\":\"sne\",\"outboundUnTrustCertificate\":\"dwzjeiach\",\"outboundTrustCertificate\":\"osfln\"}}") - .toObject(RulestackProperties.class); - Assertions.assertEquals("jq", model.panEtag()); - Assertions.assertEquals("hmuouqfprwzwbn", model.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); - Assertions.assertEquals("wu", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("gazxuf", model.description()); - Assertions.assertEquals(DefaultMode.NONE, model.defaultMode()); - Assertions.assertEquals("kyfi", model.minAppIdVersion()); - Assertions.assertEquals("fvzwdzuhty", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("isdkfthwxmnteiw", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("pvkmijcmmxdcuf", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("srp", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("zidnsezcxtbzsgfy", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("sne", model.securityServices().dnsSubscription()); - Assertions.assertEquals("dwzjeiach", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("osfln", model.securityServices().outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RulestackProperties model = new RulestackProperties().withPanEtag("jq").withPanLocation("hmuouqfprwzwbn") - .withScope(ScopeType.GLOBAL).withAssociatedSubscriptions(Arrays.asList("wu")).withDescription("gazxuf") - .withDefaultMode(DefaultMode.NONE).withMinAppIdVersion("kyfi") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("fvzwdzuhty") - .withAntiSpywareProfile("isdkfthwxmnteiw").withAntiVirusProfile("pvkmijcmmxdcuf") - .withUrlFilteringProfile("srp").withFileBlockingProfile("zidnsezcxtbzsgfy").withDnsSubscription("sne") - .withOutboundUnTrustCertificate("dwzjeiach").withOutboundTrustCertificate("osfln")); - model = BinaryData.fromObject(model).toObject(RulestackProperties.class); - Assertions.assertEquals("jq", model.panEtag()); - Assertions.assertEquals("hmuouqfprwzwbn", model.panLocation()); - Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); - Assertions.assertEquals("wu", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("gazxuf", model.description()); - Assertions.assertEquals(DefaultMode.NONE, model.defaultMode()); - Assertions.assertEquals("kyfi", model.minAppIdVersion()); - Assertions.assertEquals("fvzwdzuhty", model.securityServices().vulnerabilityProfile()); - Assertions.assertEquals("isdkfthwxmnteiw", model.securityServices().antiSpywareProfile()); - Assertions.assertEquals("pvkmijcmmxdcuf", model.securityServices().antiVirusProfile()); - Assertions.assertEquals("srp", model.securityServices().urlFilteringProfile()); - Assertions.assertEquals("zidnsezcxtbzsgfy", model.securityServices().fileBlockingProfile()); - Assertions.assertEquals("sne", model.securityServices().dnsSubscription()); - Assertions.assertEquals("dwzjeiach", model.securityServices().outboundUnTrustCertificate()); - Assertions.assertEquals("osfln", model.securityServices().outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesResponseInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesResponseInnerTests.java deleted file mode 100644 index 77332fdea3746..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesResponseInnerTests.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.SecurityServicesResponseInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.NameDescriptionObject; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SecurityServicesResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecurityServicesResponseInner model = BinaryData.fromString( - "{\"value\":{\"type\":\"civfsnkymuctq\",\"entry\":[{\"name\":\"fbebrjcxer\",\"description\":\"wutttxfvjrbi\"}]},\"nextLink\":\"hxepcyvahfnlj\"}") - .toObject(SecurityServicesResponseInner.class); - Assertions.assertEquals("civfsnkymuctq", model.value().type()); - Assertions.assertEquals("fbebrjcxer", model.value().entry().get(0).name()); - Assertions.assertEquals("wutttxfvjrbi", model.value().entry().get(0).description()); - Assertions.assertEquals("hxepcyvahfnlj", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecurityServicesResponseInner model = new SecurityServicesResponseInner() - .withValue(new SecurityServicesTypeList().withType("civfsnkymuctq").withEntry( - Arrays.asList(new NameDescriptionObject().withName("fbebrjcxer").withDescription("wutttxfvjrbi")))) - .withNextLink("hxepcyvahfnlj"); - model = BinaryData.fromObject(model).toObject(SecurityServicesResponseInner.class); - Assertions.assertEquals("civfsnkymuctq", model.value().type()); - Assertions.assertEquals("fbebrjcxer", model.value().entry().get(0).name()); - Assertions.assertEquals("wutttxfvjrbi", model.value().entry().get(0).description()); - Assertions.assertEquals("hxepcyvahfnlj", model.nextLink()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesTests.java deleted file mode 100644 index 28bbcb1d652ea..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesTests.java +++ /dev/null @@ -1,43 +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.SecurityServices; -import org.junit.jupiter.api.Assertions; - -public final class SecurityServicesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecurityServices model = BinaryData.fromString( - "{\"vulnerabilityProfile\":\"sfqpteehz\",\"antiSpywareProfile\":\"ypyqrimzinp\",\"antiVirusProfile\":\"wjdk\",\"urlFilteringProfile\":\"soodqxhcrmnoh\",\"fileBlockingProfile\":\"ckwhds\",\"dnsSubscription\":\"fiyipjxsqwpgrj\",\"outboundUnTrustCertificate\":\"norcjxvsnbyxqab\",\"outboundTrustCertificate\":\"ocpcy\"}") - .toObject(SecurityServices.class); - Assertions.assertEquals("sfqpteehz", model.vulnerabilityProfile()); - Assertions.assertEquals("ypyqrimzinp", model.antiSpywareProfile()); - Assertions.assertEquals("wjdk", model.antiVirusProfile()); - Assertions.assertEquals("soodqxhcrmnoh", model.urlFilteringProfile()); - Assertions.assertEquals("ckwhds", model.fileBlockingProfile()); - Assertions.assertEquals("fiyipjxsqwpgrj", model.dnsSubscription()); - Assertions.assertEquals("norcjxvsnbyxqab", model.outboundUnTrustCertificate()); - Assertions.assertEquals("ocpcy", model.outboundTrustCertificate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecurityServices model = new SecurityServices().withVulnerabilityProfile("sfqpteehz") - .withAntiSpywareProfile("ypyqrimzinp").withAntiVirusProfile("wjdk").withUrlFilteringProfile("soodqxhcrmnoh") - .withFileBlockingProfile("ckwhds").withDnsSubscription("fiyipjxsqwpgrj") - .withOutboundUnTrustCertificate("norcjxvsnbyxqab").withOutboundTrustCertificate("ocpcy"); - model = BinaryData.fromObject(model).toObject(SecurityServices.class); - Assertions.assertEquals("sfqpteehz", model.vulnerabilityProfile()); - Assertions.assertEquals("ypyqrimzinp", model.antiSpywareProfile()); - Assertions.assertEquals("wjdk", model.antiVirusProfile()); - Assertions.assertEquals("soodqxhcrmnoh", model.urlFilteringProfile()); - Assertions.assertEquals("ckwhds", model.fileBlockingProfile()); - Assertions.assertEquals("fiyipjxsqwpgrj", model.dnsSubscription()); - Assertions.assertEquals("norcjxvsnbyxqab", model.outboundUnTrustCertificate()); - Assertions.assertEquals("ocpcy", model.outboundTrustCertificate()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesTypeListTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesTypeListTests.java deleted file mode 100644 index 4322d108a8290..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SecurityServicesTypeListTests.java +++ /dev/null @@ -1,36 +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.NameDescriptionObject; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SecurityServicesTypeListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecurityServicesTypeList model = BinaryData.fromString( - "{\"type\":\"qxj\",\"entry\":[{\"name\":\"ujqgidok\",\"description\":\"ljyoxgvcltb\"},{\"name\":\"sncghkjeszz\",\"description\":\"ijhtxf\"},{\"name\":\"gx\",\"description\":\"smx\"},{\"name\":\"eh\",\"description\":\"vecxgodebfqkk\"}]}") - .toObject(SecurityServicesTypeList.class); - Assertions.assertEquals("qxj", model.type()); - Assertions.assertEquals("ujqgidok", model.entry().get(0).name()); - Assertions.assertEquals("ljyoxgvcltb", model.entry().get(0).description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecurityServicesTypeList model = new SecurityServicesTypeList().withType("qxj") - .withEntry(Arrays.asList(new NameDescriptionObject().withName("ujqgidok").withDescription("ljyoxgvcltb"), - new NameDescriptionObject().withName("sncghkjeszz").withDescription("ijhtxf"), - new NameDescriptionObject().withName("gx").withDescription("smx"), - new NameDescriptionObject().withName("eh").withDescription("vecxgodebfqkk"))); - model = BinaryData.fromObject(model).toObject(SecurityServicesTypeList.class); - Assertions.assertEquals("qxj", model.type()); - Assertions.assertEquals("ujqgidok", model.entry().get(0).name()); - Assertions.assertEquals("ljyoxgvcltb", model.entry().get(0).description()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SourceAddrTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SourceAddrTests.java deleted file mode 100644 index 30a1bac3fffda..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SourceAddrTests.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.SourceAddr; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SourceAddrTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SourceAddr model = BinaryData.fromString( - "{\"cidrs\":[\"jhxxjyn\"],\"countries\":[\"ivkrtsw\",\"xqzvszjfa\"],\"feeds\":[\"fdxxivetvtcqaqtd\"],\"prefixLists\":[\"cbxvwvxyslqbh\",\"fxoblytkb\",\"mpew\"]}") - .toObject(SourceAddr.class); - Assertions.assertEquals("jhxxjyn", model.cidrs().get(0)); - Assertions.assertEquals("ivkrtsw", model.countries().get(0)); - Assertions.assertEquals("fdxxivetvtcqaqtd", model.feeds().get(0)); - Assertions.assertEquals("cbxvwvxyslqbh", model.prefixLists().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SourceAddr model = new SourceAddr().withCidrs(Arrays.asList("jhxxjyn")) - .withCountries(Arrays.asList("ivkrtsw", "xqzvszjfa")).withFeeds(Arrays.asList("fdxxivetvtcqaqtd")) - .withPrefixLists(Arrays.asList("cbxvwvxyslqbh", "fxoblytkb", "mpew")); - model = BinaryData.fromObject(model).toObject(SourceAddr.class); - Assertions.assertEquals("jhxxjyn", model.cidrs().get(0)); - Assertions.assertEquals("ivkrtsw", model.countries().get(0)); - Assertions.assertEquals("fdxxivetvtcqaqtd", model.feeds().get(0)); - Assertions.assertEquals("cbxvwvxyslqbh", model.prefixLists().get(0)); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StorageAccountTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StorageAccountTests.java deleted file mode 100644 index 12b331f80e226..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StorageAccountTests.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.StorageAccount; -import org.junit.jupiter.api.Assertions; - -public final class StorageAccountTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageAccount model = BinaryData - .fromString("{\"id\":\"dslqxihhrmooizqs\",\"subscriptionId\":\"pxiutc\",\"accountName\":\"pzhyr\"}") - .toObject(StorageAccount.class); - Assertions.assertEquals("dslqxihhrmooizqs", model.id()); - Assertions.assertEquals("pxiutc", model.subscriptionId()); - Assertions.assertEquals("pzhyr", model.accountName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageAccount model - = new StorageAccount().withId("dslqxihhrmooizqs").withSubscriptionId("pxiutc").withAccountName("pzhyr"); - model = BinaryData.fromObject(model).toObject(StorageAccount.class); - Assertions.assertEquals("dslqxihhrmooizqs", model.id()); - Assertions.assertEquals("pxiutc", model.subscriptionId()); - Assertions.assertEquals("pzhyr", model.accountName()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SupportInfoInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SupportInfoInnerTests.java deleted file mode 100644 index 1955f15c3252b..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SupportInfoInnerTests.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.fluent.models.SupportInfoInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; -import org.junit.jupiter.api.Assertions; - -public final class SupportInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SupportInfoInner model = BinaryData.fromString( - "{\"productSku\":\"h\",\"productSerial\":\"uj\",\"accountRegistered\":\"TRUE\",\"accountId\":\"kozzwculkb\",\"userDomainSupported\":\"FALSE\",\"userRegistered\":\"FALSE\",\"freeTrial\":\"FALSE\",\"freeTrialDaysLeft\":1824615307,\"freeTrialCreditLeft\":1819890486,\"helpURL\":\"wtjjguktalhsnv\",\"supportURL\":\"dmxzr\",\"registerURL\":\"aimlnwiaaom\"}") - .toObject(SupportInfoInner.class); - Assertions.assertEquals("h", model.productSku()); - Assertions.assertEquals("uj", model.productSerial()); - Assertions.assertEquals(BooleanEnum.TRUE, model.accountRegistered()); - Assertions.assertEquals("kozzwculkb", model.accountId()); - Assertions.assertEquals(BooleanEnum.FALSE, model.userDomainSupported()); - Assertions.assertEquals(BooleanEnum.FALSE, model.userRegistered()); - Assertions.assertEquals(BooleanEnum.FALSE, model.freeTrial()); - Assertions.assertEquals(1824615307, model.freeTrialDaysLeft()); - Assertions.assertEquals(1819890486, model.freeTrialCreditLeft()); - Assertions.assertEquals("wtjjguktalhsnv", model.helpUrl()); - Assertions.assertEquals("dmxzr", model.supportUrl()); - Assertions.assertEquals("aimlnwiaaom", model.registerUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SupportInfoInner model = new SupportInfoInner().withProductSku("h").withProductSerial("uj") - .withAccountRegistered(BooleanEnum.TRUE).withAccountId("kozzwculkb") - .withUserDomainSupported(BooleanEnum.FALSE).withUserRegistered(BooleanEnum.FALSE) - .withFreeTrial(BooleanEnum.FALSE).withFreeTrialDaysLeft(1824615307).withFreeTrialCreditLeft(1819890486) - .withHelpUrl("wtjjguktalhsnv").withSupportUrl("dmxzr").withRegisterUrl("aimlnwiaaom"); - model = BinaryData.fromObject(model).toObject(SupportInfoInner.class); - Assertions.assertEquals("h", model.productSku()); - Assertions.assertEquals("uj", model.productSerial()); - Assertions.assertEquals(BooleanEnum.TRUE, model.accountRegistered()); - Assertions.assertEquals("kozzwculkb", model.accountId()); - Assertions.assertEquals(BooleanEnum.FALSE, model.userDomainSupported()); - Assertions.assertEquals(BooleanEnum.FALSE, model.userRegistered()); - Assertions.assertEquals(BooleanEnum.FALSE, model.freeTrial()); - Assertions.assertEquals(1824615307, model.freeTrialDaysLeft()); - Assertions.assertEquals(1819890486, model.freeTrialCreditLeft()); - Assertions.assertEquals("wtjjguktalhsnv", model.helpUrl()); - Assertions.assertEquals("dmxzr", model.supportUrl()); - Assertions.assertEquals("aimlnwiaaom", model.registerUrl()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/VnetConfigurationTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/VnetConfigurationTests.java deleted file mode 100644 index 17eede8c72c40..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/VnetConfigurationTests.java +++ /dev/null @@ -1,46 +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.IpAddress; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddressSpace; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.VnetConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class VnetConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VnetConfiguration model = BinaryData.fromString( - "{\"vnet\":{\"resourceId\":\"s\",\"addressSpace\":\"byrqufeg\"},\"trustSubnet\":{\"resourceId\":\"vwz\",\"addressSpace\":\"nhlmctlpdng\"},\"unTrustSubnet\":{\"resourceId\":\"vgbmhr\",\"addressSpace\":\"kw\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"jejveg\",\"address\":\"bpnaixexccbdre\"}}") - .toObject(VnetConfiguration.class); - Assertions.assertEquals("s", model.vnet().resourceId()); - Assertions.assertEquals("byrqufeg", model.vnet().addressSpace()); - Assertions.assertEquals("vwz", model.trustSubnet().resourceId()); - Assertions.assertEquals("nhlmctlpdng", model.trustSubnet().addressSpace()); - Assertions.assertEquals("vgbmhr", model.unTrustSubnet().resourceId()); - Assertions.assertEquals("kw", model.unTrustSubnet().addressSpace()); - Assertions.assertEquals("jejveg", model.ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("bpnaixexccbdre", model.ipOfTrustSubnetForUdr().address()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VnetConfiguration model - = new VnetConfiguration().withVnet(new IpAddressSpace().withResourceId("s").withAddressSpace("byrqufeg")) - .withTrustSubnet(new IpAddressSpace().withResourceId("vwz").withAddressSpace("nhlmctlpdng")) - .withUnTrustSubnet(new IpAddressSpace().withResourceId("vgbmhr").withAddressSpace("kw")) - .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("jejveg").withAddress("bpnaixexccbdre")); - model = BinaryData.fromObject(model).toObject(VnetConfiguration.class); - Assertions.assertEquals("s", model.vnet().resourceId()); - Assertions.assertEquals("byrqufeg", model.vnet().addressSpace()); - Assertions.assertEquals("vwz", model.trustSubnet().resourceId()); - Assertions.assertEquals("nhlmctlpdng", model.trustSubnet().addressSpace()); - Assertions.assertEquals("vgbmhr", model.unTrustSubnet().resourceId()); - Assertions.assertEquals("kw", model.unTrustSubnet().addressSpace()); - Assertions.assertEquals("jejveg", model.ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("bpnaixexccbdre", model.ipOfTrustSubnetForUdr().address()); - } -} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/VwanConfigurationTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/VwanConfigurationTests.java deleted file mode 100644 index 9ac6e6a9abe7e..0000000000000 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/VwanConfigurationTests.java +++ /dev/null @@ -1,48 +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.IpAddress; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddressSpace; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.VwanConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class VwanConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VwanConfiguration model = BinaryData.fromString( - "{\"networkVirtualApplianceId\":\"ppyostronzmyhgf\",\"vHub\":{\"resourceId\":\"nsxkmcwaekrrjr\",\"addressSpace\":\"fxtsgum\"},\"trustSubnet\":{\"resourceId\":\"lik\",\"addressSpace\":\"wslolbqp\"},\"unTrustSubnet\":{\"resourceId\":\"lmv\",\"addressSpace\":\"lfktgplcrpwjxe\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"igbrnjw\",\"address\":\"kpnb\"}}") - .toObject(VwanConfiguration.class); - Assertions.assertEquals("ppyostronzmyhgf", model.networkVirtualApplianceId()); - Assertions.assertEquals("nsxkmcwaekrrjr", model.vHub().resourceId()); - Assertions.assertEquals("fxtsgum", model.vHub().addressSpace()); - Assertions.assertEquals("lik", model.trustSubnet().resourceId()); - Assertions.assertEquals("wslolbqp", model.trustSubnet().addressSpace()); - Assertions.assertEquals("lmv", model.unTrustSubnet().resourceId()); - Assertions.assertEquals("lfktgplcrpwjxe", model.unTrustSubnet().addressSpace()); - Assertions.assertEquals("igbrnjw", model.ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("kpnb", model.ipOfTrustSubnetForUdr().address()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VwanConfiguration model = new VwanConfiguration().withNetworkVirtualApplianceId("ppyostronzmyhgf") - .withVHub(new IpAddressSpace().withResourceId("nsxkmcwaekrrjr").withAddressSpace("fxtsgum")) - .withTrustSubnet(new IpAddressSpace().withResourceId("lik").withAddressSpace("wslolbqp")) - .withUnTrustSubnet(new IpAddressSpace().withResourceId("lmv").withAddressSpace("lfktgplcrpwjxe")) - .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("igbrnjw").withAddress("kpnb")); - model = BinaryData.fromObject(model).toObject(VwanConfiguration.class); - Assertions.assertEquals("ppyostronzmyhgf", model.networkVirtualApplianceId()); - Assertions.assertEquals("nsxkmcwaekrrjr", model.vHub().resourceId()); - Assertions.assertEquals("fxtsgum", model.vHub().addressSpace()); - Assertions.assertEquals("lik", model.trustSubnet().resourceId()); - Assertions.assertEquals("wslolbqp", model.trustSubnet().addressSpace()); - Assertions.assertEquals("lmv", model.unTrustSubnet().resourceId()); - Assertions.assertEquals("lfktgplcrpwjxe", model.unTrustSubnet().addressSpace()); - Assertions.assertEquals("igbrnjw", model.ipOfTrustSubnetForUdr().resourceId()); - Assertions.assertEquals("kpnb", model.ipOfTrustSubnetForUdr().address()); - } -}