diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index c0644af5fc11..b7e42c5bcbd1 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -435,7 +435,7 @@ com.azure.resourcemanager:azure-resourcemanager-containerservicefleet;1.2.0;1.3. com.azure.resourcemanager:azure-resourcemanager-storagemover;1.4.0;1.5.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-graphservices;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-voiceservices;1.1.0;1.2.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-paloaltonetworks-ngfw;1.2.0;1.3.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-paloaltonetworks-ngfw;1.2.0;1.3.0 com.azure.resourcemanager:azure-resourcemanager-newrelicobservability;1.2.0;1.3.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-qumulo;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-selfhelp;1.0.0;1.1.0-beta.6 diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md index 8de1e2e135e4..29ecd6775d30 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/CHANGELOG.md @@ -1,14 +1,335 @@ # Release History -## 1.3.0-beta.1 (Unreleased) +## 1.3.0 (2025-10-30) -### Features Added +- Azure Resource Manager PaloAltoNetworks Ngfw client library for Java. This package contains Microsoft Azure SDK for PaloAltoNetworks Ngfw Management SDK. Package api-version 2025-10-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.CertificateObjectGlobalRulestackResourceListResult` was removed + +#### `models.FqdnListGlobalRulestackResourceListResult` was removed + +#### `models.GlobalRulestackResourceListResult` was removed + +#### `models.PrefixListResourceListResult` was removed + +#### `models.FirewallStatusResourceListResult` was removed + +#### `models.LocalRulestackResourceListResult` was removed + +#### `models.OperationListResult` was removed + +#### `models.FirewallResourceListResult` was removed + +#### `models.PreRulesResourceListResult` was removed + +#### `models.PrefixListGlobalRulestackResourceListResult` was removed + +#### `models.CertificateObjectLocalRulestackResourceListResult` was removed + +#### `models.FqdnListLocalRulestackResourceListResult` was removed + +#### `models.PostRulesResourceListResult` was removed + +#### `models.LocalRulesResourceListResult` was removed + +#### `models.LocalRulestacks` was modified + +* `models.CountriesResponse listCountries(java.lang.String,java.lang.String)` -> `com.azure.core.http.rest.PagedIterable listCountries(java.lang.String,java.lang.String)` +* `listAppIdsWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was removed +* `models.ListAppIdResponse listAppIds(java.lang.String,java.lang.String)` -> `com.azure.core.http.rest.PagedIterable listAppIds(java.lang.String,java.lang.String)` +* `models.PredefinedUrlCategoriesResponse listPredefinedUrlCategories(java.lang.String,java.lang.String)` -> `com.azure.core.http.rest.PagedIterable listPredefinedUrlCategories(java.lang.String,java.lang.String)` +* `listCountriesWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was removed +* `listPredefinedUrlCategoriesWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was removed + +#### `models.MarketplaceDetails` was modified + +* `validate()` was removed + +#### `models.PredefinedUrlCategory` was modified + +* `PredefinedUrlCategory()` was removed +* `java.lang.String name()` -> `java.lang.String name()` +* `withAction(java.lang.String)` was removed +* `java.lang.String action()` -> `java.lang.String action()` +* `withName(java.lang.String)` was removed +* `fromJson(com.azure.json.JsonReader)` was removed +* `toJson(com.azure.json.JsonWriter)` was removed +* `validate()` was removed + +#### `models.AdvSecurityObjectModel` was modified + +* `AdvSecurityObjectModel()` was changed to private access +* `withEntry(java.util.List)` was removed +* `validate()` was removed +* `withType(java.lang.String)` was removed + +#### `models.IpAddressSpace` was modified + +* `validate()` was removed + +#### `models.GlobalRulestackResourceUpdateProperties` was modified + +* `validate()` was removed + +#### `models.AzureResourceManagerManagedIdentityProperties` was modified + +* `validate()` was removed + +#### `models.MonitorLog` was modified + +* `validate()` was removed + +#### `models.DnsSettings` was modified + +* `validate()` was removed + +#### `models.FirewallResourceUpdate` was modified + +* `validate()` was removed + +#### `models.NameDescriptionObject` was modified + +* `NameDescriptionObject()` was changed to private access +* `withDescription(java.lang.String)` was removed +* `withName(java.lang.String)` was removed +* `validate()` was removed + +#### `models.AppSeenInfo` was modified + +* `AppSeenInfo()` was changed to private access +* `withCategory(java.lang.String)` was removed +* `withRisk(java.lang.String)` was removed +* `withStandardPorts(java.lang.String)` was removed +* `withTitle(java.lang.String)` was removed +* `withSubCategory(java.lang.String)` was removed +* `withTag(java.lang.String)` was removed +* `validate()` was removed +* `withTechnology(java.lang.String)` was removed + +#### `models.PlanData` was modified + +* `validate()` was removed + +#### `models.EndpointConfiguration` was modified + +* `validate()` was removed + +#### `models.Category` was modified + +* `validate()` was removed + +#### `PaloAltoNetworksNgfwManager` was modified + +* `fluent.PaloAltoNetworksCloudngfw serviceClient()` -> `fluent.PaloAltoNetworksNgfwManagementClient serviceClient()` + +#### `models.DestinationAddr` was modified + +* `validate()` was removed + +#### `models.IpAddress` was modified + +* `validate()` was removed + +#### `models.FrontendSetting` was modified + +* `validate()` was removed + +#### `models.StorageAccount` was modified + +* `validate()` was removed + +#### `models.LocalRulestackResourceUpdate` was modified + +* `validate()` was removed + +#### `models.SecurityServices` was modified + +* `validate()` was removed + +#### `models.SecurityServicesTypeList` was modified + +* `SecurityServicesTypeList()` was changed to private access +* `withEntry(java.util.List)` was removed +* `validate()` was removed +* `withType(java.lang.String)` was removed + +#### `models.RulestackDetails` was modified + +* `validate()` was removed + +#### `models.VwanConfiguration` was modified + +* `validate()` was removed + +#### `models.LocalRulestackResourceUpdateProperties` was modified + +* `validate()` was removed + +#### `models.EventHub` was modified + +* `validate()` was removed + +#### `models.OperationDisplay` was modified + +* `OperationDisplay()` was changed to private access +* `validate()` was removed + +#### `models.LogDestination` was modified + +* `validate()` was removed + +#### `models.GlobalRulestackResourceUpdate` was modified + +* `validate()` was removed + +#### `models.LocalRulestackResource` was modified + +* `listPredefinedUrlCategoriesWithResponse(java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was removed +* `listCountriesWithResponse(java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was removed +* `models.CountriesResponse listCountries()` -> `com.azure.core.http.rest.PagedIterable listCountries()` +* `listAppIdsWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was removed +* `models.ListAppIdResponse listAppIds()` -> `com.azure.core.http.rest.PagedIterable listAppIds()` +* `models.PredefinedUrlCategoriesResponse listPredefinedUrlCategories()` -> `com.azure.core.http.rest.PagedIterable listPredefinedUrlCategories()` + +#### `models.SourceAddr` was modified + +* `validate()` was removed + +#### `models.AzureResourceManagerUserAssignedIdentity` was modified + +* `validate()` was removed + +#### `models.TagInfo` was modified + +* `validate()` was removed + +#### `models.FirewallResourceUpdateProperties` was modified + +* `validate()` was removed + +#### `models.AppSeenData` was modified + +* `AppSeenData()` was changed to private access +* `validate()` was removed +* `withAppSeenList(java.util.List)` was removed +* `withCount(int)` was removed + +#### `models.PanoramaStatus` was modified + +* `PanoramaStatus()` was changed to private access +* `validate()` was removed + +#### `models.VnetConfiguration` was modified + +* `validate()` was removed + +#### `models.NetworkProfile` was modified + +* `validate()` was removed + +#### `models.Country` was modified + +* `Country()` was removed +* `fromJson(com.azure.json.JsonReader)` was removed +* `withCode(java.lang.String)` was removed +* `withDescription(java.lang.String)` was removed +* `java.lang.String code()` -> `java.lang.String code()` +* `java.lang.String description()` -> `java.lang.String description()` +* `toJson(com.azure.json.JsonWriter)` was removed +* `validate()` was removed + +#### `models.ApplicationInsights` was modified + +* `validate()` was removed + +#### `models.PanoramaConfig` was modified + +* `hostname()` was removed +* `validate()` was removed + +### Features Added + +* `models.CloudManagerTenantList` was added + +* `models.EnableStatus` was added + +* `models.SupportInfoModel` was added + +* `models.PaloAltoNetworksCloudngfwOperations` was added + +* `models.RegistrationStatus` was added + +* `models.ProductSerialStatusValues` was added + +* `models.StrataCloudManagerConfig` was added + +* `models.ProductSerialNumberStatus` was added + +* `models.ProductSerialNumberRequestStatus` was added + +* `models.StrataCloudManagerInfo` was added + +* `models.MetricsObjectFirewalls` was added + +* `models.MetricsObjectFirewallResource` was added + +#### `models.LocalRulestacks` was modified + +* `listAppIds(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was added +* `listPredefinedUrlCategories(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was added +* `listCountries(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was added + +#### `models.PredefinedUrlCategory` was modified + +* `innerModel()` was added + +#### `models.FirewallResource$Definition` was modified + +* `withIsStrataCloudManaged(models.BooleanEnum)` was added +* `withStrataCloudManagerConfig(models.StrataCloudManagerConfig)` was added + +#### `PaloAltoNetworksNgfwManager` was modified + +* `metricsObjectFirewalls()` was added +* `paloAltoNetworksCloudngfwOperations()` was added + +#### `models.FirewallStatusResource` was modified + +* `strataCloudManagerInfo()` was added +* `isStrataCloudManaged()` was added + +#### `models.FirewallResource` was modified + +* `isStrataCloudManaged()` was added +* `strataCloudManagerConfig()` was added + +#### `models.LocalRulestackResource` was modified + +* `listAppIds(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was added +* `listPredefinedUrlCategories(java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was added +* `listCountries(java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was added + +#### `models.FirewallResourceUpdateProperties` was modified + +* `withStrataCloudManagerConfig(models.StrataCloudManagerConfig)` was added +* `strataCloudManagerConfig()` was added +* `isStrataCloudManaged()` was added +* `withIsStrataCloudManaged(models.BooleanEnum)` was added + +#### `models.NetworkProfile` was modified + +* `privateSourceNatRulesDestination()` was added +* `withPrivateSourceNatRulesDestination(java.util.List)` was added + +#### `models.Country` was modified + +* `innerModel()` was added + +#### `models.PanoramaConfig` was modified -### Other Changes +* `hostName()` was added ## 1.2.0 (2025-01-06) diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md index 34c2656949d7..5de36ba69569 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/README.md @@ -1,8 +1,8 @@ -# Azure Resource Manager PaloAlto Networks Ngfw client library for Java +# Azure Resource Manager PaloAltoNetworks Ngfw client library for Java -Azure Resource Manager PaloAlto Networks Ngfw client library for Java. +Azure Resource Manager PaloAltoNetworks 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 PaloAltoNetworks Ngfw Management SDK. Package api-version 2025-10-08. 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.3.0-beta.1 + 1.3.0 ``` [//]: # ({x-version-update-end}) @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -109,5 +109,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ - - diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md index bf3952c51359..9d9ffb414008 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md @@ -93,10 +93,24 @@ - [Revert](#localrulestacks_revert) - [Update](#localrulestacks_update) +## MetricsObjectFirewall + +- [CreateOrUpdate](#metricsobjectfirewall_createorupdate) +- [Delete](#metricsobjectfirewall_delete) +- [Get](#metricsobjectfirewall_get) +- [ListByFirewalls](#metricsobjectfirewall_listbyfirewalls) + ## Operations - [List](#operations_list) +## PaloAltoNetworksCloudngfwOperations + +- [CreateProductSerialNumber](#paloaltonetworkscloudngfwoperations_createproductserialnumber) +- [ListCloudManagerTenants](#paloaltonetworkscloudngfwoperations_listcloudmanagertenants) +- [ListProductSerialNumberStatus](#paloaltonetworkscloudngfwoperations_listproductserialnumberstatus) +- [ListSupportInfo](#paloaltonetworkscloudngfwoperations_listsupportinfo) + ## PostRules - [CreateOrUpdate](#postrules_createorupdate) @@ -141,9 +155,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; */ 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: 2025-10-08/CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -159,9 +171,7 @@ public final class CertificateObjectGlobalRulestackCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -190,9 +200,7 @@ 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: 2025-10-08/CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen. @@ -205,9 +213,7 @@ public final class CertificateObjectGlobalRulestackDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen. @@ -229,9 +235,7 @@ 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: 2025-10-08/CertificateObjectGlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Get_MinimumSet_Gen. @@ -245,9 +249,7 @@ public final class CertificateObjectGlobalRulestackGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Get_MaximumSet_Gen. @@ -270,9 +272,7 @@ 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: 2025-10-08/CertificateObjectGlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_List_MaximumSet_Gen. @@ -285,9 +285,7 @@ public final class CertificateObjectGlobalRulestackListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_List_MinimumSet_Gen. @@ -311,9 +309,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; */ 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: 2025-10-08/CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -330,9 +326,7 @@ public final class CertificateObjectLocalRulestackCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -362,9 +356,7 @@ 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: 2025-10-08/CertificateObjectLocalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Delete_MaximumSet_Gen. @@ -378,9 +370,7 @@ public final class CertificateObjectLocalRulestackDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Delete_MinimumSet_Gen. @@ -403,9 +393,7 @@ 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: 2025-10-08/CertificateObjectLocalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Get_MaximumSet_Gen. @@ -419,9 +407,7 @@ public final class CertificateObjectLocalRulestackGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Get_MinimumSet_Gen. @@ -444,9 +430,7 @@ 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: 2025-10-08/CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen. @@ -460,9 +444,7 @@ public final class CertificateObjectLocalRulestackListByLocalRulestacksSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen. @@ -485,9 +467,7 @@ 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: 2025-10-08/FirewallStatus_Get_MinimumSet_Gen.json */ /** * Sample code: FirewallStatus_Get_MinimumSet_Gen. @@ -500,9 +480,7 @@ public final class FirewallStatusGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FirewallStatus_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FirewallStatus_Get_MaximumSet_Gen.json */ /** * Sample code: FirewallStatus_Get_MaximumSet_Gen. @@ -524,9 +502,7 @@ 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: 2025-10-08/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json */ /** * Sample code: FirewallStatus_ListByFirewalls_MaximumSet_Gen. @@ -539,9 +515,7 @@ public final class FirewallStatusListByFirewallsSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FirewallStatus_ListByFirewalls_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json */ /** * Sample code: FirewallStatus_ListByFirewalls_MinimumSet_Gen. @@ -591,9 +565,7 @@ import java.util.Map; */ 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: 2025-10-08/Firewalls_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Firewalls_CreateOrUpdate_MaximumSet_Gen. @@ -641,7 +613,8 @@ public final class FirewallsCreateOrUpdateSamples { .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( @@ -677,9 +650,7 @@ public final class FirewallsCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: Firewalls_CreateOrUpdate_MinimumSet_Gen. @@ -726,9 +697,7 @@ 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: 2025-10-08/Firewalls_Delete_MinimumSet_Gen.json */ /** * Sample code: Firewalls_Delete_MinimumSet_Gen. @@ -741,9 +710,7 @@ public final class FirewallsDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_Delete_MaximumSet_Gen.json */ /** * Sample code: Firewalls_Delete_MaximumSet_Gen. @@ -765,9 +732,7 @@ 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: 2025-10-08/Firewalls_Get_MaximumSet_Gen.json */ /** * Sample code: Firewalls_Get_MaximumSet_Gen. @@ -781,9 +746,7 @@ public final class FirewallsGetByResourceGroupSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_Get_MinimumSet_Gen.json */ /** * Sample code: Firewalls_Get_MinimumSet_Gen. @@ -806,9 +769,7 @@ 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: 2025-10-08/Firewalls_getGlobalRulestack_MaximumSet_Gen.json */ /** * Sample code: Firewalls_getGlobalRulestack_MaximumSet_Gen. @@ -822,9 +783,7 @@ public final class FirewallsGetGlobalRulestackSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_getGlobalRulestack_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_getGlobalRulestack_MinimumSet_Gen.json */ /** * Sample code: Firewalls_getGlobalRulestack_MinimumSet_Gen. @@ -847,9 +806,7 @@ 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: 2025-10-08/Firewalls_getLogProfile_MinimumSet_Gen.json */ /** * Sample code: Firewalls_getLogProfile_MinimumSet_Gen. @@ -862,9 +819,7 @@ public final class FirewallsGetLogProfileSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_getLogProfile_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_getLogProfile_MaximumSet_Gen.json */ /** * Sample code: Firewalls_getLogProfile_MaximumSet_Gen. @@ -886,9 +841,7 @@ 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: 2025-10-08/Firewalls_getSupportInfo_MinimumSet_Gen.json */ /** * Sample code: Firewalls_getSupportInfo_MinimumSet_Gen. @@ -902,9 +855,7 @@ public final class FirewallsGetSupportInfoSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_getSupportInfo_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_getSupportInfo_MaximumSet_Gen.json */ /** * Sample code: Firewalls_getSupportInfo_MaximumSet_Gen. @@ -927,9 +878,7 @@ 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: 2025-10-08/Firewalls_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: Firewalls_ListBySubscription_MinimumSet_Gen. @@ -942,9 +891,7 @@ public final class FirewallsListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: Firewalls_ListBySubscription_MaximumSet_Gen. @@ -966,9 +913,7 @@ 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: 2025-10-08/Firewalls_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: Firewalls_ListByResourceGroup_MaximumSet_Gen. @@ -981,9 +926,7 @@ public final class FirewallsListByResourceGroupSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_ListByResourceGroup_MinimumSet_Gen.json */ /** * Sample code: Firewalls_ListByResourceGroup_MinimumSet_Gen. @@ -1014,9 +957,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StorageAccount; */ 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: 2025-10-08/Firewalls_saveLogProfile_MaximumSet_Gen.json */ /** * Sample code: Firewalls_saveLogProfile_MaximumSet_Gen. @@ -1091,9 +1032,7 @@ public final class FirewallsSaveLogProfileSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_saveLogProfile_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_saveLogProfile_MinimumSet_Gen.json */ /** * Sample code: Firewalls_saveLogProfile_MinimumSet_Gen. @@ -1146,9 +1085,7 @@ import java.util.Map; */ 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: 2025-10-08/Firewalls_Update_MinimumSet_Gen.json */ /** * Sample code: Firewalls_Update_MinimumSet_Gen. @@ -1164,9 +1101,7 @@ public final class FirewallsUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_Update_MaximumSet_Gen.json */ /** * Sample code: Firewalls_Update_MaximumSet_Gen. @@ -1220,7 +1155,8 @@ public final class FirewallsUpdateSamples { .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") @@ -1275,9 +1211,7 @@ 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: 2025-10-08/FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -1296,9 +1230,7 @@ public final class FqdnListGlobalRulestackCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -1323,9 +1255,7 @@ 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: 2025-10-08/FqdnListGlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Delete_MaximumSet_Gen. @@ -1338,9 +1268,7 @@ public final class FqdnListGlobalRulestackDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Delete_MinimumSet_Gen. @@ -1362,9 +1290,7 @@ 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: 2025-10-08/FqdnListGlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Get_MaximumSet_Gen. @@ -1377,9 +1303,7 @@ public final class FqdnListGlobalRulestackGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Get_MinimumSet_Gen. @@ -1401,9 +1325,7 @@ 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: 2025-10-08/FqdnListGlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_List_MinimumSet_Gen. @@ -1416,9 +1338,7 @@ public final class FqdnListGlobalRulestackListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_List_MaximumSet_Gen. @@ -1442,9 +1362,7 @@ 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: 2025-10-08/FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -1464,9 +1382,7 @@ public final class FqdnListLocalRulestackCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -1492,9 +1408,7 @@ 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: 2025-10-08/FqdnListLocalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Delete_MinimumSet_Gen. @@ -1507,9 +1421,7 @@ public final class FqdnListLocalRulestackDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Delete_MaximumSet_Gen. @@ -1531,9 +1443,7 @@ 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: 2025-10-08/FqdnListLocalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Get_MinimumSet_Gen. @@ -1547,9 +1457,7 @@ public final class FqdnListLocalRulestackGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Get_MaximumSet_Gen. @@ -1572,9 +1480,7 @@ 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: 2025-10-08/FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen. @@ -1587,9 +1493,7 @@ public final class FqdnListLocalRulestackListByLocalRulestacksSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen. @@ -1611,9 +1515,7 @@ 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: 2025-10-08/GlobalRulestack_commit_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_commit_MaximumSet_Gen. @@ -1626,9 +1528,7 @@ public final class GlobalRulestackCommitSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_commit_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_commit_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_commit_MinimumSet_Gen. @@ -1661,9 +1561,7 @@ import java.util.Map; */ 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: 2025-10-08/GlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -1678,9 +1576,7 @@ public final class GlobalRulestackCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -1736,9 +1632,7 @@ 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: 2025-10-08/GlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_Delete_MaximumSet_Gen. @@ -1751,9 +1645,7 @@ public final class GlobalRulestackDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_Delete_MinimumSet_Gen. @@ -1775,9 +1667,7 @@ 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: 2025-10-08/GlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_Get_MinimumSet_Gen. @@ -1790,9 +1680,7 @@ public final class GlobalRulestackGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_Get_MaximumSet_Gen. @@ -1814,9 +1702,7 @@ 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: 2025-10-08/GlobalRulestack_getChangeLog_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_getChangeLog_MinimumSet_Gen. @@ -1829,9 +1715,7 @@ public final class GlobalRulestackGetChangeLogSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_getChangeLog_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_getChangeLog_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_getChangeLog_MaximumSet_Gen. @@ -1853,9 +1737,7 @@ 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: 2025-10-08/GlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_List_MinimumSet_Gen. @@ -1868,9 +1750,7 @@ public final class GlobalRulestackListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_List_MaximumSet_Gen. @@ -1894,9 +1774,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectT */ 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: 2025-10-08/GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen. @@ -1911,9 +1789,7 @@ public final class GlobalRulestackListAdvancedSecurityObjectsSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen. @@ -1937,9 +1813,7 @@ 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: 2025-10-08/GlobalRulestack_listAppIds_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAppIds_MaximumSet_Gen. @@ -1953,9 +1827,7 @@ public final class GlobalRulestackListAppIdsSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listAppIds_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listAppIds_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAppIds_MinimumSet_Gen. @@ -1978,9 +1850,7 @@ 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: 2025-10-08/GlobalRulestack_listCountries_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listCountries_MinimumSet_Gen. @@ -1993,9 +1863,7 @@ public final class GlobalRulestackListCountriesSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listCountries_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listCountries_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listCountries_MaximumSet_Gen. @@ -2017,9 +1885,7 @@ 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: 2025-10-08/GlobalRulestack_listFirewalls_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listFirewalls_MaximumSet_Gen. @@ -2032,9 +1898,7 @@ public final class GlobalRulestackListFirewallsSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listFirewalls_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listFirewalls_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listFirewalls_MinimumSet_Gen. @@ -2056,9 +1920,7 @@ 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: 2025-10-08/GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen. @@ -2072,9 +1934,7 @@ public final class GlobalRulestackListPredefinedUrlCategoriesSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen. @@ -2099,9 +1959,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTy */ 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: 2025-10-08/GlobalRulestack_listSecurityServices_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listSecurityServices_MinimumSet_Gen. @@ -2116,9 +1974,7 @@ public final class GlobalRulestackListSecurityServicesSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listSecurityServices_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listSecurityServices_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listSecurityServices_MaximumSet_Gen. @@ -2142,9 +1998,7 @@ 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: 2025-10-08/GlobalRulestack_revert_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_revert_MinimumSet_Gen. @@ -2157,9 +2011,7 @@ public final class GlobalRulestackRevertSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_revert_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_revert_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_revert_MaximumSet_Gen. @@ -2193,9 +2045,7 @@ import java.util.Map; */ 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: 2025-10-08/GlobalRulestack_Update_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_Update_MaximumSet_Gen. @@ -2230,9 +2080,7 @@ public final class GlobalRulestackUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_Update_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_Update_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_Update_MinimumSet_Gen. @@ -2277,9 +2125,7 @@ import java.util.Arrays; */ 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: 2025-10-08/LocalRules_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: LocalRules_CreateOrUpdate_MinimumSet_Gen. @@ -2296,9 +2142,7 @@ public final class LocalRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: LocalRules_CreateOrUpdate_MaximumSet_Gen. @@ -2349,9 +2193,7 @@ 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: 2025-10-08/LocalRules_Delete_MaximumSet_Gen.json */ /** * Sample code: LocalRules_Delete_MaximumSet_Gen. @@ -2364,9 +2206,7 @@ public final class LocalRulesDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_Delete_MinimumSet_Gen.json */ /** * Sample code: LocalRules_Delete_MinimumSet_Gen. @@ -2388,9 +2228,7 @@ 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: 2025-10-08/LocalRules_Get_MaximumSet_Gen.json */ /** * Sample code: LocalRules_Get_MaximumSet_Gen. @@ -2403,9 +2241,7 @@ public final class LocalRulesGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_Get_MinimumSet_Gen.json */ /** * Sample code: LocalRules_Get_MinimumSet_Gen. @@ -2427,9 +2263,7 @@ 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: 2025-10-08/LocalRules_getCounters_MaximumSet_Gen.json */ /** * Sample code: LocalRules_getCounters_MaximumSet_Gen. @@ -2443,9 +2277,7 @@ public final class LocalRulesGetCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_getCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_getCounters_MinimumSet_Gen.json */ /** * Sample code: LocalRules_getCounters_MinimumSet_Gen. @@ -2468,9 +2300,7 @@ 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: 2025-10-08/LocalRules_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: LocalRules_ListByLocalRulestacks_MinimumSet_Gen. @@ -2483,9 +2313,7 @@ public final class LocalRulesListByLocalRulestacksSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: LocalRules_ListByLocalRulestacks_MaximumSet_Gen. @@ -2507,9 +2335,7 @@ 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: 2025-10-08/LocalRules_refreshCounters_MinimumSet_Gen.json */ /** * Sample code: LocalRules_refreshCounters_MinimumSet_Gen. @@ -2523,9 +2349,7 @@ public final class LocalRulesRefreshCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_refreshCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_refreshCounters_MaximumSet_Gen.json */ /** * Sample code: LocalRules_refreshCounters_MaximumSet_Gen. @@ -2548,9 +2372,7 @@ 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: 2025-10-08/LocalRules_resetCounters_MaximumSet_Gen.json */ /** * Sample code: LocalRules_resetCounters_MaximumSet_Gen. @@ -2564,9 +2386,7 @@ public final class LocalRulesResetCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_resetCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_resetCounters_MinimumSet_Gen.json */ /** * Sample code: LocalRules_resetCounters_MinimumSet_Gen. @@ -2589,9 +2409,7 @@ 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: 2025-10-08/LocalRulestacks_commit_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_commit_MinimumSet_Gen. @@ -2604,9 +2422,7 @@ public final class LocalRulestacksCommitSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_commit_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_commit_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_commit_MaximumSet_Gen. @@ -2638,9 +2454,7 @@ import java.util.Map; */ 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: 2025-10-08/LocalRulestacks_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_CreateOrUpdate_MinimumSet_Gen. @@ -2653,9 +2467,7 @@ public final class LocalRulestacksCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_CreateOrUpdate_MaximumSet_Gen. @@ -2713,9 +2525,7 @@ 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: 2025-10-08/LocalRulestacks_Delete_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_Delete_MaximumSet_Gen. @@ -2728,9 +2538,7 @@ public final class LocalRulestacksDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Delete_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_Delete_MinimumSet_Gen. @@ -2752,9 +2560,7 @@ 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: 2025-10-08/LocalRulestacks_Get_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_Get_MaximumSet_Gen. @@ -2767,9 +2573,7 @@ public final class LocalRulestacksGetByResourceGroupSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Get_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_Get_MinimumSet_Gen. @@ -2791,9 +2595,7 @@ 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: 2025-10-08/LocalRulestacks_getChangeLog_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_getChangeLog_MinimumSet_Gen. @@ -2806,9 +2608,7 @@ public final class LocalRulestacksGetChangeLogSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_getChangeLog_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_getChangeLog_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_getChangeLog_MaximumSet_Gen. @@ -2830,9 +2630,7 @@ 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: 2025-10-08/LocalRulestacks_getSupportInfo_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_getSupportInfo_MinimumSet_Gen. @@ -2846,9 +2644,7 @@ public final class LocalRulestacksGetSupportInfoSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_getSupportInfo_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_getSupportInfo_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_getSupportInfo_MaximumSet_Gen. @@ -2871,9 +2667,7 @@ 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: 2025-10-08/LocalRulestacks_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListBySubscription_MaximumSet_Gen. @@ -2886,9 +2680,7 @@ public final class LocalRulestacksListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListBySubscription_MinimumSet_Gen. @@ -2912,9 +2704,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectT */ 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: 2025-10-08/LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen. @@ -2930,9 +2720,7 @@ public final class LocalRulestacksListAdvancedSecurityObjectsSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen. @@ -2956,9 +2744,7 @@ public final class LocalRulestacksListAdvancedSecurityObjectsSamples { */ public final class LocalRulestacksListAppIdsSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listAppIds_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listAppIds_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAppIds_MaximumSet_Gen. @@ -2968,14 +2754,11 @@ public final class LocalRulestacksListAppIdsSamples { 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); + .listAppIds("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 + * x-ms-original-file: 2025-10-08/LocalRulestacks_listAppIds_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAppIds_MinimumSet_Gen. @@ -2985,7 +2768,7 @@ public final class LocalRulestacksListAppIdsSamples { 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); + .listAppIds("rgopenapi", "lrs1", null, null, null, null, com.azure.core.util.Context.NONE); } } ``` @@ -2998,9 +2781,7 @@ public final class LocalRulestacksListAppIdsSamples { */ public final class LocalRulestacksListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListByResourceGroup_MaximumSet_Gen. @@ -3013,9 +2794,7 @@ public final class LocalRulestacksListByResourceGroupSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListByResourceGroup_MinimumSet_Gen. @@ -3037,9 +2816,7 @@ public final class LocalRulestacksListByResourceGroupSamples { */ public final class LocalRulestacksListCountriesSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listCountries_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listCountries_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listCountries_MaximumSet_Gen. @@ -3048,14 +2825,11 @@ public final class LocalRulestacksListCountriesSamples { */ public static void localRulestacksListCountriesMaximumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { - manager.localRulestacks() - .listCountriesWithResponse("rgopenapi", "lrs1", "a6a321", 20, com.azure.core.util.Context.NONE); + manager.localRulestacks().listCountries("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 + * x-ms-original-file: 2025-10-08/LocalRulestacks_listCountries_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listCountries_MinimumSet_Gen. @@ -3064,8 +2838,7 @@ public final class LocalRulestacksListCountriesSamples { */ public static void localRulestacksListCountriesMinimumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { - manager.localRulestacks() - .listCountriesWithResponse("rgopenapi", "lrs1", null, null, com.azure.core.util.Context.NONE); + manager.localRulestacks().listCountries("rgopenapi", "lrs1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3078,9 +2851,7 @@ public final class LocalRulestacksListCountriesSamples { */ public final class LocalRulestacksListFirewallsSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listFirewalls_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listFirewalls_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listFirewalls_MinimumSet_Gen. @@ -3093,9 +2864,7 @@ public final class LocalRulestacksListFirewallsSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listFirewalls_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listFirewalls_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listFirewalls_MaximumSet_Gen. @@ -3117,9 +2886,7 @@ public final class LocalRulestacksListFirewallsSamples { */ public final class LocalRulestacksListPredefinedUrlCategoriesSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen. @@ -3129,13 +2896,11 @@ public final class LocalRulestacksListPredefinedUrlCategoriesSamples { public static void localRulestacksListPredefinedUrlCategoriesMinimumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { manager.localRulestacks() - .listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", null, null, com.azure.core.util.Context.NONE); + .listPredefinedUrlCategories("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 + * x-ms-original-file: 2025-10-08/LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen. @@ -3145,8 +2910,7 @@ public final class LocalRulestacksListPredefinedUrlCategoriesSamples { public static void localRulestacksListPredefinedUrlCategoriesMaximumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { manager.localRulestacks() - .listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", "a6a321", 20, - com.azure.core.util.Context.NONE); + .listPredefinedUrlCategories("rgopenapi", "lrs1", "a6a321", 20, com.azure.core.util.Context.NONE); } } ``` @@ -3161,9 +2925,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTy */ public final class LocalRulestacksListSecurityServicesSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listSecurityServices_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listSecurityServices_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listSecurityServices_MinimumSet_Gen. @@ -3178,9 +2940,7 @@ public final class LocalRulestacksListSecurityServicesSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listSecurityServices_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listSecurityServices_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listSecurityServices_MaximumSet_Gen. @@ -3204,9 +2964,7 @@ public final class LocalRulestacksListSecurityServicesSamples { */ public final class LocalRulestacksRevertSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_revert_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_revert_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_revert_MaximumSet_Gen. @@ -3219,9 +2977,7 @@ public final class LocalRulestacksRevertSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_revert_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_revert_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_revert_MinimumSet_Gen. @@ -3255,9 +3011,7 @@ import java.util.Map; */ public final class LocalRulestacksUpdateSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Update_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_Update_MaximumSet_Gen. @@ -3295,9 +3049,7 @@ public final class LocalRulestacksUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Update_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Update_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_Update_MinimumSet_Gen. @@ -3326,6 +3078,161 @@ public final class LocalRulestacksUpdateSamples { } ``` +### MetricsObjectFirewall_CreateOrUpdate + +```java +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; + +/** + * Samples for MetricsObjectFirewall CreateOrUpdate. + */ +public final class MetricsObjectFirewallCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_CreateOrUpdate_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallCreateOrUpdateMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .createOrUpdate("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", + new MetricsObjectFirewallResourceInner().withApplicationInsightsResourceId("aaaaaaaaaaaaaaa") + .withApplicationInsightsConnectionString("aaa"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_CreateOrUpdate_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallCreateOrUpdateMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .createOrUpdate("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", + new MetricsObjectFirewallResourceInner().withApplicationInsightsResourceId("aaaaaaaaaaaaaaa") + .withApplicationInsightsConnectionString("aaa") + .withPanEtag("aaaaaaaaaa"), + com.azure.core.util.Context.NONE); + } +} +``` + +### MetricsObjectFirewall_Delete + +```java +/** + * Samples for MetricsObjectFirewall Delete. + */ +public final class MetricsObjectFirewallDeleteSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Delete_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallDeleteMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .delete("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Delete_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallDeleteMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .delete("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } +} +``` + +### MetricsObjectFirewall_Get + +```java +/** + * Samples for MetricsObjectFirewall Get. + */ +public final class MetricsObjectFirewallGetSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Get_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Get_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallGetMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .getWithResponse("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Get_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Get_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallGetMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .getWithResponse("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } +} +``` + +### MetricsObjectFirewall_ListByFirewalls + +```java +/** + * Samples for MetricsObjectFirewall ListByFirewalls. + */ +public final class MetricsObjectFirewallListByFirewallsSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_ListByFirewalls_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_ListByFirewalls_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallListByFirewallsMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls().listByFirewalls("rgopenapi", "IFTDk", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_ListByFirewalls_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_ListByFirewalls_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallListByFirewallsMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls().listByFirewalls("rgopenapi", "IFTDk", com.azure.core.util.Context.NONE); + } +} +``` + ### Operations_List ```java @@ -3334,9 +3241,7 @@ public final class LocalRulestacksUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_MinimumSet_Gen. @@ -3349,9 +3254,7 @@ public final class OperationsListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List_MaximumSet_Gen. @@ -3365,6 +3268,154 @@ public final class OperationsListSamples { } ``` +### PaloAltoNetworksCloudngfwOperations_CreateProductSerialNumber + +```java +/** + * Samples for PaloAltoNetworksCloudngfwOperations CreateProductSerialNumber. + */ +public final class PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberSamples { + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsCreateProductSerialNumberMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsCreateProductSerialNumberMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE); + } +} +``` + +### PaloAltoNetworksCloudngfwOperations_ListCloudManagerTenants + +```java +/** + * Samples for PaloAltoNetworksCloudngfwOperations ListCloudManagerTenants. + */ +public final class PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsSamples { + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListCloudManagerTenantsMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListCloudManagerTenantsMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE); + } +} +``` + +### PaloAltoNetworksCloudngfwOperations_ListProductSerialNumberStatus + +```java +/** + * Samples for PaloAltoNetworksCloudngfwOperations ListProductSerialNumberStatus. + */ +public final class PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusSamples { + /* + * x-ms-original-file: + * 2025-10-08/PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .listProductSerialNumberStatusWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * 2025-10-08/PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .listProductSerialNumberStatusWithResponse(com.azure.core.util.Context.NONE); + } +} +``` + +### PaloAltoNetworksCloudngfwOperations_ListSupportInfo + +```java +/** + * Samples for PaloAltoNetworksCloudngfwOperations ListSupportInfo. + */ +public final class PaloAltoNetworksCloudngfwOperationsListSupportInfoSamples { + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listSupportInfo_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listSupportInfo_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListSupportInfoMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations().listSupportInfoWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listSupportInfo_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listSupportInfo_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListSupportInfoMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations().listSupportInfoWithResponse(com.azure.core.util.Context.NONE); + } +} +``` + ### PostRules_CreateOrUpdate ```java @@ -3384,9 +3435,7 @@ import java.util.Arrays; */ 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: 2025-10-08/PostRules_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PostRules_CreateOrUpdate_MaximumSet_Gen. @@ -3427,9 +3476,7 @@ public final class PostRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PostRules_CreateOrUpdate_MinimumSet_Gen. @@ -3453,9 +3500,7 @@ 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: 2025-10-08/PostRules_Delete_MinimumSet_Gen.json */ /** * Sample code: PostRules_Delete_MinimumSet_Gen. @@ -3468,9 +3513,7 @@ public final class PostRulesDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_Delete_MaximumSet_Gen.json */ /** * Sample code: PostRules_Delete_MaximumSet_Gen. @@ -3492,9 +3535,7 @@ 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: 2025-10-08/PostRules_Get_MinimumSet_Gen.json */ /** * Sample code: PostRules_Get_MinimumSet_Gen. @@ -3507,9 +3548,7 @@ public final class PostRulesGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_Get_MaximumSet_Gen.json */ /** * Sample code: PostRules_Get_MaximumSet_Gen. @@ -3531,9 +3570,7 @@ 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: 2025-10-08/PostRules_getCounters_MinimumSet_Gen.json */ /** * Sample code: PostRules_getCounters_MinimumSet_Gen. @@ -3546,9 +3583,7 @@ public final class PostRulesGetCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_getCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_getCounters_MaximumSet_Gen.json */ /** * Sample code: PostRules_getCounters_MaximumSet_Gen. @@ -3570,9 +3605,7 @@ 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: 2025-10-08/PostRules_List_MinimumSet_Gen.json */ /** * Sample code: PostRules_List_MinimumSet_Gen. @@ -3585,9 +3618,7 @@ public final class PostRulesListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_List_MaximumSet_Gen.json */ /** * Sample code: PostRules_List_MaximumSet_Gen. @@ -3609,9 +3640,7 @@ 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: 2025-10-08/PostRules_refreshCounters_MaximumSet_Gen.json */ /** * Sample code: PostRules_refreshCounters_MaximumSet_Gen. @@ -3624,9 +3653,7 @@ public final class PostRulesRefreshCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_refreshCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_refreshCounters_MinimumSet_Gen.json */ /** * Sample code: PostRules_refreshCounters_MinimumSet_Gen. @@ -3648,9 +3675,7 @@ 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: 2025-10-08/PostRules_resetCounters_MaximumSet_Gen.json */ /** * Sample code: PostRules_resetCounters_MaximumSet_Gen. @@ -3663,9 +3688,7 @@ public final class PostRulesResetCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_resetCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_resetCounters_MinimumSet_Gen.json */ /** * Sample code: PostRules_resetCounters_MinimumSet_Gen. @@ -3698,9 +3721,7 @@ import java.util.Arrays; */ 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: 2025-10-08/PreRules_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PreRules_CreateOrUpdate_MaximumSet_Gen. @@ -3741,9 +3762,7 @@ public final class PreRulesCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PreRules_CreateOrUpdate_MinimumSet_Gen. @@ -3767,9 +3786,7 @@ 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: 2025-10-08/PreRules_Delete_MinimumSet_Gen.json */ /** * Sample code: PreRules_Delete_MinimumSet_Gen. @@ -3782,9 +3799,7 @@ public final class PreRulesDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_Delete_MaximumSet_Gen.json */ /** * Sample code: PreRules_Delete_MaximumSet_Gen. @@ -3806,9 +3821,7 @@ 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: 2025-10-08/PreRules_Get_MaximumSet_Gen.json */ /** * Sample code: PreRules_Get_MaximumSet_Gen. @@ -3821,9 +3834,7 @@ public final class PreRulesGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_Get_MinimumSet_Gen.json */ /** * Sample code: PreRules_Get_MinimumSet_Gen. @@ -3845,9 +3856,7 @@ 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: 2025-10-08/PreRules_getCounters_MinimumSet_Gen.json */ /** * Sample code: PreRules_getCounters_MinimumSet_Gen. @@ -3860,9 +3869,7 @@ public final class PreRulesGetCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_getCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_getCounters_MaximumSet_Gen.json */ /** * Sample code: PreRules_getCounters_MaximumSet_Gen. @@ -3884,9 +3891,7 @@ 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: 2025-10-08/PreRules_List_MinimumSet_Gen.json */ /** * Sample code: PreRules_List_MinimumSet_Gen. @@ -3899,9 +3904,7 @@ public final class PreRulesListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_List_MaximumSet_Gen.json */ /** * Sample code: PreRules_List_MaximumSet_Gen. @@ -3923,9 +3926,7 @@ 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: 2025-10-08/PreRules_refreshCounters_MaximumSet_Gen.json */ /** * Sample code: PreRules_refreshCounters_MaximumSet_Gen. @@ -3938,9 +3939,7 @@ public final class PreRulesRefreshCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_refreshCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_refreshCounters_MinimumSet_Gen.json */ /** * Sample code: PreRules_refreshCounters_MinimumSet_Gen. @@ -3962,9 +3961,7 @@ 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: 2025-10-08/PreRules_resetCounters_MinimumSet_Gen.json */ /** * Sample code: PreRules_resetCounters_MinimumSet_Gen. @@ -3977,9 +3974,7 @@ public final class PreRulesResetCountersSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_resetCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_resetCounters_MaximumSet_Gen.json */ /** * Sample code: PreRules_resetCounters_MaximumSet_Gen. @@ -4004,9 +3999,7 @@ 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: 2025-10-08/PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -4025,9 +4018,7 @@ public final class PrefixListGlobalRulestackCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -4052,9 +4043,7 @@ 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: 2025-10-08/PrefixListGlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Delete_MaximumSet_Gen. @@ -4067,9 +4056,7 @@ public final class PrefixListGlobalRulestackDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Delete_MinimumSet_Gen. @@ -4091,9 +4078,7 @@ 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: 2025-10-08/PrefixListGlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Get_MinimumSet_Gen. @@ -4106,9 +4091,7 @@ public final class PrefixListGlobalRulestackGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Get_MaximumSet_Gen. @@ -4130,9 +4113,7 @@ 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: 2025-10-08/PrefixListGlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_List_MaximumSet_Gen. @@ -4145,9 +4126,7 @@ public final class PrefixListGlobalRulestackListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_List_MinimumSet_Gen. @@ -4171,9 +4150,7 @@ 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: 2025-10-08/PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -4190,9 +4167,7 @@ public final class PrefixListLocalRulestackCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -4221,9 +4196,7 @@ 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: 2025-10-08/PrefixListLocalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Delete_MinimumSet_Gen. @@ -4236,9 +4209,7 @@ public final class PrefixListLocalRulestackDeleteSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Delete_MaximumSet_Gen. @@ -4260,9 +4231,7 @@ 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: 2025-10-08/PrefixListLocalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Get_MinimumSet_Gen. @@ -4276,9 +4245,7 @@ public final class PrefixListLocalRulestackGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Get_MaximumSet_Gen. @@ -4301,9 +4268,7 @@ 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: 2025-10-08/PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen. @@ -4317,9 +4282,7 @@ public final class PrefixListLocalRulestackListByLocalRulestacksSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml index e90a526cc1ff..e46f462e82b4 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/pom.xml @@ -1,7 +1,7 @@ 4.0.0 @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-paloaltonetworks-ngfw - 1.3.0-beta.1 + 1.3.0 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. + Microsoft Azure SDK for PaloAltoNetworks Ngfw Management + This package contains Microsoft Azure SDK for PaloAltoNetworks Ngfw Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2025-10-08. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,7 @@ UTF-8 0 0 - false + true 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 9feb12a9ebb2..c38c0a23fe67 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw; @@ -22,8 +22,9 @@ import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfw; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksNgfwManagementClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectGlobalRulestacksImpl; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectLocalRulestacksImpl; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallStatusImpl; @@ -33,8 +34,10 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.GlobalRulestacksImpl; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulesImpl; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulestacksImpl; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.MetricsObjectFirewallsImpl; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.OperationsImpl; -import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwBuilder; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwOperationsImpl; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksNgfwManagementClientBuilder; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PostRulesImpl; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PreRulesImpl; import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListGlobalRulestacksImpl; @@ -48,7 +51,9 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestacks; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRules; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestacks; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MetricsObjectFirewalls; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Operations; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PaloAltoNetworksCloudngfwOperations; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PostRules; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PreRules; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestacks; @@ -57,6 +62,7 @@ import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; @@ -64,6 +70,8 @@ * Entry point to PaloAltoNetworksNgfwManager. */ public final class PaloAltoNetworksNgfwManager { + private Operations operations; + private GlobalRulestacks globalRulestacks; private CertificateObjectGlobalRulestacks certificateObjectGlobalRulestacks; @@ -76,12 +84,12 @@ public final class PaloAltoNetworksNgfwManager { private PreRules preRules; - private Operations operations; - private Firewalls firewalls; private LocalRulestacks localRulestacks; + private MetricsObjectFirewalls metricsObjectFirewalls; + private FirewallStatus firewallStatus; private CertificateObjectLocalRulestacks certificateObjectLocalRulestacks; @@ -92,12 +100,14 @@ public final class PaloAltoNetworksNgfwManager { private PrefixListLocalRulestacks prefixListLocalRulestacks; - private final PaloAltoNetworksCloudngfw clientObject; + private PaloAltoNetworksCloudngfwOperations paloAltoNetworksCloudngfwOperations; + + private final PaloAltoNetworksNgfwManagementClient clientObject; private PaloAltoNetworksNgfwManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = new PaloAltoNetworksCloudngfwBuilder().pipeline(httpPipeline) + this.clientObject = new PaloAltoNetworksNgfwManagementClientBuilder().pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) .subscriptionId(profile.getSubscriptionId()) .defaultPollInterval(defaultPollInterval) @@ -105,11 +115,11 @@ private PaloAltoNetworksNgfwManager(HttpPipeline httpPipeline, AzureProfile prof } /** - * Creates an instance of PaloAlto Networks Ngfw service API entry point. + * Creates an instance of PaloAltoNetworks Ngfw service API entry point. * * @param credential the credential to use. * @param profile the Azure profile for client. - * @return the PaloAlto Networks Ngfw service API instance. + * @return the PaloAltoNetworks Ngfw service API instance. */ public static PaloAltoNetworksNgfwManager authenticate(TokenCredential credential, AzureProfile profile) { Objects.requireNonNull(credential, "'credential' cannot be null."); @@ -118,11 +128,11 @@ public static PaloAltoNetworksNgfwManager authenticate(TokenCredential credentia } /** - * Creates an instance of PaloAlto Networks Ngfw service API entry point. + * Creates an instance of PaloAltoNetworks Ngfw service API entry point. * * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. * @param profile the Azure profile for client. - * @return the PaloAlto Networks Ngfw service API instance. + * @return the PaloAltoNetworks Ngfw service API instance. */ public static PaloAltoNetworksNgfwManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); @@ -144,6 +154,9 @@ public static Configurable configure() { */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + private static final String SDK_VERSION = "version"; + private static final Map PROPERTIES + = CoreUtils.getProperties("azure-resourcemanager-paloaltonetworks-ngfw.properties"); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -241,22 +254,24 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { } /** - * Creates an instance of PaloAlto Networks Ngfw service API entry point. + * Creates an instance of PaloAltoNetworks Ngfw service API entry point. * * @param credential the credential to use. * @param profile the Azure profile for client. - * @return the PaloAlto Networks Ngfw service API instance. + * @return the PaloAltoNetworks Ngfw service API instance. */ public PaloAltoNetworksNgfwManager authenticate(TokenCredential credential, AzureProfile profile) { Objects.requireNonNull(credential, "'credential' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + StringBuilder userAgentBuilder = new StringBuilder(); userAgentBuilder.append("azsdk-java") .append("-") .append("com.azure.resourcemanager.paloaltonetworks.ngfw") .append("/") - .append("1.2.0"); + .append(clientVersion); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -302,6 +317,18 @@ public PaloAltoNetworksNgfwManager authenticate(TokenCredential credential, Azur } } + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(clientObject.getOperations(), this); + } + return operations; + } + /** * Gets the resource collection API of GlobalRulestacks. * @@ -377,18 +404,6 @@ public PreRules preRules() { return preRules; } - /** - * Gets the resource collection API of Operations. - * - * @return Resource collection API of Operations. - */ - public Operations operations() { - if (this.operations == null) { - this.operations = new OperationsImpl(clientObject.getOperations(), this); - } - return operations; - } - /** * Gets the resource collection API of Firewalls. It manages FirewallResource. * @@ -413,6 +428,19 @@ public LocalRulestacks localRulestacks() { return localRulestacks; } + /** + * Gets the resource collection API of MetricsObjectFirewalls. + * + * @return Resource collection API of MetricsObjectFirewalls. + */ + public MetricsObjectFirewalls metricsObjectFirewalls() { + if (this.metricsObjectFirewalls == null) { + this.metricsObjectFirewalls + = new MetricsObjectFirewallsImpl(clientObject.getMetricsObjectFirewalls(), this); + } + return metricsObjectFirewalls; + } + /** * Gets the resource collection API of FirewallStatus. * @@ -478,12 +506,25 @@ public PrefixListLocalRulestacks prefixListLocalRulestacks() { } /** - * Gets wrapped service client PaloAltoNetworksCloudngfw providing direct access to the underlying auto-generated - * API implementation, based on Azure REST API. + * Gets the resource collection API of PaloAltoNetworksCloudngfwOperations. + * + * @return Resource collection API of PaloAltoNetworksCloudngfwOperations. + */ + public PaloAltoNetworksCloudngfwOperations paloAltoNetworksCloudngfwOperations() { + if (this.paloAltoNetworksCloudngfwOperations == null) { + this.paloAltoNetworksCloudngfwOperations = new PaloAltoNetworksCloudngfwOperationsImpl( + clientObject.getPaloAltoNetworksCloudngfwOperations(), this); + } + return paloAltoNetworksCloudngfwOperations; + } + + /** + * Gets wrapped service client PaloAltoNetworksNgfwManagementClient providing direct access to the underlying + * auto-generated API implementation, based on Azure REST API. * - * @return Wrapped service client PaloAltoNetworksCloudngfw. + * @return Wrapped service client PaloAltoNetworksNgfwManagementClient. */ - public PaloAltoNetworksCloudngfw serviceClient() { + public PaloAltoNetworksNgfwManagementClient serviceClient() { return this.clientObject; } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectGlobalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectGlobalRulestacksClient.java index 240fea043899..5c07a98abd01 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectGlobalRulestacksClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectGlobalRulestacksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -17,33 +17,6 @@ * An instance of this class provides access to all the operations defined in CertificateObjectGlobalRulestacksClient. */ public interface CertificateObjectGlobalRulestacksClient { - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName); - - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName, Context context); - /** * Get a CertificateObjectGlobalRulestackResource. * @@ -187,4 +160,31 @@ CertificateObjectGlobalRulestackResourceInner createOrUpdate(String globalRulest */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String globalRulestackName, String name, Context context); + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName); + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectLocalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectLocalRulestacksClient.java index b6b67cd03995..676336ae45d1 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectLocalRulestacksClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectLocalRulestacksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -17,37 +17,6 @@ * An instance of this class provides access to all the operations defined in CertificateObjectLocalRulestacksClient. */ public interface CertificateObjectLocalRulestacksClient { - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName); - - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context); - /** * Get a CertificateObjectLocalRulestackResource. * @@ -202,4 +171,35 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String localRulestackName, String name, Context context); + + /** + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a CertificateObjectLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName); + + /** + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallStatusClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallStatusClient.java index fca847c694f7..edd782ee089d 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallStatusClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallStatusClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -16,58 +16,58 @@ */ public interface FirewallStatusClient { /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallStatusResource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFirewalls(String resourceGroupName, String firewallName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String firewallName, + Context context); /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallStatusResource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByFirewalls(String resourceGroupName, String firewallName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + FirewallStatusResourceInner get(String resourceGroupName, String firewallName); /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallStatusResource along with {@link Response}. + * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String firewallName, - Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByFirewalls(String resourceGroupName, String firewallName); /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallStatusResource. + * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - FirewallStatusResourceInner get(String resourceGroupName, String firewallName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByFirewalls(String resourceGroupName, String firewallName, + Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallsClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallsClient.java index 9f9b9e47fbc3..55c4bf437b25 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallsClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -21,53 +21,6 @@ * An instance of this class provides access to all the operations defined in FirewallsClient. */ public interface FirewallsClient { - /** - * List FirewallResource resources by subscription ID. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List FirewallResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * List FirewallResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List FirewallResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** * Get a FirewallResource. * @@ -239,6 +192,53 @@ Response updateWithResponse(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String firewallName, Context context); + /** + * List FirewallResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List FirewallResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * List FirewallResource resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List FirewallResource resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Get Global Rulestack associated with the Firewall. * diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListGlobalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListGlobalRulestacksClient.java index 61e42e6cff8b..d987eda73494 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListGlobalRulestacksClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListGlobalRulestacksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -17,33 +17,6 @@ * An instance of this class provides access to all the operations defined in FqdnListGlobalRulestacksClient. */ public interface FqdnListGlobalRulestacksClient { - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName); - - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName, Context context); - /** * Get a FqdnListGlobalRulestackResource. * @@ -186,4 +159,31 @@ FqdnListGlobalRulestackResourceInner createOrUpdate(String globalRulestackName, */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String globalRulestackName, String name, Context context); + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName); + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListLocalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListLocalRulestacksClient.java index 18064c79ed67..022ddfef35f0 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListLocalRulestacksClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListLocalRulestacksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -17,37 +17,6 @@ * An instance of this class provides access to all the operations defined in FqdnListLocalRulestacksClient. */ public interface FqdnListLocalRulestacksClient { - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName); - - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context); - /** * Get a FqdnListLocalRulestackResource. * @@ -202,4 +171,35 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String localRulestackName, String name, Context context); + + /** + * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a FqdnListLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName); + + /** + * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/GlobalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/GlobalRulestacksClient.java index 8f2e2aa31744..071ffd7eda1d 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/GlobalRulestacksClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/GlobalRulestacksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -27,30 +27,6 @@ * An instance of this class provides access to all the operations defined in GlobalRulestacksClient. */ public interface GlobalRulestacksClient { - /** - * List GlobalRulestackResource resources by Tenant. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List GlobalRulestackResource resources by Tenant. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - /** * Get a GlobalRulestackResource. * @@ -209,6 +185,30 @@ Response updateWithResponse(String globalRulestack @ServiceMethod(returns = ReturnType.SINGLE) void delete(String globalRulestackName, Context context); + /** + * List GlobalRulestackResource resources by Tenant. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a GlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List GlobalRulestackResource resources by Tenant. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a GlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Commit rulestack configuration. * diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulesClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulesClient.java index 517f0ca4bbb8..5c9e5de2bb3a 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulesClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -19,34 +19,6 @@ * An instance of this class provides access to all the operations defined in LocalRulesClient. */ public interface LocalRulesClient { - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @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 of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); - - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, - Context context); - /** * Get a LocalRulesResource. * @@ -202,6 +174,34 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String localRulestackName, String priority, Context context); + /** + * List LocalRulesResource resources by LocalRulestacks. + * + * @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 of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); + + /** + * List LocalRulesResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, + Context context); + /** * Get counters. * 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 c43c7e7b6472..bdb1e57136c1 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -13,11 +13,10 @@ 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.CountryInner; 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; @@ -28,53 +27,6 @@ * An instance of this class provides access to all the operations defined in LocalRulestacksClient. */ public interface LocalRulestacksClient { - /** - * List LocalRulestackResource resources by subscription ID. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List LocalRulestackResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** * Get a LocalRulestackResource. * @@ -249,6 +201,53 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String localRulestackName, Context context); + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * List LocalRulestackResource resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List LocalRulestackResource resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Commit rulestack configuration. * @@ -397,62 +396,62 @@ AdvSecurityObjectListResponseInner listAdvancedSecurityObjects(String resourceGr * * @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}. + * @return the paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response listAppIdsWithResponse(String resourceGroupName, String localRulestackName, - String appIdVersion, String appPrefix, String skip, Integer top, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listAppIds(String resourceGroupName, String localRulestackName); /** * 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. + * @return the paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - ListAppIdResponseInner listAppIds(String resourceGroupName, String localRulestackName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listAppIds(String resourceGroupName, String localRulestackName, String appIdVersion, + String appPrefix, 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. - * @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}. + * @return countries Response Object as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response listCountriesWithResponse(String resourceGroupName, String localRulestackName, - String skip, Integer top, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listCountries(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. + * @return countries Response Object as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - CountriesResponseInner listCountries(String resourceGroupName, String localRulestackName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listCountries(String resourceGroupName, String localRulestackName, String skip, + Integer top, Context context); /** * List of Firewalls associated with Rulestack. @@ -487,31 +486,31 @@ Response listFirewallsWithResponse(String resourceGr * * @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}. + * @return predefined url categories response as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response listPredefinedUrlCategoriesWithResponse(String resourceGroupName, - String localRulestackName, String skip, Integer top, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listPredefinedUrlCategories(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. + * @return predefined url categories response as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - PredefinedUrlCategoriesResponseInner listPredefinedUrlCategories(String resourceGroupName, - String localRulestackName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listPredefinedUrlCategories(String resourceGroupName, + String localRulestackName, String skip, Integer top, Context context); /** * List the security services for rulestack. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/MetricsObjectFirewallsClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/MetricsObjectFirewallsClient.java new file mode 100644 index 000000000000..68ee7e280af9 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/MetricsObjectFirewallsClient.java @@ -0,0 +1,191 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; + +/** + * An instance of this class provides access to all the operations defined in MetricsObjectFirewallsClient. + */ +public interface MetricsObjectFirewallsClient { + /** + * Get a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a MetricsObjectFirewallResource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String firewallName, + Context context); + + /** + * Get a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 a MetricsObjectFirewallResource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MetricsObjectFirewallResourceInner get(String resourceGroupName, String firewallName); + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MetricsObjectFirewallResourceInner> + beginCreateOrUpdate(String resourceGroupName, String firewallName, MetricsObjectFirewallResourceInner resource); + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MetricsObjectFirewallResourceInner> beginCreateOrUpdate( + String resourceGroupName, String firewallName, MetricsObjectFirewallResourceInner resource, Context context); + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MetricsObjectFirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource); + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MetricsObjectFirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource, Context context); + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName); + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName, Context context); + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String firewallName); + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String firewallName, Context context); + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a MetricsObjectFirewallResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByFirewalls(String resourceGroupName, String firewallName); + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MetricsObjectFirewallResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByFirewalls(String resourceGroupName, String firewallName, + Context context); +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/OperationsClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/OperationsClient.java index 6c8fd5a4afd7..27d94055ea0a 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/OperationsClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/OperationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfwOperationsClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfwOperationsClient.java new file mode 100644 index 000000000000..225257f907d9 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfwOperationsClient.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.CloudManagerTenantListInner; +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; + +/** + * An instance of this class provides access to all the operations defined in PaloAltoNetworksCloudngfwOperationsClient. + */ +public interface PaloAltoNetworksCloudngfwOperationsClient { + /** + * 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 cloud Manager Tenant 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 cloud Manager Tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CloudManagerTenantListInner 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/PaloAltoNetworksCloudngfw.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksNgfwManagementClient.java similarity index 82% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfw.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksNgfwManagementClient.java index 12b3c8e55a19..a8f4077394d7 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/PaloAltoNetworksNgfwManagementClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -8,30 +8,30 @@ import java.time.Duration; /** - * The interface for PaloAltoNetworksCloudngfw class. + * The interface for PaloAltoNetworksNgfwManagementClient class. */ -public interface PaloAltoNetworksCloudngfw { +public interface PaloAltoNetworksNgfwManagementClient { /** - * Gets The ID of the target subscription. - * - * @return the subscriptionId value. - */ - String getSubscriptionId(); - - /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ String getEndpoint(); /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ String getApiVersion(); + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + String getSubscriptionId(); + /** * Gets The HTTP pipeline to send requests through. * @@ -46,6 +46,13 @@ public interface PaloAltoNetworksCloudngfw { */ Duration getDefaultPollInterval(); + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + OperationsClient getOperations(); + /** * Gets the GlobalRulestacksClient object to access its operations. * @@ -88,13 +95,6 @@ public interface PaloAltoNetworksCloudngfw { */ PreRulesClient getPreRules(); - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - OperationsClient getOperations(); - /** * Gets the FirewallsClient object to access its operations. * @@ -109,6 +109,13 @@ public interface PaloAltoNetworksCloudngfw { */ LocalRulestacksClient getLocalRulestacks(); + /** + * Gets the MetricsObjectFirewallsClient object to access its operations. + * + * @return the MetricsObjectFirewallsClient object. + */ + MetricsObjectFirewallsClient getMetricsObjectFirewalls(); + /** * Gets the FirewallStatusClient object to access its operations. * @@ -143,4 +150,11 @@ public interface PaloAltoNetworksCloudngfw { * @return the PrefixListLocalRulestacksClient object. */ PrefixListLocalRulestacksClient getPrefixListLocalRulestacks(); + + /** + * Gets the PaloAltoNetworksCloudngfwOperationsClient object to access its operations. + * + * @return the PaloAltoNetworksCloudngfwOperationsClient object. + */ + PaloAltoNetworksCloudngfwOperationsClient getPaloAltoNetworksCloudngfwOperations(); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PostRulesClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PostRulesClient.java index 8af1628b16ff..ebe83febe91b 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PostRulesClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PostRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -19,31 +19,6 @@ * An instance of this class provides access to all the operations defined in PostRulesClient. */ public interface PostRulesClient { - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName); - - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PostRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName, Context context); - /** * Get a PostRulesResource. * @@ -184,6 +159,31 @@ PostRulesResourceInner createOrUpdate(String globalRulestackName, String priorit @ServiceMethod(returns = ReturnType.SINGLE) void delete(String globalRulestackName, String priority, Context context); + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName); + + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PostRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName, Context context); + /** * Get counters. * diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PreRulesClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PreRulesClient.java index 03f9ef22a4a3..d83a6d2183c0 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PreRulesClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PreRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -19,31 +19,6 @@ * An instance of this class provides access to all the operations defined in PreRulesClient. */ public interface PreRulesClient { - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName); - - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PreRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName, Context context); - /** * Get a PreRulesResource. * @@ -184,6 +159,31 @@ PreRulesResourceInner createOrUpdate(String globalRulestackName, String priority @ServiceMethod(returns = ReturnType.SINGLE) void delete(String globalRulestackName, String priority, Context context); + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName); + + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PreRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName, Context context); + /** * Get counters. * diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListGlobalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListGlobalRulestacksClient.java index e0e007677989..3db21aecaf76 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListGlobalRulestacksClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListGlobalRulestacksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -17,33 +17,6 @@ * An instance of this class provides access to all the operations defined in PrefixListGlobalRulestacksClient. */ public interface PrefixListGlobalRulestacksClient { - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName); - - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String globalRulestackName, Context context); - /** * Get a PrefixListGlobalRulestackResource. * @@ -186,4 +159,31 @@ PrefixListGlobalRulestackResourceInner createOrUpdate(String globalRulestackName */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String globalRulestackName, String name, Context context); + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName); + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String globalRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListLocalRulestacksClient.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListLocalRulestacksClient.java index 006e83feb336..9fb20feee8a3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListLocalRulestacksClient.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListLocalRulestacksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; @@ -17,34 +17,6 @@ * An instance of this class provides access to all the operations defined in PrefixListLocalRulestacksClient. */ public interface PrefixListLocalRulestacksClient { - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @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 of a PrefixListResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); - - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, - Context context); - /** * Get a PrefixListResource. * @@ -198,4 +170,32 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String localRulestackName, String name, Context context); + + /** + * List PrefixListResource resources by LocalRulestacks. + * + * @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 of a PrefixListResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); + + /** + * List PrefixListResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, + Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/AdvSecurityObjectListResponseInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/AdvSecurityObjectListResponseInner.java index 501b95e339de..728ae71390dd 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/AdvSecurityObjectListResponseInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/AdvSecurityObjectListResponseInner.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +15,7 @@ /** * advanced security object. */ -@Fluent +@Immutable public final class AdvSecurityObjectListResponseInner implements JsonSerializable { /* * response value @@ -31,7 +30,7 @@ public final class AdvSecurityObjectListResponseInner implements JsonSerializabl /** * Creates an instance of AdvSecurityObjectListResponseInner class. */ - public AdvSecurityObjectListResponseInner() { + private AdvSecurityObjectListResponseInner() { } /** @@ -43,17 +42,6 @@ public AdvSecurityObjectModel value() { return this.value; } - /** - * Set the value property: response value. - * - * @param value the value value to set. - * @return the AdvSecurityObjectListResponseInner object itself. - */ - public AdvSecurityObjectListResponseInner withValue(AdvSecurityObjectModel value) { - this.value = value; - return this; - } - /** * Get the nextLink property: next link. * @@ -63,34 +51,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: next link. - * - * @param nextLink the nextLink value to set. - * @return the AdvSecurityObjectListResponseInner object itself. - */ - public AdvSecurityObjectListResponseInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model AdvSecurityObjectListResponseInner")); - } else { - value().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AdvSecurityObjectListResponseInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObject.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObject.java index aa46d40b7f1b..ae1825765efa 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObject.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObject.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -166,21 +165,6 @@ public ProvisioningState provisioningState() { return this.provisioningState; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (certificateSelfSigned() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property certificateSelfSigned in model CertificateObject")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CertificateObject.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectGlobalRulestackResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectGlobalRulestackResourceInner.java index 7296c806ec5b..3a6c678c93b7 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectGlobalRulestackResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectGlobalRulestackResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -226,23 +225,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model CertificateObjectGlobalRulestackResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CertificateObjectGlobalRulestackResourceInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectLocalRulestackResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectLocalRulestackResourceInner.java index 8ab06b6cb94b..42407fc161e0 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectLocalRulestackResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectLocalRulestackResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -226,23 +225,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model CertificateObjectLocalRulestackResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CertificateObjectLocalRulestackResourceInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ChangelogInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ChangelogInner.java index 8b86e7280e01..13086f00fe43 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ChangelogInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ChangelogInner.java @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +18,7 @@ /** * Changelog list. */ -@Fluent +@Immutable public final class ChangelogInner implements JsonSerializable { /* * list of changes @@ -39,7 +38,7 @@ public final class ChangelogInner implements JsonSerializable { /** * Creates an instance of ChangelogInner class. */ - public ChangelogInner() { + private ChangelogInner() { } /** @@ -51,17 +50,6 @@ public List changes() { return this.changes; } - /** - * Set the changes property: list of changes. - * - * @param changes the changes value to set. - * @return the ChangelogInner object itself. - */ - public ChangelogInner withChanges(List changes) { - this.changes = changes; - return this; - } - /** * Get the lastCommitted property: lastCommitted timestamp. * @@ -71,17 +59,6 @@ public OffsetDateTime lastCommitted() { return this.lastCommitted; } - /** - * Set the lastCommitted property: lastCommitted timestamp. - * - * @param lastCommitted the lastCommitted value to set. - * @return the ChangelogInner object itself. - */ - public ChangelogInner withLastCommitted(OffsetDateTime lastCommitted) { - this.lastCommitted = lastCommitted; - return this; - } - /** * Get the lastModified property: lastModified timestamp. * @@ -91,31 +68,6 @@ public OffsetDateTime lastModified() { return this.lastModified; } - /** - * Set the lastModified property: lastModified timestamp. - * - * @param lastModified the lastModified value to set. - * @return the ChangelogInner object itself. - */ - public ChangelogInner withLastModified(OffsetDateTime lastModified) { - this.lastModified = lastModified; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (changes() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property changes in model ChangelogInner")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ChangelogInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CloudManagerTenantListInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CloudManagerTenantListInner.java new file mode 100644 index 000000000000..63c0ddd623b0 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CloudManagerTenantListInner.java @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Cloud Manager Tenant. + */ +@Immutable +public final class CloudManagerTenantListInner implements JsonSerializable { + /* + * List of Cloud Manager Tenants + */ + private List value; + + /** + * Creates an instance of CloudManagerTenantListInner class. + */ + private CloudManagerTenantListInner() { + } + + /** + * Get the value property: List of Cloud Manager Tenants. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudManagerTenantListInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudManagerTenantListInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CloudManagerTenantListInner. + */ + public static CloudManagerTenantListInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudManagerTenantListInner deserializedCloudManagerTenantListInner = new CloudManagerTenantListInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> reader1.getString()); + deserializedCloudManagerTenantListInner.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedCloudManagerTenantListInner; + }); + } +} 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 dbcc12cd6bbe..b24fa354ac0c 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 @@ -1,62 +1,49 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Country; import java.io.IOException; import java.util.List; /** * Countries Response Object. */ -@Fluent +@Immutable public final class CountriesResponseInner implements JsonSerializable { /* - * List of countries + * The Country items on this page */ - private List value; + private List value; /* - * next link + * The link to the next page of items */ private String nextLink; /** * Creates an instance of CountriesResponseInner class. */ - public CountriesResponseInner() { + private CountriesResponseInner() { } /** - * Get the value property: List of countries. + * Get the value property: The Country items on this page. * * @return the value value. */ - public List value() { + public List value() { return this.value; } /** - * Set the value property: List of countries. - * - * @param value the value value to set. - * @return the CountriesResponseInner object itself. - */ - public CountriesResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: next link. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,33 +51,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: next link. - * - * @param nextLink the nextLink value to set. - * @return the CountriesResponseInner object itself. - */ - public CountriesResponseInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model CountriesResponseInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CountriesResponseInner.class); - /** * {@inheritDoc} */ @@ -119,7 +79,7 @@ public static CountriesResponseInner fromJson(JsonReader jsonReader) throws IOEx reader.nextToken(); if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> Country.fromJson(reader1)); + List value = reader.readArray(reader1 -> CountryInner.fromJson(reader1)); deserializedCountriesResponseInner.value = value; } else if ("nextLink".equals(fieldName)) { deserializedCountriesResponseInner.nextLink = reader.getString(); 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 000000000000..86e17a740864 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountryInner.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Country Description. + */ +@Immutable +public final class CountryInner implements JsonSerializable { + /* + * country code + */ + private String code; + + /* + * code description + */ + private String description; + + /** + * Creates an instance of CountryInner class. + */ + private CountryInner() { + } + + /** + * Get the code property: country code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the description property: code description. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("code", this.code); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CountryInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CountryInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CountryInner. + */ + public static CountryInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CountryInner deserializedCountryInner = new CountryInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedCountryInner.code = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedCountryInner.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCountryInner; + }); + } +} 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 07933a0fffa9..b92334912c4f 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 @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,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 java.io.IOException; import java.util.List; @@ -42,11 +42,21 @@ public final class FirewallDeploymentProperties implements JsonSerializable e.validate()); - } - if (planData() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property planData in model FirewallDeploymentProperties")); - } else { - planData().validate(); - } - if (marketplaceDetails() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property marketplaceDetails in model FirewallDeploymentProperties")); - } else { - marketplaceDetails().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FirewallDeploymentProperties.class); - /** * {@inheritDoc} */ @@ -332,7 +338,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("panEtag", this.panEtag); jsonWriter.writeStringField("isPanoramaManaged", this.isPanoramaManaged == null ? null : this.isPanoramaManaged.toString()); + jsonWriter.writeStringField("isStrataCloudManaged", + this.isStrataCloudManaged == null ? null : this.isStrataCloudManaged.toString()); jsonWriter.writeJsonField("panoramaConfig", this.panoramaConfig); + jsonWriter.writeJsonField("strataCloudManagerConfig", this.strataCloudManagerConfig); jsonWriter.writeJsonField("associatedRulestack", this.associatedRulestack); jsonWriter.writeArrayField("frontEndSettings", this.frontEndSettings, (writer, element) -> writer.writeJson(element)); @@ -368,8 +377,14 @@ public static FirewallDeploymentProperties fromJson(JsonReader jsonReader) throw } else if ("isPanoramaManaged".equals(fieldName)) { deserializedFirewallDeploymentProperties.isPanoramaManaged = BooleanEnum.fromString(reader.getString()); + } else if ("isStrataCloudManaged".equals(fieldName)) { + deserializedFirewallDeploymentProperties.isStrataCloudManaged + = BooleanEnum.fromString(reader.getString()); } else if ("panoramaConfig".equals(fieldName)) { deserializedFirewallDeploymentProperties.panoramaConfig = PanoramaConfig.fromJson(reader); + } else if ("strataCloudManagerConfig".equals(fieldName)) { + deserializedFirewallDeploymentProperties.strataCloudManagerConfig + = StrataCloudManagerConfig.fromJson(reader); } else if ("associatedRulestack".equals(fieldName)) { deserializedFirewallDeploymentProperties.associatedRulestack = RulestackDetails.fromJson(reader); } else if ("frontEndSettings".equals(fieldName)) { 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 eade02126846..970f67166b0e 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 @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -21,6 +20,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 java.io.IOException; import java.util.List; import java.util.Map; @@ -221,6 +221,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. * @@ -244,6 +267,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. * @@ -368,26 +416,6 @@ public FirewallResourceInner withMarketplaceDetails(MarketplaceDetails marketpla return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model FirewallResourceInner")); - } else { - innerProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FirewallResourceInner.class); - /** * {@inheritDoc} */ 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 057a0d23964b..0b8a6b1bc55d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; @@ -13,6 +13,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; import java.io.IOException; /** @@ -45,10 +46,20 @@ public final class FirewallStatusProperty implements JsonSerializable { /* * rulestack description @@ -25,7 +24,7 @@ public final class GlobalRulestackInfoInner implements JsonSerializable { /* - * List of AppIds + * The value property. */ private List value; /* - * next Link + * The nextLink property. */ private String nextLink; /** * Creates an instance of ListAppIdResponseInner class. */ - public ListAppIdResponseInner() { + private ListAppIdResponseInner() { } /** - * Get the value property: List of AppIds. + * Get the value property: The value property. * * @return the value value. */ @@ -44,18 +43,7 @@ public List value() { } /** - * Set the value property: List of AppIds. - * - * @param value the value value to set. - * @return the ListAppIdResponseInner object itself. - */ - public ListAppIdResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: next Link. + * Get the nextLink property: The nextLink property. * * @return the nextLink value. */ @@ -63,31 +51,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: next Link. - * - * @param nextLink the nextLink value to set. - * @return the ListAppIdResponseInner object itself. - */ - public ListAppIdResponseInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model ListAppIdResponseInner")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ListAppIdResponseInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ListFirewallsResponseInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ListFirewallsResponseInner.java index 8ecf102c7b7f..c9bcba14d085 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ListFirewallsResponseInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ListFirewallsResponseInner.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +15,7 @@ /** * List firewalls response. */ -@Fluent +@Immutable public final class ListFirewallsResponseInner implements JsonSerializable { /* * firewalls list @@ -31,7 +30,7 @@ public final class ListFirewallsResponseInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: firewalls list. - * - * @param value the value value to set. - * @return the ListFirewallsResponseInner object itself. - */ - public ListFirewallsResponseInner withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: next link. * @@ -63,32 +51,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: next link. - * - * @param nextLink the nextLink value to set. - * @return the ListFirewallsResponseInner object itself. - */ - public ListFirewallsResponseInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ListFirewallsResponseInner")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ListFirewallsResponseInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulesResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulesResourceInner.java index 8b4a827cd069..09c2f904426f 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulesResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulesResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -539,23 +538,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model LocalRulesResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LocalRulesResourceInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulestackResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulestackResourceInner.java index 2c3951ef655d..bcb9e0f3f1f9 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulestackResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulestackResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -340,26 +339,6 @@ public LocalRulestackResourceInner withSecurityServices(SecurityServices securit return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model LocalRulestackResourceInner")); - } else { - innerProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LocalRulestackResourceInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LogSettingsInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LogSettingsInner.java index 0502c8ce3cca..bc634f0d76cf 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LogSettingsInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LogSettingsInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; @@ -201,29 +201,6 @@ public LogSettingsInner withDecryptLogDestination(LogDestination decryptLogDesti return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (applicationInsights() != null) { - applicationInsights().validate(); - } - if (commonDestination() != null) { - commonDestination().validate(); - } - if (trafficLogDestination() != null) { - trafficLogDestination().validate(); - } - if (threatLogDestination() != null) { - threatLogDestination().validate(); - } - if (decryptLogDestination() != null) { - decryptLogDestination().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObject.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObject.java new file mode 100644 index 000000000000..b88fea03d146 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObject.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState; +import java.io.IOException; + +/** + * Config for Metrics for firewall metrics. + */ +@Fluent +public final class MetricsObject implements JsonSerializable { + /* + * Resource Id of application insights resource + */ + private String applicationInsightsResourceId; + + /* + * Connection string of application insights resource + */ + private String applicationInsightsConnectionString; + + /* + * read only string representing last create or update + */ + private String panEtag; + + /* + * Provisioning state of the resource. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of MetricsObject class. + */ + public MetricsObject() { + } + + /** + * Get the applicationInsightsResourceId property: Resource Id of application insights resource. + * + * @return the applicationInsightsResourceId value. + */ + public String applicationInsightsResourceId() { + return this.applicationInsightsResourceId; + } + + /** + * Set the applicationInsightsResourceId property: Resource Id of application insights resource. + * + * @param applicationInsightsResourceId the applicationInsightsResourceId value to set. + * @return the MetricsObject object itself. + */ + public MetricsObject withApplicationInsightsResourceId(String applicationInsightsResourceId) { + this.applicationInsightsResourceId = applicationInsightsResourceId; + return this; + } + + /** + * Get the applicationInsightsConnectionString property: Connection string of application insights resource. + * + * @return the applicationInsightsConnectionString value. + */ + public String applicationInsightsConnectionString() { + return this.applicationInsightsConnectionString; + } + + /** + * Set the applicationInsightsConnectionString property: Connection string of application insights resource. + * + * @param applicationInsightsConnectionString the applicationInsightsConnectionString value to set. + * @return the MetricsObject object itself. + */ + public MetricsObject withApplicationInsightsConnectionString(String applicationInsightsConnectionString) { + this.applicationInsightsConnectionString = applicationInsightsConnectionString; + return this; + } + + /** + * Get the panEtag property: read only string representing last create or update. + * + * @return the panEtag value. + */ + public String panEtag() { + return this.panEtag; + } + + /** + * Set the panEtag property: read only string representing last create or update. + * + * @param panEtag the panEtag value to set. + * @return the MetricsObject object itself. + */ + public MetricsObject withPanEtag(String panEtag) { + this.panEtag = panEtag; + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("applicationInsightsResourceId", this.applicationInsightsResourceId); + jsonWriter.writeStringField("applicationInsightsConnectionString", this.applicationInsightsConnectionString); + jsonWriter.writeStringField("panEtag", this.panEtag); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MetricsObject from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MetricsObject if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the MetricsObject. + */ + public static MetricsObject fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MetricsObject deserializedMetricsObject = new MetricsObject(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("applicationInsightsResourceId".equals(fieldName)) { + deserializedMetricsObject.applicationInsightsResourceId = reader.getString(); + } else if ("applicationInsightsConnectionString".equals(fieldName)) { + deserializedMetricsObject.applicationInsightsConnectionString = reader.getString(); + } else if ("panEtag".equals(fieldName)) { + deserializedMetricsObject.panEtag = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedMetricsObject.provisioningState = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedMetricsObject; + }); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObjectFirewallResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObjectFirewallResourceInner.java new file mode 100644 index 000000000000..417545b858d7 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObjectFirewallResourceInner.java @@ -0,0 +1,224 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState; +import java.io.IOException; + +/** + * Firewall Metrics Object. + */ +@Fluent +public final class MetricsObjectFirewallResourceInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private MetricsObject innerProperties = new MetricsObject(); + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MetricsObjectFirewallResourceInner class. + */ + public MetricsObjectFirewallResourceInner() { + } + + /** + * Get the innerProperties property: The resource-specific properties for this resource. + * + * @return the innerProperties value. + */ + private MetricsObject innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Get the applicationInsightsResourceId property: Resource Id of application insights resource. + * + * @return the applicationInsightsResourceId value. + */ + public String applicationInsightsResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().applicationInsightsResourceId(); + } + + /** + * Set the applicationInsightsResourceId property: Resource Id of application insights resource. + * + * @param applicationInsightsResourceId the applicationInsightsResourceId value to set. + * @return the MetricsObjectFirewallResourceInner object itself. + */ + public MetricsObjectFirewallResourceInner withApplicationInsightsResourceId(String applicationInsightsResourceId) { + if (this.innerProperties() == null) { + this.innerProperties = new MetricsObject(); + } + this.innerProperties().withApplicationInsightsResourceId(applicationInsightsResourceId); + return this; + } + + /** + * Get the applicationInsightsConnectionString property: Connection string of application insights resource. + * + * @return the applicationInsightsConnectionString value. + */ + public String applicationInsightsConnectionString() { + return this.innerProperties() == null ? null : this.innerProperties().applicationInsightsConnectionString(); + } + + /** + * Set the applicationInsightsConnectionString property: Connection string of application insights resource. + * + * @param applicationInsightsConnectionString the applicationInsightsConnectionString value to set. + * @return the MetricsObjectFirewallResourceInner object itself. + */ + public MetricsObjectFirewallResourceInner + withApplicationInsightsConnectionString(String applicationInsightsConnectionString) { + if (this.innerProperties() == null) { + this.innerProperties = new MetricsObject(); + } + this.innerProperties().withApplicationInsightsConnectionString(applicationInsightsConnectionString); + return this; + } + + /** + * Get the panEtag property: read only string representing last create or update. + * + * @return the panEtag value. + */ + public String panEtag() { + return this.innerProperties() == null ? null : this.innerProperties().panEtag(); + } + + /** + * Set the panEtag property: read only string representing last create or update. + * + * @param panEtag the panEtag value to set. + * @return the MetricsObjectFirewallResourceInner object itself. + */ + public MetricsObjectFirewallResourceInner withPanEtag(String panEtag) { + if (this.innerProperties() == null) { + this.innerProperties = new MetricsObject(); + } + this.innerProperties().withPanEtag(panEtag); + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MetricsObjectFirewallResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MetricsObjectFirewallResourceInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the MetricsObjectFirewallResourceInner. + */ + public static MetricsObjectFirewallResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MetricsObjectFirewallResourceInner deserializedMetricsObjectFirewallResourceInner + = new MetricsObjectFirewallResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMetricsObjectFirewallResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMetricsObjectFirewallResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMetricsObjectFirewallResourceInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedMetricsObjectFirewallResourceInner.innerProperties = MetricsObject.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMetricsObjectFirewallResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMetricsObjectFirewallResourceInner; + }); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/OperationInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/OperationInner.java index ba6008d73f62..5e468d2cb956 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/OperationInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/OperationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +19,7 @@ * * Details of a REST API operation, returned from the Resource Provider Operations API. */ -@Fluent +@Immutable public final class OperationInner implements JsonSerializable { /* * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: @@ -28,8 +28,8 @@ public final class OperationInner implements JsonSerializable { private String name; /* - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for - * ARM/control-plane operations. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure + * Resource Manager/control-plane operations. */ private Boolean isDataAction; @@ -45,14 +45,14 @@ public final class OperationInner implements JsonSerializable { private Origin origin; /* - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ private ActionType actionType; /** * Creates an instance of OperationInner class. */ - public OperationInner() { + private OperationInner() { } /** @@ -67,7 +67,7 @@ public String name() { /** * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane - * operations and "false" for ARM/control-plane operations. + * operations and "false" for Azure Resource Manager/control-plane operations. * * @return the isDataAction value. */ @@ -84,17 +84,6 @@ public OperationDisplay display() { return this.display; } - /** - * Set the display property: Localized display information for this particular operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - /** * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and * audit logs UX. Default value is "user,system". @@ -106,8 +95,8 @@ public Origin origin() { } /** - * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal - * only APIs. + * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. * * @return the actionType value. */ @@ -115,17 +104,6 @@ public ActionType actionType() { return this.actionType; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (display() != null) { - display().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PostRulesResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PostRulesResourceInner.java index d5d1f2a3445d..054851431c52 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PostRulesResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PostRulesResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -539,23 +538,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model PostRulesResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PostRulesResourceInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PreRulesResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PreRulesResourceInner.java index ab4763c65cfa..17b5cc8ecfa4 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PreRulesResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PreRulesResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -539,23 +538,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model PreRulesResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PreRulesResourceInner.class); - /** * {@inheritDoc} */ 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 d27507f5e761..ebaaf6b69a4f 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 @@ -1,63 +1,50 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory; import java.io.IOException; import java.util.List; /** * predefined url categories response. */ -@Fluent +@Immutable public final class PredefinedUrlCategoriesResponseInner implements JsonSerializable { /* - * predefined url categories + * The PredefinedUrlCategory items on this page */ - private List value; + private List value; /* - * next link + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PredefinedUrlCategoriesResponseInner class. */ - public PredefinedUrlCategoriesResponseInner() { + private PredefinedUrlCategoriesResponseInner() { } /** - * Get the value property: predefined url categories. + * Get the value property: The PredefinedUrlCategory items on this page. * * @return the value value. */ - public List value() { + public List value() { return this.value; } /** - * Set the value property: predefined url categories. - * - * @param value the value value to set. - * @return the PredefinedUrlCategoriesResponseInner object itself. - */ - public PredefinedUrlCategoriesResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: next link. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: next link. - * - * @param nextLink the nextLink value to set. - * @return the PredefinedUrlCategoriesResponseInner object itself. - */ - public PredefinedUrlCategoriesResponseInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model PredefinedUrlCategoriesResponseInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PredefinedUrlCategoriesResponseInner.class); - /** * {@inheritDoc} */ @@ -122,8 +81,8 @@ public static PredefinedUrlCategoriesResponseInner fromJson(JsonReader jsonReade reader.nextToken(); if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> PredefinedUrlCategory.fromJson(reader1)); + List value + = reader.readArray(reader1 -> PredefinedUrlCategoryInner.fromJson(reader1)); deserializedPredefinedUrlCategoriesResponseInner.value = value; } else if ("nextLink".equals(fieldName)) { deserializedPredefinedUrlCategoriesResponseInner.nextLink = reader.getString(); 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 000000000000..54f59df206b4 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoryInner.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Predefined URL category object. + */ +@Immutable +public final class PredefinedUrlCategoryInner implements JsonSerializable { + /* + * The action property. + */ + private String action; + + /* + * The name property. + */ + private String name; + + /** + * Creates an instance of PredefinedUrlCategoryInner class. + */ + private PredefinedUrlCategoryInner() { + } + + /** + * Get the action property: The action property. + * + * @return the action value. + */ + public String action() { + return this.action; + } + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("action", this.action); + jsonWriter.writeStringField("name", this.name); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PredefinedUrlCategoryInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PredefinedUrlCategoryInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the PredefinedUrlCategoryInner. + */ + public static PredefinedUrlCategoryInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PredefinedUrlCategoryInner deserializedPredefinedUrlCategoryInner = new PredefinedUrlCategoryInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("action".equals(fieldName)) { + deserializedPredefinedUrlCategoryInner.action = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedPredefinedUrlCategoryInner.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPredefinedUrlCategoryInner; + }); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListGlobalRulestackResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListGlobalRulestackResourceInner.java index 6956ee9f2bdb..c21740906c08 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListGlobalRulestackResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListGlobalRulestackResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -200,23 +199,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model PrefixListGlobalRulestackResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrefixListGlobalRulestackResourceInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListResourceInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListResourceInner.java index f597b84b15c8..8800a4597bc7 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListResourceInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListResourceInner.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -200,23 +199,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property innerProperties in model PrefixListResourceInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrefixListResourceInner.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixObject.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixObject.java index d7d78b18b901..da4cfad2e431 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixObject.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixObject.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -139,20 +138,6 @@ public ProvisioningState provisioningState() { return this.provisioningState; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (prefixList() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property prefixList in model PrefixObject")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrefixObject.class); - /** * {@inheritDoc} */ 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 000000000000..a9d00aca6128 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberRequestStatusInner.java @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Create Product Serial Number Request status. + */ +@Immutable +public final class ProductSerialNumberRequestStatusInner + implements JsonSerializable { + /* + * allocation status of the product serial number + */ + private String status; + + /** + * Creates an instance of ProductSerialNumberRequestStatusInner class. + */ + private ProductSerialNumberRequestStatusInner() { + } + + /** + * Get the status property: allocation status of the product serial number. + * + * @return the status value. + */ + public String status() { + return this.status; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("status", this.status); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProductSerialNumberRequestStatusInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProductSerialNumberRequestStatusInner if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ProductSerialNumberRequestStatusInner. + */ + public static ProductSerialNumberRequestStatusInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProductSerialNumberRequestStatusInner deserializedProductSerialNumberRequestStatusInner + = new ProductSerialNumberRequestStatusInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("status".equals(fieldName)) { + deserializedProductSerialNumberRequestStatusInner.status = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedProductSerialNumberRequestStatusInner; + }); + } +} 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 000000000000..5f78c0f2f112 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberStatusInner.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues; +import java.io.IOException; + +/** + * Product serial and status for the service. + */ +@Immutable +public final class ProductSerialNumberStatusInner implements JsonSerializable { + /* + * product Serial associated with given resource + */ + private String serialNumber; + + /* + * allocation status of the product serial number + */ + private ProductSerialStatusValues status; + + /** + * Creates an instance of ProductSerialNumberStatusInner class. + */ + private ProductSerialNumberStatusInner() { + } + + /** + * Get the serialNumber property: product Serial associated with given resource. + * + * @return the serialNumber value. + */ + public String serialNumber() { + return this.serialNumber; + } + + /** + * Get the status property: allocation status of the product serial number. + * + * @return the status value. + */ + public ProductSerialStatusValues status() { + return this.status; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); + jsonWriter.writeStringField("serialNumber", this.serialNumber); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProductSerialNumberStatusInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProductSerialNumberStatusInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ProductSerialNumberStatusInner. + */ + public static ProductSerialNumberStatusInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProductSerialNumberStatusInner deserializedProductSerialNumberStatusInner + = new ProductSerialNumberStatusInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("status".equals(fieldName)) { + deserializedProductSerialNumberStatusInner.status + = ProductSerialStatusValues.fromString(reader.getString()); + } else if ("serialNumber".equals(fieldName)) { + deserializedProductSerialNumberStatusInner.serialNumber = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedProductSerialNumberStatusInner; + }); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RuleCounterInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RuleCounterInner.java index f89e626e7a68..3771ff525dda 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RuleCounterInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RuleCounterInner.java @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +18,7 @@ /** * Rule counter. */ -@Fluent +@Immutable public final class RuleCounterInner implements JsonSerializable { /* * priority number @@ -74,7 +73,7 @@ public final class RuleCounterInner implements JsonSerializable { /* * priority number @@ -44,7 +44,7 @@ public final class RuleCounterResetInner implements JsonSerializable e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(RuleEntry.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RulestackProperties.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RulestackProperties.java index 1708343c18f4..b8bad78d8c30 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RulestackProperties.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RulestackProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; @@ -241,17 +241,6 @@ public RulestackProperties withSecurityServices(SecurityServices securityService return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (securityServices() != null) { - securityServices().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SecurityServicesResponseInner.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SecurityServicesResponseInner.java index 7896109c8c5a..18ad7f4bc0ac 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SecurityServicesResponseInner.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SecurityServicesResponseInner.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +15,7 @@ /** * Security services list response. */ -@Fluent +@Immutable public final class SecurityServicesResponseInner implements JsonSerializable { /* * response value @@ -31,7 +30,7 @@ public final class SecurityServicesResponseInner implements JsonSerializable { /* * product SKU associated with given resource @@ -80,7 +80,7 @@ public final class SupportInfoInner implements JsonSerializable { + /* + * product SKU associated with given resource + */ + private String productSku; + + /* + * product Serial associated with given resource + */ + private String productSerial; + + /* + * account registered in Customer Support Portal + */ + private RegistrationStatus accountRegistrationStatus; + + /* + * Support account associated with given resource + */ + private String accountId; + + /* + * Product usage is in free trial period + */ + private EnableStatus freeTrial; + + /* + * Free trial days remaining + */ + private Integer freeTrialDaysLeft; + + /* + * Free trial credit remaining + */ + private Integer freeTrialCreditLeft; + + /* + * URL for paloaltonetworks live community + */ + private String helpUrl; + + /* + * URL for paloaltonetworks Customer Service Portal + */ + private String supportUrl; + + /* + * URL for registering product in paloaltonetworks Customer Service Portal + */ + private String registerUrl; + + /* + * URL for Strata Cloud Manager + */ + private String hubUrl; + + /* + * credits purchased, unit per hour + */ + private Integer credits; + + /* + * monthly credit is computed as credits * days in calendar month + */ + private Integer monthlyCreditLeft; + + /* + * date in format yyyy-mm-dd + */ + private String startDateForCredits; + + /* + * date in format yyyy-mm-dd + */ + private String endDateForCredits; + + /** + * Creates an instance of SupportInfoModelInner class. + */ + private SupportInfoModelInner() { + } + + /** + * Get the productSku property: product SKU associated with given resource. + * + * @return the productSku value. + */ + public String productSku() { + return this.productSku; + } + + /** + * Get the productSerial property: product Serial associated with given resource. + * + * @return the productSerial value. + */ + public String productSerial() { + return this.productSerial; + } + + /** + * Get the accountRegistrationStatus property: account registered in Customer Support Portal. + * + * @return the accountRegistrationStatus value. + */ + public RegistrationStatus accountRegistrationStatus() { + return this.accountRegistrationStatus; + } + + /** + * Get the accountId property: Support account associated with given resource. + * + * @return the accountId value. + */ + public String accountId() { + return this.accountId; + } + + /** + * Get the freeTrial property: Product usage is in free trial period. + * + * @return the freeTrial value. + */ + public EnableStatus freeTrial() { + return this.freeTrial; + } + + /** + * Get the freeTrialDaysLeft property: Free trial days remaining. + * + * @return the freeTrialDaysLeft value. + */ + public Integer freeTrialDaysLeft() { + return this.freeTrialDaysLeft; + } + + /** + * Get the freeTrialCreditLeft property: Free trial credit remaining. + * + * @return the freeTrialCreditLeft value. + */ + public Integer freeTrialCreditLeft() { + return this.freeTrialCreditLeft; + } + + /** + * Get the helpUrl property: URL for paloaltonetworks live community. + * + * @return the helpUrl value. + */ + public String helpUrl() { + return this.helpUrl; + } + + /** + * Get the supportUrl property: URL for paloaltonetworks Customer Service Portal. + * + * @return the supportUrl value. + */ + public String supportUrl() { + return this.supportUrl; + } + + /** + * Get the registerUrl property: URL for registering product in paloaltonetworks Customer Service Portal. + * + * @return the registerUrl value. + */ + public String registerUrl() { + return this.registerUrl; + } + + /** + * Get the hubUrl property: URL for Strata Cloud Manager. + * + * @return the hubUrl value. + */ + public String hubUrl() { + return this.hubUrl; + } + + /** + * Get the credits property: credits purchased, unit per hour. + * + * @return the credits value. + */ + public Integer credits() { + return this.credits; + } + + /** + * Get the monthlyCreditLeft property: monthly credit is computed as credits * days in calendar month. + * + * @return the monthlyCreditLeft value. + */ + public Integer monthlyCreditLeft() { + return this.monthlyCreditLeft; + } + + /** + * Get the startDateForCredits property: date in format yyyy-mm-dd. + * + * @return the startDateForCredits value. + */ + public String startDateForCredits() { + return this.startDateForCredits; + } + + /** + * Get the endDateForCredits property: date in format yyyy-mm-dd. + * + * @return the endDateForCredits value. + */ + public String endDateForCredits() { + return this.endDateForCredits; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("productSku", this.productSku); + jsonWriter.writeStringField("productSerial", this.productSerial); + jsonWriter.writeStringField("accountRegistrationStatus", + this.accountRegistrationStatus == null ? null : this.accountRegistrationStatus.toString()); + jsonWriter.writeStringField("accountId", this.accountId); + jsonWriter.writeStringField("freeTrial", this.freeTrial == null ? null : this.freeTrial.toString()); + jsonWriter.writeNumberField("freeTrialDaysLeft", this.freeTrialDaysLeft); + jsonWriter.writeNumberField("freeTrialCreditLeft", this.freeTrialCreditLeft); + jsonWriter.writeStringField("helpURL", this.helpUrl); + jsonWriter.writeStringField("supportURL", this.supportUrl); + jsonWriter.writeStringField("registerURL", this.registerUrl); + jsonWriter.writeStringField("hubUrl", this.hubUrl); + jsonWriter.writeNumberField("credits", this.credits); + jsonWriter.writeNumberField("monthlyCreditLeft", this.monthlyCreditLeft); + jsonWriter.writeStringField("startDateForCredits", this.startDateForCredits); + jsonWriter.writeStringField("endDateForCredits", this.endDateForCredits); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SupportInfoModelInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SupportInfoModelInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the SupportInfoModelInner. + */ + public static SupportInfoModelInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SupportInfoModelInner deserializedSupportInfoModelInner = new SupportInfoModelInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("productSku".equals(fieldName)) { + deserializedSupportInfoModelInner.productSku = reader.getString(); + } else if ("productSerial".equals(fieldName)) { + deserializedSupportInfoModelInner.productSerial = reader.getString(); + } else if ("accountRegistrationStatus".equals(fieldName)) { + deserializedSupportInfoModelInner.accountRegistrationStatus + = RegistrationStatus.fromString(reader.getString()); + } else if ("accountId".equals(fieldName)) { + deserializedSupportInfoModelInner.accountId = reader.getString(); + } else if ("freeTrial".equals(fieldName)) { + deserializedSupportInfoModelInner.freeTrial = EnableStatus.fromString(reader.getString()); + } else if ("freeTrialDaysLeft".equals(fieldName)) { + deserializedSupportInfoModelInner.freeTrialDaysLeft = reader.getNullable(JsonReader::getInt); + } else if ("freeTrialCreditLeft".equals(fieldName)) { + deserializedSupportInfoModelInner.freeTrialCreditLeft = reader.getNullable(JsonReader::getInt); + } else if ("helpURL".equals(fieldName)) { + deserializedSupportInfoModelInner.helpUrl = reader.getString(); + } else if ("supportURL".equals(fieldName)) { + deserializedSupportInfoModelInner.supportUrl = reader.getString(); + } else if ("registerURL".equals(fieldName)) { + deserializedSupportInfoModelInner.registerUrl = reader.getString(); + } else if ("hubUrl".equals(fieldName)) { + deserializedSupportInfoModelInner.hubUrl = reader.getString(); + } else if ("credits".equals(fieldName)) { + deserializedSupportInfoModelInner.credits = reader.getNullable(JsonReader::getInt); + } else if ("monthlyCreditLeft".equals(fieldName)) { + deserializedSupportInfoModelInner.monthlyCreditLeft = reader.getNullable(JsonReader::getInt); + } else if ("startDateForCredits".equals(fieldName)) { + deserializedSupportInfoModelInner.startDateForCredits = reader.getString(); + } else if ("endDateForCredits".equals(fieldName)) { + deserializedSupportInfoModelInner.endDateForCredits = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSupportInfoModelInner; + }); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/package-info.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/package-info.java index d0412e6fdef4..8ebebfd4de2e 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/package-info.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the inner data models for PaloAltoNetworksCloudngfw. - * null. + * Package containing the inner data models for PaloAltoNetworksNgfw. */ package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/package-info.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/package-info.java index ba88c445d9b9..e0289c1d9f37 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/package-info.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the service clients for PaloAltoNetworksCloudngfw. - * null. + * Package containing the service clients for PaloAltoNetworksNgfw. */ package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/AdvSecurityObjectListResponseImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/AdvSecurityObjectListResponseImpl.java index a27e0dca246b..da49593f2252 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/AdvSecurityObjectListResponseImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/AdvSecurityObjectListResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestackResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestackResourceImpl.java index b14a5b1b8a4a..5cc06ed4f4ec 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestackResourceImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestackResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksClientImpl.java index bcf743305552..a2d4311566df 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,13 +27,14 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectGlobalRulestackResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectGlobalRulestackResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -50,194 +51,107 @@ public final class CertificateObjectGlobalRulestacksClientImpl implements Certif /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of CertificateObjectGlobalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - CertificateObjectGlobalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + CertificateObjectGlobalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(CertificateObjectGlobalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwCertificateObjectGlobalRulestacks to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientCertificateObjectGlobalRulestacks + * to be used by the proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientCertificateObjectGlobalRulestacks") public interface CertificateObjectGlobalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("name") String name, - @BodyParam("application/json") CertificateObjectGlobalRulestackResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") CertificateObjectGlobalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) + @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") CertificateObjectGlobalRulestackResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("name") String name, Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation along with - * {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listSinglePageAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, 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())); - } - - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectGlobalRulestackResource list operation along with - * {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listSinglePageAsync(String globalRulestackName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName) { - return new PagedIterable<>(listAsync(globalRulestackName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName, - Context context) { - return new PagedIterable<>(listAsync(globalRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -254,17 +168,6 @@ public PagedIterable list(String @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String globalRulestackName, String name) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -272,38 +175,6 @@ public PagedIterable list(String .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a CertificateObjectGlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param name certificate name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a CertificateObjectGlobalRulestackResource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getWithResponseAsync(String globalRulestackName, String name, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, accept, - context); - } - /** * Get a CertificateObjectGlobalRulestackResource. * @@ -333,7 +204,9 @@ private Mono getAsync(String glob @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String globalRulestackName, String name, Context context) { - return getWithResponseAsync(globalRulestackName, name, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + accept, context); } /** @@ -365,26 +238,11 @@ public CertificateObjectGlobalRulestackResourceInner get(String globalRulestackN @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String name, CertificateObjectGlobalRulestackResourceInner resource) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, name, resource, accept, context)) + globalRulestackName, name, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -394,35 +252,18 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return globalRulestack Certificate Object along with {@link Response} on successful completion of {@link Mono}. + * @return globalRulestack Certificate Object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String name, - CertificateObjectGlobalRulestackResourceInner resource, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String globalRulestackName, String name, + CertificateObjectGlobalRulestackResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, - resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + name, contentType, accept, resource, Context.NONE); } /** @@ -431,21 +272,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of globalRulestack Certificate Object. + * @return globalRulestack Certificate Object along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private - PollerFlux, CertificateObjectGlobalRulestackResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, String name, - CertificateObjectGlobalRulestackResourceInner resource) { - Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, name, resource); - return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), CertificateObjectGlobalRulestackResourceInner.class, - CertificateObjectGlobalRulestackResourceInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String globalRulestackName, String name, + CertificateObjectGlobalRulestackResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + name, contentType, accept, resource, context); } /** @@ -454,7 +293,6 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -464,14 +302,12 @@ private Mono>> createOrUpdateWithResponseAsync(String private PollerFlux, CertificateObjectGlobalRulestackResourceInner> beginCreateOrUpdateAsync(String globalRulestackName, String name, - CertificateObjectGlobalRulestackResourceInner resource, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(globalRulestackName, name, resource, context); + CertificateObjectGlobalRulestackResourceInner resource) { + Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, name, resource); return this.client .getLroResult( mono, this.client.getHttpPipeline(), CertificateObjectGlobalRulestackResourceInner.class, - CertificateObjectGlobalRulestackResourceInner.class, context); + CertificateObjectGlobalRulestackResourceInner.class, this.client.getContext()); } /** @@ -490,7 +326,11 @@ private Mono>> createOrUpdateWithResponseAsync(String SyncPoller, CertificateObjectGlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, String name, CertificateObjectGlobalRulestackResourceInner resource) { - return this.beginCreateOrUpdateAsync(globalRulestackName, name, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, name, resource); + return this.client + .getLroResult( + response, CertificateObjectGlobalRulestackResourceInner.class, + CertificateObjectGlobalRulestackResourceInner.class, Context.NONE); } /** @@ -510,7 +350,11 @@ private Mono>> createOrUpdateWithResponseAsync(String SyncPoller, CertificateObjectGlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, String name, CertificateObjectGlobalRulestackResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(globalRulestackName, name, resource, context).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, name, resource, context); + return this.client + .getLroResult( + response, CertificateObjectGlobalRulestackResourceInner.class, + CertificateObjectGlobalRulestackResourceInner.class, context); } /** @@ -531,25 +375,6 @@ private Mono createOrUpdateAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a CertificateObjectGlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param name certificate name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return globalRulestack Certificate Object on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String globalRulestackName, - String name, CertificateObjectGlobalRulestackResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(globalRulestackName, name, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a CertificateObjectGlobalRulestackResource. * @@ -564,7 +389,7 @@ private Mono createOrUpdateAsync( @ServiceMethod(returns = ReturnType.SINGLE) public CertificateObjectGlobalRulestackResourceInner createOrUpdate(String globalRulestackName, String name, CertificateObjectGlobalRulestackResourceInner resource) { - return createOrUpdateAsync(globalRulestackName, name, resource).block(); + return beginCreateOrUpdate(globalRulestackName, name, resource).getFinalResult(); } /** @@ -582,7 +407,7 @@ public CertificateObjectGlobalRulestackResourceInner createOrUpdate(String globa @ServiceMethod(returns = ReturnType.SINGLE) public CertificateObjectGlobalRulestackResourceInner createOrUpdate(String globalRulestackName, String name, CertificateObjectGlobalRulestackResourceInner resource, Context context) { - return createOrUpdateAsync(globalRulestackName, name, resource, context).block(); + return beginCreateOrUpdate(globalRulestackName, name, resource, context).getFinalResult(); } /** @@ -597,21 +422,9 @@ public CertificateObjectGlobalRulestackResourceInner createOrUpdate(String globa */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String globalRulestackName, String name) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, name, accept, context)) + globalRulestackName, name, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -620,30 +433,15 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String globalRulestackName, String name, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, accept, - context); + private Response deleteWithResponse(String globalRulestackName, String name) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + Context.NONE); } /** @@ -651,16 +449,16 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name) { - Mono>> mono = deleteWithResponseAsync(globalRulestackName, name); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String globalRulestackName, String name, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + context); } /** @@ -668,19 +466,16 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta * * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(globalRulestackName, name, context); + private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name) { + Mono>> mono = deleteWithResponseAsync(globalRulestackName, name); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -695,7 +490,8 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String name) { - return this.beginDeleteAsync(globalRulestackName, name).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, name); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -711,7 +507,8 @@ public SyncPoller, Void> beginDelete(String globalRulestackName */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String name, Context context) { - return this.beginDeleteAsync(globalRulestackName, name, context).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, name, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -734,16 +531,13 @@ private Mono deleteAsync(String globalRulestackName, String name) { * * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String globalRulestackName, String name, Context context) { - return beginDeleteAsync(globalRulestackName, name, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String globalRulestackName, String name) { + beginDelete(globalRulestackName, name).getFinalResult(); } /** @@ -751,28 +545,126 @@ private Mono deleteAsync(String globalRulestackName, String name, Context * * @param globalRulestackName GlobalRulestack resource name. * @param name certificate name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String name) { - deleteAsync(globalRulestackName, name).block(); + public void delete(String globalRulestackName, String name, Context context) { + beginDelete(globalRulestackName, name, context).getFinalResult(); } /** - * Delete a CertificateObjectGlobalRulestackResource. + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listSinglePageAsync(String globalRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, 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())); + } + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String globalRulestackName) { + return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation along with + * {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String globalRulestackName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. * * @param globalRulestackName GlobalRulestack resource name. - * @param name certificate name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectGlobalRulestackResource list operation along with + * {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String name, Context context) { - deleteAsync(globalRulestackName, name, context).block(); + private PagedResponse listSinglePage(String globalRulestackName, + Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName), nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -788,13 +680,6 @@ public void delete(String globalRulestackName, String name, Context context) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map( @@ -803,6 +688,25 @@ public void delete(String globalRulestackName, String name, Context context) { .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectGlobalRulestackResource list operation along with + * {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -812,22 +716,15 @@ public void delete(String globalRulestackName, String name, Context context) { * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a CertificateObjectGlobalRulestackResource list operation along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, + private PagedResponse listNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/CertificateObjectGlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksImpl.java index d4cedb10e531..0438a9cf9674 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,20 +27,6 @@ public CertificateObjectGlobalRulestacksImpl(CertificateObjectGlobalRulestacksCl this.serviceManager = serviceManager; } - public PagedIterable list(String globalRulestackName) { - PagedIterable inner - = this.serviceClient().list(globalRulestackName); - 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 ResourceManagerUtils.mapPage(inner, - inner1 -> new CertificateObjectGlobalRulestackResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String globalRulestackName, String name, Context context) { Response inner @@ -92,6 +78,20 @@ public void delete(String globalRulestackName, String name, Context context) { this.serviceClient().delete(globalRulestackName, name, context); } + public PagedIterable list(String globalRulestackName) { + PagedIterable inner + = this.serviceClient().list(globalRulestackName); + 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 ResourceManagerUtils.mapPage(inner, + inner1 -> new CertificateObjectGlobalRulestackResourceImpl(inner1, this.manager())); + } + private CertificateObjectGlobalRulestacksClient serviceClient() { return this.innerClient; } 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 2ea2b6cd0ca0..8c9fcad50d2d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksClientImpl.java index 8ff54d3cac11..0c1e4798d884 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,13 +27,14 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectLocalRulestackResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CertificateObjectLocalRulestackResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectLocalRulestackResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -50,229 +51,123 @@ public final class CertificateObjectLocalRulestacksClientImpl implements Certifi /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of CertificateObjectLocalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - CertificateObjectLocalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + CertificateObjectLocalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(CertificateObjectLocalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwCertificateObjectLocalRulestacks to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientCertificateObjectLocalRulestacks + * to be used by the proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientCertificateObjectLocalRulestacks") public interface CertificateObjectLocalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByLocalRulestacks( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, - @BodyParam("application/json") CertificateObjectLocalRulestackResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") CertificateObjectLocalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") CertificateObjectLocalRulestackResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByLocalRulestacks( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByLocalRulestacksNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a CertificateObjectLocalRulestackResource list operation along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByLocalRulestacksSinglePageAsync(String resourceGroupName, String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); - } - - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectLocalRulestackResource list operation along with {@link PagedResponse} - * on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByLocalRulestacksSinglePageAsync(String resourceGroupName, String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName) { - return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); - } - - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedFlux<>( - () -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName, context), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink, context)); - } - - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName)); - } - - /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -290,25 +185,6 @@ public PagedIterable listByLocalRu @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String localRulestackName, String name) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -316,47 +192,6 @@ private Mono> getWithResp .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a CertificateObjectLocalRulestackResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param name certificate name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a CertificateObjectLocalRulestackResource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, name, accept, context); - } - /** * Get a CertificateObjectLocalRulestackResource. * @@ -390,7 +225,9 @@ private Mono getAsync(String resou @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String localRulestackName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, localRulestackName, name, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, localRulestackName, name, accept, context); } /** @@ -425,35 +262,12 @@ public CertificateObjectLocalRulestackResourceInner get(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String localRulestackName, String name, CertificateObjectLocalRulestackResourceInner resource) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, resource, accept, - context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, + resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -464,44 +278,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name certificate name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack Certificate Object along with {@link Response} on successful completion of {@link Mono}. + * @return localRulestack Certificate Object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, CertificateObjectLocalRulestackResourceInner resource, - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String name, CertificateObjectLocalRulestackResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, resource, + Context.NONE); } /** @@ -511,22 +300,20 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name certificate name. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of localRulestack Certificate Object. + * @return localRulestack Certificate Object along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private - PollerFlux, CertificateObjectLocalRulestackResourceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String localRulestackName, String name, - CertificateObjectLocalRulestackResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource); - return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), CertificateObjectLocalRulestackResourceInner.class, - CertificateObjectLocalRulestackResourceInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String name, CertificateObjectLocalRulestackResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, resource, + context); } /** @@ -536,7 +323,6 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name certificate name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -546,14 +332,13 @@ private Mono>> createOrUpdateWithResponseAsync(String private PollerFlux, CertificateObjectLocalRulestackResourceInner> beginCreateOrUpdateAsync(String resourceGroupName, String localRulestackName, String name, - CertificateObjectLocalRulestackResourceInner resource, Context context) { - context = this.client.mergeContext(context); + CertificateObjectLocalRulestackResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource, context); + = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource); return this.client .getLroResult( mono, this.client.getHttpPipeline(), CertificateObjectLocalRulestackResourceInner.class, - CertificateObjectLocalRulestackResourceInner.class, context); + CertificateObjectLocalRulestackResourceInner.class, this.client.getContext()); } /** @@ -573,7 +358,12 @@ private Mono>> createOrUpdateWithResponseAsync(String SyncPoller, CertificateObjectLocalRulestackResourceInner> beginCreateOrUpdate(String resourceGroupName, String localRulestackName, String name, CertificateObjectLocalRulestackResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource).getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, name, resource); + return this.client + .getLroResult( + response, CertificateObjectLocalRulestackResourceInner.class, + CertificateObjectLocalRulestackResourceInner.class, Context.NONE); } /** @@ -594,8 +384,12 @@ private Mono>> createOrUpdateWithResponseAsync(String SyncPoller, CertificateObjectLocalRulestackResourceInner> beginCreateOrUpdate(String resourceGroupName, String localRulestackName, String name, CertificateObjectLocalRulestackResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context) - .getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, name, resource, context); + return this.client + .getLroResult( + response, CertificateObjectLocalRulestackResourceInner.class, + CertificateObjectLocalRulestackResourceInner.class, context); } /** @@ -617,27 +411,6 @@ private Mono createOrUpdateAsync(S .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a CertificateObjectLocalRulestackResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param name certificate name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack Certificate Object on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, - String localRulestackName, String name, CertificateObjectLocalRulestackResourceInner resource, - Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a CertificateObjectLocalRulestackResource. * @@ -653,7 +426,7 @@ private Mono createOrUpdateAsync(S @ServiceMethod(returns = ReturnType.SINGLE) public CertificateObjectLocalRulestackResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String name, CertificateObjectLocalRulestackResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, name, resource).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource).getFinalResult(); } /** @@ -673,7 +446,7 @@ public CertificateObjectLocalRulestackResourceInner createOrUpdate(String resour public CertificateObjectLocalRulestackResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String name, CertificateObjectLocalRulestackResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, context).getFinalResult(); } /** @@ -690,29 +463,9 @@ public CertificateObjectLocalRulestackResourceInner createOrUpdate(String resour @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String localRulestackName, String name) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -722,38 +475,15 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name certificate name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, name, accept, context); + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, String name) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, Context.NONE); } /** @@ -762,17 +492,17 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name certificate name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String name) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, localRulestackName, name); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, String name, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, context); } /** @@ -781,7 +511,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name certificate name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -789,12 +518,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String name, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, localRulestackName, name, context); + String name) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, localRulestackName, name); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -811,7 +538,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String name) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, name).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, name); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -829,7 +557,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String name, Context context) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, name, context).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, name, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -855,16 +584,13 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name certificate name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String localRulestackName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, localRulestackName, name, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String resourceGroupName, String localRulestackName, String name) { + beginDelete(resourceGroupName, localRulestackName, name).getFinalResult(); } /** @@ -873,29 +599,140 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name certificate name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String name) { - deleteAsync(resourceGroupName, localRulestackName, name).block(); + public void delete(String resourceGroupName, String localRulestackName, String name, Context context) { + beginDelete(resourceGroupName, localRulestackName, name, context).getFinalResult(); } /** - * Delete a CertificateObjectLocalRulestackResource. + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a CertificateObjectLocalRulestackResource list operation along with {@link PagedResponse} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByLocalRulestacksSinglePageAsync(String resourceGroupName, String localRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); + } + + /** + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a CertificateObjectLocalRulestackResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, + String localRulestackName) { + return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); + } + + /** + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a CertificateObjectLocalRulestackResource list operation along with + * {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse + listByLocalRulestacksSinglePage(String resourceGroupName, String localRulestackName) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name certificate name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectLocalRulestackResource list operation along with + * {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String name, Context context) { - deleteAsync(resourceGroupName, localRulestackName, name, context).block(); + private PagedResponse + listByLocalRulestacksSinglePage(String resourceGroupName, String localRulestackName, Context context) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a CertificateObjectLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + return new PagedIterable<>(() -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink)); + } + + /** + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context) { + return new PagedIterable<>( + () -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName, context), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink, context)); } /** @@ -911,13 +748,6 @@ public void delete(String resourceGroupName, String localRulestackName, String n @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByLocalRulestacksNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -928,6 +758,26 @@ public void delete(String resourceGroupName, String localRulestackName, String n .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectLocalRulestackResource list operation along with + * {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse + listByLocalRulestacksNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -936,23 +786,16 @@ public void delete(String resourceGroupName, String localRulestackName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectLocalRulestackResource list operation along with {@link PagedResponse} - * on successful completion of {@link Mono}. + * @return the response of a CertificateObjectLocalRulestackResource list operation along with + * {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByLocalRulestacksNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse + listByLocalRulestacksNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByLocalRulestacksNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/CertificateObjectLocalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksImpl.java index f7b74f297957..65ba35af7c9b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,22 +27,6 @@ public CertificateObjectLocalRulestacksImpl(CertificateObjectLocalRulestacksClie this.serviceManager = serviceManager; } - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - PagedIterable inner - = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); - 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 ResourceManagerUtils.mapPage(inner, - inner1 -> new CertificateObjectLocalRulestackResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String localRulestackName, String name, Context context) { Response inner @@ -74,6 +58,22 @@ public void delete(String resourceGroupName, String localRulestackName, String n this.serviceClient().delete(resourceGroupName, localRulestackName, name, context); } + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + PagedIterable inner + = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); + 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 ResourceManagerUtils.mapPage(inner, + inner1 -> new CertificateObjectLocalRulestackResourceImpl(inner1, this.manager())); + } + public CertificateObjectLocalRulestackResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ChangelogImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ChangelogImpl.java index 8f15fdd22f25..d1fd0ffb0b73 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ChangelogImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ChangelogImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CloudManagerTenantListImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CloudManagerTenantListImpl.java new file mode 100644 index 000000000000..f06cd5d3cafc --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CloudManagerTenantListImpl.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; + +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CloudManagerTenantList; +import java.util.Collections; +import java.util.List; + +public final class CloudManagerTenantListImpl implements CloudManagerTenantList { + private CloudManagerTenantListInner innerObject; + + private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager; + + CloudManagerTenantListImpl(CloudManagerTenantListInner innerObject, + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public List value() { + List inner = this.innerModel().value(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public CloudManagerTenantListInner 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 8a87a7deff2d..6191e78498c0 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 @@ -1,14 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 000000000000..5bbf9bc31450 --- /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) TypeSpec 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 f3aaf801cd00..9dba9467396c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -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(); } @@ -304,11 +313,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; @@ -325,6 +344,6 @@ public FirewallResourceImpl withProperties(FirewallResourceUpdateProperties prop } private boolean isInCreateMode() { - return this.innerModel().id() == null; + return this.innerModel() == null || this.innerModel().id() == null; } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusClientImpl.java index 888e7a267fb4..b6467a50f655 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallStatusResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FirewallStatusResourceListResult; import reactor.core.publisher.Mono; /** @@ -42,31 +42,31 @@ public final class FirewallStatusClientImpl implements FirewallStatusClient { /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of FirewallStatusClientImpl. * * @param client the instance of the service client containing this operation class. */ - FirewallStatusClientImpl(PaloAltoNetworksCloudngfwImpl client) { + FirewallStatusClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(FirewallStatusService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwFirewallStatus to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientFirewallStatus to be used by the + * proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientFirewallStatus") public interface FirewallStatusService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/statuses") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/statuses/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByFirewalls(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -75,7 +75,25 @@ Mono> listByFirewalls(@HostParam("$ho @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/statuses/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/statuses") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByFirewalls(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/statuses") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByFirewallsSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -85,119 +103,85 @@ Mono> get(@HostParam("$host") String endpo @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByFirewallsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByFirewallsNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall 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 of a FirewallStatusResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a FirewallStatusResource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFirewallsSinglePageAsync(String resourceGroupName, + private Mono> getWithResponseAsync(String resourceGroupName, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, firewallName, 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())); } /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a FirewallStatusResource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFirewallsSinglePageAsync(String resourceGroupName, - String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, firewallName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + private Mono getAsync(String resourceGroupName, String firewallName) { + return getWithResponseAsync(resourceGroupName, firewallName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedFlux}. + * @return a FirewallStatusResource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFirewallsAsync(String resourceGroupName, String firewallName) { - return new PagedFlux<>(() -> listByFirewallsSinglePageAsync(resourceGroupName, firewallName), - nextLink -> listByFirewallsNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String firewallName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, firewallName, accept, context); } /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedFlux}. + * @return a FirewallStatusResource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFirewallsAsync(String resourceGroupName, String firewallName, - Context context) { - return new PagedFlux<>(() -> listByFirewallsSinglePageAsync(resourceGroupName, firewallName, context), - nextLink -> listByFirewallsNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public FirewallStatusResourceInner get(String resourceGroupName, String firewallName) { + return getWithResponse(resourceGroupName, firewallName, Context.NONE).getValue(); } /** @@ -208,11 +192,19 @@ private PagedFlux listByFirewallsAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFirewalls(String resourceGroupName, String firewallName) { - return new PagedIterable<>(listByFirewallsAsync(resourceGroupName, firewallName)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFirewallsSinglePageAsync(String resourceGroupName, + String firewallName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, 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())); } /** @@ -220,55 +212,40 @@ public PagedIterable listByFirewalls(String resourc * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByFirewalls(String resourceGroupName, String firewallName, - Context context) { - return new PagedIterable<>(listByFirewallsAsync(resourceGroupName, firewallName, context)); + private PagedFlux listByFirewallsAsync(String resourceGroupName, String firewallName) { + return new PagedFlux<>(() -> listByFirewallsSinglePageAsync(resourceGroupName, firewallName), + nextLink -> listByFirewallsNextSinglePageAsync(nextLink)); } /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall 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 a FirewallStatusResource along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, + private PagedResponse listByFirewallsSinglePage(String resourceGroupName, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res + = service.listByFirewallsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. @@ -276,49 +253,37 @@ private Mono> getWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallStatusResource along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, + private PagedResponse listByFirewallsSinglePage(String resourceGroupName, String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, firewallName, accept, context); + Response res + = service.listByFirewallsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall 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 a FirewallStatusResource on successful completion of {@link Mono}. + * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String firewallName) { - return getWithResponseAsync(resourceGroupName, firewallName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByFirewalls(String resourceGroupName, String firewallName) { + return new PagedIterable<>(() -> listByFirewallsSinglePage(resourceGroupName, firewallName), + nextLink -> listByFirewallsNextSinglePage(nextLink)); } /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. @@ -326,27 +291,33 @@ private Mono getAsync(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallStatusResource along with {@link Response}. + * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String firewallName, + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByFirewalls(String resourceGroupName, String firewallName, Context context) { - return getWithResponseAsync(resourceGroupName, firewallName, context).block(); + return new PagedIterable<>(() -> listByFirewallsSinglePage(resourceGroupName, firewallName, context), + nextLink -> listByFirewallsNextSinglePage(nextLink, context)); } /** - * Get a FirewallStatusResource. + * Get the next page of items. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallStatusResource. + * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallStatusResourceInner get(String resourceGroupName, String firewallName) { - return getWithResponse(resourceGroupName, firewallName, Context.NONE).getValue(); + private Mono> listByFirewallsNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByFirewallsNext(nextLink, this.client.getEndpoint(), 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())); } /** @@ -356,24 +327,15 @@ public FirewallStatusResourceInner get(String resourceGroupName, String firewall * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFirewallsNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listByFirewallsNextSinglePage(String nextLink) { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByFirewallsNext(nextLink, this.client.getEndpoint(), 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())); + Response res + = service.listByFirewallsNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -384,23 +346,14 @@ private Mono> listByFirewallsNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallStatusResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByFirewallsNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listByFirewallsNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByFirewallsNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByFirewallsNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/FirewallStatusImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusImpl.java index 7fe683d900d1..e41f34362bf8 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,19 +27,6 @@ public FirewallStatusImpl(FirewallStatusClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByFirewalls(String resourceGroupName, String firewallName) { - PagedIterable inner - = this.serviceClient().listByFirewalls(resourceGroupName, firewallName); - 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 ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallStatusResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String firewallName, Context context) { Response inner @@ -61,6 +48,19 @@ public FirewallStatusResource get(String resourceGroupName, String firewallName) } } + public PagedIterable listByFirewalls(String resourceGroupName, String firewallName) { + PagedIterable inner + = this.serviceClient().listByFirewalls(resourceGroupName, firewallName); + 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 ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallStatusResourceImpl(inner1, this.manager())); + } + private FirewallStatusClient serviceClient() { return this.innerClient; } 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 28cbcca09b7e..65946ffbee7a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -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/FirewallsClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsClientImpl.java index 36acf61016e1..4384bc1726dd 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -29,6 +29,7 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; @@ -38,7 +39,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.GlobalRulestackInfoInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LogSettingsInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FirewallResourceListResult; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallResourceUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -56,77 +57,137 @@ public final class FirewallsClientImpl implements FirewallsClient { /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of FirewallsClientImpl. * * @param client the instance of the service client containing this operation class. */ - FirewallsClientImpl(PaloAltoNetworksCloudngfwImpl client) { + FirewallsClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(FirewallsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwFirewalls to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientFirewalls to be used by the proxy + * service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientFirewalls") public interface FirewallsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/firewalls") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FirewallResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, - @BodyParam("application/json") FirewallResourceInner resource, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FirewallResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FirewallResourceUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FirewallResourceUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, - @BodyParam("application/json") FirewallResourceUpdate properties, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/firewalls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/firewalls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/getGlobalRulestack") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getGlobalRulestack(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -135,7 +196,16 @@ Mono>> delete(@HostParam("$host") String endpoint, @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/getGlobalRulestack") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getGlobalRulestack(@HostParam("$host") String endpoint, + Response getGlobalRulestackSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/getLogProfile") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getLogProfile(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -144,7 +214,7 @@ Mono> getGlobalRulestack(@HostParam("$host") @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/getLogProfile") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getLogProfile(@HostParam("$host") String endpoint, + Response getLogProfileSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -153,958 +223,738 @@ Mono> getLogProfile(@HostParam("$host") String endpoi @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/getSupportInfo") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getSupportInfo(@HostParam("$host") String endpoint, + Mono> getSupportInfo(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, @QueryParam("email") String email, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/getSupportInfo") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSupportInfoSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @QueryParam("email") String email, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/saveLogProfile") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> saveLogProfile(@HostParam("$host") String endpoint, + Mono> saveLogProfile(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, - @BodyParam("application/json") LogSettingsInner logSettings, @HeaderParam("Accept") String accept, - Context context); + @BodyParam("application/json") LogSettingsInner logSettings, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/saveLogProfile") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response saveLogProfileSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @BodyParam("application/json") LogSettingsInner logSettings, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * List FirewallResource resources by subscription ID. + * Get a FirewallResource. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a FirewallResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a FirewallResource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - 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.")); - } + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String firewallName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List FirewallResource resources by subscription ID. + * Get a FirewallResource. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a FirewallResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a FirewallResource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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 - .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, - context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List FirewallResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + private Mono getByResourceGroupAsync(String resourceGroupName, String firewallName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, firewallName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List FirewallResource resources by subscription ID. + * Get a FirewallResource. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); - } - - /** - * List FirewallResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallResource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, String firewallName, + Context context) { + final String accept = "application/json"; + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); } /** - * List FirewallResource resources by subscription ID. + * Get a FirewallResource. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a FirewallResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallResource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public FirewallResourceInner getByResourceGroup(String resourceGroupName, String firewallName) { + return getByResourceGroupWithResponse(resourceGroupName, firewallName, Context.NONE).getValue(); } /** - * List FirewallResource resources by resource group. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paloAltoNetworks Firewall along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String firewallName, FirewallResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List FirewallResource resources by resource group. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paloAltoNetworks Firewall along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String firewallName, + FirewallResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, resource, + Context.NONE); } /** - * List FirewallResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * List FirewallResource resources by resource group. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } - - /** - * List FirewallResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + * @return paloAltoNetworks Firewall along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String firewallName, + FirewallResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, resource, context); } /** - * List FirewallResource resources by resource group. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of paloAltoNetworks Firewall. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, FirewallResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String firewallName, FirewallResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, firewallName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), FirewallResourceInner.class, FirewallResourceInner.class, + this.client.getContext()); } /** - * Get a FirewallResource. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallResource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of paloAltoNetworks Firewall. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FirewallResourceInner> + beginCreateOrUpdate(String resourceGroupName, String firewallName, FirewallResourceInner resource) { + Response response = createOrUpdateWithResponse(resourceGroupName, firewallName, resource); + return this.client.getLroResult(response, + FirewallResourceInner.class, FirewallResourceInner.class, Context.NONE); } /** - * Get a FirewallResource. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallResource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of paloAltoNetworks Firewall. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FirewallResourceInner> beginCreateOrUpdate( + String resourceGroupName, String firewallName, FirewallResourceInner resource, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, firewallName, resource, context); + return this.client.getLroResult(response, + FirewallResourceInner.class, FirewallResourceInner.class, context); } /** - * Get a FirewallResource. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallResource on successful completion of {@link Mono}. + * @return paloAltoNetworks Firewall on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String firewallName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, firewallName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String firewallName, + FirewallResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, firewallName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Get a FirewallResource. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallResource along with {@link Response}. + * @return paloAltoNetworks Firewall. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String firewallName, - Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, firewallName, context).block(); + public FirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, + FirewallResourceInner resource) { + return beginCreateOrUpdate(resourceGroupName, firewallName, resource).getFinalResult(); } /** - * Get a FirewallResource. + * Create a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallResource. + * @return paloAltoNetworks Firewall. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallResourceInner getByResourceGroup(String resourceGroupName, String firewallName) { - return getByResourceGroupWithResponse(resourceGroupName, firewallName, Context.NONE).getValue(); + public FirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, + FirewallResourceInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, firewallName, resource, context).getFinalResult(); } /** - * Create a FirewallResource. + * Update a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. + * @param properties The resource properties to be updated. * @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 paloAltoNetworks Firewall along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String firewallName, FirewallResourceInner resource) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Mono> updateWithResponseAsync(String resourceGroupName, String firewallName, + FirewallResourceUpdate properties) { + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, resource, accept, context)) + return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, properties, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a FirewallResource. + * Update a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. + * @param properties The resource properties to be updated. * @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 paloAltoNetworks Firewall along with {@link Response} on successful completion of {@link Mono}. + * @return paloAltoNetworks Firewall on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String firewallName, FirewallResourceInner resource, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, resource, accept, context); + private Mono updateAsync(String resourceGroupName, String firewallName, + FirewallResourceUpdate properties) { + return updateWithResponseAsync(resourceGroupName, firewallName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create a FirewallResource. + * Update a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of paloAltoNetworks Firewall. + * @return paloAltoNetworks Firewall along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FirewallResourceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String firewallName, FirewallResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, firewallName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), FirewallResourceInner.class, FirewallResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, String firewallName, + FirewallResourceUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, properties, context); } /** - * Create a FirewallResource. + * Update a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of paloAltoNetworks Firewall. + * @return paloAltoNetworks Firewall. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FirewallResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String firewallName, FirewallResourceInner resource, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, firewallName, resource, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), FirewallResourceInner.class, FirewallResourceInner.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + public FirewallResourceInner update(String resourceGroupName, String firewallName, + FirewallResourceUpdate properties) { + return updateWithResponse(resourceGroupName, firewallName, properties, Context.NONE).getValue(); } /** - * Create a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of paloAltoNetworks Firewall. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FirewallResourceInner> - beginCreateOrUpdate(String resourceGroupName, String firewallName, FirewallResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, firewallName, resource).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of paloAltoNetworks Firewall. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FirewallResourceInner> beginCreateOrUpdate( - String resourceGroupName, String firewallName, FirewallResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, firewallName, resource, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String firewallName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, Context.NONE); } /** - * Create a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks Firewall on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String firewallName, - FirewallResourceInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, firewallName, resource).last() - .flatMap(this.client::getLroFinalResultOrError); + private Response deleteWithResponse(String resourceGroupName, String firewallName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, context); } /** - * Create a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks Firewall on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String firewallName, - FirewallResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, firewallName, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Create a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks Firewall. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, - FirewallResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, firewallName, resource).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName) { + Response response = deleteWithResponse(resourceGroupName, firewallName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** - * Create a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks Firewall. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, - FirewallResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, firewallName, resource, context).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, firewallName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** - * Update a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param properties The resource properties to be updated. * @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 paloAltoNetworks Firewall along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, String firewallName, - FirewallResourceUpdate properties) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, properties, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + private Mono deleteAsync(String resourceGroupName, String firewallName) { + return beginDeleteAsync(resourceGroupName, firewallName).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param properties The resource properties to be updated. - * @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 paloAltoNetworks Firewall along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, String firewallName, - FirewallResourceUpdate properties, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, firewallName, properties, accept, context); + public void delete(String resourceGroupName, String firewallName) { + beginDelete(resourceGroupName, firewallName).getFinalResult(); } /** - * Update a FirewallResource. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param properties The resource properties to be updated. + * @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 paloAltoNetworks Firewall on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String firewallName, - FirewallResourceUpdate properties) { - return updateWithResponseAsync(resourceGroupName, firewallName, properties) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public void delete(String resourceGroupName, String firewallName, Context context) { + beginDelete(resourceGroupName, firewallName, context).getFinalResult(); } /** - * Update a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param properties The resource properties to be updated. - * @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 paloAltoNetworks Firewall along with {@link Response}. + * @return the response of a FirewallResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, String firewallName, - FirewallResourceUpdate properties, Context context) { - return updateWithResponseAsync(resourceGroupName, firewallName, properties, context).block(); + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, 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())); } /** - * Update a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param properties The resource properties to be updated. * @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 paloAltoNetworks Firewall. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallResourceInner update(String resourceGroupName, String firewallName, - FirewallResourceUpdate properties) { - return updateWithResponse(resourceGroupName, firewallName, properties, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Delete a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall 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 {@link Response} on successful completion of {@link Mono}. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallName, + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, firewallName, accept, context); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall 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 {@link PollerFlux} for polling of long-running operation. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); } /** - * Delete a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); } /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall 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 {@link SyncPoller} for polling of long-running operation. + * @return the response of a FirewallResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName) { - return this.beginDeleteAsync(resourceGroupName, firewallName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, firewallName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall 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 A {@link Mono} that completes when a successful response is received. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String firewallName) { - return beginDeleteAsync(resourceGroupName, firewallName).last().flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String firewallName, Context context) { - return beginDeleteAsync(resourceGroupName, firewallName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall 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 of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallName) { - deleteAsync(resourceGroupName, firewallName).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); } /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallName, Context context) { - deleteAsync(resourceGroupName, firewallName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); } /** @@ -1121,21 +971,6 @@ public void delete(String resourceGroupName, String firewallName, Context contex @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getGlobalRulestackWithResponseAsync(String resourceGroupName, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getGlobalRulestack(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1143,42 +978,6 @@ private Mono> getGlobalRulestackWithResponseA .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get Global Rulestack associated with the Firewall. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return global Rulestack associated with the Firewall along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getGlobalRulestackWithResponseAsync(String resourceGroupName, - String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getGlobalRulestack(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); - } - /** * Get Global Rulestack associated with the Firewall. * @@ -1209,7 +1008,9 @@ private Mono getGlobalRulestackAsync(String resourceGr @ServiceMethod(returns = ReturnType.SINGLE) public Response getGlobalRulestackWithResponse(String resourceGroupName, String firewallName, Context context) { - return getGlobalRulestackWithResponseAsync(resourceGroupName, firewallName, context).block(); + final String accept = "application/json"; + return service.getGlobalRulestackSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); } /** @@ -1240,21 +1041,6 @@ public GlobalRulestackInfoInner getGlobalRulestack(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getLogProfileWithResponseAsync(String resourceGroupName, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getLogProfile(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1262,41 +1048,6 @@ private Mono> getLogProfileWithResponseAsync(String r .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Log Profile for Firewall. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return log Settings for Firewall along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getLogProfileWithResponseAsync(String resourceGroupName, - String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getLogProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); - } - /** * Log Profile for Firewall. * @@ -1327,7 +1078,9 @@ private Mono getLogProfileAsync(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response getLogProfileWithResponse(String resourceGroupName, String firewallName, Context context) { - return getLogProfileWithResponseAsync(resourceGroupName, firewallName, context).block(); + final String accept = "application/json"; + return service.getLogProfileSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); } /** @@ -1360,21 +1113,6 @@ public LogSettingsInner getLogProfile(String resourceGroupName, String firewallN @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSupportInfoWithResponseAsync(String resourceGroupName, String firewallName, String email) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getSupportInfo(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1382,43 +1120,6 @@ private Mono> getSupportInfoWithResponseAsync(String .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * support info for firewall. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param email email address on behalf of which this API called. - * @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 resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getSupportInfoWithResponseAsync(String resourceGroupName, - String firewallName, String email, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getSupportInfo(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, email, accept, context); - } - /** * support info for firewall. * @@ -1451,7 +1152,9 @@ private Mono getSupportInfoAsync(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response getSupportInfoWithResponse(String resourceGroupName, String firewallName, String email, Context context) { - return getSupportInfoWithResponseAsync(resourceGroupName, firewallName, email, context).block(); + final String accept = "application/json"; + return service.getSupportInfoSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, email, accept, context); } /** @@ -1484,70 +1187,12 @@ public SupportInfoInner getSupportInfo(String resourceGroupName, String firewall @ServiceMethod(returns = ReturnType.SINGLE) private Mono> saveLogProfileWithResponseAsync(String resourceGroupName, String firewallName, LogSettingsInner logSettings) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - if (logSettings != null) { - logSettings.validate(); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.saveLogProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, logSettings, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, firewallName, logSettings, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Log Profile for Firewall. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param logSettings The logSettings 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 {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> saveLogProfileWithResponseAsync(String resourceGroupName, String firewallName, - LogSettingsInner logSettings, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallName == null) { - return Mono.error(new IllegalArgumentException("Parameter firewallName is required and cannot be null.")); - } - if (logSettings != null) { - logSettings.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.saveLogProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, firewallName, logSettings, accept, context); - } - /** * Log Profile for Firewall. * @@ -1580,7 +1225,8 @@ private Mono saveLogProfileAsync(String resourceGroupName, String firewall @ServiceMethod(returns = ReturnType.SINGLE) public Response saveLogProfileWithResponse(String resourceGroupName, String firewallName, LogSettingsInner logSettings, Context context) { - return saveLogProfileWithResponseAsync(resourceGroupName, firewallName, logSettings, context).block(); + return service.saveLogProfileSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, logSettings, context); } /** @@ -1609,23 +1255,34 @@ public void saveLogProfile(String resourceGroupName, String firewallName) { * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), 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())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1634,24 +1291,15 @@ private Mono> listBySubscriptionNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -1665,23 +1313,34 @@ private Mono> listBySubscriptionNextSingleP * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), 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())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1690,23 +1349,14 @@ private Mono> listByResourceGroupNextSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/FirewallsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsImpl.java index 58736898a23f..ba337e94a670 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -33,27 +33,6 @@ public FirewallsImpl(FirewallsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - 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 ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager())); - } - public Response getByResourceGroupWithResponse(String resourceGroupName, String firewallName, Context context) { Response inner @@ -83,6 +62,27 @@ public void delete(String resourceGroupName, String firewallName, Context contex this.serviceClient().delete(resourceGroupName, firewallName, context); } + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + 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 ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallResourceImpl(inner1, this.manager())); + } + public Response getGlobalRulestackWithResponse(String resourceGroupName, String firewallName, Context context) { Response inner diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestackResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestackResourceImpl.java index 7da913df7d20..4bb0d4995002 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestackResourceImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestackResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksClientImpl.java index f82b55eae2f4..e5022ff272bf 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,13 +27,14 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListGlobalRulestackResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListGlobalRulestackResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListGlobalRulestackResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -50,190 +51,107 @@ public final class FqdnListGlobalRulestacksClientImpl implements FqdnListGlobalR /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of FqdnListGlobalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - FqdnListGlobalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + FqdnListGlobalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(FqdnListGlobalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwFqdnListGlobalRulestacks to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientFqdnListGlobalRulestacks to be + * used by the proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientFqdnListGlobalRulestacks") public interface FqdnListGlobalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("name") String name, - @BodyParam("application/json") FqdnListGlobalRulestackResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") FqdnListGlobalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) + @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists/{name}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") FqdnListGlobalRulestackResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists/{name}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("name") String name, Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, Context context); - } - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, 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())); - } - - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String globalRulestackName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/fqdnlists") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName) { - return new PagedIterable<>(listAsync(globalRulestackName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName, Context context) { - return new PagedIterable<>(listAsync(globalRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -249,17 +167,6 @@ public PagedIterable list(String globalRul @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String globalRulestackName, String name) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -267,37 +174,6 @@ private Mono> getWithResponseAsyn .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a FqdnListGlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param name fqdn list name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FqdnListGlobalRulestackResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String globalRulestackName, - String name, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, accept, - context); - } - /** * Get a FqdnListGlobalRulestackResource. * @@ -327,7 +203,9 @@ private Mono getAsync(String globalRulesta @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String globalRulestackName, String name, Context context) { - return getWithResponseAsync(globalRulestackName, name, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + accept, context); } /** @@ -359,26 +237,11 @@ public FqdnListGlobalRulestackResourceInner get(String globalRulestackName, Stri @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String name, FqdnListGlobalRulestackResourceInner resource) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, name, resource, accept, context)) + globalRulestackName, name, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -388,35 +251,18 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return globalRulestack fqdnList along with {@link Response} on successful completion of {@link Mono}. + * @return globalRulestack fqdnList along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String name, - FqdnListGlobalRulestackResourceInner resource, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String globalRulestackName, String name, + FqdnListGlobalRulestackResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, - resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + name, contentType, accept, resource, Context.NONE); } /** @@ -425,19 +271,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of globalRulestack fqdnList. + * @return globalRulestack fqdnList along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FqdnListGlobalRulestackResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, String name, - FqdnListGlobalRulestackResourceInner resource) { - Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, name, resource); - return this.client.getLroResult( - mono, this.client.getHttpPipeline(), FqdnListGlobalRulestackResourceInner.class, - FqdnListGlobalRulestackResourceInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String globalRulestackName, String name, + FqdnListGlobalRulestackResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + name, contentType, accept, resource, context); } /** @@ -446,7 +292,6 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -454,14 +299,12 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, FqdnListGlobalRulestackResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, String name, FqdnListGlobalRulestackResourceInner resource, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(globalRulestackName, name, resource, context); + beginCreateOrUpdateAsync(String globalRulestackName, String name, + FqdnListGlobalRulestackResourceInner resource) { + Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, name, resource); return this.client.getLroResult( mono, this.client.getHttpPipeline(), FqdnListGlobalRulestackResourceInner.class, - FqdnListGlobalRulestackResourceInner.class, context); + FqdnListGlobalRulestackResourceInner.class, this.client.getContext()); } /** @@ -478,7 +321,10 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, FqdnListGlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, String name, FqdnListGlobalRulestackResourceInner resource) { - return this.beginCreateOrUpdateAsync(globalRulestackName, name, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, name, resource); + return this.client.getLroResult( + response, FqdnListGlobalRulestackResourceInner.class, FqdnListGlobalRulestackResourceInner.class, + Context.NONE); } /** @@ -497,7 +343,9 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, FqdnListGlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, String name, FqdnListGlobalRulestackResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(globalRulestackName, name, resource, context).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, name, resource, context); + return this.client.getLroResult( + response, FqdnListGlobalRulestackResourceInner.class, FqdnListGlobalRulestackResourceInner.class, context); } /** @@ -518,25 +366,6 @@ private Mono createOrUpdateAsync(String gl .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a FqdnListGlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param name fqdn list name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return globalRulestack fqdnList on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String globalRulestackName, String name, - FqdnListGlobalRulestackResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(globalRulestackName, name, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a FqdnListGlobalRulestackResource. * @@ -551,7 +380,7 @@ private Mono createOrUpdateAsync(String gl @ServiceMethod(returns = ReturnType.SINGLE) public FqdnListGlobalRulestackResourceInner createOrUpdate(String globalRulestackName, String name, FqdnListGlobalRulestackResourceInner resource) { - return createOrUpdateAsync(globalRulestackName, name, resource).block(); + return beginCreateOrUpdate(globalRulestackName, name, resource).getFinalResult(); } /** @@ -569,7 +398,7 @@ public FqdnListGlobalRulestackResourceInner createOrUpdate(String globalRulestac @ServiceMethod(returns = ReturnType.SINGLE) public FqdnListGlobalRulestackResourceInner createOrUpdate(String globalRulestackName, String name, FqdnListGlobalRulestackResourceInner resource, Context context) { - return createOrUpdateAsync(globalRulestackName, name, resource, context).block(); + return beginCreateOrUpdate(globalRulestackName, name, resource, context).getFinalResult(); } /** @@ -584,21 +413,9 @@ public FqdnListGlobalRulestackResourceInner createOrUpdate(String globalRulestac */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String globalRulestackName, String name) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, name, accept, context)) + globalRulestackName, name, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -607,30 +424,15 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String globalRulestackName, String name, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, accept, - context); + private Response deleteWithResponse(String globalRulestackName, String name) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + Context.NONE); } /** @@ -638,16 +440,16 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name) { - Mono>> mono = deleteWithResponseAsync(globalRulestackName, name); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String globalRulestackName, String name, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + context); } /** @@ -655,19 +457,16 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta * * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(globalRulestackName, name, context); + private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name) { + Mono>> mono = deleteWithResponseAsync(globalRulestackName, name); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -682,7 +481,8 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String name) { - return this.beginDeleteAsync(globalRulestackName, name).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, name); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -698,7 +498,8 @@ public SyncPoller, Void> beginDelete(String globalRulestackName */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String name, Context context) { - return this.beginDeleteAsync(globalRulestackName, name, context).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, name, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -721,16 +522,13 @@ private Mono deleteAsync(String globalRulestackName, String name) { * * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String globalRulestackName, String name, Context context) { - return beginDeleteAsync(globalRulestackName, name, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String globalRulestackName, String name) { + beginDelete(globalRulestackName, name).getFinalResult(); } /** @@ -738,28 +536,121 @@ private Mono deleteAsync(String globalRulestackName, String name, Context * * @param globalRulestackName GlobalRulestack resource name. * @param name fqdn list name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String name) { - deleteAsync(globalRulestackName, name).block(); + public void delete(String globalRulestackName, String name, Context context) { + beginDelete(globalRulestackName, name, context).getFinalResult(); } /** - * Delete a FqdnListGlobalRulestackResource. + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String globalRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, 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())); + } + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String globalRulestackName) { + return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String globalRulestackName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. * * @param globalRulestackName GlobalRulestack resource name. - * @param name fqdn list name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String name, Context context) { - deleteAsync(globalRulestackName, name, context).block(); + private PagedResponse listSinglePage(String globalRulestackName, + Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName), nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName, Context context) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -774,13 +665,6 @@ public void delete(String globalRulestackName, String name, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -788,6 +672,24 @@ private Mono> listNextSingle .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -796,23 +698,14 @@ private Mono> listNextSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a FqdnListGlobalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/FqdnListGlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksImpl.java index 889f35b952e8..5fb3965959ba 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,19 +27,6 @@ public FqdnListGlobalRulestacksImpl(FqdnListGlobalRulestacksClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String globalRulestackName) { - PagedIterable inner = this.serviceClient().list(globalRulestackName); - 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 ResourceManagerUtils.mapPage(inner, - inner1 -> new FqdnListGlobalRulestackResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String globalRulestackName, String name, Context context) { Response inner @@ -91,6 +78,19 @@ public void delete(String globalRulestackName, String name, Context context) { this.serviceClient().delete(globalRulestackName, name, context); } + public PagedIterable list(String globalRulestackName) { + PagedIterable inner = this.serviceClient().list(globalRulestackName); + 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 ResourceManagerUtils.mapPage(inner, + inner1 -> new FqdnListGlobalRulestackResourceImpl(inner1, this.manager())); + } + private FqdnListGlobalRulestacksClient serviceClient() { return this.innerClient; } 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 646c1b2db8ae..696627ba5c26 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksClientImpl.java index ab20ddcaa036..e7e25ff90d68 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,13 +27,14 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListLocalRulestackResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListLocalRulestackResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -50,228 +51,123 @@ public final class FqdnListLocalRulestacksClientImpl implements FqdnListLocalRul /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of FqdnListLocalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - FqdnListLocalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + FqdnListLocalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(FqdnListLocalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwFqdnListLocalRulestacks to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientFqdnListLocalRulestacks to be + * used by the proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientFqdnListLocalRulestacks") public interface FqdnListLocalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByLocalRulestacks( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, - @BodyParam("application/json") FqdnListLocalRulestackResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FqdnListLocalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists/{name}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FqdnListLocalRulestackResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists/{name}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists/{name}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByLocalRulestacks( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/fqdnlists") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByLocalRulestacksNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByLocalRulestacksSinglePageAsync(String resourceGroupName, String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); - } - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByLocalRulestacksSinglePageAsync(String resourceGroupName, String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName) { - return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); - } - - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedFlux<>( - () -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName, context), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink, context)); - } - - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @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 of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName)); - } - - /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -288,25 +184,6 @@ public PagedIterable listByLocalRulestacks( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String localRulestackName, String name) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -314,46 +191,6 @@ private Mono> getWithResponseAsync .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a FqdnListLocalRulestackResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param name fqdn list name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FqdnListLocalRulestackResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, name, accept, context); - } - /** * Get a FqdnListLocalRulestackResource. * @@ -387,7 +224,9 @@ private Mono getAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String localRulestackName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, localRulestackName, name, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, localRulestackName, name, accept, context); } /** @@ -421,35 +260,12 @@ public FqdnListLocalRulestackResourceInner get(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String localRulestackName, String name, FqdnListLocalRulestackResourceInner resource) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, resource, accept, - context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, + resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -460,43 +276,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack fqdnList along with {@link Response} on successful completion of {@link Mono}. + * @return localRulestack fqdnList along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, FqdnListLocalRulestackResourceInner resource, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String name, FqdnListLocalRulestackResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, resource, + Context.NONE); } /** @@ -506,20 +298,20 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of localRulestack fqdnList. + * @return localRulestack fqdnList along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FqdnListLocalRulestackResourceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String localRulestackName, String name, - FqdnListLocalRulestackResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), FqdnListLocalRulestackResourceInner.class, - FqdnListLocalRulestackResourceInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String name, FqdnListLocalRulestackResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, resource, + context); } /** @@ -529,7 +321,6 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -538,13 +329,12 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, FqdnListLocalRulestackResourceInner> beginCreateOrUpdateAsync(String resourceGroupName, String localRulestackName, String name, - FqdnListLocalRulestackResourceInner resource, Context context) { - context = this.client.mergeContext(context); + FqdnListLocalRulestackResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource, context); + = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource); return this.client.getLroResult(mono, this.client.getHttpPipeline(), FqdnListLocalRulestackResourceInner.class, - FqdnListLocalRulestackResourceInner.class, context); + FqdnListLocalRulestackResourceInner.class, this.client.getContext()); } /** @@ -563,7 +353,11 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, FqdnListLocalRulestackResourceInner> beginCreateOrUpdate(String resourceGroupName, String localRulestackName, String name, FqdnListLocalRulestackResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource).getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, name, resource); + return this.client.getLroResult( + response, FqdnListLocalRulestackResourceInner.class, FqdnListLocalRulestackResourceInner.class, + Context.NONE); } /** @@ -583,8 +377,10 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, FqdnListLocalRulestackResourceInner> beginCreateOrUpdate(String resourceGroupName, String localRulestackName, String name, FqdnListLocalRulestackResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context) - .getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, name, resource, context); + return this.client.getLroResult( + response, FqdnListLocalRulestackResourceInner.class, FqdnListLocalRulestackResourceInner.class, context); } /** @@ -606,26 +402,6 @@ private Mono createOrUpdateAsync(String res .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a FqdnListLocalRulestackResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param name fqdn list name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack fqdnList on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, - String localRulestackName, String name, FqdnListLocalRulestackResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a FqdnListLocalRulestackResource. * @@ -641,7 +417,7 @@ private Mono createOrUpdateAsync(String res @ServiceMethod(returns = ReturnType.SINGLE) public FqdnListLocalRulestackResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String name, FqdnListLocalRulestackResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, name, resource).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource).getFinalResult(); } /** @@ -660,7 +436,7 @@ public FqdnListLocalRulestackResourceInner createOrUpdate(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) public FqdnListLocalRulestackResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String name, FqdnListLocalRulestackResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, context).getFinalResult(); } /** @@ -677,29 +453,9 @@ public FqdnListLocalRulestackResourceInner createOrUpdate(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String localRulestackName, String name) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -709,38 +465,15 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, name, accept, context); + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, String name) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, Context.NONE); } /** @@ -749,17 +482,17 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String name) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, localRulestackName, name); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, String name, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, context); } /** @@ -768,7 +501,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -776,12 +508,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String name, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, localRulestackName, name, context); + String name) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, localRulestackName, name); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -798,7 +528,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String name) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, name).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, name); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -816,7 +547,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String name, Context context) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, name, context).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, name, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -842,16 +574,13 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String localRulestackName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, localRulestackName, name, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String resourceGroupName, String localRulestackName, String name) { + beginDelete(resourceGroupName, localRulestackName, name).getFinalResult(); } /** @@ -860,29 +589,137 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String name) { - deleteAsync(resourceGroupName, localRulestackName, name).block(); + public void delete(String resourceGroupName, String localRulestackName, String name, Context context) { + beginDelete(resourceGroupName, localRulestackName, name, context).getFinalResult(); } /** - * Delete a FqdnListLocalRulestackResource. + * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByLocalRulestacksSinglePageAsync(String resourceGroupName, String localRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); + } + + /** + * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a FqdnListLocalRulestackResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, + String localRulestackName) { + return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); + } + + /** + * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocalRulestacksSinglePage(String resourceGroupName, + String localRulestackName) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FqdnListLocalRulestackResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name fqdn list name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String name, Context context) { - deleteAsync(resourceGroupName, localRulestackName, name, context).block(); + private PagedResponse listByLocalRulestacksSinglePage(String resourceGroupName, + String localRulestackName, Context context) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * + * @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 of a FqdnListLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + return new PagedIterable<>(() -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink)); + } + + /** + * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context) { + return new PagedIterable<>( + () -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName, context), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink, context)); } /** @@ -898,13 +735,6 @@ public void delete(String resourceGroupName, String localRulestackName, String n @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByLocalRulestacksNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -914,6 +744,24 @@ public void delete(String resourceGroupName, String localRulestackName, String n .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocalRulestacksNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -922,23 +770,15 @@ public void delete(String resourceGroupName, String localRulestackName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a FqdnListLocalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByLocalRulestacksNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listByLocalRulestacksNextSinglePage(String nextLink, + Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByLocalRulestacksNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/FqdnListLocalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksImpl.java index 76151bf42bd0..64bf75d845af 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,22 +27,6 @@ public FqdnListLocalRulestacksImpl(FqdnListLocalRulestacksClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - PagedIterable inner - = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); - 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 ResourceManagerUtils.mapPage(inner, - inner1 -> new FqdnListLocalRulestackResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String localRulestackName, String name, Context context) { Response inner @@ -73,6 +57,22 @@ public void delete(String resourceGroupName, String localRulestackName, String n this.serviceClient().delete(resourceGroupName, localRulestackName, name, context); } + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + PagedIterable inner + = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); + 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 ResourceManagerUtils.mapPage(inner, + inner1 -> new FqdnListLocalRulestackResourceImpl(inner1, this.manager())); + } + public FqdnListLocalRulestackResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackInfoImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackInfoImpl.java index 81a814567a9c..0e7337374164 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackInfoImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackInfoImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackResourceImpl.java index 8c82a7e1d538..36888198b162 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackResourceImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksClientImpl.java index 276cb51d418c..94c7f8428ee2 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -29,6 +29,7 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; @@ -42,8 +43,8 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListFirewallsResponseInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SecurityServicesResponseInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.GlobalRulestackResourceListResult; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceListResult; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdate; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum; import java.nio.ByteBuffer; @@ -62,72 +63,125 @@ public final class GlobalRulestacksClientImpl implements GlobalRulestacksClient /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of GlobalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - GlobalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + GlobalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(GlobalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwGlobalRulestacks to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientGlobalRulestacks to be used by + * the proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientGlobalRulestacks") public interface GlobalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @BodyParam("application/json") GlobalRulestackResourceInner resource, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GlobalRulestackResourceInner resource, Context context); + + @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GlobalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, + Mono> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @BodyParam("application/json") GlobalRulestackResourceUpdate properties, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GlobalRulestackResourceUpdate properties, Context context); - @Headers({ "Content-Type: application/json" }) + @Patch("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GlobalRulestackResourceUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + Context context); @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/commit") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> commit(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/commit") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> commit(@HostParam("$host") String endpoint, + Response commitSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/getChangeLog") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getChangeLog(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, Context context); @@ -135,7 +189,7 @@ Mono>> commit(@HostParam("$host") String endpoint, @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/getChangeLog") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getChangeLog(@HostParam("$host") String endpoint, + Response getChangeLogSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, Context context); @@ -144,7 +198,17 @@ Mono> getChangeLog(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAdvancedSecurityObjects( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("globalRulestackName") String globalRulestackName, @QueryParam("skip") String skip, + @QueryParam("top") Integer top, @QueryParam("type") AdvSecurityObjectTypeEnum type, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAdvancedSecurityObjects") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listAdvancedSecurityObjectsSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @QueryParam("skip") String skip, @QueryParam("top") Integer top, @QueryParam("type") AdvSecurityObjectTypeEnum type, @HeaderParam("Accept") String accept, Context context); @@ -153,7 +217,17 @@ Mono> listAdvancedSecurityObjects( @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAppIds") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAppIds(@HostParam("$host") String endpoint, + Mono> listAppIds(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @QueryParam("appIdVersion") String appIdVersion, @QueryParam("appPrefix") String appPrefix, + @QueryParam("skip") String skip, @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAppIds") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listAppIdsSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @QueryParam("appIdVersion") String appIdVersion, @QueryParam("appPrefix") String appPrefix, @QueryParam("skip") String skip, @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, @@ -163,16 +237,33 @@ Mono> listAppIds(@HostParam("$host") String end @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listCountries") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCountries(@HostParam("$host") String endpoint, + Mono> listCountries(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @QueryParam("skip") String skip, @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listCountries") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listCountriesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @QueryParam("skip") String skip, @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listFirewalls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listFirewalls(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listFirewalls") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listFirewalls(@HostParam("$host") String endpoint, + Response listFirewallsSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, Context context); @@ -181,7 +272,16 @@ Mono> listFirewalls(@HostParam("$host") Str @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listPredefinedUrlCategories( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("globalRulestackName") String globalRulestackName, @QueryParam("skip") String skip, + @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listPredefinedUrlCategories") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listPredefinedUrlCategoriesSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @QueryParam("skip") String skip, @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, Context context); @@ -189,127 +289,50 @@ Mono> listPredefinedUrlCategories @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listSecurityServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSecurityServices(@HostParam("$host") String endpoint, + Mono> listSecurityServices(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @QueryParam("skip") String skip, @QueryParam("top") Integer top, @QueryParam("type") SecurityServicesTypeEnum type, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listSecurityServices") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSecurityServicesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @QueryParam("skip") String skip, @QueryParam("top") Integer top, + @QueryParam("type") SecurityServicesTypeEnum type, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/revert") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> revert(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, + Mono> revert(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, Context context); + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/revert") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response revertSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("globalRulestackName") String globalRulestackName, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List GlobalRulestackResource resources by Tenant. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), 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())); - } - - /** - * List GlobalRulestackResource resources by Tenant. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List GlobalRulestackResource resources by Tenant. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - /** - * List GlobalRulestackResource resources by Tenant. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List GlobalRulestackResource resources by Tenant. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * List GlobalRulestackResource resources by Tenant. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -323,14 +346,6 @@ public PagedIterable list(Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -338,33 +353,6 @@ private Mono> getWithResponseAsync(String .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a GlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a GlobalRulestackResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String globalRulestackName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, - context); - } - /** * Get a GlobalRulestackResource. * @@ -391,7 +379,9 @@ private Mono getAsync(String globalRulestackName) */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String globalRulestackName, Context context) { - return getWithResponseAsync(globalRulestackName, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, + context); } /** @@ -421,23 +411,11 @@ public GlobalRulestackResourceInner get(String globalRulestackName) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, GlobalRulestackResourceInner resource) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, resource, accept, context)) + globalRulestackName, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -446,32 +424,18 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @param globalRulestackName GlobalRulestack resource name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks GlobalRulestack along with {@link Response} on successful completion of {@link Mono}. + * @return paloAltoNetworks GlobalRulestack along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, - GlobalRulestackResourceInner resource, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String globalRulestackName, + GlobalRulestackResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + contentType, accept, resource, Context.NONE); } /** @@ -479,18 +443,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @param globalRulestackName GlobalRulestack resource name. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of paloAltoNetworks GlobalRulestack. + * @return paloAltoNetworks GlobalRulestack along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, GlobalRulestackResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, GlobalRulestackResourceInner resource) { - Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), GlobalRulestackResourceInner.class, GlobalRulestackResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String globalRulestackName, + GlobalRulestackResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + contentType, accept, resource, context); } /** @@ -498,7 +463,6 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @param globalRulestackName GlobalRulestack resource name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -506,12 +470,11 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GlobalRulestackResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, GlobalRulestackResourceInner resource, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, resource, context); + beginCreateOrUpdateAsync(String globalRulestackName, GlobalRulestackResourceInner resource) { + Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, resource); return this.client.getLroResult(mono, this.client.getHttpPipeline(), GlobalRulestackResourceInner.class, GlobalRulestackResourceInner.class, - context); + this.client.getContext()); } /** @@ -527,7 +490,9 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, GlobalRulestackResourceInner resource) { - return this.beginCreateOrUpdateAsync(globalRulestackName, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, resource); + return this.client.getLroResult(response, + GlobalRulestackResourceInner.class, GlobalRulestackResourceInner.class, Context.NONE); } /** @@ -544,7 +509,9 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, GlobalRulestackResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(globalRulestackName, resource, context).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, resource, context); + return this.client.getLroResult(response, + GlobalRulestackResourceInner.class, GlobalRulestackResourceInner.class, context); } /** @@ -564,24 +531,6 @@ private Mono createOrUpdateAsync(String globalRule .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a GlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks GlobalRulestack on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String globalRulestackName, - GlobalRulestackResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(globalRulestackName, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a GlobalRulestackResource. * @@ -595,7 +544,7 @@ private Mono createOrUpdateAsync(String globalRule @ServiceMethod(returns = ReturnType.SINGLE) public GlobalRulestackResourceInner createOrUpdate(String globalRulestackName, GlobalRulestackResourceInner resource) { - return createOrUpdateAsync(globalRulestackName, resource).block(); + return beginCreateOrUpdate(globalRulestackName, resource).getFinalResult(); } /** @@ -612,7 +561,7 @@ public GlobalRulestackResourceInner createOrUpdate(String globalRulestackName, @ServiceMethod(returns = ReturnType.SINGLE) public GlobalRulestackResourceInner createOrUpdate(String globalRulestackName, GlobalRulestackResourceInner resource, Context context) { - return createOrUpdateAsync(globalRulestackName, resource, context).block(); + return beginCreateOrUpdate(globalRulestackName, resource, context).getFinalResult(); } /** @@ -628,59 +577,14 @@ public GlobalRulestackResourceInner createOrUpdate(String globalRulestackName, @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String globalRulestackName, GlobalRulestackResourceUpdate properties) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, properties, accept, context)) + globalRulestackName, contentType, accept, properties, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Update a GlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param properties The resource properties to be updated. - * @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 paloAltoNetworks GlobalRulestack along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String globalRulestackName, - GlobalRulestackResourceUpdate properties, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, properties, - accept, context); - } - /** * Update a GlobalRulestackResource. * @@ -712,7 +616,10 @@ private Mono updateAsync(String globalRulestackNam @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String globalRulestackName, GlobalRulestackResourceUpdate properties, Context context) { - return updateWithResponseAsync(globalRulestackName, properties, context).block(); + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + contentType, accept, properties, context); } /** @@ -741,21 +648,27 @@ public GlobalRulestackResourceInner update(String globalRulestackName, GlobalRul */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, accept, context)) + globalRulestackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Delete a GlobalRulestackResource. + * + * @param globalRulestackName GlobalRulestack 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 along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String globalRulestackName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + Context.NONE); + } + /** * Delete a GlobalRulestackResource. * @@ -764,22 +677,11 @@ private Mono>> deleteWithResponseAsync(String globalRu * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String globalRulestackName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, - context); + private Response deleteWithResponse(String globalRulestackName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, context); } /** @@ -802,103 +704,165 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta * Delete a GlobalRulestackResource. * * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(globalRulestackName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + public SyncPoller, Void> beginDelete(String globalRulestackName) { + Response response = deleteWithResponse(globalRulestackName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** * Delete a GlobalRulestackResource. * * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String globalRulestackName) { - return this.beginDeleteAsync(globalRulestackName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String globalRulestackName, Context context) { + Response response = deleteWithResponse(globalRulestackName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a GlobalRulestackResource. + * + * @param globalRulestackName GlobalRulestack 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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String globalRulestackName) { + return beginDeleteAsync(globalRulestackName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a GlobalRulestackResource. + * + * @param globalRulestackName GlobalRulestack 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String globalRulestackName) { + beginDelete(globalRulestackName).getFinalResult(); + } + + /** + * Delete a GlobalRulestackResource. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String globalRulestackName, Context context) { + beginDelete(globalRulestackName, context).getFinalResult(); + } + + /** + * List GlobalRulestackResource resources by Tenant. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), 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())); } /** - * Delete a GlobalRulestackResource. + * List GlobalRulestackResource resources by Tenant. * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response of a GlobalRulestackResource list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String globalRulestackName, Context context) { - return this.beginDeleteAsync(globalRulestackName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Delete a GlobalRulestackResource. + * List GlobalRulestackResource resources by Tenant. * - * @param globalRulestackName GlobalRulestack 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 A {@link Mono} that completes when a successful response is received. + * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String globalRulestackName) { - return beginDeleteAsync(globalRulestackName).last().flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a GlobalRulestackResource. + * List GlobalRulestackResource resources by Tenant. * - * @param globalRulestackName GlobalRulestack resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String globalRulestackName, Context context) { - return beginDeleteAsync(globalRulestackName, context).last().flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a GlobalRulestackResource. + * List GlobalRulestackResource resources by Tenant. * - * @param globalRulestackName GlobalRulestack 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 of a GlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName) { - deleteAsync(globalRulestackName).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); } /** - * Delete a GlobalRulestackResource. + * List GlobalRulestackResource resources by Tenant. * - * @param globalRulestackName GlobalRulestack resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a GlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, Context context) { - deleteAsync(globalRulestackName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -912,18 +876,9 @@ public void delete(String globalRulestackName, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> commitWithResponseAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.commit(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, accept, context)) + globalRulestackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -931,60 +886,46 @@ private Mono>> commitWithResponseAsync(String globalRu * Commit rulestack configuration. * * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> commitWithResponseAsync(String globalRulestackName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.commit(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, - context); + private Response commitWithResponse(String globalRulestackName) { + return service.commitSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + Context.NONE); } /** * Commit rulestack configuration. * * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginCommitAsync(String globalRulestackName) { - Mono>> mono = commitWithResponseAsync(globalRulestackName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response commitWithResponse(String globalRulestackName, Context context) { + return service.commitSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, context); } /** * Commit rulestack configuration. * * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginCommitAsync(String globalRulestackName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = commitWithResponseAsync(globalRulestackName, context); + private PollerFlux, Void> beginCommitAsync(String globalRulestackName) { + Mono>> mono = commitWithResponseAsync(globalRulestackName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -998,7 +939,8 @@ private PollerFlux, Void> beginCommitAsync(String globalRulesta */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginCommit(String globalRulestackName) { - return this.beginCommitAsync(globalRulestackName).getSyncPoller(); + Response response = commitWithResponse(globalRulestackName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -1013,7 +955,8 @@ public SyncPoller, Void> beginCommit(String globalRulestackName */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginCommit(String globalRulestackName, Context context) { - return this.beginCommitAsync(globalRulestackName, context).getSyncPoller(); + Response response = commitWithResponse(globalRulestackName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -1030,21 +973,6 @@ private Mono commitAsync(String globalRulestackName) { return beginCommitAsync(globalRulestackName).last().flatMap(this.client::getLroFinalResultOrError); } - /** - * Commit rulestack configuration. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono commitAsync(String globalRulestackName, Context context) { - return beginCommitAsync(globalRulestackName, context).last().flatMap(this.client::getLroFinalResultOrError); - } - /** * Commit rulestack configuration. * @@ -1055,7 +983,7 @@ private Mono commitAsync(String globalRulestackName, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) public void commit(String globalRulestackName) { - commitAsync(globalRulestackName).block(); + beginCommit(globalRulestackName).getFinalResult(); } /** @@ -1069,7 +997,7 @@ public void commit(String globalRulestackName) { */ @ServiceMethod(returns = ReturnType.SINGLE) public void commit(String globalRulestackName, Context context) { - commitAsync(globalRulestackName, context).block(); + beginCommit(globalRulestackName, context).getFinalResult(); } /** @@ -1083,14 +1011,6 @@ public void commit(String globalRulestackName, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getChangeLogWithResponseAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getChangeLog(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1098,32 +1018,6 @@ private Mono> getChangeLogWithResponseAsync(String glob .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get changelog. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return changelog along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getChangeLogWithResponseAsync(String globalRulestackName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getChangeLog(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, - context); - } - /** * Get changelog. * @@ -1150,7 +1044,9 @@ private Mono getChangeLogAsync(String globalRulestackName) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getChangeLogWithResponse(String globalRulestackName, Context context) { - return getChangeLogWithResponseAsync(globalRulestackName, context).block(); + final String accept = "application/json"; + return service.getChangeLogSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + accept, context); } /** @@ -1183,17 +1079,6 @@ public ChangelogInner getChangeLog(String globalRulestackName) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAdvancedSecurityObjectsWithResponseAsync( String globalRulestackName, AdvSecurityObjectTypeEnum type, String skip, Integer top) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAdvancedSecurityObjects(this.client.getEndpoint(), @@ -1201,40 +1086,6 @@ private Mono> listAdvancedSecurityO .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get the list of advanced security objects. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param type The type 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 list of advanced security objects along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAdvancedSecurityObjectsWithResponseAsync( - String globalRulestackName, AdvSecurityObjectTypeEnum type, 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.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listAdvancedSecurityObjects(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, skip, top, type, accept, context); - } - /** * Get the list of advanced security objects. * @@ -1270,7 +1121,9 @@ private Mono listAdvancedSecurityObjectsAsyn @ServiceMethod(returns = ReturnType.SINGLE) public Response listAdvancedSecurityObjectsWithResponse( String globalRulestackName, AdvSecurityObjectTypeEnum type, String skip, Integer top, Context context) { - return listAdvancedSecurityObjectsWithResponseAsync(globalRulestackName, type, skip, top, context).block(); + final String accept = "application/json"; + return service.listAdvancedSecurityObjectsSync(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, skip, top, type, accept, context); } /** @@ -1307,14 +1160,6 @@ public AdvSecurityObjectListResponseInner listAdvancedSecurityObjects(String glo @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAppIdsWithResponseAsync(String globalRulestackName, 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.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAppIds(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1322,37 +1167,6 @@ private Mono> listAppIdsWithResponseAsync(Strin .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * List of AppIds for GlobalRulestack ApiVersion. - * - * @param globalRulestackName GlobalRulestack 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAppIdsWithResponseAsync(String globalRulestackName, - 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.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listAppIds(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - appIdVersion, appPrefix, skip, top, accept, context); - } - /** * List of AppIds for GlobalRulestack ApiVersion. * @@ -1389,7 +1203,9 @@ private Mono listAppIdsAsync(String globalRulestackName) @ServiceMethod(returns = ReturnType.SINGLE) public Response listAppIdsWithResponse(String globalRulestackName, String appIdVersion, String appPrefix, String skip, Integer top, Context context) { - return listAppIdsWithResponseAsync(globalRulestackName, appIdVersion, appPrefix, skip, top, context).block(); + final String accept = "application/json"; + return service.listAppIdsSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + appIdVersion, appPrefix, skip, top, accept, context); } /** @@ -1424,14 +1240,6 @@ public ListAppIdResponseInner listAppIds(String globalRulestackName) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCountriesWithResponseAsync(String globalRulestackName, String skip, Integer top) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listCountries(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1439,35 +1247,6 @@ private Mono> listCountriesWithResponseAsync(St .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * List of countries for Rulestack. - * - * @param globalRulestackName GlobalRulestack 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCountriesWithResponseAsync(String globalRulestackName, - 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.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listCountries(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, skip, - top, accept, context); - } - /** * List of countries for Rulestack. * @@ -1500,7 +1279,9 @@ private Mono listCountriesAsync(String globalRulestackNa @ServiceMethod(returns = ReturnType.SINGLE) public Response listCountriesWithResponse(String globalRulestackName, String skip, Integer top, Context context) { - return listCountriesWithResponseAsync(globalRulestackName, skip, top, context).block(); + final String accept = "application/json"; + return service.listCountriesSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + skip, top, accept, context); } /** @@ -1530,14 +1311,6 @@ public CountriesResponseInner listCountries(String globalRulestackName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listFirewallsWithResponseAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1545,33 +1318,6 @@ private Mono> listFirewallsWithResponseAsyn .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * List of Firewalls associated with Rulestack. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list firewalls response along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listFirewallsWithResponseAsync(String globalRulestackName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - accept, context); - } - /** * List of Firewalls associated with Rulestack. * @@ -1598,7 +1344,9 @@ private Mono listFirewallsAsync(String globalRulesta */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listFirewallsWithResponse(String globalRulestackName, Context context) { - return listFirewallsWithResponseAsync(globalRulestackName, context).block(); + final String accept = "application/json"; + return service.listFirewallsSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + accept, context); } /** @@ -1629,14 +1377,6 @@ public ListFirewallsResponseInner listFirewalls(String globalRulestackName) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listPredefinedUrlCategoriesWithResponseAsync(String globalRulestackName, String skip, Integer top) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listPredefinedUrlCategories(this.client.getEndpoint(), @@ -1644,35 +1384,6 @@ public ListFirewallsResponseInner listFirewalls(String globalRulestackName) { .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * List predefined URL categories for rulestack. - * - * @param globalRulestackName GlobalRulestack 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPredefinedUrlCategoriesWithResponseAsync( - String globalRulestackName, 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.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listPredefinedUrlCategories(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, skip, top, accept, context); - } - /** * List predefined URL categories for rulestack. * @@ -1705,7 +1416,9 @@ private Mono listPredefinedUrlCategoriesAs @ServiceMethod(returns = ReturnType.SINGLE) public Response listPredefinedUrlCategoriesWithResponse(String globalRulestackName, String skip, Integer top, Context context) { - return listPredefinedUrlCategoriesWithResponseAsync(globalRulestackName, skip, top, context).block(); + final String accept = "application/json"; + return service.listPredefinedUrlCategoriesSync(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, skip, top, accept, context); } /** @@ -1739,17 +1452,6 @@ public PredefinedUrlCategoriesResponseInner listPredefinedUrlCategories(String g @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSecurityServicesWithResponseAsync( String globalRulestackName, SecurityServicesTypeEnum type, String skip, Integer top) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listSecurityServices(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1757,39 +1459,6 @@ private Mono> listSecurityServicesWithRe .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * List the security services for rulestack. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param type The type 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 security services list response along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSecurityServicesWithResponseAsync( - String globalRulestackName, SecurityServicesTypeEnum type, 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.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listSecurityServices(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - skip, top, type, accept, context); - } - /** * List the security services for rulestack. * @@ -1825,7 +1494,9 @@ private Mono listSecurityServicesAsync(String glo @ServiceMethod(returns = ReturnType.SINGLE) public Response listSecurityServicesWithResponse(String globalRulestackName, SecurityServicesTypeEnum type, String skip, Integer top, Context context) { - return listSecurityServicesWithResponseAsync(globalRulestackName, type, skip, top, context).block(); + final String accept = "application/json"; + return service.listSecurityServicesSync(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, skip, top, type, accept, context); } /** @@ -1857,47 +1528,12 @@ public SecurityServicesResponseInner listSecurityServices(String globalRulestack */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> revertWithResponseAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.revert(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, accept, context)) + globalRulestackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Revert rulestack configuration. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> revertWithResponseAsync(String globalRulestackName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.revert(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, - context); - } - /** * Revert rulestack configuration. * @@ -1924,7 +1560,7 @@ private Mono revertAsync(String globalRulestackName) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Response revertWithResponse(String globalRulestackName, Context context) { - return revertWithResponseAsync(globalRulestackName, context).block(); + return service.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, context); } /** @@ -1952,13 +1588,6 @@ public void revert(String globalRulestackName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -1966,6 +1595,24 @@ private Mono> listNextSinglePageAsyn .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1974,23 +1621,14 @@ private Mono> listNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a GlobalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/GlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksImpl.java index f95860ef25bb..c12b31eb9b6d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -44,16 +44,6 @@ public GlobalRulestacksImpl(GlobalRulestacksClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String globalRulestackName, Context context) { Response inner = this.serviceClient().getWithResponse(globalRulestackName, context); @@ -123,6 +113,16 @@ public void delete(String globalRulestackName, Context context) { this.serviceClient().delete(globalRulestackName, context); } + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new GlobalRulestackResourceImpl(inner1, this.manager())); + } + public void commit(String globalRulestackName) { this.serviceClient().commit(globalRulestackName); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListAppIdResponseImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListAppIdResponseImpl.java index b6ae5509978c..5d5b94293869 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListAppIdResponseImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListAppIdResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListFirewallsResponseImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListFirewallsResponseImpl.java index 71c07589ca34..c6e23d7962ba 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListFirewallsResponseImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListFirewallsResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesClientImpl.java index 3f85dbbecbe8..228047d8d769 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -28,6 +28,7 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; @@ -36,7 +37,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulesResourceInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterResetInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulesResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.LocalRulesResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -53,82 +54,151 @@ public final class LocalRulesClientImpl implements LocalRulesClient { /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of LocalRulesClientImpl. * * @param client the instance of the service client containing this operation class. */ - LocalRulesClientImpl(PaloAltoNetworksCloudngfwImpl client) { + LocalRulesClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(LocalRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwLocalRules to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientLocalRules to be used by the + * proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientLocalRules") public interface LocalRulesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByLocalRulestacks(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LocalRulesResourceInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LocalRulesResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, - @BodyParam("application/json") LocalRulesResourceInner resource, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByLocalRulestacks(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/getCounters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getCounters(@HostParam("$host") String endpoint, + Mono> getCounters(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/getCounters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getCountersSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, + @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/refreshCounters") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> refreshCounters(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, + @QueryParam("firewallName") String firewallName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/refreshCounters") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> refreshCounters(@HostParam("$host") String endpoint, + Response refreshCountersSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, + @QueryParam("firewallName") String firewallName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/resetCounters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> resetCounters(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, @@ -138,7 +208,7 @@ Mono> refreshCounters(@HostParam("$host") String endpoint, @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/resetCounters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> resetCounters(@HostParam("$host") String endpoint, + Response resetCountersSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("priority") String priority, @@ -149,157 +219,16 @@ Mono> resetCounters(@HostParam("$host") String e @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByLocalRulestacksNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @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 of a LocalRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByLocalRulestacksSinglePageAsync(String resourceGroupName, - String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); - } - - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByLocalRulestacksSinglePageAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @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 of a LocalRulesResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName) { - return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); - } - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedFlux<>( - () -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName, context), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink, context)); - } - - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @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 of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName)); - } - - /** - * List LocalRulesResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -316,25 +245,6 @@ public PagedIterable listByLocalRulestacks(String resou @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String localRulestackName, String priority) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -342,46 +252,6 @@ private Mono> getWithResponseAsync(String reso .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a LocalRulesResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. - * @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 a LocalRulesResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String localRulestackName, String priority, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, priority, accept, context); - } - /** * Get a LocalRulesResource. * @@ -415,7 +285,9 @@ private Mono getAsync(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String localRulestackName, String priority, Context context) { - return getWithResponseAsync(resourceGroupName, localRulestackName, priority, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, localRulestackName, priority, accept, context); } /** @@ -449,35 +321,12 @@ public LocalRulesResourceInner get(String resourceGroupName, String localRulesta @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, resource, accept, - context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, contentType, accept, + resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -488,44 +337,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack rule list along with {@link Response} on successful completion of {@link Mono}. + * @return localRulestack rule list along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String localRulestackName, String priority, LocalRulesResourceInner resource, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String priority, LocalRulesResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, resource, accept, - context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, contentType, accept, + resource, Context.NONE); } /** @@ -535,19 +359,20 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of localRulestack rule list. + * @return localRulestack rule list along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, LocalRulesResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, priority, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), LocalRulesResourceInner.class, LocalRulesResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String priority, LocalRulesResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, contentType, accept, + resource, context); } /** @@ -557,7 +382,6 @@ private PollerFlux, LocalRulesResourceInner> * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -565,13 +389,12 @@ private PollerFlux, LocalRulesResourceInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LocalRulesResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource, - Context context) { - context = this.client.mergeContext(context); + String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, priority, resource, context); + = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, priority, resource); return this.client.getLroResult(mono, - this.client.getHttpPipeline(), LocalRulesResourceInner.class, LocalRulesResourceInner.class, context); + this.client.getHttpPipeline(), LocalRulesResourceInner.class, LocalRulesResourceInner.class, + this.client.getContext()); } /** @@ -589,7 +412,10 @@ private PollerFlux, LocalRulesResourceInner> @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LocalRulesResourceInner> beginCreateOrUpdate( String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, priority, resource).getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, priority, resource); + return this.client.getLroResult(response, + LocalRulesResourceInner.class, LocalRulesResourceInner.class, Context.NONE); } /** @@ -609,8 +435,10 @@ public SyncPoller, LocalRulesResourceInner> public SyncPoller, LocalRulesResourceInner> beginCreateOrUpdate( String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, priority, resource, context) - .getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, priority, resource, context); + return this.client.getLroResult(response, + LocalRulesResourceInner.class, LocalRulesResourceInner.class, context); } /** @@ -632,26 +460,6 @@ private Mono createOrUpdateAsync(String resourceGroupNa .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a LocalRulesResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack rule list on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String localRulestackName, - String priority, LocalRulesResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, priority, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a LocalRulesResource. * @@ -667,7 +475,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) public LocalRulesResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, priority, resource).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, priority, resource).getFinalResult(); } /** @@ -686,7 +494,7 @@ public LocalRulesResourceInner createOrUpdate(String resourceGroupName, String l @ServiceMethod(returns = ReturnType.SINGLE) public LocalRulesResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String priority, LocalRulesResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, priority, resource, context).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, priority, resource, context).getFinalResult(); } /** @@ -703,29 +511,9 @@ public LocalRulesResourceInner createOrUpdate(String resourceGroupName, String l @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String localRulestackName, String priority) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -735,38 +523,16 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String localRulestackName, String priority, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, priority, accept, context); + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, + String priority) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, Context.NONE); } /** @@ -775,18 +541,17 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String priority) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, localRulestackName, priority); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, + String priority, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, context); } /** @@ -795,7 +560,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. - * @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. @@ -803,12 +567,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String priority, Context context) { - context = this.client.mergeContext(context); + String priority) { Mono>> mono - = deleteWithResponseAsync(resourceGroupName, localRulestackName, priority, context); + = deleteWithResponseAsync(resourceGroupName, localRulestackName, priority); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -825,7 +588,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String priority) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, priority).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, priority); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -843,7 +607,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String priority, Context context) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, priority, context).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, priority, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -869,17 +634,13 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. - * @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 A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String localRulestackName, String priority, - Context context) { - return beginDeleteAsync(resourceGroupName, localRulestackName, priority, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String resourceGroupName, String localRulestackName, String priority) { + beginDelete(resourceGroupName, localRulestackName, priority).getFinalResult(); } /** @@ -888,71 +649,134 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. + * @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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String priority) { - deleteAsync(resourceGroupName, localRulestackName, priority).block(); + public void delete(String resourceGroupName, String localRulestackName, String priority, Context context) { + beginDelete(resourceGroupName, localRulestackName, priority, context).getFinalResult(); } /** - * Delete a LocalRulesResource. + * List LocalRulesResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulesResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String priority, Context context) { - deleteAsync(resourceGroupName, localRulestackName, priority, context).block(); + private Mono> listByLocalRulestacksSinglePageAsync(String resourceGroupName, + String localRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); } /** - * Get counters. + * List LocalRulesResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. - * @param firewallName The firewallName parameter. * @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 counters along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, + String localRulestackName) { + return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); + } + + /** + * List LocalRulesResource resources by LocalRulestacks. + * + * @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 of a LocalRulesResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getCountersWithResponseAsync(String resourceGroupName, - String localRulestackName, String priority, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } + private PagedResponse listByLocalRulestacksSinglePage(String resourceGroupName, + String localRulestackName) { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List LocalRulesResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulesResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocalRulestacksSinglePage(String resourceGroupName, + String localRulestackName, Context context) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List LocalRulesResource resources by LocalRulestacks. + * + * @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 of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + return new PagedIterable<>(() -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink)); + } + + /** + * List LocalRulesResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context) { + return new PagedIterable<>( + () -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName, context), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink, context)); } /** @@ -962,7 +786,6 @@ private Mono> getCountersWithResponseAsync(String res * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. * @param firewallName The firewallName 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. @@ -970,31 +793,13 @@ private Mono> getCountersWithResponseAsync(String res */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getCountersWithResponseAsync(String resourceGroupName, - String localRulestackName, String priority, String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } + String localRulestackName, String priority, String firewallName) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, - context); + return FluxUtil + .withContext(context -> service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** @@ -1032,8 +837,10 @@ private Mono getCountersAsync(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response getCountersWithResponse(String resourceGroupName, String localRulestackName, String priority, String firewallName, Context context) { - return getCountersWithResponseAsync(resourceGroupName, localRulestackName, priority, firewallName, context) - .block(); + final String accept = "application/json"; + return service.getCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, + context); } /** @@ -1069,75 +876,13 @@ public RuleCounterInner getCounters(String resourceGroupName, String localRulest @ServiceMethod(returns = ReturnType.SINGLE) private Mono> refreshCountersWithResponseAsync(String resourceGroupName, String localRulestackName, String priority, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.refreshCounters(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Refresh counters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. - * @param firewallName The firewallName 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 {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> refreshCountersWithResponseAsync(String resourceGroupName, String localRulestackName, - String priority, String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.refreshCounters(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, - context); - } - /** * Refresh counters. * @@ -1172,8 +917,8 @@ private Mono refreshCountersAsync(String resourceGroupName, String localRu @ServiceMethod(returns = ReturnType.SINGLE) public Response refreshCountersWithResponse(String resourceGroupName, String localRulestackName, String priority, String firewallName, Context context) { - return refreshCountersWithResponseAsync(resourceGroupName, localRulestackName, priority, firewallName, context) - .block(); + return service.refreshCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, context); } /** @@ -1207,25 +952,6 @@ public void refreshCounters(String resourceGroupName, String localRulestackName, @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resetCountersWithResponseAsync(String resourceGroupName, String localRulestackName, String priority, String firewallName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetCounters(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1234,48 +960,6 @@ private Mono> resetCountersWithResponseAsync(Str .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Reset counters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. - * @param firewallName The firewallName 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 rule counter reset along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> resetCountersWithResponseAsync(String resourceGroupName, - String localRulestackName, String priority, String firewallName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.resetCounters(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, - context); - } - /** * Reset counters. * @@ -1311,8 +995,10 @@ private Mono resetCountersAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public Response resetCountersWithResponse(String resourceGroupName, String localRulestackName, String priority, String firewallName, Context context) { - return resetCountersWithResponseAsync(resourceGroupName, localRulestackName, priority, firewallName, context) - .block(); + final String accept = "application/json"; + return service.resetCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, priority, firewallName, accept, + context); } /** @@ -1345,13 +1031,6 @@ public RuleCounterResetInner resetCounters(String resourceGroupName, String loca */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByLocalRulestacksNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -1361,6 +1040,24 @@ private Mono> listByLocalRulestacksNextSi .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulesResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocalRulestacksNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1369,23 +1066,15 @@ private Mono> listByLocalRulestacksNextSi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a LocalRulesResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByLocalRulestacksNextSinglePageAsync(String nextLink, + private PagedResponse listByLocalRulestacksNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByLocalRulestacksNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/LocalRulesImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesImpl.java index 4be28e7fe809..89fb9b29b430 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -31,20 +31,6 @@ public LocalRulesImpl(LocalRulesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - PagedIterable inner - = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); - 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 ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulesResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String localRulestackName, String priority, Context context) { Response inner @@ -74,6 +60,20 @@ public void delete(String resourceGroupName, String localRulestackName, String p this.serviceClient().delete(resourceGroupName, localRulestackName, priority, context); } + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + PagedIterable inner + = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); + 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 ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulesResourceImpl(inner1, this.manager())); + } + public Response getCountersWithResponse(String resourceGroupName, String localRulestackName, String priority, String firewallName, Context context) { Response inner = this.serviceClient() 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 5195f80c519d..054abd62bd85 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; 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 1d2b1e696db2..1bfdbab2fa15 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 @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; +import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.management.SystemData; @@ -11,14 +12,13 @@ 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.Country; 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.PredefinedUrlCategory; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices; @@ -230,25 +230,25 @@ 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() { + public PagedIterable listAppIds() { return serviceManager.localRulestacks().listAppIds(resourceGroupName, localRulestackName); } - public Response listCountriesWithResponse(String skip, Integer top, Context context) { + public PagedIterable listAppIds(String appIdVersion, String appPrefix, String skip, Integer top, + Context context) { return serviceManager.localRulestacks() - .listCountriesWithResponse(resourceGroupName, localRulestackName, skip, top, context); + .listAppIds(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top, context); } - public CountriesResponse listCountries() { + public PagedIterable listCountries() { return serviceManager.localRulestacks().listCountries(resourceGroupName, localRulestackName); } + public PagedIterable listCountries(String skip, Integer top, Context context) { + return serviceManager.localRulestacks() + .listCountries(resourceGroupName, localRulestackName, skip, top, context); + } + public Response listFirewallsWithResponse(Context context) { return serviceManager.localRulestacks() .listFirewallsWithResponse(resourceGroupName, localRulestackName, context); @@ -258,14 +258,13 @@ 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 PagedIterable listPredefinedUrlCategories() { + return serviceManager.localRulestacks().listPredefinedUrlCategories(resourceGroupName, localRulestackName); } - public PredefinedUrlCategoriesResponse listPredefinedUrlCategories() { - return serviceManager.localRulestacks().listPredefinedUrlCategories(resourceGroupName, localRulestackName); + public PagedIterable listPredefinedUrlCategories(String skip, Integer top, Context context) { + return serviceManager.localRulestacks() + .listPredefinedUrlCategories(resourceGroupName, localRulestackName, skip, top, context); } public Response revertWithResponse(Context context) { @@ -352,6 +351,6 @@ public LocalRulestackResourceImpl withProperties(LocalRulestackResourceUpdatePro } private boolean isInCreateMode() { - return this.innerModel().id() == null; + return this.innerModel() == null || this.innerModel().id() == null; } } 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 3a650f2e055d..c42dbbf04973 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -29,6 +29,7 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; @@ -37,14 +38,16 @@ 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.implementation.models.LocalRulestackResourceListResult; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceListResult; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdate; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum; import java.nio.ByteBuffer; @@ -63,90 +66,161 @@ public final class LocalRulestacksClientImpl implements LocalRulestacksClient { /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of LocalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - LocalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + LocalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(LocalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwLocalRulestacks to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientLocalRulestacks to be used by the + * proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientLocalRulestacks") public interface LocalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") LocalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, - @BodyParam("application/json") LocalRulestackResourceInner resource, @HeaderParam("Accept") String accept, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") LocalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, + Mono> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, - @BodyParam("application/json") LocalRulestackResourceUpdate properties, - @HeaderParam("Accept") String accept, Context context); + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LocalRulestackResourceUpdate properties, Context context); - @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LocalRulestackResourceUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + @PathParam("localRulestackName") String localRulestackName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/commit") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> commit(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/commit") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> commit(@HostParam("$host") String endpoint, + Response commitSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/getChangeLog") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getChangeLog(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, @@ -156,7 +230,7 @@ Mono>> commit(@HostParam("$host") String endpoint, @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/getChangeLog") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getChangeLog(@HostParam("$host") String endpoint, + Response getChangeLogSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, @@ -166,7 +240,17 @@ Mono> getChangeLog(@HostParam("$host") String endpoint, @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/getSupportInfo") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getSupportInfo(@HostParam("$host") String endpoint, + Mono> getSupportInfo(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @QueryParam("email") String email, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/getSupportInfo") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSupportInfoSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @QueryParam("email") String email, @@ -177,7 +261,19 @@ Mono> getSupportInfo(@HostParam("$host") String endpo @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAdvancedSecurityObjects( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, + @QueryParam("top") Integer top, @QueryParam("type") AdvSecurityObjectTypeEnum type, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listAdvancedSecurityObjects") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listAdvancedSecurityObjectsSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, @@ -188,18 +284,39 @@ Mono> listAdvancedSecurityObjects( @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listAppIds") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAppIds(@HostParam("$host") String endpoint, + Mono> listAppIds(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @QueryParam("appIdVersion") String appIdVersion, @QueryParam("appPrefix") String appPrefix, @QueryParam("skip") String skip, @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listAppIds") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listAppIdsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @QueryParam("appIdVersion") String appIdVersion, + @QueryParam("appPrefix") String appPrefix, @QueryParam("skip") String skip, @QueryParam("top") Integer top, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listCountries") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listCountries(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, + @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listCountries") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCountries(@HostParam("$host") String endpoint, + Response listCountriesSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, @@ -209,7 +326,17 @@ Mono> listCountries(@HostParam("$host") String @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listFirewalls") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listFirewalls(@HostParam("$host") String endpoint, + Mono> listFirewalls(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listFirewalls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listFirewallsSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, @@ -220,7 +347,18 @@ Mono> listFirewalls(@HostParam("$host") Str @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listPredefinedUrlCategories( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, + @QueryParam("top") Integer top, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listPredefinedUrlCategories") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listPredefinedUrlCategoriesSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, @@ -230,7 +368,7 @@ Mono> listPredefinedUrlCategories @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listSecurityServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSecurityServices(@HostParam("$host") String endpoint, + Mono> listSecurityServices(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, @@ -238,269 +376,113 @@ Mono> listSecurityServices(@HostParam("$ @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/listSecurityServices") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSecurityServicesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @QueryParam("skip") String skip, + @QueryParam("top") Integer top, @QueryParam("type") SecurityServicesTypeEnum type, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/revert") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> revert(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/revert") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> revert(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + Response revertSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("localRulestackName") String localRulestackName, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - /** - * List LocalRulestackResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - 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.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List LocalRulestackResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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 - .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, - context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List LocalRulestackResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * List LocalRulestackResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); - } - - /** - * List LocalRulestackResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List LocalRulestackResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, 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())); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAppIdsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listAppIdsNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listCountriesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listCountriesNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listPredefinedUrlCategoriesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List LocalRulestackResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listPredefinedUrlCategoriesNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -516,22 +498,6 @@ public PagedIterable listByResourceGroup(String res @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), @@ -539,42 +505,6 @@ private Mono> getByResourceGroupWithRespon .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a LocalRulestackResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a LocalRulestackResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); - } - /** * Get a LocalRulestackResource. * @@ -606,7 +536,9 @@ private Mono getByResourceGroupAsync(String resourc @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse(String resourceGroupName, String localRulestackName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, localRulestackName, context).block(); + final String accept = "application/json"; + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); } /** @@ -638,31 +570,12 @@ public LocalRulestackResourceInner getByResourceGroup(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, resource, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, contentType, accept, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -672,40 +585,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks LocalRulestack along with {@link Response} on successful completion of {@link Mono}. + * @return paloAltoNetworks LocalRulestack along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String localRulestackName, LocalRulestackResourceInner resource, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + LocalRulestackResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, contentType, accept, resource, + Context.NONE); } /** @@ -714,19 +606,20 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of paloAltoNetworks LocalRulestack. + * @return paloAltoNetworks LocalRulestack along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, LocalRulestackResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), LocalRulestackResourceInner.class, LocalRulestackResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + LocalRulestackResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, contentType, accept, resource, + context); } /** @@ -735,7 +628,6 @@ private PollerFlux, LocalRulestackResour * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -743,13 +635,12 @@ private PollerFlux, LocalRulestackResour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LocalRulestackResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource, Context context) { - context = this.client.mergeContext(context); + String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, resource, context); + = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, resource); return this.client.getLroResult(mono, this.client.getHttpPipeline(), LocalRulestackResourceInner.class, LocalRulestackResourceInner.class, - context); + this.client.getContext()); } /** @@ -766,7 +657,9 @@ private PollerFlux, LocalRulestackResour @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LocalRulestackResourceInner> beginCreateOrUpdate(String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(resourceGroupName, localRulestackName, resource); + return this.client.getLroResult(response, + LocalRulestackResourceInner.class, LocalRulestackResourceInner.class, Context.NONE); } /** @@ -784,7 +677,10 @@ private PollerFlux, LocalRulestackResour @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LocalRulestackResourceInner> beginCreateOrUpdate( String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, resource, context).getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, resource, context); + return this.client.getLroResult(response, + LocalRulestackResourceInner.class, LocalRulestackResourceInner.class, context); } /** @@ -805,25 +701,6 @@ private Mono createOrUpdateAsync(String resourceGro .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a LocalRulestackResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paloAltoNetworks LocalRulestack on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String localRulestackName, - LocalRulestackResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a LocalRulestackResource. * @@ -838,7 +715,7 @@ private Mono createOrUpdateAsync(String resourceGro @ServiceMethod(returns = ReturnType.SINGLE) public LocalRulestackResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, resource).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, resource).getFinalResult(); } /** @@ -856,7 +733,7 @@ public LocalRulestackResourceInner createOrUpdate(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public LocalRulestackResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, LocalRulestackResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, resource, context).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, resource, context).getFinalResult(); } /** @@ -873,76 +750,15 @@ public LocalRulestackResourceInner createOrUpdate(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String localRulestackName, LocalRulestackResourceUpdate properties) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, properties, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, contentType, accept, properties, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Update a LocalRulestackResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param properties The resource properties to be updated. - * @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 paloAltoNetworks LocalRulestack along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String localRulestackName, LocalRulestackResourceUpdate properties, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, properties, accept, context); - } - /** * Update a LocalRulestackResource. * @@ -976,7 +792,11 @@ private Mono updateAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String localRulestackName, LocalRulestackResourceUpdate properties, Context context) { - return updateWithResponseAsync(resourceGroupName, localRulestackName, properties, context).block(); + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, contentType, accept, properties, + context); } /** @@ -1009,29 +829,28 @@ public LocalRulestackResourceInner update(String resourceGroupName, String local @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Delete a LocalRulestackResource. + * + * @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 along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String localRulestackName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, Context.NONE); + } + /** * Delete a LocalRulestackResource. * @@ -1041,31 +860,13 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, accept, context); + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, context); } /** @@ -1085,6 +886,22 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup this.client.getContext()); } + /** + * Delete a LocalRulestackResource. + * + * @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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName) { + Response response = deleteWithResponse(resourceGroupName, localRulestackName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + /** * Delete a LocalRulestackResource. * @@ -1094,109 +911,257 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, localRulestackName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a LocalRulestackResource. + * + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String localRulestackName) { + return beginDeleteAsync(resourceGroupName, localRulestackName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a LocalRulestackResource. + * + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String localRulestackName) { + beginDelete(resourceGroupName, localRulestackName).getFinalResult(); + } + + /** + * Delete a LocalRulestackResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String localRulestackName, Context context) { + beginDelete(resourceGroupName, localRulestackName, context).getFinalResult(); + } + + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, 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())); + } + + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, + Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); + } + + /** + * List LocalRulestackResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, localRulestackName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); } /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @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 {@link SyncPoller} for polling of long-running operation. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @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 A {@link Mono} that completes when a successful response is received. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String localRulestackName) { - return beginDeleteAsync(resourceGroupName, localRulestackName).last() - .flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String localRulestackName, Context context) { - return beginDeleteAsync(resourceGroupName, localRulestackName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @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 of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName) { - deleteAsync(resourceGroupName, localRulestackName).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); } /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, Context context) { - deleteAsync(resourceGroupName, localRulestackName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); } /** @@ -1212,26 +1177,9 @@ public void delete(String resourceGroupName, String localRulestackName, Context @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> commitWithResponseAsync(String resourceGroupName, String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.commit(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1240,35 +1188,15 @@ private Mono>> commitWithResponseAsync(String resource * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> commitWithResponseAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.commit(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, accept, context); + private Response commitWithResponse(String resourceGroupName, String localRulestackName) { + return service.commitSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, Context.NONE); } /** @@ -1276,16 +1204,17 @@ private Mono>> commitWithResponseAsync(String resource * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginCommitAsync(String resourceGroupName, String localRulestackName) { - Mono>> mono = commitWithResponseAsync(resourceGroupName, localRulestackName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response commitWithResponse(String resourceGroupName, String localRulestackName, + Context context) { + return service.commitSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, context); } /** @@ -1293,19 +1222,16 @@ private PollerFlux, Void> beginCommitAsync(String resourceGroup * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginCommitAsync(String resourceGroupName, String localRulestackName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = commitWithResponseAsync(resourceGroupName, localRulestackName, context); + private PollerFlux, Void> beginCommitAsync(String resourceGroupName, String localRulestackName) { + Mono>> mono = commitWithResponseAsync(resourceGroupName, localRulestackName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -1320,7 +1246,8 @@ private PollerFlux, Void> beginCommitAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginCommit(String resourceGroupName, String localRulestackName) { - return this.beginCommitAsync(resourceGroupName, localRulestackName).getSyncPoller(); + Response response = commitWithResponse(resourceGroupName, localRulestackName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -1337,7 +1264,8 @@ public SyncPoller, Void> beginCommit(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginCommit(String resourceGroupName, String localRulestackName, Context context) { - return this.beginCommitAsync(resourceGroupName, localRulestackName, context).getSyncPoller(); + Response response = commitWithResponse(resourceGroupName, localRulestackName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -1356,23 +1284,6 @@ private Mono commitAsync(String resourceGroupName, String localRulestackNa .flatMap(this.client::getLroFinalResultOrError); } - /** - * Commit rulestack configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono commitAsync(String resourceGroupName, String localRulestackName, Context context) { - return beginCommitAsync(resourceGroupName, localRulestackName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Commit rulestack configuration. * @@ -1384,7 +1295,7 @@ private Mono commitAsync(String resourceGroupName, String localRulestackNa */ @ServiceMethod(returns = ReturnType.SINGLE) public void commit(String resourceGroupName, String localRulestackName) { - commitAsync(resourceGroupName, localRulestackName).block(); + beginCommit(resourceGroupName, localRulestackName).getFinalResult(); } /** @@ -1399,7 +1310,7 @@ public void commit(String resourceGroupName, String localRulestackName) { */ @ServiceMethod(returns = ReturnType.SINGLE) public void commit(String resourceGroupName, String localRulestackName, Context context) { - commitAsync(resourceGroupName, localRulestackName, context).block(); + beginCommit(resourceGroupName, localRulestackName, context).getFinalResult(); } /** @@ -1415,22 +1326,6 @@ public void commit(String resourceGroupName, String localRulestackName, Context @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getChangeLogWithResponseAsync(String resourceGroupName, String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getChangeLog(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1438,42 +1333,6 @@ private Mono> getChangeLogWithResponseAsync(String reso .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get changelog. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return changelog along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getChangeLogWithResponseAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getChangeLog(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); - } - /** * Get changelog. * @@ -1504,7 +1363,9 @@ private Mono getChangeLogAsync(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response getChangeLogWithResponse(String resourceGroupName, String localRulestackName, Context context) { - return getChangeLogWithResponseAsync(resourceGroupName, localRulestackName, context).block(); + final String accept = "application/json"; + return service.getChangeLogSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); } /** @@ -1537,22 +1398,6 @@ public ChangelogInner getChangeLog(String resourceGroupName, String localRulesta @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSupportInfoWithResponseAsync(String resourceGroupName, String localRulestackName, String email) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getSupportInfo(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1560,44 +1405,6 @@ private Mono> getSupportInfoWithResponseAsync(String .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * support info for rulestack. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param email email address on behalf of which this API called. - * @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 resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getSupportInfoWithResponseAsync(String resourceGroupName, - String localRulestackName, String email, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getSupportInfo(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, email, accept, context); - } - /** * support info for rulestack. * @@ -1630,7 +1437,9 @@ private Mono getSupportInfoAsync(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response getSupportInfoWithResponse(String resourceGroupName, String localRulestackName, String email, Context context) { - return getSupportInfoWithResponseAsync(resourceGroupName, localRulestackName, email, context).block(); + final String accept = "application/json"; + return service.getSupportInfoSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, email, accept, context); } /** @@ -1666,25 +1475,6 @@ public SupportInfoInner getSupportInfo(String resourceGroupName, String localRul @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAdvancedSecurityObjectsWithResponseAsync( String resourceGroupName, String localRulestackName, AdvSecurityObjectTypeEnum type, String skip, Integer top) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAdvancedSecurityObjects(this.client.getEndpoint(), @@ -1693,50 +1483,6 @@ private Mono> listAdvancedSecurityO .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get the list of advanced security objects. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param type The type 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 list of advanced security objects along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAdvancedSecurityObjectsWithResponseAsync( - String resourceGroupName, String localRulestackName, AdvSecurityObjectTypeEnum type, 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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listAdvancedSecurityObjects(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, type, accept, context); - } - /** * Get the list of advanced security objects. * @@ -1775,8 +1521,9 @@ private Mono listAdvancedSecurityObjectsAsyn public Response listAdvancedSecurityObjectsWithResponse( String resourceGroupName, String localRulestackName, AdvSecurityObjectTypeEnum type, String skip, Integer top, Context context) { - return listAdvancedSecurityObjectsWithResponseAsync(resourceGroupName, localRulestackName, type, skip, top, - context).block(); + final String accept = "application/json"; + return service.listAdvancedSecurityObjectsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, type, accept, context); } /** @@ -1811,32 +1558,18 @@ 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}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAppIdsWithResponseAsync(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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listAppIdsSinglePageAsync(String resourceGroupName, String localRulestackName, + String appIdVersion, String appPrefix, String skip, Integer top) { final String accept = "application/json"; return FluxUtil .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())); } @@ -1849,36 +1582,17 @@ private Mono> listAppIdsWithResponseAsync(Strin * @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} 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) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - 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); + * @return the paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAppIdsAsync(String resourceGroupName, String localRulestackName, String appIdVersion, + String appPrefix, String skip, Integer top) { + return new PagedFlux<>( + () -> listAppIdsSinglePageAsync(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top), + nextLink -> listAppIdsNextSinglePageAsync(nextLink)); } /** @@ -1889,16 +1603,42 @@ 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 on successful completion of {@link Mono}. + * @return the paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAppIdsAsync(String resourceGroupName, String localRulestackName) { + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux 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())); + return new PagedFlux<>( + () -> listAppIdsSinglePageAsync(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top), + nextLink -> listAppIdsNextSinglePageAsync(nextLink)); + } + + /** + * 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. + * @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 PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listAppIdsSinglePage(String resourceGroupName, String localRulestackName, + String appIdVersion, String appPrefix, String skip, Integer top) { + final String accept = "application/json"; + Response res = service.listAppIdsSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, localRulestackName, + appIdVersion, appPrefix, skip, top, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -1914,13 +1654,17 @@ private Mono listAppIdsAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response body along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listAppIdsWithResponse(String resourceGroupName, String localRulestackName, + private PagedResponse listAppIdsSinglePage(String resourceGroupName, String localRulestackName, String appIdVersion, String appPrefix, String skip, Integer top, Context context) { - return listAppIdsWithResponseAsync(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top, - context).block(); + final String accept = "application/json"; + Response res = service.listAppIdsSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, localRulestackName, + appIdVersion, appPrefix, skip, top, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -1931,16 +1675,39 @@ public Response listAppIdsWithResponse(String resourceGr * @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. + * @return the paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ListAppIdResponseInner listAppIds(String resourceGroupName, String localRulestackName) { + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable 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 new PagedIterable<>( + () -> listAppIdsSinglePage(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top), + nextLink -> listAppIdsNextSinglePage(nextLink)); + } + + /** + * 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 paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAppIds(String resourceGroupName, String localRulestackName, String appIdVersion, + String appPrefix, String skip, Integer top, Context context) { + return new PagedIterable<>(() -> listAppIdsSinglePage(resourceGroupName, localRulestackName, appIdVersion, + appPrefix, skip, top, context), nextLink -> listAppIdsNextSinglePage(nextLink, context)); } /** @@ -1953,31 +1720,17 @@ 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( - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } final String accept = "application/json"; 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())); } @@ -1988,35 +1741,16 @@ private Mono> listCountriesWithResponseAsync(St * @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} on successful completion of {@link Mono}. + * @return countries Response Object as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCountriesWithResponseAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - 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); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listCountriesAsync(String resourceGroupName, String localRulestackName, String skip, + Integer top) { + return new PagedFlux<>(() -> listCountriesSinglePageAsync(resourceGroupName, localRulestackName, skip, top), + nextLink -> listCountriesNextSinglePageAsync(nextLink)); } /** @@ -2027,14 +1761,14 @@ 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 on successful completion of {@link Mono}. + * @return countries Response Object as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listCountriesAsync(String resourceGroupName, String localRulestackName) { + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux 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())); + return new PagedFlux<>(() -> listCountriesSinglePageAsync(resourceGroupName, localRulestackName, skip, top), + nextLink -> listCountriesNextSinglePageAsync(nextLink)); } /** @@ -2044,16 +1778,20 @@ private Mono listCountriesAsync(String resourceGroupName * @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}. + * @return countries Response Object along with {@link PagedResponse}. */ @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(); + private PagedResponse listCountriesSinglePage(String resourceGroupName, String localRulestackName, + String skip, Integer top) { + final String accept = "application/json"; + Response res = service.listCountriesSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, + top, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -2061,52 +1799,62 @@ public Response listCountriesWithResponse(String resourc * * @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. + * @return countries Response Object along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CountriesResponseInner listCountries(String resourceGroupName, String localRulestackName) { + private PagedResponse listCountriesSinglePage(String resourceGroupName, String localRulestackName, + String skip, Integer top, Context context) { + final String accept = "application/json"; + Response res + = service.listCountriesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * 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 as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listCountries(String resourceGroupName, String localRulestackName) { final String skip = null; final Integer top = null; - return listCountriesWithResponse(resourceGroupName, localRulestackName, skip, top, Context.NONE).getValue(); + return new PagedIterable<>(() -> listCountriesSinglePage(resourceGroupName, localRulestackName, skip, top), + nextLink -> listCountriesNextSinglePage(nextLink)); } /** - * List of Firewalls associated with Rulestack. + * 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 list firewalls response along with {@link Response} on successful completion of {@link Mono}. + * @return countries Response Object as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listFirewallsWithResponseAsync(String resourceGroupName, - String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listCountries(String resourceGroupName, String localRulestackName, String skip, + Integer top, Context context) { + return new PagedIterable<>( + () -> listCountriesSinglePage(resourceGroupName, localRulestackName, skip, top, context), + nextLink -> listCountriesNextSinglePage(nextLink, context)); } /** @@ -2114,7 +1862,6 @@ private Mono> listFirewallsWithResponseAsyn * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2122,27 +1869,12 @@ private Mono> listFirewallsWithResponseAsyn */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listFirewallsWithResponseAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } + String localRulestackName) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); + return FluxUtil + .withContext(context -> service.listFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** @@ -2175,7 +1907,9 @@ private Mono listFirewallsAsync(String resourceGroup @ServiceMethod(returns = ReturnType.SINGLE) public Response listFirewallsWithResponse(String resourceGroupName, String localRulestackName, Context context) { - return listFirewallsWithResponseAsync(resourceGroupName, localRulestackName, context).block(); + final String accept = "application/json"; + return service.listFirewallsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); } /** @@ -2203,32 +1937,19 @@ 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( - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .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())); } @@ -2239,35 +1960,17 @@ private Mono> listPredefinedUrlCa * @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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPredefinedUrlCategoriesWithResponseAsync( - String resourceGroupName, String localRulestackName, 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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - 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); + * @return predefined url categories response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listPredefinedUrlCategoriesAsync(String resourceGroupName, + String localRulestackName, String skip, Integer top) { + return new PagedFlux<>( + () -> listPredefinedUrlCategoriesSinglePageAsync(resourceGroupName, localRulestackName, skip, top), + nextLink -> listPredefinedUrlCategoriesNextSinglePageAsync(nextLink)); } /** @@ -2278,15 +1981,16 @@ 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 on successful completion of {@link Mono}. + * @return predefined url categories response as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listPredefinedUrlCategoriesAsync(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux 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())); + return new PagedFlux<>( + () -> listPredefinedUrlCategoriesSinglePageAsync(resourceGroupName, localRulestackName, skip, top), + nextLink -> listPredefinedUrlCategoriesNextSinglePageAsync(nextLink)); } /** @@ -2296,17 +2000,20 @@ private Mono listPredefinedUrlCategoriesAs * @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}. + * @return predefined url categories response along with {@link PagedResponse}. */ @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(); + private PagedResponse listPredefinedUrlCategoriesSinglePage(String resourceGroupName, + String localRulestackName, String skip, Integer top) { + final String accept = "application/json"; + Response res = service.listPredefinedUrlCategoriesSync( + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + localRulestackName, skip, top, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -2314,61 +2021,64 @@ public Response listPredefinedUrlCategorie * * @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. + * @return predefined url categories response along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PredefinedUrlCategoriesResponseInner listPredefinedUrlCategories(String resourceGroupName, + private PagedResponse listPredefinedUrlCategoriesSinglePage(String resourceGroupName, + String localRulestackName, String skip, Integer top, Context context) { + final String accept = "application/json"; + Response res + = service.listPredefinedUrlCategoriesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * 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 as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listPredefinedUrlCategories(String resourceGroupName, String localRulestackName) { final String skip = null; final Integer top = null; - return listPredefinedUrlCategoriesWithResponse(resourceGroupName, localRulestackName, skip, top, Context.NONE) - .getValue(); + return new PagedIterable<>( + () -> listPredefinedUrlCategoriesSinglePage(resourceGroupName, localRulestackName, skip, top), + nextLink -> listPredefinedUrlCategoriesNextSinglePage(nextLink)); } /** - * List the security services for rulestack. + * 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 type The type 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 security services list response along with {@link Response} on successful completion of {@link Mono}. + * @return predefined url categories response as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSecurityServicesWithResponseAsync( - String resourceGroupName, String localRulestackName, SecurityServicesTypeEnum type, String skip, Integer top) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listSecurityServices(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, type, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listPredefinedUrlCategories(String resourceGroupName, + String localRulestackName, String skip, Integer top, Context context) { + return new PagedIterable<>( + () -> listPredefinedUrlCategoriesSinglePage(resourceGroupName, localRulestackName, skip, top, context), + nextLink -> listPredefinedUrlCategoriesNextSinglePage(nextLink, context)); } /** @@ -2379,7 +2089,6 @@ private Mono> listSecurityServicesWithRe * @param type The type 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. @@ -2387,31 +2096,13 @@ private Mono> listSecurityServicesWithRe */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSecurityServicesWithResponseAsync( - String resourceGroupName, String localRulestackName, SecurityServicesTypeEnum type, 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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (type == null) { - return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); - } + String resourceGroupName, String localRulestackName, SecurityServicesTypeEnum type, String skip, Integer top) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listSecurityServices(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, type, accept, context); + return FluxUtil + .withContext(context -> service.listSecurityServices(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, type, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** @@ -2451,8 +2142,9 @@ private Mono listSecurityServicesAsync(String res @ServiceMethod(returns = ReturnType.SINGLE) public Response listSecurityServicesWithResponse(String resourceGroupName, String localRulestackName, SecurityServicesTypeEnum type, String skip, Integer top, Context context) { - return listSecurityServicesWithResponseAsync(resourceGroupName, localRulestackName, type, skip, top, context) - .block(); + final String accept = "application/json"; + return service.listSecurityServicesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, skip, top, type, accept, context); } /** @@ -2487,65 +2179,12 @@ public SecurityServicesResponseInner listSecurityServices(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> revertWithResponseAsync(String resourceGroupName, String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.revert(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Revert rulestack configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> revertWithResponseAsync(String resourceGroupName, String localRulestackName, - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.revert(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, accept, context); - } - /** * Revert rulestack configuration. * @@ -2574,7 +2213,8 @@ private Mono revertAsync(String resourceGroupName, String localRulestackNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response revertWithResponse(String resourceGroupName, String localRulestackName, Context context) { - return revertWithResponseAsync(resourceGroupName, localRulestackName, context).block(); + return service.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, context); } /** @@ -2602,23 +2242,34 @@ public void revert(String resourceGroupName, String localRulestackName) { * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), 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())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -2627,24 +2278,16 @@ private Mono> listBySubscriptionNextS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -2658,23 +2301,205 @@ private Mono> listBySubscriptionNextS * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), 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())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listAppIdsNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listAppIdsNext(nextLink, this.client.getEndpoint(), 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())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listAppIdsNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listAppIdsNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listAppIdsNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listAppIdsNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listCountriesNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listCountriesNext(nextLink, this.client.getEndpoint(), 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())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listCountriesNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listCountriesNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listCountriesNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listCountriesNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listPredefinedUrlCategoriesNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.listPredefinedUrlCategoriesNext(nextLink, this.client.getEndpoint(), 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())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listPredefinedUrlCategoriesNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listPredefinedUrlCategoriesNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -2683,23 +2508,15 @@ private Mono> listByResourceGroupNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return predefined url categories response along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + private PagedResponse listPredefinedUrlCategoriesNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listPredefinedUrlCategoriesNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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 ddc596186b44..98271564dea3 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -12,22 +12,20 @@ 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.CountryInner; 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.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.Country; 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.PredefinedUrlCategory; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfo; @@ -45,27 +43,6 @@ public LocalRulestacksImpl(LocalRulestacksClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - 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 ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager())); - } - public Response getByResourceGroupWithResponse(String resourceGroupName, String localRulestackName, Context context) { Response inner @@ -96,6 +73,27 @@ public void delete(String resourceGroupName, String localRulestackName, Context this.serviceClient().delete(resourceGroupName, localRulestackName, context); } + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + 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 ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LocalRulestackResourceImpl(inner1, this.manager())); + } + public void commit(String resourceGroupName, String localRulestackName) { this.serviceClient().commit(resourceGroupName, localRulestackName); } @@ -169,46 +167,26 @@ 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 PagedIterable listAppIds(String resourceGroupName, String localRulestackName) { + return this.serviceClient().listAppIds(resourceGroupName, localRulestackName); } - 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 PagedIterable listAppIds(String resourceGroupName, String localRulestackName, String appIdVersion, + String appPrefix, String skip, Integer top, Context context) { + return this.serviceClient() + .listAppIds(resourceGroupName, localRulestackName, appIdVersion, appPrefix, skip, top, context); } - 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 PagedIterable listCountries(String resourceGroupName, String localRulestackName) { + PagedIterable inner = this.serviceClient().listCountries(resourceGroupName, localRulestackName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CountryImpl(inner1, this.manager())); } - 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 PagedIterable listCountries(String resourceGroupName, String localRulestackName, String skip, + Integer top, Context context) { + PagedIterable inner + = this.serviceClient().listCountries(resourceGroupName, localRulestackName, skip, top, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CountryImpl(inner1, this.manager())); } public Response listFirewallsWithResponse(String resourceGroupName, @@ -232,27 +210,18 @@ 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, + public PagedIterable listPredefinedUrlCategories(String resourceGroupName, String localRulestackName) { - PredefinedUrlCategoriesResponseInner inner + PagedIterable inner = this.serviceClient().listPredefinedUrlCategories(resourceGroupName, localRulestackName); - if (inner != null) { - return new PredefinedUrlCategoriesResponseImpl(inner, this.manager()); - } else { - return null; - } + return ResourceManagerUtils.mapPage(inner, inner1 -> new PredefinedUrlCategoryImpl(inner1, this.manager())); + } + + public PagedIterable listPredefinedUrlCategories(String resourceGroupName, + String localRulestackName, String skip, Integer top, Context context) { + PagedIterable inner = this.serviceClient() + .listPredefinedUrlCategories(resourceGroupName, localRulestackName, skip, top, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PredefinedUrlCategoryImpl(inner1, this.manager())); } public Response listSecurityServicesWithResponse(String resourceGroupName, diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LogSettingsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LogSettingsImpl.java index e953d876ad7e..895e752f1b0c 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LogSettingsImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LogSettingsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallResourceImpl.java new file mode 100644 index 000000000000..28d15c84e33e --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallResourceImpl.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MetricsObjectFirewallResource; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState; + +public final class MetricsObjectFirewallResourceImpl implements MetricsObjectFirewallResource { + private MetricsObjectFirewallResourceInner innerObject; + + private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager; + + MetricsObjectFirewallResourceImpl(MetricsObjectFirewallResourceInner innerObject, + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String applicationInsightsResourceId() { + return this.innerModel().applicationInsightsResourceId(); + } + + public String applicationInsightsConnectionString() { + return this.innerModel().applicationInsightsConnectionString(); + } + + public String panEtag() { + return this.innerModel().panEtag(); + } + + public ProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public MetricsObjectFirewallResourceInner 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/MetricsObjectFirewallsClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallsClientImpl.java new file mode 100644 index 000000000000..c9fb67d3e359 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallsClientImpl.java @@ -0,0 +1,738 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +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.Put; +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.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +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.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.MetricsObjectFirewallResourceListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MetricsObjectFirewallsClient. + */ +public final class MetricsObjectFirewallsClientImpl implements MetricsObjectFirewallsClient { + /** + * The proxy service used to perform REST calls. + */ + private final MetricsObjectFirewallsService service; + + /** + * The service client containing this operation class. + */ + private final PaloAltoNetworksNgfwManagementClientImpl client; + + /** + * Initializes an instance of MetricsObjectFirewallsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + MetricsObjectFirewallsClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { + this.service = RestProxy.create(MetricsObjectFirewallsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientMetricsObjectFirewalls to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientMetricsObjectFirewalls") + public interface MetricsObjectFirewallsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") MetricsObjectFirewallResourceInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") MetricsObjectFirewallResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics/default") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByFirewalls(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}/metrics") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByFirewallsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByFirewallsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByFirewallsNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 a MetricsObjectFirewallResource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String firewallName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 a MetricsObjectFirewallResource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String firewallName) { + return getWithResponseAsync(resourceGroupName, firewallName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a MetricsObjectFirewallResource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String firewallName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, firewallName, accept, context); + } + + /** + * Get a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 a MetricsObjectFirewallResource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MetricsObjectFirewallResourceInner get(String resourceGroupName, String firewallName) { + return getWithResponse(resourceGroupName, firewallName, Context.NONE).getValue(); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String firewallName, MetricsObjectFirewallResourceInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, resource, + Context.NONE); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, contentType, accept, resource, context); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, MetricsObjectFirewallResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, firewallName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MetricsObjectFirewallResourceInner.class, + MetricsObjectFirewallResourceInner.class, this.client.getContext()); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MetricsObjectFirewallResourceInner> + beginCreateOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource) { + Response response = createOrUpdateWithResponse(resourceGroupName, firewallName, resource); + return this.client.getLroResult( + response, MetricsObjectFirewallResourceInner.class, MetricsObjectFirewallResourceInner.class, Context.NONE); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MetricsObjectFirewallResourceInner> + beginCreateOrUpdate(String resourceGroupName, String firewallName, MetricsObjectFirewallResourceInner resource, + Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, firewallName, resource, context); + return this.client.getLroResult( + response, MetricsObjectFirewallResourceInner.class, MetricsObjectFirewallResourceInner.class, context); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, firewallName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MetricsObjectFirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource) { + return beginCreateOrUpdate(resourceGroupName, firewallName, resource).getFinalResult(); + } + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MetricsObjectFirewallResourceInner createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, firewallName, resource, context).getFinalResult(); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String firewallName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, Context.NONE); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String firewallName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, context); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName) { + Response response = deleteWithResponse(resourceGroupName, firewallName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, firewallName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String firewallName) { + return beginDeleteAsync(resourceGroupName, firewallName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String firewallName) { + beginDelete(resourceGroupName, firewallName).getFinalResult(); + } + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String firewallName, Context context) { + beginDelete(resourceGroupName, firewallName, context).getFinalResult(); + } + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a MetricsObjectFirewallResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByFirewallsSinglePageAsync(String resourceGroupName, String firewallName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByFirewalls(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, 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())); + } + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a MetricsObjectFirewallResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFirewallsAsync(String resourceGroupName, + String firewallName) { + return new PagedFlux<>(() -> listByFirewallsSinglePageAsync(resourceGroupName, firewallName), + nextLink -> listByFirewallsNextSinglePageAsync(nextLink)); + } + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a MetricsObjectFirewallResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFirewallsSinglePage(String resourceGroupName, + String firewallName) { + final String accept = "application/json"; + Response res + = service.listByFirewallsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MetricsObjectFirewallResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFirewallsSinglePage(String resourceGroupName, + String firewallName, Context context) { + final String accept = "application/json"; + Response res + = service.listByFirewallsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, firewallName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a MetricsObjectFirewallResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByFirewalls(String resourceGroupName, + String firewallName) { + return new PagedIterable<>(() -> listByFirewallsSinglePage(resourceGroupName, firewallName), + nextLink -> listByFirewallsNextSinglePage(nextLink)); + } + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MetricsObjectFirewallResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByFirewalls(String resourceGroupName, + String firewallName, Context context) { + return new PagedIterable<>(() -> listByFirewallsSinglePage(resourceGroupName, firewallName, context), + nextLink -> listByFirewallsNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MetricsObjectFirewallResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByFirewallsNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByFirewallsNext(nextLink, this.client.getEndpoint(), 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())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MetricsObjectFirewallResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFirewallsNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByFirewallsNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MetricsObjectFirewallResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFirewallsNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listByFirewallsNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/MetricsObjectFirewallsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallsImpl.java new file mode 100644 index 000000000000..94d80478c780 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallsImpl.java @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; + +import com.azure.core.http.rest.PagedIterable; +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.MetricsObjectFirewallsClient; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MetricsObjectFirewallResource; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MetricsObjectFirewalls; + +public final class MetricsObjectFirewallsImpl implements MetricsObjectFirewalls { + private static final ClientLogger LOGGER = new ClientLogger(MetricsObjectFirewallsImpl.class); + + private final MetricsObjectFirewallsClient innerClient; + + private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager; + + public MetricsObjectFirewallsImpl(MetricsObjectFirewallsClient innerClient, + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String firewallName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, firewallName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MetricsObjectFirewallResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MetricsObjectFirewallResource get(String resourceGroupName, String firewallName) { + MetricsObjectFirewallResourceInner inner = this.serviceClient().get(resourceGroupName, firewallName); + if (inner != null) { + return new MetricsObjectFirewallResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public MetricsObjectFirewallResource createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource) { + MetricsObjectFirewallResourceInner inner + = this.serviceClient().createOrUpdate(resourceGroupName, firewallName, resource); + if (inner != null) { + return new MetricsObjectFirewallResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public MetricsObjectFirewallResource createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource, Context context) { + MetricsObjectFirewallResourceInner inner + = this.serviceClient().createOrUpdate(resourceGroupName, firewallName, resource, context); + if (inner != null) { + return new MetricsObjectFirewallResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String firewallName) { + this.serviceClient().delete(resourceGroupName, firewallName); + } + + public void delete(String resourceGroupName, String firewallName, Context context) { + this.serviceClient().delete(resourceGroupName, firewallName, context); + } + + public PagedIterable listByFirewalls(String resourceGroupName, String firewallName) { + PagedIterable inner + = this.serviceClient().listByFirewalls(resourceGroupName, firewallName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new MetricsObjectFirewallResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByFirewalls(String resourceGroupName, String firewallName, + Context context) { + PagedIterable inner + = this.serviceClient().listByFirewalls(resourceGroupName, firewallName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new MetricsObjectFirewallResourceImpl(inner1, this.manager())); + } + + private MetricsObjectFirewallsClient 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/OperationImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationImpl.java index 67092f48a392..53e5b9bdabbe 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsClientImpl.java index 3d7d170cf44a..155cec64ee73 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.OperationsClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.OperationInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.OperationListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -42,31 +42,38 @@ public final class OperationsClientImpl implements OperationsClient { /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OperationsClientImpl(PaloAltoNetworksCloudngfwImpl client) { + OperationsClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwOperations to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientOperations to be used by the + * proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientOperations") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/PaloAltoNetworks.Cloudngfw/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/operations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -74,7 +81,14 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -87,10 +101,6 @@ Mono> listNext(@PathParam(value = "nextLink", enco */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -103,24 +113,14 @@ private Mono> listSinglePageAsync() { /** * List the operations for the provider. * - * @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 a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -128,12 +128,15 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with - * {@link PagedFlux}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -143,13 +146,15 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with - * {@link PagedFlux}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -162,7 +167,7 @@ private PagedFlux listAsync(Context context) { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { - return new PagedIterable<>(listAsync()); + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); } /** @@ -177,7 +182,7 @@ public PagedIterable list() { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -192,13 +197,6 @@ public PagedIterable list(Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), @@ -206,6 +204,24 @@ private Mono> listNextSinglePageAsync(String nextL .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -214,22 +230,13 @@ private Mono> listNextSinglePageAsync(String nextL * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/OperationsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsImpl.java index 0e889e880285..142631ef2ea7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwOperationsClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwOperationsClientImpl.java new file mode 100644 index 000000000000..81b1a12a22d9 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwOperationsClientImpl.java @@ -0,0 +1,354 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.PaloAltoNetworksCloudngfwOperationsClient; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner; +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 reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in PaloAltoNetworksCloudngfwOperationsClient. + */ +public final class PaloAltoNetworksCloudngfwOperationsClientImpl implements PaloAltoNetworksCloudngfwOperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final PaloAltoNetworksCloudngfwOperationsService service; + + /** + * The service client containing this operation class. + */ + private final PaloAltoNetworksNgfwManagementClientImpl client; + + /** + * Initializes an instance of PaloAltoNetworksCloudngfwOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + PaloAltoNetworksCloudngfwOperationsClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { + this.service = RestProxy.create(PaloAltoNetworksCloudngfwOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * PaloAltoNetworksNgfwManagementClientPaloAltoNetworksCloudngfwOperations to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientPaloAltoNetworksCloudngfwOperations") + public interface PaloAltoNetworksCloudngfwOperationsService { + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/createProductSerialNumber") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createProductSerialNumber( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/createProductSerialNumber") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createProductSerialNumberSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @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("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/listCloudManagerTenants") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listCloudManagerTenantsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/listProductSerialNumberStatus") + @ExpectedResponses({ 200, 404 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listProductSerialNumberStatus( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/listProductSerialNumberStatus") + @ExpectedResponses({ 200, 404 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listProductSerialNumberStatusSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @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("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/PaloAltoNetworks.Cloudngfw/listSupportInfo") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSupportInfoSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @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() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createProductSerialNumber(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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) { + final String accept = "application/json"; + return service.createProductSerialNumberSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), 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. + */ + @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 cloud Manager Tenant along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listCloudManagerTenantsWithResponseAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listCloudManagerTenants(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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 cloud Manager Tenant 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 cloud Manager Tenant along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listCloudManagerTenantsWithResponse(Context context) { + final String accept = "application/json"; + return service.listCloudManagerTenantsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), 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 cloud Manager Tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CloudManagerTenantListInner 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() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listProductSerialNumberStatus(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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) { + final String accept = "application/json"; + return service.listProductSerialNumberStatusSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), 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. + */ + @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() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listSupportInfo(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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) { + final String accept = "application/json"; + return service.listSupportInfoSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), 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. + */ + @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/PaloAltoNetworksCloudngfwOperationsImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwOperationsImpl.java new file mode 100644 index 000000000000..dde2c11ffdc0 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwOperationsImpl.java @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.PaloAltoNetworksCloudngfwOperationsClient; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner; +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.CloudManagerTenantList; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PaloAltoNetworksCloudngfwOperations; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberRequestStatus; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberStatus; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfoModel; + +public final class PaloAltoNetworksCloudngfwOperationsImpl implements PaloAltoNetworksCloudngfwOperations { + private static final ClientLogger LOGGER = new ClientLogger(PaloAltoNetworksCloudngfwOperationsImpl.class); + + private final PaloAltoNetworksCloudngfwOperationsClient innerClient; + + private final com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager serviceManager; + + public PaloAltoNetworksCloudngfwOperationsImpl(PaloAltoNetworksCloudngfwOperationsClient 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(), + new CloudManagerTenantListImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public CloudManagerTenantList listCloudManagerTenants() { + CloudManagerTenantListInner inner = this.serviceClient().listCloudManagerTenants(); + if (inner != null) { + return new CloudManagerTenantListImpl(inner, this.manager()); + } else { + return null; + } + } + + 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 PaloAltoNetworksCloudngfwOperationsClient 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/PaloAltoNetworksCloudngfwBuilder.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksNgfwManagementClientBuilder.java similarity index 62% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwBuilder.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksNgfwManagementClientBuilder.java index 34c841c56527..1aa7176e8dc9 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwBuilder.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksNgfwManagementClientBuilder.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -15,39 +15,39 @@ import java.time.Duration; /** - * A builder for creating a new instance of the PaloAltoNetworksCloudngfwImpl type. + * A builder for creating a new instance of the PaloAltoNetworksNgfwManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = { PaloAltoNetworksCloudngfwImpl.class }) -public final class PaloAltoNetworksCloudngfwBuilder { +@ServiceClientBuilder(serviceClients = { PaloAltoNetworksNgfwManagementClientImpl.class }) +public final class PaloAltoNetworksNgfwManagementClientBuilder { /* - * The ID of the target subscription. + * Service host */ - private String subscriptionId; + private String endpoint; /** - * Sets The ID of the target subscription. + * Sets Service host. * - * @param subscriptionId the subscriptionId value. - * @return the PaloAltoNetworksCloudngfwBuilder. + * @param endpoint the endpoint value. + * @return the PaloAltoNetworksNgfwManagementClientBuilder. */ - public PaloAltoNetworksCloudngfwBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public PaloAltoNetworksNgfwManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } /* - * server parameter + * The ID of the target subscription. The value must be an UUID. */ - private String endpoint; + private String subscriptionId; /** - * Sets server parameter. + * Sets The ID of the target subscription. The value must be an UUID. * - * @param endpoint the endpoint value. - * @return the PaloAltoNetworksCloudngfwBuilder. + * @param subscriptionId the subscriptionId value. + * @return the PaloAltoNetworksNgfwManagementClientBuilder. */ - public PaloAltoNetworksCloudngfwBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public PaloAltoNetworksNgfwManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @@ -60,9 +60,9 @@ public PaloAltoNetworksCloudngfwBuilder endpoint(String endpoint) { * Sets The environment to connect to. * * @param environment the environment value. - * @return the PaloAltoNetworksCloudngfwBuilder. + * @return the PaloAltoNetworksNgfwManagementClientBuilder. */ - public PaloAltoNetworksCloudngfwBuilder environment(AzureEnvironment environment) { + public PaloAltoNetworksNgfwManagementClientBuilder environment(AzureEnvironment environment) { this.environment = environment; return this; } @@ -76,9 +76,9 @@ public PaloAltoNetworksCloudngfwBuilder environment(AzureEnvironment environment * Sets The HTTP pipeline to send requests through. * * @param pipeline the pipeline value. - * @return the PaloAltoNetworksCloudngfwBuilder. + * @return the PaloAltoNetworksNgfwManagementClientBuilder. */ - public PaloAltoNetworksCloudngfwBuilder pipeline(HttpPipeline pipeline) { + public PaloAltoNetworksNgfwManagementClientBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; } @@ -92,9 +92,9 @@ public PaloAltoNetworksCloudngfwBuilder pipeline(HttpPipeline pipeline) { * Sets The default poll interval for long-running operation. * * @param defaultPollInterval the defaultPollInterval value. - * @return the PaloAltoNetworksCloudngfwBuilder. + * @return the PaloAltoNetworksNgfwManagementClientBuilder. */ - public PaloAltoNetworksCloudngfwBuilder defaultPollInterval(Duration defaultPollInterval) { + public PaloAltoNetworksNgfwManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { this.defaultPollInterval = defaultPollInterval; return this; } @@ -108,19 +108,19 @@ public PaloAltoNetworksCloudngfwBuilder defaultPollInterval(Duration defaultPoll * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the PaloAltoNetworksCloudngfwBuilder. + * @return the PaloAltoNetworksNgfwManagementClientBuilder. */ - public PaloAltoNetworksCloudngfwBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + public PaloAltoNetworksNgfwManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; } /** - * Builds an instance of PaloAltoNetworksCloudngfwImpl with the provided parameters. + * Builds an instance of PaloAltoNetworksNgfwManagementClientImpl with the provided parameters. * - * @return an instance of PaloAltoNetworksCloudngfwImpl. + * @return an instance of PaloAltoNetworksNgfwManagementClientImpl. */ - public PaloAltoNetworksCloudngfwImpl buildClient() { + public PaloAltoNetworksNgfwManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; HttpPipeline localPipeline = (pipeline != null) @@ -131,8 +131,8 @@ public PaloAltoNetworksCloudngfwImpl buildClient() { SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); - PaloAltoNetworksCloudngfwImpl client = new PaloAltoNetworksCloudngfwImpl(localPipeline, localSerializerAdapter, - localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); + PaloAltoNetworksNgfwManagementClientImpl client = new PaloAltoNetworksNgfwManagementClientImpl(localPipeline, + localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); return client; } } 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/PaloAltoNetworksNgfwManagementClientImpl.java similarity index 83% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwImpl.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksNgfwManagementClientImpl.java index 1f71baf4017b..e1085962948a 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/PaloAltoNetworksNgfwManagementClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -15,12 +15,15 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; +import com.azure.core.management.polling.SyncPollerFactory; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient; @@ -32,8 +35,10 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.OperationsClient; -import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfw; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksNgfwManagementClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient; @@ -48,31 +53,17 @@ import reactor.core.publisher.Mono; /** - * Initializes a new instance of the PaloAltoNetworksCloudngfwImpl type. + * Initializes a new instance of the PaloAltoNetworksNgfwManagementClientImpl type. */ -@ServiceClient(builder = PaloAltoNetworksCloudngfwBuilder.class) -public final class PaloAltoNetworksCloudngfwImpl implements PaloAltoNetworksCloudngfw { +@ServiceClient(builder = PaloAltoNetworksNgfwManagementClientBuilder.class) +public final class PaloAltoNetworksNgfwManagementClientImpl implements PaloAltoNetworksNgfwManagementClient { /** - * The ID of the target subscription. - */ - private final String subscriptionId; - - /** - * Gets The ID of the target subscription. - * - * @return the subscriptionId value. - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - - /** - * server parameter. + * Service host. */ private final String endpoint; /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ @@ -81,12 +72,12 @@ public String getEndpoint() { } /** - * Api Version. + * Version parameter. */ private final String apiVersion; /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ @@ -94,6 +85,20 @@ public String getApiVersion() { return this.apiVersion; } + /** + * The ID of the target subscription. The value must be an UUID. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + /** * The HTTP pipeline to send requests through. */ @@ -136,6 +141,20 @@ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } + /** + * The OperationsClient object to access its operations. + */ + private final OperationsClient operations; + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + public OperationsClient getOperations() { + return this.operations; + } + /** * The GlobalRulestacksClient object to access its operations. */ @@ -220,20 +239,6 @@ public PreRulesClient getPreRules() { return this.preRules; } - /** - * The OperationsClient object to access its operations. - */ - private final OperationsClient operations; - - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - public OperationsClient getOperations() { - return this.operations; - } - /** * The FirewallsClient object to access its operations. */ @@ -262,6 +267,20 @@ public LocalRulestacksClient getLocalRulestacks() { return this.localRulestacks; } + /** + * The MetricsObjectFirewallsClient object to access its operations. + */ + private final MetricsObjectFirewallsClient metricsObjectFirewalls; + + /** + * Gets the MetricsObjectFirewallsClient object to access its operations. + * + * @return the MetricsObjectFirewallsClient object. + */ + public MetricsObjectFirewallsClient getMetricsObjectFirewalls() { + return this.metricsObjectFirewalls; + } + /** * The FirewallStatusClient object to access its operations. */ @@ -333,37 +352,53 @@ public PrefixListLocalRulestacksClient getPrefixListLocalRulestacks() { } /** - * Initializes an instance of PaloAltoNetworksCloudngfw client. + * The PaloAltoNetworksCloudngfwOperationsClient object to access its operations. + */ + private final PaloAltoNetworksCloudngfwOperationsClient paloAltoNetworksCloudngfwOperations; + + /** + * Gets the PaloAltoNetworksCloudngfwOperationsClient object to access its operations. + * + * @return the PaloAltoNetworksCloudngfwOperationsClient object. + */ + public PaloAltoNetworksCloudngfwOperationsClient getPaloAltoNetworksCloudngfwOperations() { + return this.paloAltoNetworksCloudngfwOperations; + } + + /** + * Initializes an instance of PaloAltoNetworksNgfwManagementClient client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The ID of the target subscription. - * @param endpoint server parameter. + * @param endpoint Service host. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. */ - PaloAltoNetworksCloudngfwImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, - Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { + PaloAltoNetworksNgfwManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; - this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-09-01"; + this.subscriptionId = subscriptionId; + this.apiVersion = "2025-10-08"; + this.operations = new OperationsClientImpl(this); this.globalRulestacks = new GlobalRulestacksClientImpl(this); this.certificateObjectGlobalRulestacks = new CertificateObjectGlobalRulestacksClientImpl(this); this.fqdnListGlobalRulestacks = new FqdnListGlobalRulestacksClientImpl(this); this.postRules = new PostRulesClientImpl(this); this.prefixListGlobalRulestacks = new PrefixListGlobalRulestacksClientImpl(this); this.preRules = new PreRulesClientImpl(this); - this.operations = new OperationsClientImpl(this); this.firewalls = new FirewallsClientImpl(this); this.localRulestacks = new LocalRulestacksClientImpl(this); + this.metricsObjectFirewalls = new MetricsObjectFirewallsClientImpl(this); this.firewallStatus = new FirewallStatusClientImpl(this); this.certificateObjectLocalRulestacks = new CertificateObjectLocalRulestacksClientImpl(this); this.fqdnListLocalRulestacks = new FqdnListLocalRulestacksClientImpl(this); this.localRules = new LocalRulesClientImpl(this); this.prefixListLocalRulestacks = new PrefixListLocalRulestacksClientImpl(this); + this.paloAltoNetworksCloudngfwOperations = new PaloAltoNetworksCloudngfwOperationsClientImpl(this); } /** @@ -403,6 +438,23 @@ public PollerFlux, U> getLroResult(Mono type of poll result. + * @param type of final result. + * @return SyncPoller for poll result and final result. + */ + public SyncPoller, U> getLroResult(Response activationResponse, + Type pollResultType, Type finalResultType, Context context) { + return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, + defaultPollInterval, () -> activationResponse, context); + } + /** * Gets the final result, or an error, based on last async poll response. * @@ -492,5 +544,5 @@ public Mono getBodyAsString(Charset charset) { } } - private static final ClientLogger LOGGER = new ClientLogger(PaloAltoNetworksCloudngfwImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PaloAltoNetworksNgfwManagementClientImpl.class); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesClientImpl.java index 76bdf286af00..b4b2f6df10cf 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -28,6 +28,7 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; @@ -36,7 +37,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PostRulesResourceInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterResetInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PostRulesResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PostRulesResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -53,73 +54,131 @@ public final class PostRulesClientImpl implements PostRulesClient { /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of PostRulesClientImpl. * * @param client the instance of the service client containing this operation class. */ - PostRulesClientImpl(PaloAltoNetworksCloudngfwImpl client) { + PostRulesClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(PostRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwPostRules to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientPostRules to be used by the proxy + * service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientPostRules") public interface PostRulesService { @Headers({ "Content-Type: application/json" }) - @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("priority") String priority, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("priority") String priority, @BodyParam("application/json") PostRulesResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @PathParam("priority") String priority, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PostRulesResourceInner resource, + Context context); - @Headers({ "Content-Type: application/json" }) + @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PostRulesResourceInner resource, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("priority") String priority, @HeaderParam("Accept") String accept, Context context); + @PathParam("priority") String priority, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/getCounters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getCounters(@HostParam("$host") String endpoint, + Mono> getCounters(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/getCounters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getCountersSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/refreshCounters") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> refreshCounters(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/refreshCounters") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> refreshCounters(@HostParam("$host") String endpoint, + Response refreshCountersSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/resetCounters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> resetCounters(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -128,7 +187,7 @@ Mono> refreshCounters(@HostParam("$host") String endpoint, @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{priority}/resetCounters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> resetCounters(@HostParam("$host") String endpoint, + Response resetCountersSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -138,127 +197,16 @@ Mono> resetCounters(@HostParam("$host") String e @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, 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())); - } - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PostRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String globalRulestackName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PostRulesResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName) { - return new PagedIterable<>(listAsync(globalRulestackName)); - } - - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PostRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName, Context context) { - return new PagedIterable<>(listAsync(globalRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -273,17 +221,6 @@ public PagedIterable list(String globalRulestackName, Co */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String globalRulestackName, String priority) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -291,37 +228,6 @@ private Mono> getWithResponseAsync(String globa .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a PostRulesResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Post Rule priority. - * @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 a PostRulesResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String globalRulestackName, String priority, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, - accept, context); - } - /** * Get a PostRulesResource. * @@ -351,7 +257,9 @@ private Mono getAsync(String globalRulestackName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String globalRulestackName, String priority, Context context) { - return getWithResponseAsync(globalRulestackName, priority, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, + accept, context); } /** @@ -383,26 +291,11 @@ public PostRulesResourceInner get(String globalRulestackName, String priority) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String priority, PostRulesResourceInner resource) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, resource, accept, context)) + globalRulestackName, priority, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -412,35 +305,18 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return postRulestack rule list along with {@link Response} on successful completion of {@link Mono}. + * @return postRulestack rule list along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, - String priority, PostRulesResourceInner resource, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String globalRulestackName, String priority, + PostRulesResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, contentType, accept, resource, Context.NONE); } /** @@ -449,19 +325,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of postRulestack rule list. + * @return postRulestack rule list along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PostRulesResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, String priority, PostRulesResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(globalRulestackName, priority, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PostRulesResourceInner.class, PostRulesResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String globalRulestackName, String priority, + PostRulesResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, contentType, accept, resource, context); } /** @@ -470,20 +346,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of postRulestack rule list. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PostRulesResourceInner> beginCreateOrUpdateAsync( - String globalRulestackName, String priority, PostRulesResourceInner resource, Context context) { - context = this.client.mergeContext(context); + private PollerFlux, PostRulesResourceInner> + beginCreateOrUpdateAsync(String globalRulestackName, String priority, PostRulesResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(globalRulestackName, priority, resource, context); + = createOrUpdateWithResponseAsync(globalRulestackName, priority, resource); return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PostRulesResourceInner.class, PostRulesResourceInner.class, context); + this.client.getHttpPipeline(), PostRulesResourceInner.class, PostRulesResourceInner.class, + this.client.getContext()); } /** @@ -500,7 +375,9 @@ private PollerFlux, PostRulesResourceInner> b @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PostRulesResourceInner> beginCreateOrUpdate(String globalRulestackName, String priority, PostRulesResourceInner resource) { - return this.beginCreateOrUpdateAsync(globalRulestackName, priority, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, priority, resource); + return this.client.getLroResult(response, + PostRulesResourceInner.class, PostRulesResourceInner.class, Context.NONE); } /** @@ -518,7 +395,9 @@ private PollerFlux, PostRulesResourceInner> b @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PostRulesResourceInner> beginCreateOrUpdate( String globalRulestackName, String priority, PostRulesResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(globalRulestackName, priority, resource, context).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, priority, resource, context); + return this.client.getLroResult(response, + PostRulesResourceInner.class, PostRulesResourceInner.class, context); } /** @@ -539,25 +418,6 @@ private Mono createOrUpdateAsync(String globalRulestackN .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a PostRulesResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Post Rule priority. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return postRulestack rule list on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String globalRulestackName, String priority, - PostRulesResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(globalRulestackName, priority, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a PostRulesResource. * @@ -572,7 +432,7 @@ private Mono createOrUpdateAsync(String globalRulestackN @ServiceMethod(returns = ReturnType.SINGLE) public PostRulesResourceInner createOrUpdate(String globalRulestackName, String priority, PostRulesResourceInner resource) { - return createOrUpdateAsync(globalRulestackName, priority, resource).block(); + return beginCreateOrUpdate(globalRulestackName, priority, resource).getFinalResult(); } /** @@ -590,7 +450,7 @@ public PostRulesResourceInner createOrUpdate(String globalRulestackName, String @ServiceMethod(returns = ReturnType.SINGLE) public PostRulesResourceInner createOrUpdate(String globalRulestackName, String priority, PostRulesResourceInner resource, Context context) { - return createOrUpdateAsync(globalRulestackName, priority, resource, context).block(); + return beginCreateOrUpdate(globalRulestackName, priority, resource, context).getFinalResult(); } /** @@ -605,21 +465,9 @@ public PostRulesResourceInner createOrUpdate(String globalRulestackName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String globalRulestackName, String priority) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, accept, context)) + globalRulestackName, priority, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -628,30 +476,15 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String globalRulestackName, String priority, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, - accept, context); + private Response deleteWithResponse(String globalRulestackName, String priority) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, + Context.NONE); } /** @@ -659,16 +492,16 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String priority) { - Mono>> mono = deleteWithResponseAsync(globalRulestackName, priority); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String globalRulestackName, String priority, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, + context); } /** @@ -676,19 +509,16 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta * * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String priority, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(globalRulestackName, priority, context); + private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String priority) { + Mono>> mono = deleteWithResponseAsync(globalRulestackName, priority); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -703,7 +533,8 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String priority) { - return this.beginDeleteAsync(globalRulestackName, priority).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, priority); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -720,7 +551,8 @@ public SyncPoller, Void> beginDelete(String globalRulestackName @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String priority, Context context) { - return this.beginDeleteAsync(globalRulestackName, priority, context).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, priority, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -743,16 +575,13 @@ private Mono deleteAsync(String globalRulestackName, String priority) { * * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. - * @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 A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String globalRulestackName, String priority, Context context) { - return beginDeleteAsync(globalRulestackName, priority, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String globalRulestackName, String priority) { + beginDelete(globalRulestackName, priority).getFinalResult(); } /** @@ -760,60 +589,117 @@ private Mono deleteAsync(String globalRulestackName, String priority, Cont * * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. + * @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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String priority) { - deleteAsync(globalRulestackName, priority).block(); + public void delete(String globalRulestackName, String priority, Context context) { + beginDelete(globalRulestackName, priority, context).getFinalResult(); } /** - * Delete a PostRulesResource. + * List PostRulesResource resources by Tenant. * * @param globalRulestackName GlobalRulestack resource name. - * @param priority Post Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PostRulesResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String priority, Context context) { - deleteAsync(globalRulestackName, priority, context).block(); + private Mono> listSinglePageAsync(String globalRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, 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())); } /** - * Get counters. + * List PostRulesResource resources by Tenant. * * @param globalRulestackName GlobalRulestack resource name. - * @param priority Post Rule priority. - * @param firewallName The firewallName parameter. * @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 counters along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a PostRulesResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String globalRulestackName) { + return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getCountersWithResponseAsync(String globalRulestackName, String priority, - String firewallName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } + private PagedResponse listSinglePage(String globalRulestackName) { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, firewallName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PostRulesResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String globalRulestackName, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName), nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PostRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName, Context context) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -822,7 +708,6 @@ private Mono> getCountersWithResponseAsync(String glo * @param globalRulestackName GlobalRulestack resource name. * @param priority Post Rule priority. * @param firewallName The firewallName 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. @@ -830,22 +715,12 @@ private Mono> getCountersWithResponseAsync(String glo */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getCountersWithResponseAsync(String globalRulestackName, String priority, - String firewallName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } + String firewallName) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, firewallName, accept, context); + return FluxUtil + .withContext(context -> service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, priority, firewallName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** @@ -880,7 +755,9 @@ private Mono getCountersAsync(String globalRulestackName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response getCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { - return getCountersWithResponseAsync(globalRulestackName, priority, firewallName, context).block(); + final String accept = "application/json"; + return service.getCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, firewallName, accept, context); } /** @@ -913,56 +790,12 @@ public RuleCounterInner getCounters(String globalRulestackName, String priority) @ServiceMethod(returns = ReturnType.SINGLE) private Mono> refreshCountersWithResponseAsync(String globalRulestackName, String priority, String firewallName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.refreshCounters(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, firewallName, accept, context)) + globalRulestackName, priority, firewallName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Refresh counters. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Post Rule priority. - * @param firewallName The firewallName 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 {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> refreshCountersWithResponseAsync(String globalRulestackName, String priority, - String firewallName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.refreshCounters(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, firewallName, accept, context); - } - /** * Refresh counters. * @@ -995,7 +828,8 @@ private Mono refreshCountersAsync(String globalRulestackName, String prior @ServiceMethod(returns = ReturnType.SINGLE) public Response refreshCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { - return refreshCountersWithResponseAsync(globalRulestackName, priority, firewallName, context).block(); + return service.refreshCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, firewallName, context); } /** @@ -1027,17 +861,6 @@ public void refreshCounters(String globalRulestackName, String priority) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resetCountersWithResponseAsync(String globalRulestackName, String priority, String firewallName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetCounters(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1045,38 +868,6 @@ private Mono> resetCountersWithResponseAsync(Str .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Reset counters. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Post Rule priority. - * @param firewallName The firewallName 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 rule counter reset along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> resetCountersWithResponseAsync(String globalRulestackName, - String priority, String firewallName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.resetCounters(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, firewallName, accept, context); - } - /** * Reset counters. * @@ -1109,7 +900,9 @@ private Mono resetCountersAsync(String globalRulestackNam @ServiceMethod(returns = ReturnType.SINGLE) public Response resetCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { - return resetCountersWithResponseAsync(globalRulestackName, priority, firewallName, context).block(); + final String accept = "application/json"; + return service.resetCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, firewallName, accept, context); } /** @@ -1140,13 +933,6 @@ public RuleCounterResetInner resetCounters(String globalRulestackName, String pr */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -1154,6 +940,24 @@ private Mono> listNextSinglePageAsync(Stri .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PostRulesResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1162,22 +966,14 @@ private Mono> listNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PostRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a PostRulesResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/PostRulesImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesImpl.java index 8034ad3029f8..64de0594d08b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -31,16 +31,6 @@ public PostRulesImpl(PostRulesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String globalRulestackName) { - PagedIterable inner = this.serviceClient().list(globalRulestackName); - 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 ResourceManagerUtils.mapPage(inner, inner1 -> new PostRulesResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String globalRulestackName, String priority, Context context) { Response inner = this.serviceClient().getWithResponse(globalRulestackName, priority, context); @@ -90,6 +80,16 @@ public void delete(String globalRulestackName, String priority, Context context) this.serviceClient().delete(globalRulestackName, priority, context); } + public PagedIterable list(String globalRulestackName) { + PagedIterable inner = this.serviceClient().list(globalRulestackName); + 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 ResourceManagerUtils.mapPage(inner, inner1 -> new PostRulesResourceImpl(inner1, this.manager())); + } + public Response getCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { Response inner diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesResourceImpl.java index 97a6f7871fda..4e92ffe5f9e8 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesResourceImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesClientImpl.java index f00568b03e49..f13ee9eef0d5 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -28,6 +28,7 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; @@ -36,7 +37,7 @@ import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PreRulesResourceInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterInner; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterResetInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PreRulesResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PreRulesResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -53,72 +54,130 @@ public final class PreRulesClientImpl implements PreRulesClient { /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of PreRulesClientImpl. * * @param client the instance of the service client containing this operation class. */ - PreRulesClientImpl(PaloAltoNetworksCloudngfwImpl client) { + PreRulesClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(PreRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwPreRules to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientPreRules to be used by the proxy + * service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientPreRules") public interface PreRulesService { @Headers({ "Content-Type: application/json" }) - @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("priority") String priority, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("priority") String priority, @BodyParam("application/json") PreRulesResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @PathParam("priority") String priority, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PreRulesResourceInner resource, + Context context); - @Headers({ "Content-Type: application/json" }) + @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PreRulesResourceInner resource, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("priority") String priority, @HeaderParam("Accept") String accept, Context context); + @PathParam("priority") String priority, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}/getCounters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getCounters(@HostParam("$host") String endpoint, + Mono> getCounters(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}/getCounters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getCountersSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}/refreshCounters") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> refreshCounters(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}/refreshCounters") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> refreshCounters(@HostParam("$host") String endpoint, + Response refreshCountersSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}/resetCounters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> resetCounters(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -127,7 +186,7 @@ Mono> refreshCounters(@HostParam("$host") String endpoint, @Post("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/preRules/{priority}/resetCounters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> resetCounters(@HostParam("$host") String endpoint, + Response resetCountersSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("priority") String priority, @QueryParam("firewallName") String firewallName, @HeaderParam("Accept") String accept, Context context); @@ -137,127 +196,16 @@ Mono> resetCounters(@HostParam("$host") String e @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, 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())); - } - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PreRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String globalRulestackName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PreRulesResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName) { - return new PagedIterable<>(listAsync(globalRulestackName)); - } - - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PreRulesResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName, Context context) { - return new PagedIterable<>(listAsync(globalRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -272,17 +220,6 @@ public PagedIterable list(String globalRulestackName, Con */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String globalRulestackName, String priority) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -290,37 +227,6 @@ private Mono> getWithResponseAsync(String global .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a PreRulesResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Pre Rule priority. - * @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 a PreRulesResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String globalRulestackName, String priority, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, - accept, context); - } - /** * Get a PreRulesResource. * @@ -350,7 +256,9 @@ private Mono getAsync(String globalRulestackName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String globalRulestackName, String priority, Context context) { - return getWithResponseAsync(globalRulestackName, priority, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, + accept, context); } /** @@ -382,26 +290,11 @@ public PreRulesResourceInner get(String globalRulestackName, String priority) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String priority, PreRulesResourceInner resource) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, resource, accept, context)) + globalRulestackName, priority, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -411,35 +304,18 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return preRulestack rule list along with {@link Response} on successful completion of {@link Mono}. + * @return preRulestack rule list along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, - String priority, PreRulesResourceInner resource, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String globalRulestackName, String priority, + PreRulesResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, contentType, accept, resource, Context.NONE); } /** @@ -448,19 +324,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of preRulestack rule list. + * @return preRulestack rule list along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PreRulesResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, String priority, PreRulesResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(globalRulestackName, priority, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PreRulesResourceInner.class, PreRulesResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String globalRulestackName, String priority, + PreRulesResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, contentType, accept, resource, context); } /** @@ -469,20 +345,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of preRulestack rule list. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PreRulesResourceInner> beginCreateOrUpdateAsync( - String globalRulestackName, String priority, PreRulesResourceInner resource, Context context) { - context = this.client.mergeContext(context); + private PollerFlux, PreRulesResourceInner> + beginCreateOrUpdateAsync(String globalRulestackName, String priority, PreRulesResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(globalRulestackName, priority, resource, context); + = createOrUpdateWithResponseAsync(globalRulestackName, priority, resource); return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PreRulesResourceInner.class, PreRulesResourceInner.class, context); + this.client.getHttpPipeline(), PreRulesResourceInner.class, PreRulesResourceInner.class, + this.client.getContext()); } /** @@ -499,7 +374,9 @@ private PollerFlux, PreRulesResourceInner> beg @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PreRulesResourceInner> beginCreateOrUpdate(String globalRulestackName, String priority, PreRulesResourceInner resource) { - return this.beginCreateOrUpdateAsync(globalRulestackName, priority, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, priority, resource); + return this.client.getLroResult(response, + PreRulesResourceInner.class, PreRulesResourceInner.class, Context.NONE); } /** @@ -517,7 +394,9 @@ private PollerFlux, PreRulesResourceInner> beg @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PreRulesResourceInner> beginCreateOrUpdate( String globalRulestackName, String priority, PreRulesResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(globalRulestackName, priority, resource, context).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, priority, resource, context); + return this.client.getLroResult(response, + PreRulesResourceInner.class, PreRulesResourceInner.class, context); } /** @@ -538,25 +417,6 @@ private Mono createOrUpdateAsync(String globalRulestackNa .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a PreRulesResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Pre Rule priority. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return preRulestack rule list on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String globalRulestackName, String priority, - PreRulesResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(globalRulestackName, priority, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a PreRulesResource. * @@ -571,7 +431,7 @@ private Mono createOrUpdateAsync(String globalRulestackNa @ServiceMethod(returns = ReturnType.SINGLE) public PreRulesResourceInner createOrUpdate(String globalRulestackName, String priority, PreRulesResourceInner resource) { - return createOrUpdateAsync(globalRulestackName, priority, resource).block(); + return beginCreateOrUpdate(globalRulestackName, priority, resource).getFinalResult(); } /** @@ -589,7 +449,7 @@ public PreRulesResourceInner createOrUpdate(String globalRulestackName, String p @ServiceMethod(returns = ReturnType.SINGLE) public PreRulesResourceInner createOrUpdate(String globalRulestackName, String priority, PreRulesResourceInner resource, Context context) { - return createOrUpdateAsync(globalRulestackName, priority, resource, context).block(); + return beginCreateOrUpdate(globalRulestackName, priority, resource, context).getFinalResult(); } /** @@ -604,21 +464,9 @@ public PreRulesResourceInner createOrUpdate(String globalRulestackName, String p */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String globalRulestackName, String priority) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, accept, context)) + globalRulestackName, priority, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -627,30 +475,15 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String globalRulestackName, String priority, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, - accept, context); + private Response deleteWithResponse(String globalRulestackName, String priority) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, + Context.NONE); } /** @@ -658,16 +491,16 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String priority) { - Mono>> mono = deleteWithResponseAsync(globalRulestackName, priority); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String globalRulestackName, String priority, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, priority, + context); } /** @@ -675,19 +508,16 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta * * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String priority, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(globalRulestackName, priority, context); + private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String priority) { + Mono>> mono = deleteWithResponseAsync(globalRulestackName, priority); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -702,7 +532,8 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String priority) { - return this.beginDeleteAsync(globalRulestackName, priority).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, priority); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -719,7 +550,8 @@ public SyncPoller, Void> beginDelete(String globalRulestackName @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String priority, Context context) { - return this.beginDeleteAsync(globalRulestackName, priority, context).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, priority, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -742,16 +574,13 @@ private Mono deleteAsync(String globalRulestackName, String priority) { * * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. - * @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 A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String globalRulestackName, String priority, Context context) { - return beginDeleteAsync(globalRulestackName, priority, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String globalRulestackName, String priority) { + beginDelete(globalRulestackName, priority).getFinalResult(); } /** @@ -759,60 +588,117 @@ private Mono deleteAsync(String globalRulestackName, String priority, Cont * * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. + * @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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String priority) { - deleteAsync(globalRulestackName, priority).block(); + public void delete(String globalRulestackName, String priority, Context context) { + beginDelete(globalRulestackName, priority, context).getFinalResult(); } /** - * Delete a PreRulesResource. + * List PreRulesResource resources by Tenant. * * @param globalRulestackName GlobalRulestack resource name. - * @param priority Pre Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PreRulesResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String priority, Context context) { - deleteAsync(globalRulestackName, priority, context).block(); + private Mono> listSinglePageAsync(String globalRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, 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())); } /** - * Get counters. + * List PreRulesResource resources by Tenant. * * @param globalRulestackName GlobalRulestack resource name. - * @param priority Pre Rule priority. - * @param firewallName The firewallName parameter. * @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 counters along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a PreRulesResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String globalRulestackName) { + return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getCountersWithResponseAsync(String globalRulestackName, String priority, - String firewallName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } + private PagedResponse listSinglePage(String globalRulestackName) { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, firewallName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PreRulesResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String globalRulestackName, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName), nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PreRulesResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName, Context context) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -821,7 +707,6 @@ private Mono> getCountersWithResponseAsync(String glo * @param globalRulestackName GlobalRulestack resource name. * @param priority Pre Rule priority. * @param firewallName The firewallName 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. @@ -829,22 +714,12 @@ private Mono> getCountersWithResponseAsync(String glo */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getCountersWithResponseAsync(String globalRulestackName, String priority, - String firewallName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } + String firewallName) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, firewallName, accept, context); + return FluxUtil + .withContext(context -> service.getCounters(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, priority, firewallName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** @@ -879,7 +754,9 @@ private Mono getCountersAsync(String globalRulestackName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response getCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { - return getCountersWithResponseAsync(globalRulestackName, priority, firewallName, context).block(); + final String accept = "application/json"; + return service.getCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, firewallName, accept, context); } /** @@ -912,56 +789,12 @@ public RuleCounterInner getCounters(String globalRulestackName, String priority) @ServiceMethod(returns = ReturnType.SINGLE) private Mono> refreshCountersWithResponseAsync(String globalRulestackName, String priority, String firewallName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.refreshCounters(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, priority, firewallName, accept, context)) + globalRulestackName, priority, firewallName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Refresh counters. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Pre Rule priority. - * @param firewallName The firewallName 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 {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> refreshCountersWithResponseAsync(String globalRulestackName, String priority, - String firewallName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.refreshCounters(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, firewallName, accept, context); - } - /** * Refresh counters. * @@ -994,7 +827,8 @@ private Mono refreshCountersAsync(String globalRulestackName, String prior @ServiceMethod(returns = ReturnType.SINGLE) public Response refreshCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { - return refreshCountersWithResponseAsync(globalRulestackName, priority, firewallName, context).block(); + return service.refreshCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, firewallName, context); } /** @@ -1026,17 +860,6 @@ public void refreshCounters(String globalRulestackName, String priority) { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resetCountersWithResponseAsync(String globalRulestackName, String priority, String firewallName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetCounters(this.client.getEndpoint(), this.client.getApiVersion(), @@ -1044,38 +867,6 @@ private Mono> resetCountersWithResponseAsync(Str .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Reset counters. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param priority Pre Rule priority. - * @param firewallName The firewallName 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 rule counter reset along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> resetCountersWithResponseAsync(String globalRulestackName, - String priority, String firewallName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (priority == null) { - return Mono.error(new IllegalArgumentException("Parameter priority is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.resetCounters(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, - priority, firewallName, accept, context); - } - /** * Reset counters. * @@ -1108,7 +899,9 @@ private Mono resetCountersAsync(String globalRulestackNam @ServiceMethod(returns = ReturnType.SINGLE) public Response resetCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { - return resetCountersWithResponseAsync(globalRulestackName, priority, firewallName, context).block(); + final String accept = "application/json"; + return service.resetCountersSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + priority, firewallName, accept, context); } /** @@ -1139,13 +932,6 @@ public RuleCounterResetInner resetCounters(String globalRulestackName, String pr */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -1153,6 +939,24 @@ private Mono> listNextSinglePageAsync(Strin .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PreRulesResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1161,22 +965,14 @@ private Mono> listNextSinglePageAsync(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 of a PreRulesResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a PreRulesResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/PreRulesImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesImpl.java index 1752c1c7dcfc..46bf5fa058a9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -31,16 +31,6 @@ public PreRulesImpl(PreRulesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String globalRulestackName) { - PagedIterable inner = this.serviceClient().list(globalRulestackName); - 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 ResourceManagerUtils.mapPage(inner, inner1 -> new PreRulesResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String globalRulestackName, String priority, Context context) { Response inner = this.serviceClient().getWithResponse(globalRulestackName, priority, context); @@ -90,6 +80,16 @@ public void delete(String globalRulestackName, String priority, Context context) this.serviceClient().delete(globalRulestackName, priority, context); } + public PagedIterable list(String globalRulestackName) { + PagedIterable inner = this.serviceClient().list(globalRulestackName); + 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 ResourceManagerUtils.mapPage(inner, inner1 -> new PreRulesResourceImpl(inner1, this.manager())); + } + public Response getCountersWithResponse(String globalRulestackName, String priority, String firewallName, Context context) { Response inner diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesResourceImpl.java index 9fa68007d635..59bb4cfe8e47 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesResourceImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; 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 25a8dd83c85b..55eb2172e9b2 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 @@ -1,14 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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,11 @@ 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 000000000000..98614a9d51dd --- /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) TypeSpec 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/PrefixListGlobalRulestackResourceImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestackResourceImpl.java index d275fb42c1cf..0a16f0e4ea38 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestackResourceImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestackResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksClientImpl.java index da469961e791..3fc9ae0af1c1 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,13 +27,14 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixListGlobalRulestackResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestackResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListGlobalRulestackResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -50,191 +51,107 @@ public final class PrefixListGlobalRulestacksClientImpl implements PrefixListGlo /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of PrefixListGlobalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - PrefixListGlobalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + PrefixListGlobalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(PrefixListGlobalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwPrefixListGlobalRulestacks to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientPrefixListGlobalRulestacks to be + * used by the proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientPrefixListGlobalRulestacks") public interface PrefixListGlobalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("name") String name, - @BodyParam("application/json") PrefixListGlobalRulestackResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrefixListGlobalRulestackResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) + @Put("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrefixListGlobalRulestackResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, - @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @PathParam("name") String name, Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, @HeaderParam("Accept") String accept, Context context); - } - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listSinglePageAsync(String globalRulestackName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, 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())); - } - - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String globalRulestackName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String globalRulestackName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } + @Headers({ "Content-Type: application/json" }) + @Get("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("globalRulestackName") String globalRulestackName, + @HeaderParam("Accept") String accept, Context context); - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName) { - return new PagedIterable<>(listAsync(globalRulestackName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String globalRulestackName, Context context) { - return new PagedIterable<>(listAsync(globalRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -250,17 +167,6 @@ public PagedIterable list(String globalR @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String globalRulestackName, String name) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -268,37 +174,6 @@ private Mono> getWithResponseAs .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a PrefixListGlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param name Local Rule priority. - * @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 a PrefixListGlobalRulestackResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String globalRulestackName, - String name, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, accept, - context); - } - /** * Get a PrefixListGlobalRulestackResource. * @@ -328,7 +203,9 @@ private Mono getAsync(String globalRules @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String globalRulestackName, String name, Context context) { - return getWithResponseAsync(globalRulestackName, name, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + accept, context); } /** @@ -360,26 +237,11 @@ public PrefixListGlobalRulestackResourceInner get(String globalRulestackName, St @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String name, PrefixListGlobalRulestackResourceInner resource) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, name, resource, accept, context)) + globalRulestackName, name, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -389,35 +251,18 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return globalRulestack prefixList along with {@link Response} on successful completion of {@link Mono}. + * @return globalRulestack prefixList along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String globalRulestackName, String name, - PrefixListGlobalRulestackResourceInner resource, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String globalRulestackName, String name, + PrefixListGlobalRulestackResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, - resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + name, contentType, accept, resource, Context.NONE); } /** @@ -426,19 +271,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of globalRulestack prefixList. + * @return globalRulestack prefixList along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PrefixListGlobalRulestackResourceInner> - beginCreateOrUpdateAsync(String globalRulestackName, String name, - PrefixListGlobalRulestackResourceInner resource) { - Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, name, resource); - return this.client.getLroResult( - mono, this.client.getHttpPipeline(), PrefixListGlobalRulestackResourceInner.class, - PrefixListGlobalRulestackResourceInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String globalRulestackName, String name, + PrefixListGlobalRulestackResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, + name, contentType, accept, resource, context); } /** @@ -447,7 +292,6 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -456,13 +300,11 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrefixListGlobalRulestackResourceInner> beginCreateOrUpdateAsync(String globalRulestackName, String name, - PrefixListGlobalRulestackResourceInner resource, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(globalRulestackName, name, resource, context); + PrefixListGlobalRulestackResourceInner resource) { + Mono>> mono = createOrUpdateWithResponseAsync(globalRulestackName, name, resource); return this.client.getLroResult( mono, this.client.getHttpPipeline(), PrefixListGlobalRulestackResourceInner.class, - PrefixListGlobalRulestackResourceInner.class, context); + PrefixListGlobalRulestackResourceInner.class, this.client.getContext()); } /** @@ -479,7 +321,10 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrefixListGlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, String name, PrefixListGlobalRulestackResourceInner resource) { - return this.beginCreateOrUpdateAsync(globalRulestackName, name, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, name, resource); + return this.client.getLroResult( + response, PrefixListGlobalRulestackResourceInner.class, PrefixListGlobalRulestackResourceInner.class, + Context.NONE); } /** @@ -498,7 +343,10 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, PrefixListGlobalRulestackResourceInner> beginCreateOrUpdate(String globalRulestackName, String name, PrefixListGlobalRulestackResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(globalRulestackName, name, resource, context).getSyncPoller(); + Response response = createOrUpdateWithResponse(globalRulestackName, name, resource, context); + return this.client.getLroResult( + response, PrefixListGlobalRulestackResourceInner.class, PrefixListGlobalRulestackResourceInner.class, + context); } /** @@ -519,25 +367,6 @@ private Mono createOrUpdateAsync(String .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a PrefixListGlobalRulestackResource. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param name Local Rule priority. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return globalRulestack prefixList on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String globalRulestackName, String name, - PrefixListGlobalRulestackResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(globalRulestackName, name, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a PrefixListGlobalRulestackResource. * @@ -552,7 +381,7 @@ private Mono createOrUpdateAsync(String @ServiceMethod(returns = ReturnType.SINGLE) public PrefixListGlobalRulestackResourceInner createOrUpdate(String globalRulestackName, String name, PrefixListGlobalRulestackResourceInner resource) { - return createOrUpdateAsync(globalRulestackName, name, resource).block(); + return beginCreateOrUpdate(globalRulestackName, name, resource).getFinalResult(); } /** @@ -570,7 +399,7 @@ public PrefixListGlobalRulestackResourceInner createOrUpdate(String globalRulest @ServiceMethod(returns = ReturnType.SINGLE) public PrefixListGlobalRulestackResourceInner createOrUpdate(String globalRulestackName, String name, PrefixListGlobalRulestackResourceInner resource, Context context) { - return createOrUpdateAsync(globalRulestackName, name, resource, context).block(); + return beginCreateOrUpdate(globalRulestackName, name, resource, context).getFinalResult(); } /** @@ -585,21 +414,9 @@ public PrefixListGlobalRulestackResourceInner createOrUpdate(String globalRulest */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String globalRulestackName, String name) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - globalRulestackName, name, accept, context)) + globalRulestackName, name, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -608,30 +425,15 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String globalRulestackName, String name, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (globalRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter globalRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, accept, - context); + private Response deleteWithResponse(String globalRulestackName, String name) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + Context.NONE); } /** @@ -639,16 +441,16 @@ private Mono>> deleteWithResponseAsync(String globalRu * * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name) { - Mono>> mono = deleteWithResponseAsync(globalRulestackName, name); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String globalRulestackName, String name, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), globalRulestackName, name, + context); } /** @@ -656,19 +458,16 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta * * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(globalRulestackName, name, context); + private PollerFlux, Void> beginDeleteAsync(String globalRulestackName, String name) { + Mono>> mono = deleteWithResponseAsync(globalRulestackName, name); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -683,7 +482,8 @@ private PollerFlux, Void> beginDeleteAsync(String globalRulesta */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String name) { - return this.beginDeleteAsync(globalRulestackName, name).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, name); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -699,7 +499,8 @@ public SyncPoller, Void> beginDelete(String globalRulestackName */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String globalRulestackName, String name, Context context) { - return this.beginDeleteAsync(globalRulestackName, name, context).getSyncPoller(); + Response response = deleteWithResponse(globalRulestackName, name, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -722,16 +523,13 @@ private Mono deleteAsync(String globalRulestackName, String name) { * * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. - * @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 A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String globalRulestackName, String name, Context context) { - return beginDeleteAsync(globalRulestackName, name, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String globalRulestackName, String name) { + beginDelete(globalRulestackName, name).getFinalResult(); } /** @@ -739,28 +537,122 @@ private Mono deleteAsync(String globalRulestackName, String name, Context * * @param globalRulestackName GlobalRulestack resource name. * @param name Local Rule priority. + * @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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String name) { - deleteAsync(globalRulestackName, name).block(); + public void delete(String globalRulestackName, String name, Context context) { + beginDelete(globalRulestackName, name, context).getFinalResult(); } /** - * Delete a PrefixListGlobalRulestackResource. + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listSinglePageAsync(String globalRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + globalRulestackName, 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())); + } + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String globalRulestackName) { + return new PagedFlux<>(() -> listSinglePageAsync(globalRulestackName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String globalRulestackName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. * * @param globalRulestackName GlobalRulestack resource name. - * @param name Local Rule priority. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String globalRulestackName, String name, Context context) { - deleteAsync(globalRulestackName, name, context).block(); + private PagedResponse listSinglePage(String globalRulestackName, + Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), globalRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName), nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String globalRulestackName, Context context) { + return new PagedIterable<>(() -> listSinglePage(globalRulestackName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -775,13 +667,6 @@ public void delete(String globalRulestackName, String name, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -789,6 +674,24 @@ private Mono> listNextSing .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -797,23 +700,14 @@ private Mono> listNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a PrefixListGlobalRulestackResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/PrefixListGlobalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksImpl.java index 4714d2222c11..089491dcec44 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,19 +27,6 @@ public PrefixListGlobalRulestacksImpl(PrefixListGlobalRulestacksClient innerClie this.serviceManager = serviceManager; } - public PagedIterable list(String globalRulestackName) { - PagedIterable inner = this.serviceClient().list(globalRulestackName); - 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 ResourceManagerUtils.mapPage(inner, - inner1 -> new PrefixListGlobalRulestackResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String globalRulestackName, String name, Context context) { Response inner @@ -91,6 +78,19 @@ public void delete(String globalRulestackName, String name, Context context) { this.serviceClient().delete(globalRulestackName, name, context); } + public PagedIterable list(String globalRulestackName) { + PagedIterable inner = this.serviceClient().list(globalRulestackName); + 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 ResourceManagerUtils.mapPage(inner, + inner1 -> new PrefixListGlobalRulestackResourceImpl(inner1, this.manager())); + } + private PrefixListGlobalRulestacksClient serviceClient() { return this.innerClient; } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksClientImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksClientImpl.java index 94b34e07eaa7..97c7c9e1a47d 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksClientImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,13 +27,14 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixListResourceInner; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListResourceListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -50,223 +51,121 @@ public final class PrefixListLocalRulestacksClientImpl implements PrefixListLoca /** * The service client containing this operation class. */ - private final PaloAltoNetworksCloudngfwImpl client; + private final PaloAltoNetworksNgfwManagementClientImpl client; /** * Initializes an instance of PrefixListLocalRulestacksClientImpl. * * @param client the instance of the service client containing this operation class. */ - PrefixListLocalRulestacksClientImpl(PaloAltoNetworksCloudngfwImpl client) { + PrefixListLocalRulestacksClientImpl(PaloAltoNetworksNgfwManagementClientImpl client) { this.service = RestProxy.create(PrefixListLocalRulestacksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for PaloAltoNetworksCloudngfwPrefixListLocalRulestacks to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for PaloAltoNetworksNgfwManagementClientPrefixListLocalRulestacks to be + * used by the proxy service to perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "PaloAltoNetworksClou") + @Host("{endpoint}") + @ServiceInterface(name = "PaloAltoNetworksNgfwManagementClientPrefixListLocalRulestacks") public interface PrefixListLocalRulestacksService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByLocalRulestacks(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrefixListResourceInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrefixListResourceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, - @BodyParam("application/json") PrefixListResourceInner resource, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localRulestackName") String localRulestackName, @PathParam("name") String name, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByLocalRulestacks(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localRulestackName") String localRulestackName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByLocalRulestacksNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @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 of a PrefixListResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByLocalRulestacksSinglePageAsync(String resourceGroupName, - String localRulestackName) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); - } - - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByLocalRulestacksSinglePageAsync(String resourceGroupName, - String localRulestackName, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @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 of a PrefixListResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName) { - return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); - } - - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedFlux<>( - () -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName, context), - nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink, context)); - } - - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @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 of a PrefixListResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName)); - } - - /** - * List PrefixListResource resources by LocalRulestacks. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context) { - return new PagedIterable<>(listByLocalRulestacksAsync(resourceGroupName, localRulestackName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocalRulestacksNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -283,25 +182,6 @@ public PagedIterable listByLocalRulestacks(String resou @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String localRulestackName, String name) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -309,46 +189,6 @@ private Mono> getWithResponseAsync(String reso .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a PrefixListResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param name Local Rule priority. - * @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 a PrefixListResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, name, accept, context); - } - /** * Get a PrefixListResource. * @@ -381,7 +221,9 @@ private Mono getAsync(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String localRulestackName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, localRulestackName, name, context).block(); + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, localRulestackName, name, accept, context); } /** @@ -415,35 +257,12 @@ public PrefixListResourceInner get(String resourceGroupName, String localRulesta @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, resource, accept, - context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, + resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -454,43 +273,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack prefixList along with {@link Response} on successful completion of {@link Mono}. + * @return localRulestack prefixList along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, PrefixListResourceInner resource, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String name, PrefixListResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, resource, + Context.NONE); } /** @@ -500,19 +295,20 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of localRulestack prefixList. + * @return localRulestack prefixList along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PrefixListResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PrefixListResourceInner.class, PrefixListResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String localRulestackName, + String name, PrefixListResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, contentType, accept, resource, + context); } /** @@ -522,7 +318,6 @@ private PollerFlux, PrefixListResourceInner> * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -530,13 +325,12 @@ private PollerFlux, PrefixListResourceInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrefixListResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource, - Context context) { - context = this.client.mergeContext(context); + String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource, context); + = createOrUpdateWithResponseAsync(resourceGroupName, localRulestackName, name, resource); return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PrefixListResourceInner.class, PrefixListResourceInner.class, context); + this.client.getHttpPipeline(), PrefixListResourceInner.class, PrefixListResourceInner.class, + this.client.getContext()); } /** @@ -554,7 +348,10 @@ private PollerFlux, PrefixListResourceInner> @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrefixListResourceInner> beginCreateOrUpdate( String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource).getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, name, resource); + return this.client.getLroResult(response, + PrefixListResourceInner.class, PrefixListResourceInner.class, Context.NONE); } /** @@ -574,8 +371,10 @@ public SyncPoller, PrefixListResourceInner> public SyncPoller, PrefixListResourceInner> beginCreateOrUpdate( String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context) - .getSyncPoller(); + Response response + = createOrUpdateWithResponse(resourceGroupName, localRulestackName, name, resource, context); + return this.client.getLroResult(response, + PrefixListResourceInner.class, PrefixListResourceInner.class, context); } /** @@ -597,26 +396,6 @@ private Mono createOrUpdateAsync(String resourceGroupNa .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create a PrefixListResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param name Local Rule priority. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return localRulestack prefixList on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String localRulestackName, - String name, PrefixListResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - /** * Create a PrefixListResource. * @@ -632,7 +411,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) public PrefixListResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, name, resource).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource).getFinalResult(); } /** @@ -651,7 +430,7 @@ public PrefixListResourceInner createOrUpdate(String resourceGroupName, String l @ServiceMethod(returns = ReturnType.SINGLE) public PrefixListResourceInner createOrUpdate(String resourceGroupName, String localRulestackName, String name, PrefixListResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, localRulestackName, name, resource, context).block(); + return beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, context).getFinalResult(); } /** @@ -668,29 +447,9 @@ public PrefixListResourceInner createOrUpdate(String resourceGroupName, String l @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String localRulestackName, String name) { - 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -700,38 +459,15 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String localRulestackName, String name, 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.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localRulestackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter localRulestackName is required and cannot be null.")); - } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, localRulestackName, name, accept, context); + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, String name) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, Context.NONE); } /** @@ -740,17 +476,17 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String name) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, localRulestackName, name); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String localRulestackName, String name, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, name, context); } /** @@ -759,7 +495,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. - * @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. @@ -767,12 +502,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String localRulestackName, - String name, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, localRulestackName, name, context); + String name) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, localRulestackName, name); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -789,7 +522,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String name) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, name).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, name); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -807,7 +541,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String localRulestackName, String name, Context context) { - return this.beginDeleteAsync(resourceGroupName, localRulestackName, name, context).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, localRulestackName, name, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -833,16 +568,13 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. - * @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 A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String localRulestackName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, localRulestackName, name, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String resourceGroupName, String localRulestackName, String name) { + beginDelete(resourceGroupName, localRulestackName, name).getFinalResult(); } /** @@ -851,29 +583,134 @@ private Mono deleteAsync(String resourceGroupName, String localRulestackNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. + * @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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String name) { - deleteAsync(resourceGroupName, localRulestackName, name).block(); + public void delete(String resourceGroupName, String localRulestackName, String name, Context context) { + beginDelete(resourceGroupName, localRulestackName, name, context).getFinalResult(); } /** - * Delete a PrefixListResource. + * List PrefixListResource resources by LocalRulestacks. + * + * @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 of a PrefixListResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByLocalRulestacksSinglePageAsync(String resourceGroupName, + String localRulestackName) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByLocalRulestacks(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, 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())); + } + + /** + * List PrefixListResource resources by LocalRulestacks. + * + * @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 of a PrefixListResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByLocalRulestacksAsync(String resourceGroupName, + String localRulestackName) { + return new PagedFlux<>(() -> listByLocalRulestacksSinglePageAsync(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePageAsync(nextLink)); + } + + /** + * List PrefixListResource resources by LocalRulestacks. + * + * @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 of a PrefixListResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocalRulestacksSinglePage(String resourceGroupName, + String localRulestackName) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PrefixListResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name Local Rule priority. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String localRulestackName, String name, Context context) { - deleteAsync(resourceGroupName, localRulestackName, name, context).block(); + private PagedResponse listByLocalRulestacksSinglePage(String resourceGroupName, + String localRulestackName, Context context) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, localRulestackName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List PrefixListResource resources by LocalRulestacks. + * + * @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 of a PrefixListResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + return new PagedIterable<>(() -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink)); + } + + /** + * List PrefixListResource resources by LocalRulestacks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context) { + return new PagedIterable<>( + () -> listByLocalRulestacksSinglePage(resourceGroupName, localRulestackName, context), + nextLink -> listByLocalRulestacksNextSinglePage(nextLink, context)); } /** @@ -888,13 +725,6 @@ public void delete(String resourceGroupName, String localRulestackName, String n */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByLocalRulestacksNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -904,6 +734,24 @@ private Mono> listByLocalRulestacksNextSi .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocalRulestacksNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -912,23 +760,15 @@ private Mono> listByLocalRulestacksNextSi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a PrefixListResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByLocalRulestacksNextSinglePageAsync(String nextLink, + private PagedResponse listByLocalRulestacksNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByLocalRulestacksNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByLocalRulestacksNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/PrefixListLocalRulestacksImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksImpl.java index b1bf9775a036..e3ded215bd5a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; @@ -27,20 +27,6 @@ public PrefixListLocalRulestacksImpl(PrefixListLocalRulestacksClient innerClient this.serviceManager = serviceManager; } - public PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName) { - PagedIterable inner - = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); - 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 ResourceManagerUtils.mapPage(inner, inner1 -> new PrefixListResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String localRulestackName, String name, Context context) { Response inner @@ -70,6 +56,20 @@ public void delete(String resourceGroupName, String localRulestackName, String n this.serviceClient().delete(resourceGroupName, localRulestackName, name, context); } + public PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName) { + PagedIterable inner + = this.serviceClient().listByLocalRulestacks(resourceGroupName, localRulestackName); + 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 ResourceManagerUtils.mapPage(inner, inner1 -> new PrefixListResourceImpl(inner1, this.manager())); + } + public PrefixListResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { 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 f18457ccfe2f..e34b55fcf2df 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; 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 000000000000..7fc516457f5d --- /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) TypeSpec 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 000000000000..2771b976ea6d --- /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) TypeSpec 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/ResourceManagerUtils.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ResourceManagerUtils.java index 380077246a66..06a201df0148 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ResourceManagerUtils.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ResourceManagerUtils.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterImpl.java index ad85aec66e56..31f98c0ffb0e 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterResetImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterResetImpl.java index 5cdf65344c1f..f2b51be77449 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterResetImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterResetImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SecurityServicesResponseImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SecurityServicesResponseImpl.java index 8831f4728734..b78e7ecf91d7 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SecurityServicesResponseImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SecurityServicesResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoImpl.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoImpl.java index 81b7bb766b7c..c7c37c089abe 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoImpl.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; 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 000000000000..ebfc69b7cc74 --- /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) TypeSpec 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/CertificateObjectGlobalRulestackResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectGlobalRulestackResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestackResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectGlobalRulestackResourceListResult.java index 26784ed6b364..7aa29ef18dee 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestackResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectGlobalRulestackResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,11 +16,11 @@ /** * The response of a CertificateObjectGlobalRulestackResource list operation. */ -@Fluent +@Immutable public final class CertificateObjectGlobalRulestackResourceListResult implements JsonSerializable { /* - * The items on this page + * The CertificateObjectGlobalRulestackResource items on this page */ private List value; @@ -33,11 +32,11 @@ public final class CertificateObjectGlobalRulestackResourceListResult /** * Creates an instance of CertificateObjectGlobalRulestackResourceListResult class. */ - public CertificateObjectGlobalRulestackResourceListResult() { + private CertificateObjectGlobalRulestackResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The CertificateObjectGlobalRulestackResource items on this page. * * @return the value value. */ @@ -45,18 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the CertificateObjectGlobalRulestackResourceListResult object itself. - */ - public CertificateObjectGlobalRulestackResourceListResult - withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -66,35 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the CertificateObjectGlobalRulestackResourceListResult object itself. - */ - public CertificateObjectGlobalRulestackResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model CertificateObjectGlobalRulestackResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER - = new ClientLogger(CertificateObjectGlobalRulestackResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectLocalRulestackResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectLocalRulestackResourceListResult.java index abfb6ecec238..84f4f640a69f 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectLocalRulestackResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,11 +16,11 @@ /** * The response of a CertificateObjectLocalRulestackResource list operation. */ -@Fluent +@Immutable public final class CertificateObjectLocalRulestackResourceListResult implements JsonSerializable { /* - * The items on this page + * The CertificateObjectLocalRulestackResource items on this page */ private List value; @@ -33,11 +32,11 @@ public final class CertificateObjectLocalRulestackResourceListResult /** * Creates an instance of CertificateObjectLocalRulestackResourceListResult class. */ - public CertificateObjectLocalRulestackResourceListResult() { + private CertificateObjectLocalRulestackResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The CertificateObjectLocalRulestackResource items on this page. * * @return the value value. */ @@ -45,18 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the CertificateObjectLocalRulestackResourceListResult object itself. - */ - public CertificateObjectLocalRulestackResourceListResult - withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -66,35 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the CertificateObjectLocalRulestackResourceListResult object itself. - */ - public CertificateObjectLocalRulestackResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model CertificateObjectLocalRulestackResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER - = new ClientLogger(CertificateObjectLocalRulestackResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallResourceListResult.java index caff13437ea1..1e70d657ceeb 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a FirewallResource list operation. */ -@Fluent +@Immutable public final class FirewallResourceListResult implements JsonSerializable { /* - * The items on this page + * The FirewallResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class FirewallResourceListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the FirewallResourceListResult object itself. - */ - public FirewallResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the FirewallResourceListResult object itself. - */ - public FirewallResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model FirewallResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FirewallResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallStatusResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallStatusResourceListResult.java index 3855af9f7417..944764dadec8 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallStatusResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a FirewallStatusResource list operation. */ -@Fluent +@Immutable public final class FirewallStatusResourceListResult implements JsonSerializable { /* - * The items on this page + * The FirewallStatusResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class FirewallStatusResourceListResult implements JsonSerializable< /** * Creates an instance of FirewallStatusResourceListResult class. */ - public FirewallStatusResourceListResult() { + private FirewallStatusResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The FirewallStatusResource items on this page. * * @return the value value. */ @@ -44,17 +43,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the FirewallStatusResourceListResult object itself. - */ - public FirewallStatusResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the FirewallStatusResourceListResult object itself. - */ - public FirewallStatusResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model FirewallStatusResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FirewallStatusResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListGlobalRulestackResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListGlobalRulestackResourceListResult.java index b2010a0dca76..0cc149b84cd4 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListGlobalRulestackResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,11 +16,11 @@ /** * The response of a FqdnListGlobalRulestackResource list operation. */ -@Fluent +@Immutable public final class FqdnListGlobalRulestackResourceListResult implements JsonSerializable { /* - * The items on this page + * The FqdnListGlobalRulestackResource items on this page */ private List value; @@ -33,11 +32,11 @@ public final class FqdnListGlobalRulestackResourceListResult /** * Creates an instance of FqdnListGlobalRulestackResourceListResult class. */ - public FqdnListGlobalRulestackResourceListResult() { + private FqdnListGlobalRulestackResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The FqdnListGlobalRulestackResource items on this page. * * @return the value value. */ @@ -45,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the FqdnListGlobalRulestackResourceListResult object itself. - */ - public FqdnListGlobalRulestackResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -65,34 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the FqdnListGlobalRulestackResourceListResult object itself. - */ - public FqdnListGlobalRulestackResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model FqdnListGlobalRulestackResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FqdnListGlobalRulestackResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListLocalRulestackResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListLocalRulestackResourceListResult.java index 698361c86d3d..7c74678406ab 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListLocalRulestackResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,11 +16,11 @@ /** * The response of a FqdnListLocalRulestackResource list operation. */ -@Fluent +@Immutable public final class FqdnListLocalRulestackResourceListResult implements JsonSerializable { /* - * The items on this page + * The FqdnListLocalRulestackResource items on this page */ private List value; @@ -33,11 +32,11 @@ public final class FqdnListLocalRulestackResourceListResult /** * Creates an instance of FqdnListLocalRulestackResourceListResult class. */ - public FqdnListLocalRulestackResourceListResult() { + private FqdnListLocalRulestackResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The FqdnListLocalRulestackResource items on this page. * * @return the value value. */ @@ -45,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the FqdnListLocalRulestackResourceListResult object itself. - */ - public FqdnListLocalRulestackResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -65,34 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the FqdnListLocalRulestackResourceListResult object itself. - */ - public FqdnListLocalRulestackResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model FqdnListLocalRulestackResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FqdnListLocalRulestackResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/GlobalRulestackResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/GlobalRulestackResourceListResult.java index b23731b73488..d0f26c211f69 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/GlobalRulestackResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a GlobalRulestackResource list operation. */ -@Fluent +@Immutable public final class GlobalRulestackResourceListResult implements JsonSerializable { /* - * The items on this page + * The GlobalRulestackResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class GlobalRulestackResourceListResult implements JsonSerializable /** * Creates an instance of GlobalRulestackResourceListResult class. */ - public GlobalRulestackResourceListResult() { + private GlobalRulestackResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The GlobalRulestackResource items on this page. * * @return the value value. */ @@ -44,17 +43,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the GlobalRulestackResourceListResult object itself. - */ - public GlobalRulestackResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the GlobalRulestackResourceListResult object itself. - */ - public GlobalRulestackResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model GlobalRulestackResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GlobalRulestackResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulesResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulesResourceListResult.java index 9f55b35f95e8..d25c1193a033 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulesResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a LocalRulesResource list operation. */ -@Fluent +@Immutable public final class LocalRulesResourceListResult implements JsonSerializable { /* - * The items on this page + * The LocalRulesResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class LocalRulesResourceListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the LocalRulesResourceListResult object itself. - */ - public LocalRulesResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the LocalRulesResourceListResult object itself. - */ - public LocalRulesResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model LocalRulesResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LocalRulesResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulestackResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulestackResourceListResult.java index 908558fe4e19..4c7b97a7b591 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulestackResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a LocalRulestackResource list operation. */ -@Fluent +@Immutable public final class LocalRulestackResourceListResult implements JsonSerializable { /* - * The items on this page + * The LocalRulestackResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class LocalRulestackResourceListResult implements JsonSerializable< /** * Creates an instance of LocalRulestackResourceListResult class. */ - public LocalRulestackResourceListResult() { + private LocalRulestackResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The LocalRulestackResource items on this page. * * @return the value value. */ @@ -44,17 +43,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the LocalRulestackResourceListResult object itself. - */ - public LocalRulestackResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the LocalRulestackResourceListResult object itself. - */ - public LocalRulestackResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model LocalRulestackResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LocalRulestackResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/MetricsObjectFirewallResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/MetricsObjectFirewallResourceListResult.java new file mode 100644 index 000000000000..294165923d2e --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/MetricsObjectFirewallResourceListResult.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a MetricsObjectFirewallResource list operation. + */ +@Immutable +public final class MetricsObjectFirewallResourceListResult + implements JsonSerializable { + /* + * The MetricsObjectFirewallResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of MetricsObjectFirewallResourceListResult class. + */ + private MetricsObjectFirewallResourceListResult() { + } + + /** + * Get the value property: The MetricsObjectFirewallResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MetricsObjectFirewallResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MetricsObjectFirewallResourceListResult if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the MetricsObjectFirewallResourceListResult. + */ + public static MetricsObjectFirewallResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MetricsObjectFirewallResourceListResult deserializedMetricsObjectFirewallResourceListResult + = new MetricsObjectFirewallResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> MetricsObjectFirewallResourceInner.fromJson(reader1)); + deserializedMetricsObjectFirewallResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedMetricsObjectFirewallResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMetricsObjectFirewallResourceListResult; + }); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/OperationListResult.java similarity index 77% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/OperationListResult.java index 5749749c4960..26d4daf05204 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/OperationListResult.java @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; @@ -20,23 +20,23 @@ @Immutable public final class OperationListResult implements JsonSerializable { /* - * List of operations supported by the resource provider + * The Operation items on this page */ private List value; /* - * URL to get the next set of operation list results (if there are any). + * The link to the next page of items */ private String nextLink; /** * Creates an instance of OperationListResult class. */ - public OperationListResult() { + private OperationListResult() { } /** - * Get the value property: List of operations supported by the resource provider. + * Get the value property: The Operation items on this page. * * @return the value value. */ @@ -45,7 +45,7 @@ public List value() { } /** - * Get the nextLink property: URL to get the next set of operation list results (if there are any). + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -53,23 +53,14 @@ public String nextLink() { return this.nextLink; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -79,6 +70,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the OperationListResult. */ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PostRulesResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PostRulesResourceListResult.java index 46acc2edf4f9..db04f062e56d 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PostRulesResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a PostRulesResource list operation. */ -@Fluent +@Immutable public final class PostRulesResourceListResult implements JsonSerializable { /* - * The items on this page + * The PostRulesResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class PostRulesResourceListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the PostRulesResourceListResult object itself. - */ - public PostRulesResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the PostRulesResourceListResult object itself. - */ - public PostRulesResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model PostRulesResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PostRulesResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PreRulesResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PreRulesResourceListResult.java index 3551208a1ac9..183e3ebf7238 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PreRulesResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a PreRulesResource list operation. */ -@Fluent +@Immutable public final class PreRulesResourceListResult implements JsonSerializable { /* - * The items on this page + * The PreRulesResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class PreRulesResourceListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the PreRulesResourceListResult object itself. - */ - public PreRulesResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the PreRulesResourceListResult object itself. - */ - public PreRulesResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model PreRulesResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PreRulesResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListGlobalRulestackResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListGlobalRulestackResourceListResult.java index d7a0b9e50b95..3b3ccfddeffe 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListGlobalRulestackResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,11 +16,11 @@ /** * The response of a PrefixListGlobalRulestackResource list operation. */ -@Fluent +@Immutable public final class PrefixListGlobalRulestackResourceListResult implements JsonSerializable { /* - * The items on this page + * The PrefixListGlobalRulestackResource items on this page */ private List value; @@ -33,11 +32,11 @@ public final class PrefixListGlobalRulestackResourceListResult /** * Creates an instance of PrefixListGlobalRulestackResourceListResult class. */ - public PrefixListGlobalRulestackResourceListResult() { + private PrefixListGlobalRulestackResourceListResult() { } /** - * Get the value property: The items on this page. + * Get the value property: The PrefixListGlobalRulestackResource items on this page. * * @return the value value. */ @@ -45,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the PrefixListGlobalRulestackResourceListResult object itself. - */ - public PrefixListGlobalRulestackResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -65,34 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the PrefixListGlobalRulestackResourceListResult object itself. - */ - public PrefixListGlobalRulestackResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model PrefixListGlobalRulestackResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrefixListGlobalRulestackResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResourceListResult.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListResourceListResult.java similarity index 66% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResourceListResult.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListResourceListResult.java index f5f819aef0b6..8ad6560d7bd2 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResourceListResult.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,10 +16,10 @@ /** * The response of a PrefixListResource list operation. */ -@Fluent +@Immutable public final class PrefixListResourceListResult implements JsonSerializable { /* - * The items on this page + * The PrefixListResource items on this page */ private List value; @@ -32,11 +31,11 @@ public final class PrefixListResourceListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The items on this page. - * - * @param value the value value to set. - * @return the PrefixListResourceListResult object itself. - */ - public PrefixListResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the PrefixListResourceListResult object itself. - */ - public PrefixListResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model PrefixListResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PrefixListResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/package-info.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/package-info.java index 76f356d9ddcf..b0bf553aec32 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/package-info.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the implementations for PaloAltoNetworksCloudngfw. - * null. + * Package containing the implementations for PaloAltoNetworksNgfw. */ package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionEnum.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionEnum.java index 4f08fec784ff..870888f55cb3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionEnum.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionType.java index 4b4790e294d4..3b6643c6763e 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -8,11 +8,11 @@ import java.util.Collection; /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** - * Static value Internal for ActionType. + * Actions are for internal-only APIs. */ public static final ActionType INTERNAL = fromString("Internal"); diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectListResponse.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectListResponse.java index a0342b71fbed..39a313f020e3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectListResponse.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectListResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectModel.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectModel.java index d191e2a47404..08b1d58b515c 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectModel.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectModel.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +15,7 @@ /** * List of custom and predefined url category. */ -@Fluent +@Immutable public final class AdvSecurityObjectModel implements JsonSerializable { /* * type of object @@ -31,7 +30,7 @@ public final class AdvSecurityObjectModel implements JsonSerializable entry() { return this.entry; } - /** - * Set the entry property: URL entry. - * - * @param entry the entry value to set. - * @return the AdvSecurityObjectModel object itself. - */ - public AdvSecurityObjectModel withEntry(List entry) { - this.entry = entry; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (entry() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property entry in model AdvSecurityObjectModel")); - } else { - entry().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AdvSecurityObjectModel.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectTypeEnum.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectTypeEnum.java index da67f585029d..6ff2d9e8b8f8 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectTypeEnum.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectTypeEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenData.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenData.java index 98ee81aed6c1..d7de8a58205e 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenData.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenData.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +15,7 @@ /** * Data Type for App Seen. */ -@Fluent +@Immutable public final class AppSeenData implements JsonSerializable { /* * number of rows @@ -31,7 +30,7 @@ public final class AppSeenData implements JsonSerializable { /** * Creates an instance of AppSeenData class. */ - public AppSeenData() { + private AppSeenData() { } /** @@ -43,17 +42,6 @@ public int count() { return this.count; } - /** - * Set the count property: number of rows. - * - * @param count the count value to set. - * @return the AppSeenData object itself. - */ - public AppSeenData withCount(int count) { - this.count = count; - return this; - } - /** * Get the appSeenList property: array of appSeen. * @@ -63,33 +51,6 @@ public List appSeenList() { return this.appSeenList; } - /** - * Set the appSeenList property: array of appSeen. - * - * @param appSeenList the appSeenList value to set. - * @return the AppSeenData object itself. - */ - public AppSeenData withAppSeenList(List appSeenList) { - this.appSeenList = appSeenList; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (appSeenList() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property appSeenList in model AppSeenData")); - } else { - appSeenList().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AppSeenData.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenInfo.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenInfo.java index 4e8adec85ea8..b2198a9373b4 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenInfo.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenInfo.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +14,7 @@ /** * Definition for App Seen. */ -@Fluent +@Immutable public final class AppSeenInfo implements JsonSerializable { /* * title @@ -55,7 +54,7 @@ public final class AppSeenInfo implements JsonSerializable { /** * Creates an instance of AppSeenInfo class. */ - public AppSeenInfo() { + private AppSeenInfo() { } /** @@ -67,17 +66,6 @@ public String title() { return this.title; } - /** - * Set the title property: title. - * - * @param title the title value to set. - * @return the AppSeenInfo object itself. - */ - public AppSeenInfo withTitle(String title) { - this.title = title; - return this; - } - /** * Get the category property: category. * @@ -87,17 +75,6 @@ public String category() { return this.category; } - /** - * Set the category property: category. - * - * @param category the category value to set. - * @return the AppSeenInfo object itself. - */ - public AppSeenInfo withCategory(String category) { - this.category = category; - return this; - } - /** * Get the subCategory property: subCategory. * @@ -107,17 +84,6 @@ public String subCategory() { return this.subCategory; } - /** - * Set the subCategory property: subCategory. - * - * @param subCategory the subCategory value to set. - * @return the AppSeenInfo object itself. - */ - public AppSeenInfo withSubCategory(String subCategory) { - this.subCategory = subCategory; - return this; - } - /** * Get the risk property: risk. * @@ -127,17 +93,6 @@ public String risk() { return this.risk; } - /** - * Set the risk property: risk. - * - * @param risk the risk value to set. - * @return the AppSeenInfo object itself. - */ - public AppSeenInfo withRisk(String risk) { - this.risk = risk; - return this; - } - /** * Get the tag property: tag. * @@ -147,17 +102,6 @@ public String tag() { return this.tag; } - /** - * Set the tag property: tag. - * - * @param tag the tag value to set. - * @return the AppSeenInfo object itself. - */ - public AppSeenInfo withTag(String tag) { - this.tag = tag; - return this; - } - /** * Get the technology property: technology. * @@ -167,17 +111,6 @@ public String technology() { return this.technology; } - /** - * Set the technology property: technology. - * - * @param technology the technology value to set. - * @return the AppSeenInfo object itself. - */ - public AppSeenInfo withTechnology(String technology) { - this.technology = technology; - return this; - } - /** * Get the standardPorts property: standardPorts. * @@ -187,55 +120,6 @@ public String standardPorts() { return this.standardPorts; } - /** - * Set the standardPorts property: standardPorts. - * - * @param standardPorts the standardPorts value to set. - * @return the AppSeenInfo object itself. - */ - public AppSeenInfo withStandardPorts(String standardPorts) { - this.standardPorts = standardPorts; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (title() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property title in model AppSeenInfo")); - } - if (category() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property category in model AppSeenInfo")); - } - if (subCategory() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property subCategory in model AppSeenInfo")); - } - if (risk() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property risk in model AppSeenInfo")); - } - if (tag() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property tag in model AppSeenInfo")); - } - if (technology() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property technology in model AppSeenInfo")); - } - if (standardPorts() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property standardPorts in model AppSeenInfo")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AppSeenInfo.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ApplicationInsights.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ApplicationInsights.java index 47b429117188..516b4a1ac8c1 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ApplicationInsights.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ApplicationInsights.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -72,14 +72,6 @@ public ApplicationInsights withKey(String key) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerManagedIdentityProperties.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerManagedIdentityProperties.java index 1ff9a33980be..01b462fa4a0d 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerManagedIdentityProperties.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerManagedIdentityProperties.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -104,28 +103,6 @@ public Map userAssignedIdentit return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property type in model AzureResourceManagerManagedIdentityProperties")); - } - if (userAssignedIdentities() != null) { - userAssignedIdentities().values().forEach(e -> { - if (e != null) { - e.validate(); - } - }); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AzureResourceManagerManagedIdentityProperties.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerUserAssignedIdentity.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerUserAssignedIdentity.java index 5dcd2c341fed..06e518690d49 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerUserAssignedIdentity.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerUserAssignedIdentity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -73,14 +73,6 @@ public AzureResourceManagerUserAssignedIdentity withPrincipalId(String principal return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BillingCycle.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BillingCycle.java index 866efe5649d7..bea451345c4e 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BillingCycle.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BillingCycle.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BooleanEnum.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BooleanEnum.java index d0082932073f..cf6f2de66ec3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BooleanEnum.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BooleanEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Category.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Category.java index 99fd4a9df2fa..b11300fa6590 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Category.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Category.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -74,24 +73,6 @@ public Category withFeeds(List feeds) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (urlCustom() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property urlCustom in model Category")); - } - if (feeds() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property feeds in model Category")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Category.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestackResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestackResource.java index 2d246df881f7..6591e5cf49f6 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestackResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestackResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestacks.java index 3bd6c431bd17..6a3dd19f3997 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestacks.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestacks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,31 +13,6 @@ * Resource collection API of CertificateObjectGlobalRulestacks. */ public interface CertificateObjectGlobalRulestacks { - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName); - - /** - * List CertificateObjectGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName, Context context); - /** * Get a CertificateObjectGlobalRulestackResource. * @@ -115,4 +90,29 @@ CertificateObjectGlobalRulestackResource createOrUpdate(String globalRulestackNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ void delete(String globalRulestackName, String name, Context context); + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a CertificateObjectGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName); + + /** + * List CertificateObjectGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResource.java index 1bd7f71564c4..05c449b10379 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestacks.java index 64a3a9da6242..ed0f1026a414 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestacks.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestacks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,86 +13,86 @@ */ public interface CertificateObjectLocalRulestacks { /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * Get a CertificateObjectLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. + * @param name certificate name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. + * @return a CertificateObjectLocalRulestackResource along with {@link Response}. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName); + Response getWithResponse(String resourceGroupName, + String localRulestackName, String name, Context context); /** - * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. + * Get a CertificateObjectLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. + * @param name certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. + * @return a CertificateObjectLocalRulestackResource. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context); + CertificateObjectLocalRulestackResource get(String resourceGroupName, String localRulestackName, String name); /** - * Get a CertificateObjectLocalRulestackResource. + * Delete a CertificateObjectLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name certificate name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a CertificateObjectLocalRulestackResource along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, - String localRulestackName, String name, Context context); + void delete(String resourceGroupName, String localRulestackName, String name); /** - * Get a CertificateObjectLocalRulestackResource. + * Delete a CertificateObjectLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name certificate name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a CertificateObjectLocalRulestackResource. */ - CertificateObjectLocalRulestackResource get(String resourceGroupName, String localRulestackName, String name); + void delete(String resourceGroupName, String localRulestackName, String name, Context context); /** - * Delete a CertificateObjectLocalRulestackResource. + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String name); + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName); /** - * Delete a CertificateObjectLocalRulestackResource. + * List CertificateObjectLocalRulestackResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name certificate name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CertificateObjectLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String name, Context context); + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context); /** * Get a CertificateObjectLocalRulestackResource. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Changelog.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Changelog.java index d0d0ba728ad7..977dfa330eb2 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Changelog.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Changelog.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CloudManagerTenantList.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CloudManagerTenantList.java new file mode 100644 index 000000000000..f3c32f0e4f92 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CloudManagerTenantList.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.models; + +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner; +import java.util.List; + +/** + * An immutable client-side representation of CloudManagerTenantList. + */ +public interface CloudManagerTenantList { + /** + * Gets the value property: List of Cloud Manager Tenants. + * + * @return the value value. + */ + List value(); + + /** + * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner object. + * + * @return the inner object. + */ + CloudManagerTenantListInner innerModel(); +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CountriesResponse.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CountriesResponse.java index 3df38f5adbaa..fa5db2db7895 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CountriesResponse.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CountriesResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -12,14 +12,14 @@ */ public interface CountriesResponse { /** - * Gets the value property: List of countries. + * Gets the value property: The Country items on this page. * * @return the value value. */ List value(); /** - * Gets the nextLink property: next link. + * Gets the nextLink property: The link to the next page of items. * * @return the nextLink value. */ 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 97858d7291df..f6cbb42c35ea 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 @@ -1,128 +1,33 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner; /** - * Country Description. + * An immutable client-side representation of Country. */ -@Fluent -public final class Country implements JsonSerializable { - /* - * country code - */ - private String code; - - /* - * code description - */ - private String description; - - /** - * Creates an instance of Country class. - */ - public Country() { - } - +public interface Country { /** - * Get the code property: country code. + * Gets the code property: country code. * * @return the code value. */ - public String code() { - return this.code; - } + String 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; - } - - /** - * Get the description property: code description. + * Gets the description property: code description. * * @return the description value. */ - public String description() { - return this.description; - } + String description(); /** - * Set the description property: code description. + * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner object. * - * @param description the description value to set. - * @return the Country object itself. + * @return the inner object. */ - public Country 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.atError().log(new IllegalArgumentException("Missing required property code in model Country")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Country.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("code", this.code); - jsonWriter.writeStringField("description", this.description); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of Country from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of Country if the JsonReader was pointing to an instance of it, or null if it was pointing to - * JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the Country. - */ - public static Country fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - Country deserializedCountry = new Country(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("code".equals(fieldName)) { - deserializedCountry.code = reader.getString(); - } else if ("description".equals(fieldName)) { - deserializedCountry.description = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCountry; - }); - } + CountryInner innerModel(); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DecryptionRuleTypeEnum.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DecryptionRuleTypeEnum.java index f2f3c175aa0d..0916498c9646 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DecryptionRuleTypeEnum.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DecryptionRuleTypeEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DefaultMode.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DefaultMode.java index 7ee4c18ef367..eefb84ebda9c 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DefaultMode.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DefaultMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DestinationAddr.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DestinationAddr.java index a13e78a1b654..025e954f98af 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DestinationAddr.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DestinationAddr.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -148,14 +148,6 @@ public DestinationAddr withFqdnLists(List fqdnLists) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsProxy.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsProxy.java index b0bd09b455be..800966fd2513 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsProxy.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsProxy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsSettings.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsSettings.java index 57996c803519..364e24f66315 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsSettings.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -98,17 +98,6 @@ public DnsSettings withDnsServers(List dnsServers) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dnsServers() != null) { - dnsServers().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EgressNat.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EgressNat.java index 1dfb0cf4f8bd..29a21a78a3ac 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EgressNat.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EgressNat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; 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 000000000000..8b0ba152c206 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnableStatus.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.models; + +import com.azure.core.util.ExpandableStringEnum; +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. + */ + 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/EnabledDnsType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnabledDnsType.java index b751f1dfc903..015ecc6c3a33 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnabledDnsType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnabledDnsType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EndpointConfiguration.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EndpointConfiguration.java index 8f9947a7dcae..9eb7d4851965 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EndpointConfiguration.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EndpointConfiguration.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -73,26 +72,6 @@ public EndpointConfiguration withAddress(IpAddress address) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (port() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property port in model EndpointConfiguration")); - } - if (address() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property address in model EndpointConfiguration")); - } else { - address().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EndpointConfiguration.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EventHub.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EventHub.java index d2c365ffb4ad..23c77274f5ba 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EventHub.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EventHub.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -147,14 +147,6 @@ public EventHub withPolicyName(String policyName) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ 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 82a77a3e2451..0c6681fb8fdc 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -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/FirewallResourceUpdate.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdate.java index 3c31f72fefe6..6b1a3765ff3f 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdate.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -98,20 +98,6 @@ public FirewallResourceUpdate withProperties(FirewallResourceUpdateProperties pr return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - /** * {@inheritDoc} */ 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 8153b9ce9508..fb33fe002e26 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -32,11 +32,21 @@ public final class FirewallResourceUpdateProperties implements JsonSerializable< */ private BooleanEnum isPanoramaManaged; + /* + * Strata Cloud Managed: Default is False. Default will be CloudSec managed + */ + private BooleanEnum isStrataCloudManaged; + /* * Panorama Configuration */ private PanoramaConfig panoramaConfig; + /* + * Strata Cloud Manager Configuration, only applicable if Strata Cloud Manager is selected. + */ + private StrataCloudManagerConfig strataCloudManagerConfig; + /* * Associated Rulestack */ @@ -128,6 +138,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. * @@ -148,6 +178,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. * @@ -248,35 +301,6 @@ public FirewallResourceUpdateProperties withMarketplaceDetails(MarketplaceDetail return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (networkProfile() != null) { - networkProfile().validate(); - } - if (panoramaConfig() != null) { - panoramaConfig().validate(); - } - if (associatedRulestack() != null) { - associatedRulestack().validate(); - } - if (dnsSettings() != null) { - dnsSettings().validate(); - } - if (frontEndSettings() != null) { - frontEndSettings().forEach(e -> e.validate()); - } - if (planData() != null) { - planData().validate(); - } - if (marketplaceDetails() != null) { - marketplaceDetails().validate(); - } - } - /** * {@inheritDoc} */ @@ -287,7 +311,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("networkProfile", this.networkProfile); jsonWriter.writeStringField("isPanoramaManaged", this.isPanoramaManaged == null ? null : this.isPanoramaManaged.toString()); + jsonWriter.writeStringField("isStrataCloudManaged", + this.isStrataCloudManaged == null ? null : this.isStrataCloudManaged.toString()); jsonWriter.writeJsonField("panoramaConfig", this.panoramaConfig); + jsonWriter.writeJsonField("strataCloudManagerConfig", this.strataCloudManagerConfig); jsonWriter.writeJsonField("associatedRulestack", this.associatedRulestack); jsonWriter.writeJsonField("dnsSettings", this.dnsSettings); jsonWriter.writeArrayField("frontEndSettings", this.frontEndSettings, @@ -320,8 +347,14 @@ public static FirewallResourceUpdateProperties fromJson(JsonReader jsonReader) t } else if ("isPanoramaManaged".equals(fieldName)) { deserializedFirewallResourceUpdateProperties.isPanoramaManaged = BooleanEnum.fromString(reader.getString()); + } else if ("isStrataCloudManaged".equals(fieldName)) { + deserializedFirewallResourceUpdateProperties.isStrataCloudManaged + = BooleanEnum.fromString(reader.getString()); } else if ("panoramaConfig".equals(fieldName)) { deserializedFirewallResourceUpdateProperties.panoramaConfig = PanoramaConfig.fromJson(reader); + } else if ("strataCloudManagerConfig".equals(fieldName)) { + deserializedFirewallResourceUpdateProperties.strataCloudManagerConfig + = StrataCloudManagerConfig.fromJson(reader); } else if ("associatedRulestack".equals(fieldName)) { deserializedFirewallResourceUpdateProperties.associatedRulestack = RulestackDetails.fromJson(reader); diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatus.java index ea91f88a8452..cba096e2c5cf 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatus.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,53 +13,53 @@ */ public interface FirewallStatus { /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallStatusResource along with {@link Response}. */ - PagedIterable listByFirewalls(String resourceGroupName, String firewallName); + Response getWithResponse(String resourceGroupName, String firewallName, Context context); /** - * List FirewallStatusResource resources by Firewalls. + * Get a FirewallStatusResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallStatusResource. */ - PagedIterable listByFirewalls(String resourceGroupName, String firewallName, - Context context); + FirewallStatusResource get(String resourceGroupName, String firewallName); /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallStatusResource along with {@link Response}. + * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. */ - Response getWithResponse(String resourceGroupName, String firewallName, Context context); + PagedIterable listByFirewalls(String resourceGroupName, String firewallName); /** - * Get a FirewallStatusResource. + * List FirewallStatusResource resources by Firewalls. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallStatusResource. + * @return the response of a FirewallStatusResource list operation as paginated response with {@link PagedIterable}. */ - FirewallStatusResource get(String resourceGroupName, String firewallName); + PagedIterable listByFirewalls(String resourceGroupName, String firewallName, + Context context); } 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 1d1dadcfcf71..d114a6d947e9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -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/Firewalls.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Firewalls.java index 10bbb495779c..3496625e4846 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Firewalls.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Firewalls.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -14,96 +14,96 @@ */ public interface Firewalls { /** - * List FirewallResource resources by subscription ID. + * Get a FirewallResource. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallResource along with {@link Response}. */ - PagedIterable list(); + Response getByResourceGroupWithResponse(String resourceGroupName, String firewallName, + Context context); /** - * List FirewallResource resources by subscription ID. + * Get a FirewallResource. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a FirewallResource list operation as paginated response with {@link PagedIterable}. + * @return a FirewallResource. */ - PagedIterable list(Context context); + FirewallResource getByResourceGroup(String resourceGroupName, String firewallName); /** - * List FirewallResource resources by resource group. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + void deleteByResourceGroup(String resourceGroupName, String firewallName); /** - * List FirewallResource resources by resource group. + * Delete a FirewallResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + void delete(String resourceGroupName, String firewallName, Context context); /** - * Get a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallResource along with {@link Response}. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String firewallName, - Context context); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Get a FirewallResource. + * List FirewallResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FirewallResource. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - FirewallResource getByResourceGroup(String resourceGroupName, String firewallName); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall 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 of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - void deleteByResourceGroup(String resourceGroupName, String firewallName); + PagedIterable list(); /** - * Delete a FirewallResource. + * List FirewallResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param firewallName Firewall resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallResource list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String firewallName, Context context); + PagedIterable list(Context context); /** * Get Global Rulestack associated with the Firewall. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResource.java index 164f4a642a45..fc6174449d15 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestacks.java index af0b84179764..34e9a68a0fe1 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestacks.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestacks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,31 +13,6 @@ * Resource collection API of FqdnListGlobalRulestacks. */ public interface FqdnListGlobalRulestacks { - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName); - - /** - * List FqdnListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName, Context context); - /** * Get a FqdnListGlobalRulestackResource. * @@ -114,4 +89,29 @@ FqdnListGlobalRulestackResource createOrUpdate(String globalRulestackName, Strin * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ void delete(String globalRulestackName, String name, Context context); + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a FqdnListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName); + + /** + * List FqdnListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResource.java index 8a80cad57605..33ed750fc11d 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestacks.java index 9defe09613c8..a562bd882a69 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestacks.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestacks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,86 +13,86 @@ */ public interface FqdnListLocalRulestacks { /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * Get a FqdnListLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. + * @param name fqdn list name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. + * @return a FqdnListLocalRulestackResource along with {@link Response}. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName); + Response getWithResponse(String resourceGroupName, String localRulestackName, + String name, Context context); /** - * List FqdnListLocalRulestackResource resources by LocalRulestacks. + * Get a FqdnListLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. + * @param name fqdn list name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with - * {@link PagedIterable}. + * @return a FqdnListLocalRulestackResource. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, - String localRulestackName, Context context); + FqdnListLocalRulestackResource get(String resourceGroupName, String localRulestackName, String name); /** - * Get a FqdnListLocalRulestackResource. + * Delete a FqdnListLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FqdnListLocalRulestackResource along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String localRulestackName, - String name, Context context); + void delete(String resourceGroupName, String localRulestackName, String name); /** - * Get a FqdnListLocalRulestackResource. + * Delete a FqdnListLocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name fqdn list name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FqdnListLocalRulestackResource. */ - FqdnListLocalRulestackResource get(String resourceGroupName, String localRulestackName, String name); + void delete(String resourceGroupName, String localRulestackName, String name, Context context); /** - * Delete a FqdnListLocalRulestackResource. + * List FqdnListLocalRulestackResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name fqdn list name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String name); + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName); /** - * Delete a FqdnListLocalRulestackResource. + * List FqdnListLocalRulestackResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name fqdn list name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String name, Context context); + PagedIterable listByLocalRulestacks(String resourceGroupName, + String localRulestackName, Context context); /** * Get a FqdnListLocalRulestackResource. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FrontendSetting.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FrontendSetting.java index 380c91476abd..0b7a03253f44 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FrontendSetting.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FrontendSetting.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -123,38 +122,6 @@ public FrontendSetting withBackendConfiguration(EndpointConfiguration backendCon return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property name in model FrontendSetting")); - } - if (protocol() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property protocol in model FrontendSetting")); - } - if (frontendConfiguration() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property frontendConfiguration in model FrontendSetting")); - } else { - frontendConfiguration().validate(); - } - if (backendConfiguration() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property backendConfiguration in model FrontendSetting")); - } else { - backendConfiguration().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FrontendSetting.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackInfo.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackInfo.java index f1b44bf55d13..25932cffd2f3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackInfo.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackInfo.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResource.java index 7d663be38340..bc3b536fdeb6 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdate.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdate.java index af9b60be7977..49951c2eafae 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdate.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -97,20 +97,6 @@ public GlobalRulestackResourceUpdate withProperties(GlobalRulestackResourceUpdat return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdateProperties.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdateProperties.java index 0b86aa686cd6..b1e5aafc2853 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdateProperties.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdateProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -224,17 +224,6 @@ public GlobalRulestackResourceUpdateProperties withSecurityServices(SecurityServ return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (securityServices() != null) { - securityServices().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestacks.java index 61c34f3a84bc..728187cffbc7 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestacks.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestacks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,28 +13,6 @@ * Resource collection API of GlobalRulestacks. */ public interface GlobalRulestacks { - /** - * List GlobalRulestackResource resources by Tenant. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * List GlobalRulestackResource resources by Tenant. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a GlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(Context context); - /** * Get a GlobalRulestackResource. * @@ -131,6 +109,28 @@ Response updateWithResponse(String globalRulestackName, */ void delete(String globalRulestackName, Context context); + /** + * List GlobalRulestackResource resources by Tenant. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a GlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * List GlobalRulestackResource resources by Tenant. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a GlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(Context context); + /** * Commit rulestack configuration. * diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/HealthStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/HealthStatus.java index 0853ea6a70f1..e4a0404f3283 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/HealthStatus.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/HealthStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddress.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddress.java index 03db6212db4a..07a2c214b16e 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddress.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddress.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -72,14 +72,6 @@ public IpAddress withAddress(String address) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddressSpace.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddressSpace.java index dc3728b9c300..f2078b282d08 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddressSpace.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddressSpace.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -72,14 +72,6 @@ public IpAddressSpace withAddressSpace(String addressSpace) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListAppIdResponse.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListAppIdResponse.java index de75ed4d3bbe..6f4961d26a8a 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListAppIdResponse.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListAppIdResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -12,14 +12,14 @@ */ public interface ListAppIdResponse { /** - * Gets the value property: List of AppIds. + * Gets the value property: The value property. * * @return the value value. */ List value(); /** - * Gets the nextLink property: next Link. + * Gets the nextLink property: The nextLink property. * * @return the nextLink value. */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListFirewallsResponse.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListFirewallsResponse.java index af6968592f15..ecc75a63abc3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListFirewallsResponse.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListFirewallsResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRules.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRules.java index d40121c7f64a..5f7ff3e59a87 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRules.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRules.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,83 +13,83 @@ */ public interface LocalRules { /** - * List LocalRulesResource resources by LocalRulestacks. + * Get a LocalRulesResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. + * @param priority Local Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. + * @return a LocalRulesResource along with {@link Response}. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); + Response getWithResponse(String resourceGroupName, String localRulestackName, String priority, + Context context); /** - * List LocalRulesResource resources by LocalRulestacks. + * Get a LocalRulesResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. + * @param priority Local Rule priority. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. + * @return a LocalRulesResource. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, - Context context); + LocalRulesResource get(String resourceGroupName, String localRulestackName, String priority); /** - * Get a LocalRulesResource. + * Delete a LocalRulesResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a LocalRulesResource along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String localRulestackName, String priority, - Context context); + void delete(String resourceGroupName, String localRulestackName, String priority); /** - * Get a LocalRulesResource. + * Delete a LocalRulesResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param priority Local Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a LocalRulesResource. */ - LocalRulesResource get(String resourceGroupName, String localRulestackName, String priority); + void delete(String resourceGroupName, String localRulestackName, String priority, Context context); /** - * Delete a LocalRulesResource. + * List LocalRulesResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String priority); + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); /** - * Delete a LocalRulesResource. + * List LocalRulesResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param priority Local Rule priority. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulesResource list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String priority, Context context); + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, + Context context); /** * Get counters. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResource.java index 81440d6fb5c8..ccbe13fb6fd6 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; 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 4418a8a0982a..c075383b3213 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 @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; +import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.management.SystemData; @@ -509,6 +510,15 @@ interface WithProperties { */ SupportInfo getSupportInfo(); + /** + * 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 paginated response with {@link PagedIterable}. + */ + PagedIterable listAppIds(); + /** * List of AppIds for LocalRulestack ApiVersion. * @@ -520,19 +530,18 @@ interface WithProperties { * @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}. + * @return the paginated response with {@link PagedIterable}. */ - Response listAppIdsWithResponse(String appIdVersion, String appPrefix, String skip, Integer top, - Context context); + PagedIterable listAppIds(String appIdVersion, String appPrefix, String skip, Integer top, Context context); /** - * List of AppIds for LocalRulestack ApiVersion. + * 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 the response. + * @return countries Response Object as paginated response with {@link PagedIterable}. */ - ListAppIdResponse listAppIds(); + PagedIterable listCountries(); /** * List of countries for Rulestack. @@ -543,18 +552,9 @@ Response listAppIdsWithResponse(String appIdVersion, String a * @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. + * @return countries Response Object as paginated response with {@link PagedIterable}. */ - CountriesResponse listCountries(); + PagedIterable listCountries(String skip, Integer top, Context context); /** * List of Firewalls associated with Rulestack. @@ -579,25 +579,24 @@ Response listAppIdsWithResponse(String appIdVersion, String a /** * 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}. + * @return predefined url categories response as paginated response with {@link PagedIterable}. */ - Response listPredefinedUrlCategoriesWithResponse(String skip, Integer top, - Context context); + PagedIterable listPredefinedUrlCategories(); /** * 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. + * @return predefined url categories response as paginated response with {@link PagedIterable}. */ - PredefinedUrlCategoriesResponse listPredefinedUrlCategories(); + PagedIterable listPredefinedUrlCategories(String skip, Integer top, Context context); /** * Revert rulestack configuration. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdate.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdate.java index 6f2443fc74be..1b6117361a18 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdate.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -98,20 +98,6 @@ public LocalRulestackResourceUpdate withProperties(LocalRulestackResourceUpdateP return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdateProperties.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdateProperties.java index def8d3f9abbe..0ebf05541cda 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdateProperties.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdateProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -224,17 +224,6 @@ public LocalRulestackResourceUpdateProperties withSecurityServices(SecurityServi return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (securityServices() != null) { - securityServices().validate(); - } - } - /** * {@inheritDoc} */ 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 fcf633f2fc2c..febe259ebe0f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,96 +13,96 @@ */ public interface LocalRulestacks { /** - * List LocalRulestackResource resources by subscription ID. + * Get a LocalRulestackResource. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. + * @return a LocalRulestackResource along with {@link Response}. */ - PagedIterable list(); + Response getByResourceGroupWithResponse(String resourceGroupName, String localRulestackName, + Context context); /** - * List LocalRulestackResource resources by subscription ID. + * Get a LocalRulestackResource. * - * @param context The context to associate with this operation. + * @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 of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. + * @return a LocalRulestackResource. */ - PagedIterable list(Context context); + LocalRulestackResource getByResourceGroup(String resourceGroupName, String localRulestackName); /** - * List LocalRulestackResource resources by resource group. + * Delete a LocalRulestackResource. * * @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 of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + void deleteByResourceGroup(String resourceGroupName, String localRulestackName); /** - * List LocalRulestackResource resources by resource group. + * Delete a LocalRulestackResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localRulestackName LocalRulestack resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + void delete(String resourceGroupName, String localRulestackName, Context context); /** - * Get a LocalRulestackResource. + * List LocalRulestackResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a LocalRulestackResource along with {@link Response}. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String localRulestackName, - Context context); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Get a LocalRulestackResource. + * List LocalRulestackResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a LocalRulestackResource. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - LocalRulestackResource getByResourceGroup(String resourceGroupName, String localRulestackName); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @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 of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - void deleteByResourceGroup(String resourceGroupName, String localRulestackName); + PagedIterable list(); /** - * Delete a LocalRulestackResource. + * List LocalRulestackResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param localRulestackName LocalRulestack resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LocalRulestackResource list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, Context context); + PagedIterable list(Context context); /** * Commit rulestack configuration. @@ -215,58 +215,58 @@ AdvSecurityObjectListResponse listAdvancedSecurityObjects(String resourceGroupNa * * @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}. + * @return the paginated response with {@link PagedIterable}. */ - Response listAppIdsWithResponse(String resourceGroupName, String localRulestackName, - String appIdVersion, String appPrefix, String skip, Integer top, Context context); + PagedIterable listAppIds(String resourceGroupName, String localRulestackName); /** * 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. + * @return the paginated response with {@link PagedIterable}. */ - ListAppIdResponse listAppIds(String resourceGroupName, String localRulestackName); + PagedIterable listAppIds(String resourceGroupName, String localRulestackName, String appIdVersion, + String appPrefix, 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. - * @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}. + * @return countries Response Object as paginated response with {@link PagedIterable}. */ - Response listCountriesWithResponse(String resourceGroupName, String localRulestackName, - String skip, Integer top, Context context); + PagedIterable listCountries(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. + * @return countries Response Object as paginated response with {@link PagedIterable}. */ - CountriesResponse listCountries(String resourceGroupName, String localRulestackName); + PagedIterable listCountries(String resourceGroupName, String localRulestackName, String skip, Integer top, + Context context); /** * List of Firewalls associated with Rulestack. @@ -299,28 +299,29 @@ Response listFirewallsWithResponse(String resourceGroupNa * * @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}. + * @return predefined url categories response as paginated response with {@link PagedIterable}. */ - Response listPredefinedUrlCategoriesWithResponse(String resourceGroupName, - String localRulestackName, String skip, Integer top, Context context); + PagedIterable listPredefinedUrlCategories(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. + * @return predefined url categories response as paginated response with {@link PagedIterable}. */ - PredefinedUrlCategoriesResponse listPredefinedUrlCategories(String resourceGroupName, String localRulestackName); + PagedIterable listPredefinedUrlCategories(String resourceGroupName, + String localRulestackName, String skip, Integer top, Context context); /** * List the security services for rulestack. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogDestination.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogDestination.java index a6a78aa3d2e8..bde434ac95f6 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogDestination.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogDestination.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -97,23 +97,6 @@ public LogDestination withMonitorConfigurations(MonitorLog monitorConfigurations return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageConfigurations() != null) { - storageConfigurations().validate(); - } - if (eventHubConfigurations() != null) { - eventHubConfigurations().validate(); - } - if (monitorConfigurations() != null) { - monitorConfigurations().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogOption.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogOption.java index 79c96bb0c59a..4980f002ebc2 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogOption.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogOption.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogSettings.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogSettings.java index bd6974362c6d..36fc91f9ee34 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogSettings.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogType.java index b444bea1a1e5..c250c4761e60 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ManagedIdentityType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ManagedIdentityType.java index b99b0d337b2e..fdf349a79088 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ManagedIdentityType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ManagedIdentityType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -29,7 +29,7 @@ public final class ManagedIdentityType extends ExpandableStringEnum getWithResponse(String resourceGroupName, String firewallName, + Context context); + + /** + * Get a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 a MetricsObjectFirewallResource. + */ + MetricsObjectFirewallResource get(String resourceGroupName, String firewallName); + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object. + */ + MetricsObjectFirewallResource createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource); + + /** + * Create a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewall Metrics Object. + */ + MetricsObjectFirewallResource createOrUpdate(String resourceGroupName, String firewallName, + MetricsObjectFirewallResourceInner resource, Context context); + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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. + */ + void deleteByResourceGroup(String resourceGroupName, String firewallName); + + /** + * Delete a MetricsObjectFirewallResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String firewallName, Context context); + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall 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 of a MetricsObjectFirewallResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByFirewalls(String resourceGroupName, String firewallName); + + /** + * List MetricsObjectFirewallResource resources by Firewalls. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallName Firewall resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MetricsObjectFirewallResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByFirewalls(String resourceGroupName, String firewallName, + Context context); +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MonitorLog.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MonitorLog.java index a507e159717c..4727782f5d22 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MonitorLog.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MonitorLog.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -147,14 +147,6 @@ public MonitorLog withSecondaryKey(String secondaryKey) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NameDescriptionObject.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NameDescriptionObject.java index ed9124b1b115..d446aed6d9ee 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NameDescriptionObject.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NameDescriptionObject.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +14,7 @@ /** * object type info. */ -@Fluent +@Immutable public final class NameDescriptionObject implements JsonSerializable { /* * name value @@ -30,7 +29,7 @@ public final class NameDescriptionObject implements JsonSerializable { */ private List trustedRanges; + /* + * Array of ipv4 destination address for which source NAT is to be performed + */ + private List privateSourceNatRulesDestination; + /** * Creates an instance of NetworkProfile class. */ @@ -200,37 +204,26 @@ public NetworkProfile withTrustedRanges(List trustedRanges) { } /** - * Validates the instance. + * Get the privateSourceNatRulesDestination property: Array of ipv4 destination address for which source NAT is to + * be performed. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the privateSourceNatRulesDestination value. */ - public void validate() { - if (vnetConfiguration() != null) { - vnetConfiguration().validate(); - } - if (vwanConfiguration() != null) { - vwanConfiguration().validate(); - } - if (networkType() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property networkType in model NetworkProfile")); - } - if (publicIps() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property publicIps in model NetworkProfile")); - } else { - publicIps().forEach(e -> e.validate()); - } - if (enableEgressNat() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property enableEgressNat in model NetworkProfile")); - } - if (egressNatIp() != null) { - egressNatIp().forEach(e -> e.validate()); - } + public List privateSourceNatRulesDestination() { + return this.privateSourceNatRulesDestination; } - private static final ClientLogger LOGGER = new ClientLogger(NetworkProfile.class); + /** + * 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; + } /** * {@inheritDoc} @@ -247,6 +240,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("egressNatIp", this.egressNatIp, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("trustedRanges", this.trustedRanges, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("privateSourceNatRulesDestination", this.privateSourceNatRulesDestination, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -283,6 +278,9 @@ public static NetworkProfile fromJson(JsonReader jsonReader) throws IOException } else if ("trustedRanges".equals(fieldName)) { List trustedRanges = reader.readArray(reader1 -> reader1.getString()); deserializedNetworkProfile.trustedRanges = trustedRanges; + } else if ("privateSourceNatRulesDestination".equals(fieldName)) { + List privateSourceNatRulesDestination = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkProfile.privateSourceNatRulesDestination = privateSourceNatRulesDestination; } else { reader.skipChildren(); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkType.java index 5cb2b1f0412c..67ea56655ab5 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Operation.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Operation.java index 97b796ad9e2e..3a079cd89ef2 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Operation.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Operation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -20,7 +20,7 @@ public interface Operation { /** * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane - * operations and "false" for ARM/control-plane operations. + * operations and "false" for Azure Resource Manager/control-plane operations. * * @return the isDataAction value. */ @@ -42,8 +42,8 @@ public interface Operation { Origin origin(); /** - * Gets the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal - * only APIs. + * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. * * @return the actionType value. */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationDisplay.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationDisplay.java index 70002a64f0b0..c60066b6d5fa 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationDisplay.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationDisplay.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Localized display information for this particular operation. + * Localized display information for and operation. */ @Immutable public final class OperationDisplay implements JsonSerializable { @@ -42,7 +42,7 @@ public final class OperationDisplay implements JsonSerializable { /** - * Static value user for Origin. + * Indicates the operation is initiated by a user. */ public static final Origin USER = fromString("user"); /** - * Static value system for Origin. + * Indicates the operation is initiated by a system. */ public static final Origin SYSTEM = fromString("system"); /** - * Static value user,system for Origin. + * Indicates the operation is initiated by a user or system. */ public static final Origin USER_SYSTEM = fromString("user,system"); diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PaloAltoNetworksCloudngfwOperations.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PaloAltoNetworksCloudngfwOperations.java new file mode 100644 index 000000000000..a06f87286fbe --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PaloAltoNetworksCloudngfwOperations.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of PaloAltoNetworksCloudngfwOperations. + */ +public interface PaloAltoNetworksCloudngfwOperations { + /** + * 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 cloud Manager Tenant 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 cloud Manager Tenant. + */ + CloudManagerTenantList 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/PanoramaConfig.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaConfig.java index e8ccf761d34e..4cf10e37dbaf 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaConfig.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaConfig.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -56,7 +55,7 @@ public final class PanoramaConfig implements JsonSerializable { /* * Resource name(may be unique) for PN admin */ - private String hostname; + private String hostName; /** * Creates an instance of PanoramaConfig class. @@ -141,28 +140,14 @@ public String cgName() { } /** - * Get the hostname property: Resource name(may be unique) for PN admin. + * Get the hostName property: Resource name(may be unique) for PN admin. * - * @return the hostname value. + * @return the hostName value. */ - public String hostname() { - return this.hostname; + public String hostName() { + return this.hostName; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (configString() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property configString in model PanoramaConfig")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PanoramaConfig.class); - /** * {@inheritDoc} */ @@ -204,7 +189,7 @@ public static PanoramaConfig fromJson(JsonReader jsonReader) throws IOException } else if ("cgName".equals(fieldName)) { deserializedPanoramaConfig.cgName = reader.getString(); } else if ("hostName".equals(fieldName)) { - deserializedPanoramaConfig.hostname = reader.getString(); + deserializedPanoramaConfig.hostName = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaStatus.java index f243c9192f71..8e16630f6d70 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaStatus.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -29,7 +29,7 @@ public final class PanoramaStatus implements JsonSerializable { /** * Creates an instance of PanoramaStatus class. */ - public PanoramaStatus() { + private PanoramaStatus() { } /** @@ -50,14 +50,6 @@ public ServerStatus panoramaServer2Status() { return this.panoramaServer2Status; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PlanData.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PlanData.java index c2849ce39a98..3c27b8eb0e20 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PlanData.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PlanData.java @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.CoreUtils; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -114,24 +113,6 @@ public OffsetDateTime effectiveDate() { return this.effectiveDate; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (billingCycle() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property billingCycle in model PlanData")); - } - if (planId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property planId in model PlanData")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PlanData.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRules.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRules.java index 2e730fabe2e7..6eddbff4d62a 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRules.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRules.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,29 +13,6 @@ * Resource collection API of PostRules. */ public interface PostRules { - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName); - - /** - * List PostRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PostRulesResource list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName, Context context); - /** * Get a PostRulesResource. * @@ -112,6 +89,29 @@ PostRulesResource createOrUpdate(String globalRulestackName, String priority, Po */ void delete(String globalRulestackName, String priority, Context context); + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PostRulesResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName); + + /** + * List PostRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PostRulesResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName, Context context); + /** * Get counters. * diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResource.java index af6aff232030..7813a5f05ccb 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRules.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRules.java index 0b465a8feaa2..428d2aeb77b6 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRules.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRules.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,29 +13,6 @@ * Resource collection API of PreRules. */ public interface PreRules { - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName); - - /** - * List PreRulesResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PreRulesResource list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName, Context context); - /** * Get a PreRulesResource. * @@ -112,6 +89,29 @@ PreRulesResource createOrUpdate(String globalRulestackName, String priority, Pre */ void delete(String globalRulestackName, String priority, Context context); + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PreRulesResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName); + + /** + * List PreRulesResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PreRulesResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName, Context context); + /** * Get counters. * diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResource.java index ff3b7527d388..ddb1730d1ffc 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategoriesResponse.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategoriesResponse.java index 01afb78d427d..06e75a211eff 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategoriesResponse.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategoriesResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -12,14 +12,14 @@ */ public interface PredefinedUrlCategoriesResponse { /** - * Gets the value property: predefined url categories. + * Gets the value property: The PredefinedUrlCategory items on this page. * * @return the value value. */ List value(); /** - * Gets the nextLink property: next link. + * Gets the nextLink property: The link to the next page of items. * * @return the nextLink value. */ 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 c4e8102c4622..1a7a2df7d1ca 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 @@ -1,133 +1,33 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; +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 implements JsonSerializable { - /* - * The action property. - */ - private String action; - - /* - * The name property. - */ - private String name; - - /** - * Creates an instance of PredefinedUrlCategory class. - */ - public PredefinedUrlCategory() { - } - +public interface 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; - } + String 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; - } - - /** - * Get the name property: The name property. + * Gets the name property: The name property. * * @return the name value. */ - public String name() { - return this.name; - } + String name(); /** - * Set the name property: The name property. + * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner object. * - * @param name the name value to set. - * @return the PredefinedUrlCategory object itself. + * @return the inner object. */ - public PredefinedUrlCategory 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.atError() - .log(new IllegalArgumentException("Missing required property action in model PredefinedUrlCategory")); - } - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property name in model PredefinedUrlCategory")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(PredefinedUrlCategory.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("action", this.action); - jsonWriter.writeStringField("name", this.name); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of PredefinedUrlCategory from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of PredefinedUrlCategory if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the PredefinedUrlCategory. - */ - public static PredefinedUrlCategory fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - PredefinedUrlCategory deserializedPredefinedUrlCategory = new PredefinedUrlCategory(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("action".equals(fieldName)) { - deserializedPredefinedUrlCategory.action = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedPredefinedUrlCategory.name = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedPredefinedUrlCategory; - }); - } + PredefinedUrlCategoryInner innerModel(); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResource.java index 6a566d02a33b..0fa29af6a375 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestacks.java index f72ce69bc72a..857f8b1d334b 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestacks.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestacks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,31 +13,6 @@ * Resource collection API of PrefixListGlobalRulestacks. */ public interface PrefixListGlobalRulestacks { - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName); - - /** - * List PrefixListGlobalRulestackResource resources by Tenant. - * - * @param globalRulestackName GlobalRulestack resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListGlobalRulestackResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(String globalRulestackName, Context context); - /** * Get a PrefixListGlobalRulestackResource. * @@ -115,4 +90,29 @@ PrefixListGlobalRulestackResource createOrUpdate(String globalRulestackName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ void delete(String globalRulestackName, String name, Context context); + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack 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 of a PrefixListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName); + + /** + * List PrefixListGlobalRulestackResource resources by Tenant. + * + * @param globalRulestackName GlobalRulestack resource name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListGlobalRulestackResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String globalRulestackName, Context context); } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListLocalRulestacks.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListLocalRulestacks.java index 845f87295952..b9ac652592e3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListLocalRulestacks.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListLocalRulestacks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -13,83 +13,83 @@ */ public interface PrefixListLocalRulestacks { /** - * List PrefixListResource resources by LocalRulestacks. + * Get a PrefixListResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. + * @param name Local Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. + * @return a PrefixListResource along with {@link Response}. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); + Response getWithResponse(String resourceGroupName, String localRulestackName, String name, + Context context); /** - * List PrefixListResource resources by LocalRulestacks. + * Get a PrefixListResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param context The context to associate with this operation. + * @param name Local Rule priority. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. + * @return a PrefixListResource. */ - PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, - Context context); + PrefixListResource get(String resourceGroupName, String localRulestackName, String name); /** - * Get a PrefixListResource. + * Delete a PrefixListResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a PrefixListResource along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String localRulestackName, String name, - Context context); + void delete(String resourceGroupName, String localRulestackName, String name); /** - * Get a PrefixListResource. + * Delete a PrefixListResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. * @param name Local Rule priority. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a PrefixListResource. */ - PrefixListResource get(String resourceGroupName, String localRulestackName, String name); + void delete(String resourceGroupName, String localRulestackName, String name, Context context); /** - * Delete a PrefixListResource. + * List PrefixListResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name Local Rule priority. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String name); + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName); /** - * Delete a PrefixListResource. + * List PrefixListResource resources by LocalRulestacks. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localRulestackName LocalRulestack resource name. - * @param name Local Rule priority. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a PrefixListResource list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String localRulestackName, String name, Context context); + PagedIterable listByLocalRulestacks(String resourceGroupName, String localRulestackName, + Context context); /** * Get a PrefixListResource. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResource.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResource.java index 947b38c66ac2..ea1220544e49 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResource.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; 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 000000000000..ed54e8ea6a13 --- /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) TypeSpec 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 000000000000..d208204270a7 --- /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) TypeSpec 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 000000000000..ca47b0cbf045 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialStatusValues.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.models; + +/** + * 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. + */ + 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} + */ + @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/ProtocolType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProtocolType.java index ebe1c6d0071d..3d350afda096 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProtocolType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProtocolType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProvisioningState.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProvisioningState.java index 8b0ff52be3f7..851dad3633f7 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProvisioningState.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ReadOnlyProvisioningState.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ReadOnlyProvisioningState.java index 4031a0d34c40..7f5eddad84c6 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ReadOnlyProvisioningState.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ReadOnlyProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; 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 000000000000..61f4e9de2b51 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RegistrationStatus.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.models; + +import com.azure.core.util.ExpandableStringEnum; +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. + */ + 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/RuleCounter.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounter.java index 4162807ea4ab..a4751ebf94c5 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounter.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounter.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounterReset.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounterReset.java index 111f0afe050c..6b52449f3c90 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounterReset.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounterReset.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RulestackDetails.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RulestackDetails.java index 5be94f5854c9..6bead928e0f2 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RulestackDetails.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RulestackDetails.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -97,14 +97,6 @@ public RulestackDetails withLocation(String location) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ScopeType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ScopeType.java index 98df60c42776..9b12dfe84889 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ScopeType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ScopeType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServices.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServices.java index 7c8907052612..7be835302c11 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServices.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServices.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -222,14 +222,6 @@ public SecurityServices withOutboundTrustCertificate(String outboundTrustCertifi return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesResponse.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesResponse.java index 82546b2f1280..94eb1b01de5a 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesResponse.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeEnum.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeEnum.java index 646b8f4980b0..d2d13f669ba9 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeEnum.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeList.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeList.java index d43086ef1e8e..5f7548475fb3 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeList.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeList.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +15,7 @@ /** * Security services type list. */ -@Fluent +@Immutable public final class SecurityServicesTypeList implements JsonSerializable { /* * security services type @@ -31,7 +30,7 @@ public final class SecurityServicesTypeList implements JsonSerializable entry() { return this.entry; } - /** - * Set the entry property: list. - * - * @param entry the entry value to set. - * @return the SecurityServicesTypeList object itself. - */ - public SecurityServicesTypeList withEntry(List entry) { - this.entry = entry; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (entry() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property entry in model SecurityServicesTypeList")); - } else { - entry().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SecurityServicesTypeList.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ServerStatus.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ServerStatus.java index 16d7e9393277..e71532ba1a8b 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ServerStatus.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ServerStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SourceAddr.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SourceAddr.java index 4e47fc2ff1b4..8d6b7d49765c 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SourceAddr.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SourceAddr.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -123,14 +123,6 @@ public SourceAddr withPrefixLists(List prefixLists) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StateEnum.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StateEnum.java index 0d8398fb3495..5dd351304129 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StateEnum.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StateEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StorageAccount.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StorageAccount.java index 9ed0631fd9d3..fb1ac9f2165b 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StorageAccount.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StorageAccount.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; @@ -97,14 +97,6 @@ public StorageAccount withAccountName(String accountName) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ 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 000000000000..85c509e81606 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerConfig.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * This field is only present if Strata Cloud Manager is managing the policy for this firewall. + */ +@Fluent +public final class StrataCloudManagerConfig implements JsonSerializable { + /* + * Strata Cloud Manager name which is intended to manage the policy for this firewall. + */ + 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; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("cloudManagerName", this.cloudManagerName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StrataCloudManagerConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StrataCloudManagerConfig if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the StrataCloudManagerConfig. + */ + public static StrataCloudManagerConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StrataCloudManagerConfig deserializedStrataCloudManagerConfig = new StrataCloudManagerConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cloudManagerName".equals(fieldName)) { + deserializedStrataCloudManagerConfig.cloudManagerName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStrataCloudManagerConfig; + }); + } +} 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 000000000000..e69e50159a6b --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerInfo.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Strata Cloud Manager Info. + */ +@Immutable +public final class StrataCloudManagerInfo implements JsonSerializable { + /* + * Strata Cloud Manager folder in which this firewall has been placed + */ + private String folderName; + + /* + * URL for Strata Cloud Manager + */ + private String hubUrl; + + /** + * Creates an instance of StrataCloudManagerInfo class. + */ + private 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; + } + + /** + * Get the hubUrl property: URL for Strata Cloud Manager. + * + * @return the hubUrl value. + */ + public String hubUrl() { + return this.hubUrl; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("folderName", this.folderName); + jsonWriter.writeStringField("hubUrl", this.hubUrl); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StrataCloudManagerInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StrataCloudManagerInfo if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the StrataCloudManagerInfo. + */ + public static StrataCloudManagerInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StrataCloudManagerInfo deserializedStrataCloudManagerInfo = new StrataCloudManagerInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("folderName".equals(fieldName)) { + deserializedStrataCloudManagerInfo.folderName = reader.getString(); + } else if ("hubUrl".equals(fieldName)) { + deserializedStrataCloudManagerInfo.hubUrl = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStrataCloudManagerInfo; + }); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfo.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfo.java index b4286ed3264a..7190698659c8 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfo.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfo.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; 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 000000000000..888221d8ee9f --- /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) TypeSpec 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/com/azure/resourcemanager/paloaltonetworks/ngfw/models/TagInfo.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/TagInfo.java index 5278d280bd1c..21263f466213 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/TagInfo.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/TagInfo.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -73,23 +72,6 @@ public TagInfo withValue(String value) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (key() == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Missing required property key in model TagInfo")); - } - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model TagInfo")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(TagInfo.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/UsageType.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/UsageType.java index e34ddb34b991..94d806bf75f9 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/UsageType.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/UsageType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VnetConfiguration.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VnetConfiguration.java index 21abe6f809fd..bb6b14d30c8b 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VnetConfiguration.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VnetConfiguration.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -123,38 +122,6 @@ public VnetConfiguration withIpOfTrustSubnetForUdr(IpAddress ipOfTrustSubnetForU return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (vnet() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property vnet in model VnetConfiguration")); - } else { - vnet().validate(); - } - if (trustSubnet() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property trustSubnet in model VnetConfiguration")); - } else { - trustSubnet().validate(); - } - if (unTrustSubnet() == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Missing required property unTrustSubnet in model VnetConfiguration")); - } else { - unTrustSubnet().validate(); - } - if (ipOfTrustSubnetForUdr() != null) { - ipOfTrustSubnetForUdr().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(VnetConfiguration.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VwanConfiguration.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VwanConfiguration.java index 56f022f5b6a6..bff153c3deea 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VwanConfiguration.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VwanConfiguration.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -148,31 +147,6 @@ public VwanConfiguration withIpOfTrustSubnetForUdr(IpAddress ipOfTrustSubnetForU return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (vHub() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property vHub in model VwanConfiguration")); - } else { - vHub().validate(); - } - if (trustSubnet() != null) { - trustSubnet().validate(); - } - if (unTrustSubnet() != null) { - unTrustSubnet().validate(); - } - if (ipOfTrustSubnetForUdr() != null) { - ipOfTrustSubnetForUdr().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(VwanConfiguration.class); - /** * {@inheritDoc} */ diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/package-info.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/package-info.java index 3010b7df4ac2..ed15541d9421 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/package-info.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the data models for PaloAltoNetworksCloudngfw. - * null. + * Package containing the data models for PaloAltoNetworksNgfw. */ package com.azure.resourcemanager.paloaltonetworks.ngfw.models; diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/package-info.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/package-info.java index 16fdf55a160a..2045b87479b0 100644 --- a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/package-info.java +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the classes for PaloAltoNetworksCloudngfw. - * null. + * Package containing the classes for PaloAltoNetworksNgfw. */ package com.azure.resourcemanager.paloaltonetworks.ngfw; 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 0f67b73648fb..c6506c065843 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. module com.azure.resourcemanager.paloaltonetworks.ngfw { requires transitive com.azure.core.management; @@ -12,4 +12,5 @@ opens com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models to com.azure.core; opens com.azure.resourcemanager.paloaltonetworks.ngfw.models to com.azure.core; + opens com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models to com.azure.core; } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/azure-resourcemanager-paloaltonetworks-ngfw_apiview_properties.json b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/azure-resourcemanager-paloaltonetworks-ngfw_apiview_properties.json new file mode 100644 index 000000000000..911cdcf84cae --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/azure-resourcemanager-paloaltonetworks-ngfw_apiview_properties.json @@ -0,0 +1,318 @@ +{ + "flavor": "azure", + "CrossLanguageDefinitionId": { + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.get": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.list": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.list", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.get": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.listByLocalRulestacks": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.listByLocalRulestacks", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient.get": "PaloAltoNetworks.Cloudngfw.FirewallStatusResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.FirewallStatusResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient.listByFirewalls": "PaloAltoNetworks.Cloudngfw.FirewallStatusResources.listByFirewalls", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.FirewallResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.beginDelete": "PaloAltoNetworks.Cloudngfw.FirewallResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.FirewallResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.delete": "PaloAltoNetworks.Cloudngfw.FirewallResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getByResourceGroup": "PaloAltoNetworks.Cloudngfw.FirewallResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getByResourceGroupWithResponse": "PaloAltoNetworks.Cloudngfw.FirewallResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getGlobalRulestack": "PaloAltoNetworks.Cloudngfw.FirewallResources.getGlobalRulestack", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getGlobalRulestackWithResponse": "PaloAltoNetworks.Cloudngfw.FirewallResources.getGlobalRulestack", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getLogProfile": "PaloAltoNetworks.Cloudngfw.FirewallResources.getLogProfile", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getLogProfileWithResponse": "PaloAltoNetworks.Cloudngfw.FirewallResources.getLogProfile", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getSupportInfo": "PaloAltoNetworks.Cloudngfw.FirewallResources.getSupportInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getSupportInfoWithResponse": "PaloAltoNetworks.Cloudngfw.FirewallResources.getSupportInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.list": "PaloAltoNetworks.Cloudngfw.FirewallResources.listBySubscription", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.listByResourceGroup": "PaloAltoNetworks.Cloudngfw.FirewallResources.listByResourceGroup", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.saveLogProfile": "PaloAltoNetworks.Cloudngfw.FirewallResources.saveLogProfile", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.saveLogProfileWithResponse": "PaloAltoNetworks.Cloudngfw.FirewallResources.saveLogProfile", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.update": "PaloAltoNetworks.Cloudngfw.FirewallResources.update", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.updateWithResponse": "PaloAltoNetworks.Cloudngfw.FirewallResources.update", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.get": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.list": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.list", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.get": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.listByLocalRulestacks": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.listByLocalRulestacks", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.beginCommit": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.commit", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.commit": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.commit", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.get": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.getChangeLog": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.getChangeLog", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.getChangeLogWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.getChangeLog", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.list": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.list", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAdvancedSecurityObjects": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAdvancedSecurityObjects", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAdvancedSecurityObjectsWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAdvancedSecurityObjects", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAppIds": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAppIds", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAppIdsWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAppIds", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listCountries": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listCountries", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listCountriesWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listCountries", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listFirewalls": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listFirewalls", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listFirewallsWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listFirewalls", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listPredefinedUrlCategories": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listPredefinedUrlCategories", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listPredefinedUrlCategoriesWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listPredefinedUrlCategories", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listSecurityServices": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listSecurityServices", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listSecurityServicesWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listSecurityServices", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.revert": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.revert", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.revertWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.revert", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.update": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.update", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.updateWithResponse": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.update", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.beginDelete": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.delete": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.get": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.getCounters": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.getCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.getCountersWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.getCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.listByLocalRulestacks": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.listByLocalRulestacks", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.refreshCounters": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.refreshCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.refreshCountersWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.refreshCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.resetCounters": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.resetCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.resetCountersWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulesResources.resetCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.beginCommit": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.commit", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.commit": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.commit", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getByResourceGroup": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getByResourceGroupWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getChangeLog": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getChangeLog", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getChangeLogWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getChangeLog", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getSupportInfo": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getSupportInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getSupportInfoWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getSupportInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.list": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listBySubscription", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listAdvancedSecurityObjects": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listAdvancedSecurityObjects", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listAdvancedSecurityObjectsWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listAdvancedSecurityObjects", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listAppIds": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listAppIds", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listByResourceGroup": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listByResourceGroup", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listCountries": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listCountries", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listFirewalls": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listFirewalls", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listFirewallsWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listFirewalls", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listPredefinedUrlCategories": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listPredefinedUrlCategories", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listSecurityServices": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listSecurityServices", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listSecurityServicesWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listSecurityServices", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.revert": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.revert", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.revertWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.revert", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.update": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.update", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.updateWithResponse": "PaloAltoNetworks.Cloudngfw.LocalRulestackResources.update", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.beginDelete": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.delete": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.get": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.listByFirewalls": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.listByFirewalls", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.OperationsClient": "PaloAltoNetworks.Cloudngfw.Operations", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.OperationsClient.list": "Azure.ResourceManager.Operations.list", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.createProductSerialNumber": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.createProductSerialNumber", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.createProductSerialNumberWithResponse": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.createProductSerialNumber", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listCloudManagerTenants": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listCloudManagerTenants", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listCloudManagerTenantsWithResponse": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listCloudManagerTenants", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listProductSerialNumberStatus": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listProductSerialNumberStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listProductSerialNumberStatusWithResponse": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listProductSerialNumberStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listSupportInfo": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listSupportInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listSupportInfoWithResponse": "PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listSupportInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksNgfwManagementClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.PostRulesResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.beginDelete": "PaloAltoNetworks.Cloudngfw.PostRulesResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.PostRulesResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.delete": "PaloAltoNetworks.Cloudngfw.PostRulesResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.get": "PaloAltoNetworks.Cloudngfw.PostRulesResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.getCounters": "PaloAltoNetworks.Cloudngfw.PostRulesResources.getCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.getCountersWithResponse": "PaloAltoNetworks.Cloudngfw.PostRulesResources.getCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.PostRulesResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.list": "PaloAltoNetworks.Cloudngfw.PostRulesResources.list", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.refreshCounters": "PaloAltoNetworks.Cloudngfw.PostRulesResources.refreshCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.refreshCountersWithResponse": "PaloAltoNetworks.Cloudngfw.PostRulesResources.refreshCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.resetCounters": "PaloAltoNetworks.Cloudngfw.PostRulesResources.resetCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.resetCountersWithResponse": "PaloAltoNetworks.Cloudngfw.PostRulesResources.resetCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.PreRulesResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.beginDelete": "PaloAltoNetworks.Cloudngfw.PreRulesResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.PreRulesResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.delete": "PaloAltoNetworks.Cloudngfw.PreRulesResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.get": "PaloAltoNetworks.Cloudngfw.PreRulesResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.getCounters": "PaloAltoNetworks.Cloudngfw.PreRulesResources.getCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.getCountersWithResponse": "PaloAltoNetworks.Cloudngfw.PreRulesResources.getCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.PreRulesResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.list": "PaloAltoNetworks.Cloudngfw.PreRulesResources.list", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.refreshCounters": "PaloAltoNetworks.Cloudngfw.PreRulesResources.refreshCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.refreshCountersWithResponse": "PaloAltoNetworks.Cloudngfw.PreRulesResources.refreshCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.resetCounters": "PaloAltoNetworks.Cloudngfw.PreRulesResources.resetCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.resetCountersWithResponse": "PaloAltoNetworks.Cloudngfw.PreRulesResources.resetCounters", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.get": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.list": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.list", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.beginCreateOrUpdate": "PaloAltoNetworks.Cloudngfw.PrefixListResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.beginDelete": "PaloAltoNetworks.Cloudngfw.PrefixListResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.createOrUpdate": "PaloAltoNetworks.Cloudngfw.PrefixListResources.createOrUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.delete": "PaloAltoNetworks.Cloudngfw.PrefixListResources.delete", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.get": "PaloAltoNetworks.Cloudngfw.PrefixListResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.getWithResponse": "PaloAltoNetworks.Cloudngfw.PrefixListResources.get", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.listByLocalRulestacks": "PaloAltoNetworks.Cloudngfw.PrefixListResources.listByLocalRulestacks", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.AdvSecurityObjectListResponseInner": "PaloAltoNetworks.Cloudngfw.AdvSecurityObjectListResponse", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObject": "PaloAltoNetworks.Cloudngfw.CertificateObject", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner": "PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectLocalRulestackResourceInner": "PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ChangelogInner": "PaloAltoNetworks.Cloudngfw.Changelog", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner": "PaloAltoNetworks.Cloudngfw.CloudManagerTenantList", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountriesResponseInner": "PaloAltoNetworks.Cloudngfw.CountriesResponse", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner": "PaloAltoNetworks.Cloudngfw.Country", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallDeploymentProperties": "PaloAltoNetworks.Cloudngfw.FirewallDeploymentProperties", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallResourceInner": "PaloAltoNetworks.Cloudngfw.FirewallResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusProperty": "PaloAltoNetworks.Cloudngfw.FirewallStatusProperty", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusResourceInner": "PaloAltoNetworks.Cloudngfw.FirewallStatusResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListGlobalRulestackResourceInner": "PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListLocalRulestackResourceInner": "PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnObject": "PaloAltoNetworks.Cloudngfw.FqdnObject", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.GlobalRulestackInfoInner": "PaloAltoNetworks.Cloudngfw.GlobalRulestackInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.GlobalRulestackResourceInner": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListAppIdResponseInner": "PaloAltoNetworks.Cloudngfw.ListAppIdResponse", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListFirewallsResponseInner": "PaloAltoNetworks.Cloudngfw.ListFirewallsResponse", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulesResourceInner": "PaloAltoNetworks.Cloudngfw.LocalRulesResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulestackResourceInner": "PaloAltoNetworks.Cloudngfw.LocalRulestackResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LogSettingsInner": "PaloAltoNetworks.Cloudngfw.LogSettings", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObject": "PaloAltoNetworks.Cloudngfw.MetricsObject", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner": "PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.OperationInner": "Azure.ResourceManager.CommonTypes.Operation", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PostRulesResourceInner": "PaloAltoNetworks.Cloudngfw.PostRulesResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PreRulesResourceInner": "PaloAltoNetworks.Cloudngfw.PreRulesResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner": "PaloAltoNetworks.Cloudngfw.PredefinedUrlCategoriesResponse", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner": "PaloAltoNetworks.Cloudngfw.PredefinedUrlCategory", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixListGlobalRulestackResourceInner": "PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixListResourceInner": "PaloAltoNetworks.Cloudngfw.PrefixListResource", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixObject": "PaloAltoNetworks.Cloudngfw.PrefixObject", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner": "PaloAltoNetworks.Cloudngfw.ProductSerialNumberRequestStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner": "PaloAltoNetworks.Cloudngfw.ProductSerialNumberStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterInner": "PaloAltoNetworks.Cloudngfw.RuleCounter", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterResetInner": "PaloAltoNetworks.Cloudngfw.RuleCounterReset", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleEntry": "PaloAltoNetworks.Cloudngfw.RuleEntry", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RulestackProperties": "PaloAltoNetworks.Cloudngfw.RulestackProperties", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SecurityServicesResponseInner": "PaloAltoNetworks.Cloudngfw.SecurityServicesResponse", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoInner": "PaloAltoNetworks.Cloudngfw.SupportInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner": "PaloAltoNetworks.Cloudngfw.SupportInfoModel", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksNgfwManagementClientBuilder": "PaloAltoNetworks.Cloudngfw", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectGlobalRulestackResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectLocalRulestackResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FirewallResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FirewallStatusResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListGlobalRulestackResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListLocalRulestackResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.GlobalRulestackResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.LocalRulesResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.LocalRulestackResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.MetricsObjectFirewallResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.OperationListResult": "Azure.ResourceManager.CommonTypes.OperationListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PostRulesResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PreRulesResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListGlobalRulestackResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListResourceListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ActionEnum": "PaloAltoNetworks.Cloudngfw.ActionEnum", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectModel": "PaloAltoNetworks.Cloudngfw.AdvSecurityObjectModel", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum": "PaloAltoNetworks.Cloudngfw.AdvSecurityObjectTypeEnum", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenData": "PaloAltoNetworks.Cloudngfw.AppSeenData", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenInfo": "PaloAltoNetworks.Cloudngfw.AppSeenInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ApplicationInsights": "PaloAltoNetworks.Cloudngfw.ApplicationInsights", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties": "PaloAltoNetworks.Cloudngfw.AzureResourceManagerManagedIdentityProperties", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerUserAssignedIdentity": "PaloAltoNetworks.Cloudngfw.AzureResourceManagerUserAssignedIdentity", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.BillingCycle": "PaloAltoNetworks.Cloudngfw.BillingCycle", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum": "PaloAltoNetworks.Cloudngfw.BooleanEnum", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.Category": "PaloAltoNetworks.Cloudngfw.Category", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.DecryptionRuleTypeEnum": "PaloAltoNetworks.Cloudngfw.DecryptionRuleTypeEnum", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode": "PaloAltoNetworks.Cloudngfw.DefaultMode", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.DestinationAddr": "PaloAltoNetworks.Cloudngfw.DestinationAddr", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.DnsProxy": "PaloAltoNetworks.Cloudngfw.DNSProxy", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.DnsSettings": "PaloAltoNetworks.Cloudngfw.DNSSettings", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.EgressNat": "PaloAltoNetworks.Cloudngfw.EgressNat", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnableStatus": "PaloAltoNetworks.Cloudngfw.EnableStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnabledDnsType": "PaloAltoNetworks.Cloudngfw.EnabledDNSType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.EndpointConfiguration": "PaloAltoNetworks.Cloudngfw.EndpointConfiguration", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.EventHub": "PaloAltoNetworks.Cloudngfw.EventHub", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallResourceUpdate": "PaloAltoNetworks.Cloudngfw.FirewallResourceUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallResourceUpdateProperties": "PaloAltoNetworks.Cloudngfw.FirewallResourceUpdateProperties", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.FrontendSetting": "PaloAltoNetworks.Cloudngfw.FrontendSetting", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdate": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResourceUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdateProperties": "PaloAltoNetworks.Cloudngfw.GlobalRulestackResourceUpdateProperties", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.HealthStatus": "PaloAltoNetworks.Cloudngfw.HealthStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddress": "PaloAltoNetworks.Cloudngfw.IPAddress", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddressSpace": "PaloAltoNetworks.Cloudngfw.IPAddressSpace", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdate": "PaloAltoNetworks.Cloudngfw.LocalRulestackResourceUpdate", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdateProperties": "PaloAltoNetworks.Cloudngfw.LocalRulestackResourceUpdateProperties", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogDestination": "PaloAltoNetworks.Cloudngfw.LogDestination", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogOption": "PaloAltoNetworks.Cloudngfw.LogOption", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogType": "PaloAltoNetworks.Cloudngfw.LogType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType": "PaloAltoNetworks.Cloudngfw.ManagedIdentityType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.MarketplaceDetails": "PaloAltoNetworks.Cloudngfw.MarketplaceDetails", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.MarketplaceSubscriptionStatus": "PaloAltoNetworks.Cloudngfw.MarketplaceSubscriptionStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.MonitorLog": "PaloAltoNetworks.Cloudngfw.MonitorLog", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.NameDescriptionObject": "PaloAltoNetworks.Cloudngfw.NameDescriptionObject", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.NetworkProfile": "PaloAltoNetworks.Cloudngfw.NetworkProfile", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.NetworkType": "PaloAltoNetworks.Cloudngfw.NetworkType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.Origin": "Azure.ResourceManager.CommonTypes.Origin", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaConfig": "PaloAltoNetworks.Cloudngfw.PanoramaConfig", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaStatus": "PaloAltoNetworks.Cloudngfw.PanoramaStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.PlanData": "PaloAltoNetworks.Cloudngfw.PlanData", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues": "PaloAltoNetworks.Cloudngfw.ProductSerialStatusValues", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProtocolType": "PaloAltoNetworks.Cloudngfw.ProtocolType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState": "PaloAltoNetworks.Cloudngfw.ProvisioningState", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ReadOnlyProvisioningState": "PaloAltoNetworks.Cloudngfw.ReadOnlyProvisioningState", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.RegistrationStatus": "PaloAltoNetworks.Cloudngfw.RegistrationStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.RulestackDetails": "PaloAltoNetworks.Cloudngfw.RulestackDetails", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType": "PaloAltoNetworks.Cloudngfw.ScopeType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices": "PaloAltoNetworks.Cloudngfw.SecurityServices", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum": "PaloAltoNetworks.Cloudngfw.SecurityServicesTypeEnum", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeList": "PaloAltoNetworks.Cloudngfw.SecurityServicesTypeList", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.ServerStatus": "PaloAltoNetworks.Cloudngfw.ServerStatus", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.SourceAddr": "PaloAltoNetworks.Cloudngfw.SourceAddr", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.StateEnum": "PaloAltoNetworks.Cloudngfw.StateEnum", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.StorageAccount": "PaloAltoNetworks.Cloudngfw.StorageAccount", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerConfig": "PaloAltoNetworks.Cloudngfw.StrataCloudManagerConfig", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerInfo": "PaloAltoNetworks.Cloudngfw.StrataCloudManagerInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.TagInfo": "PaloAltoNetworks.Cloudngfw.TagInfo", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.UsageType": "PaloAltoNetworks.Cloudngfw.UsageType", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.VnetConfiguration": "PaloAltoNetworks.Cloudngfw.VnetConfiguration", + "com.azure.resourcemanager.paloaltonetworks.ngfw.models.VwanConfiguration": "PaloAltoNetworks.Cloudngfw.VwanConfiguration" + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/azure-resourcemanager-paloaltonetworks-ngfw_metadata.json b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/azure-resourcemanager-paloaltonetworks-ngfw_metadata.json new file mode 100644 index 000000000000..58d8d26d402b --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/META-INF/azure-resourcemanager-paloaltonetworks-ngfw_metadata.json @@ -0,0 +1 @@ +{"flavor":"azure","apiVersion":"2025-10-08","crossLanguageDefinitions":{"com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.get":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectGlobalRulestacksClient.list":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResources.list","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.get":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.CertificateObjectLocalRulestacksClient.listByLocalRulestacks":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResources.listByLocalRulestacks","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient.get":"PaloAltoNetworks.Cloudngfw.FirewallStatusResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.FirewallStatusResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallStatusClient.listByFirewalls":"PaloAltoNetworks.Cloudngfw.FirewallStatusResources.listByFirewalls","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.FirewallResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.beginDelete":"PaloAltoNetworks.Cloudngfw.FirewallResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.FirewallResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.delete":"PaloAltoNetworks.Cloudngfw.FirewallResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getByResourceGroup":"PaloAltoNetworks.Cloudngfw.FirewallResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getByResourceGroupWithResponse":"PaloAltoNetworks.Cloudngfw.FirewallResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getGlobalRulestack":"PaloAltoNetworks.Cloudngfw.FirewallResources.getGlobalRulestack","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getGlobalRulestackWithResponse":"PaloAltoNetworks.Cloudngfw.FirewallResources.getGlobalRulestack","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getLogProfile":"PaloAltoNetworks.Cloudngfw.FirewallResources.getLogProfile","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getLogProfileWithResponse":"PaloAltoNetworks.Cloudngfw.FirewallResources.getLogProfile","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getSupportInfo":"PaloAltoNetworks.Cloudngfw.FirewallResources.getSupportInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.getSupportInfoWithResponse":"PaloAltoNetworks.Cloudngfw.FirewallResources.getSupportInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.list":"PaloAltoNetworks.Cloudngfw.FirewallResources.listBySubscription","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.listByResourceGroup":"PaloAltoNetworks.Cloudngfw.FirewallResources.listByResourceGroup","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.saveLogProfile":"PaloAltoNetworks.Cloudngfw.FirewallResources.saveLogProfile","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.saveLogProfileWithResponse":"PaloAltoNetworks.Cloudngfw.FirewallResources.saveLogProfile","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.update":"PaloAltoNetworks.Cloudngfw.FirewallResources.update","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FirewallsClient.updateWithResponse":"PaloAltoNetworks.Cloudngfw.FirewallResources.update","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.get":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListGlobalRulestacksClient.list":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResources.list","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.get":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.FqdnListLocalRulestacksClient.listByLocalRulestacks":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResources.listByLocalRulestacks","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.beginCommit":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.commit","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.commit":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.commit","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.get":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.getChangeLog":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.getChangeLog","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.getChangeLogWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.getChangeLog","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.list":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.list","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAdvancedSecurityObjects":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAdvancedSecurityObjects","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAdvancedSecurityObjectsWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAdvancedSecurityObjects","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAppIds":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAppIds","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listAppIdsWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listAppIds","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listCountries":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listCountries","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listCountriesWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listCountries","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listFirewalls":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listFirewalls","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listFirewallsWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listFirewalls","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listPredefinedUrlCategories":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listPredefinedUrlCategories","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listPredefinedUrlCategoriesWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listPredefinedUrlCategories","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listSecurityServices":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listSecurityServices","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.listSecurityServicesWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.listSecurityServices","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.revert":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.revert","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.revertWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.revert","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.update":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.update","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.GlobalRulestacksClient.updateWithResponse":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResources.update","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.beginDelete":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.delete":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.get":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.getCounters":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.getCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.getCountersWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.getCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.listByLocalRulestacks":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.listByLocalRulestacks","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.refreshCounters":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.refreshCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.refreshCountersWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.refreshCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.resetCounters":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.resetCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulesClient.resetCountersWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulesResources.resetCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.beginCommit":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.commit","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.commit":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.commit","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getByResourceGroup":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getByResourceGroupWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getChangeLog":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getChangeLog","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getChangeLogWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getChangeLog","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getSupportInfo":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getSupportInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.getSupportInfoWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.getSupportInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.list":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listBySubscription","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listAdvancedSecurityObjects":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listAdvancedSecurityObjects","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listAdvancedSecurityObjectsWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listAdvancedSecurityObjects","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listAppIds":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listAppIds","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listByResourceGroup":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listByResourceGroup","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listCountries":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listCountries","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listFirewalls":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listFirewalls","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listFirewallsWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listFirewalls","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listPredefinedUrlCategories":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listPredefinedUrlCategories","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listSecurityServices":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listSecurityServices","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.listSecurityServicesWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.listSecurityServices","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.revert":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.revert","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.revertWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.revert","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.update":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.update","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.LocalRulestacksClient.updateWithResponse":"PaloAltoNetworks.Cloudngfw.LocalRulestackResources.update","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.beginDelete":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.delete":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.get":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.MetricsObjectFirewallsClient.listByFirewalls":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResources.listByFirewalls","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.OperationsClient":"PaloAltoNetworks.Cloudngfw.Operations","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.createProductSerialNumber":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.createProductSerialNumber","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.createProductSerialNumberWithResponse":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.createProductSerialNumber","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listCloudManagerTenants":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listCloudManagerTenants","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listCloudManagerTenantsWithResponse":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listCloudManagerTenants","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listProductSerialNumberStatus":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listProductSerialNumberStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listProductSerialNumberStatusWithResponse":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listProductSerialNumberStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listSupportInfo":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listSupportInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksCloudngfwOperationsClient.listSupportInfoWithResponse":"PaloAltoNetworks.Cloudngfw.PaloAltoNetworksCloudngfwOperationsOperationGroup.listSupportInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PaloAltoNetworksNgfwManagementClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.PostRulesResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.beginDelete":"PaloAltoNetworks.Cloudngfw.PostRulesResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.PostRulesResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.delete":"PaloAltoNetworks.Cloudngfw.PostRulesResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.get":"PaloAltoNetworks.Cloudngfw.PostRulesResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.getCounters":"PaloAltoNetworks.Cloudngfw.PostRulesResources.getCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.getCountersWithResponse":"PaloAltoNetworks.Cloudngfw.PostRulesResources.getCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.PostRulesResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.list":"PaloAltoNetworks.Cloudngfw.PostRulesResources.list","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.refreshCounters":"PaloAltoNetworks.Cloudngfw.PostRulesResources.refreshCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.refreshCountersWithResponse":"PaloAltoNetworks.Cloudngfw.PostRulesResources.refreshCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.resetCounters":"PaloAltoNetworks.Cloudngfw.PostRulesResources.resetCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PostRulesClient.resetCountersWithResponse":"PaloAltoNetworks.Cloudngfw.PostRulesResources.resetCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.PreRulesResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.beginDelete":"PaloAltoNetworks.Cloudngfw.PreRulesResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.PreRulesResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.delete":"PaloAltoNetworks.Cloudngfw.PreRulesResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.get":"PaloAltoNetworks.Cloudngfw.PreRulesResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.getCounters":"PaloAltoNetworks.Cloudngfw.PreRulesResources.getCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.getCountersWithResponse":"PaloAltoNetworks.Cloudngfw.PreRulesResources.getCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.PreRulesResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.list":"PaloAltoNetworks.Cloudngfw.PreRulesResources.list","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.refreshCounters":"PaloAltoNetworks.Cloudngfw.PreRulesResources.refreshCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.refreshCountersWithResponse":"PaloAltoNetworks.Cloudngfw.PreRulesResources.refreshCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.resetCounters":"PaloAltoNetworks.Cloudngfw.PreRulesResources.resetCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PreRulesClient.resetCountersWithResponse":"PaloAltoNetworks.Cloudngfw.PreRulesResources.resetCounters","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.get":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListGlobalRulestacksClient.list":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResources.list","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.beginCreateOrUpdate":"PaloAltoNetworks.Cloudngfw.PrefixListResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.beginDelete":"PaloAltoNetworks.Cloudngfw.PrefixListResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.createOrUpdate":"PaloAltoNetworks.Cloudngfw.PrefixListResources.createOrUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.delete":"PaloAltoNetworks.Cloudngfw.PrefixListResources.delete","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.get":"PaloAltoNetworks.Cloudngfw.PrefixListResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.getWithResponse":"PaloAltoNetworks.Cloudngfw.PrefixListResources.get","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.PrefixListLocalRulestacksClient.listByLocalRulestacks":"PaloAltoNetworks.Cloudngfw.PrefixListResources.listByLocalRulestacks","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.AdvSecurityObjectListResponseInner":"PaloAltoNetworks.Cloudngfw.AdvSecurityObjectListResponse","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObject":"PaloAltoNetworks.Cloudngfw.CertificateObject","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner":"PaloAltoNetworks.Cloudngfw.CertificateObjectGlobalRulestackResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectLocalRulestackResourceInner":"PaloAltoNetworks.Cloudngfw.CertificateObjectLocalRulestackResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ChangelogInner":"PaloAltoNetworks.Cloudngfw.Changelog","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner":"PaloAltoNetworks.Cloudngfw.CloudManagerTenantList","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountriesResponseInner":"PaloAltoNetworks.Cloudngfw.CountriesResponse","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountryInner":"PaloAltoNetworks.Cloudngfw.Country","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallDeploymentProperties":"PaloAltoNetworks.Cloudngfw.FirewallDeploymentProperties","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallResourceInner":"PaloAltoNetworks.Cloudngfw.FirewallResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusProperty":"PaloAltoNetworks.Cloudngfw.FirewallStatusProperty","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusResourceInner":"PaloAltoNetworks.Cloudngfw.FirewallStatusResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListGlobalRulestackResourceInner":"PaloAltoNetworks.Cloudngfw.FqdnListGlobalRulestackResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListLocalRulestackResourceInner":"PaloAltoNetworks.Cloudngfw.FqdnListLocalRulestackResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnObject":"PaloAltoNetworks.Cloudngfw.FqdnObject","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.GlobalRulestackInfoInner":"PaloAltoNetworks.Cloudngfw.GlobalRulestackInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.GlobalRulestackResourceInner":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListAppIdResponseInner":"PaloAltoNetworks.Cloudngfw.ListAppIdResponse","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListFirewallsResponseInner":"PaloAltoNetworks.Cloudngfw.ListFirewallsResponse","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulesResourceInner":"PaloAltoNetworks.Cloudngfw.LocalRulesResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulestackResourceInner":"PaloAltoNetworks.Cloudngfw.LocalRulestackResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LogSettingsInner":"PaloAltoNetworks.Cloudngfw.LogSettings","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObject":"PaloAltoNetworks.Cloudngfw.MetricsObject","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner":"PaloAltoNetworks.Cloudngfw.MetricsObjectFirewallResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PostRulesResourceInner":"PaloAltoNetworks.Cloudngfw.PostRulesResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PreRulesResourceInner":"PaloAltoNetworks.Cloudngfw.PreRulesResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner":"PaloAltoNetworks.Cloudngfw.PredefinedUrlCategoriesResponse","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner":"PaloAltoNetworks.Cloudngfw.PredefinedUrlCategory","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixListGlobalRulestackResourceInner":"PaloAltoNetworks.Cloudngfw.PrefixListGlobalRulestackResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixListResourceInner":"PaloAltoNetworks.Cloudngfw.PrefixListResource","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixObject":"PaloAltoNetworks.Cloudngfw.PrefixObject","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner":"PaloAltoNetworks.Cloudngfw.ProductSerialNumberRequestStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner":"PaloAltoNetworks.Cloudngfw.ProductSerialNumberStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterInner":"PaloAltoNetworks.Cloudngfw.RuleCounter","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterResetInner":"PaloAltoNetworks.Cloudngfw.RuleCounterReset","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleEntry":"PaloAltoNetworks.Cloudngfw.RuleEntry","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RulestackProperties":"PaloAltoNetworks.Cloudngfw.RulestackProperties","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SecurityServicesResponseInner":"PaloAltoNetworks.Cloudngfw.SecurityServicesResponse","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoInner":"PaloAltoNetworks.Cloudngfw.SupportInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner":"PaloAltoNetworks.Cloudngfw.SupportInfoModel","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksNgfwManagementClientBuilder":"PaloAltoNetworks.Cloudngfw","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectGlobalRulestackResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectLocalRulestackResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FirewallResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FirewallStatusResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListGlobalRulestackResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListLocalRulestackResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.GlobalRulestackResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.LocalRulesResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.LocalRulestackResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.MetricsObjectFirewallResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PostRulesResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PreRulesResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListGlobalRulestackResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ActionEnum":"PaloAltoNetworks.Cloudngfw.ActionEnum","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectModel":"PaloAltoNetworks.Cloudngfw.AdvSecurityObjectModel","com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum":"PaloAltoNetworks.Cloudngfw.AdvSecurityObjectTypeEnum","com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenData":"PaloAltoNetworks.Cloudngfw.AppSeenData","com.azure.resourcemanager.paloaltonetworks.ngfw.models.AppSeenInfo":"PaloAltoNetworks.Cloudngfw.AppSeenInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ApplicationInsights":"PaloAltoNetworks.Cloudngfw.ApplicationInsights","com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties":"PaloAltoNetworks.Cloudngfw.AzureResourceManagerManagedIdentityProperties","com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerUserAssignedIdentity":"PaloAltoNetworks.Cloudngfw.AzureResourceManagerUserAssignedIdentity","com.azure.resourcemanager.paloaltonetworks.ngfw.models.BillingCycle":"PaloAltoNetworks.Cloudngfw.BillingCycle","com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum":"PaloAltoNetworks.Cloudngfw.BooleanEnum","com.azure.resourcemanager.paloaltonetworks.ngfw.models.Category":"PaloAltoNetworks.Cloudngfw.Category","com.azure.resourcemanager.paloaltonetworks.ngfw.models.DecryptionRuleTypeEnum":"PaloAltoNetworks.Cloudngfw.DecryptionRuleTypeEnum","com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode":"PaloAltoNetworks.Cloudngfw.DefaultMode","com.azure.resourcemanager.paloaltonetworks.ngfw.models.DestinationAddr":"PaloAltoNetworks.Cloudngfw.DestinationAddr","com.azure.resourcemanager.paloaltonetworks.ngfw.models.DnsProxy":"PaloAltoNetworks.Cloudngfw.DNSProxy","com.azure.resourcemanager.paloaltonetworks.ngfw.models.DnsSettings":"PaloAltoNetworks.Cloudngfw.DNSSettings","com.azure.resourcemanager.paloaltonetworks.ngfw.models.EgressNat":"PaloAltoNetworks.Cloudngfw.EgressNat","com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnableStatus":"PaloAltoNetworks.Cloudngfw.EnableStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnabledDnsType":"PaloAltoNetworks.Cloudngfw.EnabledDNSType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.EndpointConfiguration":"PaloAltoNetworks.Cloudngfw.EndpointConfiguration","com.azure.resourcemanager.paloaltonetworks.ngfw.models.EventHub":"PaloAltoNetworks.Cloudngfw.EventHub","com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallResourceUpdate":"PaloAltoNetworks.Cloudngfw.FirewallResourceUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallResourceUpdateProperties":"PaloAltoNetworks.Cloudngfw.FirewallResourceUpdateProperties","com.azure.resourcemanager.paloaltonetworks.ngfw.models.FrontendSetting":"PaloAltoNetworks.Cloudngfw.FrontendSetting","com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdate":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResourceUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackResourceUpdateProperties":"PaloAltoNetworks.Cloudngfw.GlobalRulestackResourceUpdateProperties","com.azure.resourcemanager.paloaltonetworks.ngfw.models.HealthStatus":"PaloAltoNetworks.Cloudngfw.HealthStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddress":"PaloAltoNetworks.Cloudngfw.IPAddress","com.azure.resourcemanager.paloaltonetworks.ngfw.models.IpAddressSpace":"PaloAltoNetworks.Cloudngfw.IPAddressSpace","com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdate":"PaloAltoNetworks.Cloudngfw.LocalRulestackResourceUpdate","com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestackResourceUpdateProperties":"PaloAltoNetworks.Cloudngfw.LocalRulestackResourceUpdateProperties","com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogDestination":"PaloAltoNetworks.Cloudngfw.LogDestination","com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogOption":"PaloAltoNetworks.Cloudngfw.LogOption","com.azure.resourcemanager.paloaltonetworks.ngfw.models.LogType":"PaloAltoNetworks.Cloudngfw.LogType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ManagedIdentityType":"PaloAltoNetworks.Cloudngfw.ManagedIdentityType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.MarketplaceDetails":"PaloAltoNetworks.Cloudngfw.MarketplaceDetails","com.azure.resourcemanager.paloaltonetworks.ngfw.models.MarketplaceSubscriptionStatus":"PaloAltoNetworks.Cloudngfw.MarketplaceSubscriptionStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.models.MonitorLog":"PaloAltoNetworks.Cloudngfw.MonitorLog","com.azure.resourcemanager.paloaltonetworks.ngfw.models.NameDescriptionObject":"PaloAltoNetworks.Cloudngfw.NameDescriptionObject","com.azure.resourcemanager.paloaltonetworks.ngfw.models.NetworkProfile":"PaloAltoNetworks.Cloudngfw.NetworkProfile","com.azure.resourcemanager.paloaltonetworks.ngfw.models.NetworkType":"PaloAltoNetworks.Cloudngfw.NetworkType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.paloaltonetworks.ngfw.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaConfig":"PaloAltoNetworks.Cloudngfw.PanoramaConfig","com.azure.resourcemanager.paloaltonetworks.ngfw.models.PanoramaStatus":"PaloAltoNetworks.Cloudngfw.PanoramaStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.models.PlanData":"PaloAltoNetworks.Cloudngfw.PlanData","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues":"PaloAltoNetworks.Cloudngfw.ProductSerialStatusValues","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProtocolType":"PaloAltoNetworks.Cloudngfw.ProtocolType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProvisioningState":"PaloAltoNetworks.Cloudngfw.ProvisioningState","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ReadOnlyProvisioningState":"PaloAltoNetworks.Cloudngfw.ReadOnlyProvisioningState","com.azure.resourcemanager.paloaltonetworks.ngfw.models.RegistrationStatus":"PaloAltoNetworks.Cloudngfw.RegistrationStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.models.RulestackDetails":"PaloAltoNetworks.Cloudngfw.RulestackDetails","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ScopeType":"PaloAltoNetworks.Cloudngfw.ScopeType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServices":"PaloAltoNetworks.Cloudngfw.SecurityServices","com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeEnum":"PaloAltoNetworks.Cloudngfw.SecurityServicesTypeEnum","com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeList":"PaloAltoNetworks.Cloudngfw.SecurityServicesTypeList","com.azure.resourcemanager.paloaltonetworks.ngfw.models.ServerStatus":"PaloAltoNetworks.Cloudngfw.ServerStatus","com.azure.resourcemanager.paloaltonetworks.ngfw.models.SourceAddr":"PaloAltoNetworks.Cloudngfw.SourceAddr","com.azure.resourcemanager.paloaltonetworks.ngfw.models.StateEnum":"PaloAltoNetworks.Cloudngfw.StateEnum","com.azure.resourcemanager.paloaltonetworks.ngfw.models.StorageAccount":"PaloAltoNetworks.Cloudngfw.StorageAccount","com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerConfig":"PaloAltoNetworks.Cloudngfw.StrataCloudManagerConfig","com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerInfo":"PaloAltoNetworks.Cloudngfw.StrataCloudManagerInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.models.TagInfo":"PaloAltoNetworks.Cloudngfw.TagInfo","com.azure.resourcemanager.paloaltonetworks.ngfw.models.UsageType":"PaloAltoNetworks.Cloudngfw.UsageType","com.azure.resourcemanager.paloaltonetworks.ngfw.models.VnetConfiguration":"PaloAltoNetworks.Cloudngfw.VnetConfiguration","com.azure.resourcemanager.paloaltonetworks.ngfw.models.VwanConfiguration":"PaloAltoNetworks.Cloudngfw.VwanConfiguration"},"generatedFiles":["src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/PaloAltoNetworksNgfwManager.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectGlobalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/CertificateObjectLocalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallStatusClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FirewallsClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListGlobalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/FqdnListLocalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/GlobalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulesClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/LocalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/MetricsObjectFirewallsClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksCloudngfwOperationsClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PaloAltoNetworksNgfwManagementClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PostRulesClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PreRulesClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListGlobalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/PrefixListLocalRulestacksClient.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/AdvSecurityObjectListResponseInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObject.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectGlobalRulestackResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CertificateObjectLocalRulestackResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ChangelogInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CloudManagerTenantListInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountriesResponseInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/CountryInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallDeploymentProperties.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusProperty.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FirewallStatusResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FqdnListGlobalRulestackResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FqdnListLocalRulestackResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/FqdnObject.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/GlobalRulestackInfoInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/GlobalRulestackResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ListAppIdResponseInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ListFirewallsResponseInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulesResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LocalRulestackResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/LogSettingsInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObject.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/MetricsObjectFirewallResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PostRulesResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PreRulesResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoriesResponseInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PredefinedUrlCategoryInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListGlobalRulestackResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixListResourceInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/PrefixObject.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberRequestStatusInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/ProductSerialNumberStatusInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RuleCounterInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RuleCounterResetInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RuleEntry.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/RulestackProperties.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SecurityServicesResponseInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SupportInfoInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/SupportInfoModelInner.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/fluent/package-info.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/AdvSecurityObjectListResponseImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestackResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectGlobalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestackResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CertificateObjectLocalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ChangelogImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CloudManagerTenantListImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountriesResponseImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/CountryImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallStatusResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FirewallsImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestackResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListGlobalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestackResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/FqdnListLocalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackInfoImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestackResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/GlobalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListAppIdResponseImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ListFirewallsResponseImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulesResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestackResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LocalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/LogSettingsImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallsClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/MetricsObjectFirewallsImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksCloudngfwOperationsImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksNgfwManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PaloAltoNetworksNgfwManagementClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PostRulesResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PreRulesResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoriesResponseImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PredefinedUrlCategoryImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestackResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListGlobalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksClientImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListLocalRulestacksImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/PrefixListResourceImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberRequestStatusImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ProductSerialNumberStatusImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/RuleCounterResetImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SecurityServicesResponseImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/SupportInfoModelImpl.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectGlobalRulestackResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/CertificateObjectLocalRulestackResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FirewallStatusResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListGlobalRulestackResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/FqdnListLocalRulestackResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/GlobalRulestackResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulesResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/LocalRulestackResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/MetricsObjectFirewallResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PostRulesResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PreRulesResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListGlobalRulestackResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/models/PrefixListResourceListResult.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/implementation/package-info.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionEnum.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ActionType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectListResponse.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectModel.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AdvSecurityObjectTypeEnum.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenData.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AppSeenInfo.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ApplicationInsights.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerManagedIdentityProperties.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/AzureResourceManagerUserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BillingCycle.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/BooleanEnum.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Category.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestackResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectGlobalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestackResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CertificateObjectLocalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Changelog.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CloudManagerTenantList.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/CountriesResponse.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Country.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DecryptionRuleTypeEnum.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DefaultMode.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DestinationAddr.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsProxy.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/DnsSettings.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EgressNat.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnableStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EnabledDnsType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EndpointConfiguration.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/EventHub.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdate.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallResourceUpdateProperties.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FirewallStatusResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Firewalls.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestackResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListGlobalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestackResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FqdnListLocalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/FrontendSetting.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackInfo.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdate.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestackResourceUpdateProperties.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/GlobalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/HealthStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddress.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/IpAddressSpace.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListAppIdResponse.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ListFirewallsResponse.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRules.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulesResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdate.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestackResourceUpdateProperties.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LocalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogDestination.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogOption.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogSettings.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/LogType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ManagedIdentityType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MarketplaceDetails.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MarketplaceSubscriptionStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MetricsObjectFirewallResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MetricsObjectFirewalls.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/MonitorLog.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NameDescriptionObject.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkProfile.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/NetworkType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Operation.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Operations.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/Origin.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PaloAltoNetworksCloudngfwOperations.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaConfig.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PanoramaStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PlanData.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRules.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PostRulesResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRules.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PreRulesResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategoriesResponse.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PredefinedUrlCategory.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestackResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListGlobalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListLocalRulestacks.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/PrefixListResource.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberRequestStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialNumberStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProductSerialStatusValues.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProtocolType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ReadOnlyProvisioningState.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RegistrationStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounter.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RuleCounterReset.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/RulestackDetails.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ScopeType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServices.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesResponse.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeEnum.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SecurityServicesTypeList.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/ServerStatus.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SourceAddr.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StateEnum.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StorageAccount.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerConfig.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/StrataCloudManagerInfo.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfo.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/SupportInfoModel.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/TagInfo.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/UsageType.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VnetConfiguration.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/VwanConfiguration.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/models/package-info.java","src/main/java/com/azure/resourcemanager/paloaltonetworks/ngfw/package-info.java","src/main/java/module-info.java"]} \ 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/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 a5f5d1a6649f..0b786fb25057 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.CertificateObjectGlobalRulestacksClientImpl$CertificateObjectGlobalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectLocalRulestacksClientImpl$CertificateObjectLocalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallStatusClientImpl$FirewallStatusService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallsClientImpl$FirewallsService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListGlobalRulestacksClientImpl$FqdnListGlobalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListLocalRulestacksClientImpl$FqdnListLocalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.GlobalRulestacksClientImpl$GlobalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulesClientImpl$LocalRulesService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulestacksClientImpl$LocalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PostRulesClientImpl$PostRulesService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PreRulesClientImpl$PreRulesService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListGlobalRulestacksClientImpl$PrefixListGlobalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListLocalRulestacksClientImpl$PrefixListLocalRulestacksService"]] \ No newline at end of file +[["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectGlobalRulestacksClientImpl$CertificateObjectGlobalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.CertificateObjectLocalRulestacksClientImpl$CertificateObjectLocalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallStatusClientImpl$FirewallStatusService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FirewallsClientImpl$FirewallsService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListGlobalRulestacksClientImpl$FqdnListGlobalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.FqdnListLocalRulestacksClientImpl$FqdnListLocalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.GlobalRulestacksClientImpl$GlobalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulesClientImpl$LocalRulesService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulestacksClientImpl$LocalRulestacksService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.MetricsObjectFirewallsClientImpl$MetricsObjectFirewallsService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwOperationsClientImpl$PaloAltoNetworksCloudngfwOperationsService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PostRulesClientImpl$PostRulesService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PreRulesClientImpl$PreRulesService"],["com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListGlobalRulestacksClientImpl$PrefixListGlobalRulestacksService"],["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/azure-resourcemanager-paloaltonetworks-ngfw.properties b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/azure-resourcemanager-paloaltonetworks-ngfw.properties new file mode 100644 index 000000000000..defbd48204e4 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/main/resources/azure-resourcemanager-paloaltonetworks-ngfw.properties @@ -0,0 +1 @@ +version=${project.version} 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 e2ca46e20762..729df71f3937 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,9 +12,7 @@ */ 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: 2025-10-08/CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -30,9 +28,7 @@ public static void certificateObjectGlobalRulestackCreateOrUpdateMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen. 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 8fa4c34622c8..a0cc00a5dfb6 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void certificateObjectGlobalRulestackDeleteMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen. 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 ab9eecbc992f..9e7216edb20e 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/CertificateObjectGlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Get_MinimumSet_Gen. @@ -25,9 +23,7 @@ public static void certificateObjectGlobalRulestackGetMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_Get_MaximumSet_Gen. 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 c7a07830f9ba..569c046fc158 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/CertificateObjectGlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_List_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void certificateObjectGlobalRulestackListMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectGlobalRulestack_List_MinimumSet_Gen. 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 9b8834518f7f..acb7f8a26b91 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,9 +11,7 @@ */ 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: 2025-10-08/CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -30,9 +28,7 @@ public static void certificateObjectLocalRulestackCreateOrUpdateMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen. 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 643e64a3ce85..c07b5a898cc0 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/CertificateObjectLocalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Delete_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void certificateObjectLocalRulestackDeleteMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Delete_MinimumSet_Gen. 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 cd759f68c6e7..db87c328e917 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/CertificateObjectLocalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Get_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void certificateObjectLocalRulestackGetMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_Get_MinimumSet_Gen. 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 367290544ff8..07b6dd9abf8f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void certificateObjectLocalRulestackListByLocalRulestacksMaximumSe } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen. 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 e1314ab3ed3b..7ad9fb908a3b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FirewallStatus_Get_MinimumSet_Gen.json */ /** * Sample code: FirewallStatus_Get_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void firewallStatusGetMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FirewallStatus_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FirewallStatus_Get_MaximumSet_Gen.json */ /** * Sample code: FirewallStatus_Get_MaximumSet_Gen. 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 ac2fffbaad9e..b6fb419142a2 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json */ /** * Sample code: FirewallStatus_ListByFirewalls_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void firewallStatusListByFirewallsMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FirewallStatus_ListByFirewalls_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json */ /** * Sample code: FirewallStatus_ListByFirewalls_MinimumSet_Gen. 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 b4666f8354c4..a9ed51a8748a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -37,9 +37,7 @@ */ 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: 2025-10-08/Firewalls_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Firewalls_CreateOrUpdate_MaximumSet_Gen. @@ -87,7 +85,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( @@ -123,9 +122,7 @@ public static void firewallsCreateOrUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: Firewalls_CreateOrUpdate_MinimumSet_Gen. 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 fc1658fcc6e9..0b962f4c323b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/Firewalls_Delete_MinimumSet_Gen.json */ /** * Sample code: Firewalls_Delete_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void firewallsDeleteMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_Delete_MaximumSet_Gen.json */ /** * Sample code: Firewalls_Delete_MaximumSet_Gen. 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 4cf64abac75b..02ac17ed7967 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/Firewalls_Get_MaximumSet_Gen.json */ /** * Sample code: Firewalls_Get_MaximumSet_Gen. @@ -25,9 +23,7 @@ public final class FirewallsGetByResourceGroupSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_Get_MinimumSet_Gen.json */ /** * Sample code: Firewalls_Get_MinimumSet_Gen. 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 5e7585d15d08..e26f9dd1cdf9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/Firewalls_getGlobalRulestack_MaximumSet_Gen.json */ /** * Sample code: Firewalls_getGlobalRulestack_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void firewallsGetGlobalRulestackMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_getGlobalRulestack_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_getGlobalRulestack_MinimumSet_Gen.json */ /** * Sample code: Firewalls_getGlobalRulestack_MinimumSet_Gen. 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 bf19f34d2bf3..e3a60c9c5416 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/Firewalls_getLogProfile_MinimumSet_Gen.json */ /** * Sample code: Firewalls_getLogProfile_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void firewallsGetLogProfileMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_getLogProfile_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_getLogProfile_MaximumSet_Gen.json */ /** * Sample code: Firewalls_getLogProfile_MaximumSet_Gen. 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 bd962ece6bf1..cd42f4992e9e 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/Firewalls_getSupportInfo_MinimumSet_Gen.json */ /** * Sample code: Firewalls_getSupportInfo_MinimumSet_Gen. @@ -25,9 +23,7 @@ public static void firewallsGetSupportInfoMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_getSupportInfo_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_getSupportInfo_MaximumSet_Gen.json */ /** * Sample code: Firewalls_getSupportInfo_MaximumSet_Gen. 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 150fd82a54cd..dc05b8b87fb6 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/Firewalls_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: Firewalls_ListByResourceGroup_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void firewallsListByResourceGroupMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_ListByResourceGroup_MinimumSet_Gen.json */ /** * Sample code: Firewalls_ListByResourceGroup_MinimumSet_Gen. 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 8938a4e7d3b4..57180da96f31 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/Firewalls_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: Firewalls_ListBySubscription_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void firewallsListBySubscriptionMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: Firewalls_ListBySubscription_MaximumSet_Gen. 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 b18d53c6b620..dab7b3789a42 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -18,9 +18,7 @@ */ 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: 2025-10-08/Firewalls_saveLogProfile_MaximumSet_Gen.json */ /** * Sample code: Firewalls_saveLogProfile_MaximumSet_Gen. @@ -95,9 +93,7 @@ public static void firewallsSaveLogProfileMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_saveLogProfile_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_saveLogProfile_MinimumSet_Gen.json */ /** * Sample code: Firewalls_saveLogProfile_MinimumSet_Gen. 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 a3e6a291397a..867cceff220d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -39,9 +39,7 @@ */ 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: 2025-10-08/Firewalls_Update_MinimumSet_Gen.json */ /** * Sample code: Firewalls_Update_MinimumSet_Gen. @@ -57,9 +55,7 @@ public static void firewallsUpdateMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Firewalls_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Firewalls_Update_MaximumSet_Gen.json */ /** * Sample code: Firewalls_Update_MaximumSet_Gen. @@ -113,7 +109,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 93894d3838d6..43e24a767f88 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,9 +12,7 @@ */ 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: 2025-10-08/FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -33,9 +31,7 @@ public static void fqdnListGlobalRulestackCreateOrUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen. 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 aa4190d15df1..8899d96235fe 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FqdnListGlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Delete_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void fqdnListGlobalRulestackDeleteMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Delete_MinimumSet_Gen. 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 862d063ec8ed..fc655babaf3c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FqdnListGlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Get_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void fqdnListGlobalRulestackGetMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_Get_MinimumSet_Gen. 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 12cefe1603ae..f6995fb431bb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FqdnListGlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_List_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void fqdnListGlobalRulestackListMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListGlobalRulestack_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListGlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: FqdnListGlobalRulestack_List_MaximumSet_Gen. 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 8cadae95eca5..81f6401009b5 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,9 +11,7 @@ */ 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: 2025-10-08/FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -33,9 +31,7 @@ public static void fqdnListLocalRulestackCreateOrUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen. 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 1d8bed649c13..d8e4fa5e3483 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FqdnListLocalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Delete_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void fqdnListLocalRulestackDeleteMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Delete_MaximumSet_Gen. 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 8e34887a14c1..56a750696086 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FqdnListLocalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Get_MinimumSet_Gen. @@ -25,9 +23,7 @@ public static void fqdnListLocalRulestackGetMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_Get_MaximumSet_Gen. 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 67355c6ef4b1..b8c371b854a3 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void fqdnListLocalRulestackListByLocalRulestacksMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen. 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 65ff401b21d4..d295f37e0b08 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_commit_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_commit_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackCommitMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_commit_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_commit_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_commit_MinimumSet_Gen. 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 ab1c2df71ff7..dde92dd5ddeb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -20,9 +20,7 @@ */ 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: 2025-10-08/GlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -37,9 +35,7 @@ public static void globalRulestackCreateOrUpdateMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_CreateOrUpdate_MaximumSet_Gen. 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 f2111a96e14a..d65d8e331f26 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_Delete_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackDeleteMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_Delete_MinimumSet_Gen. 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 65e436efe4b7..e2713c638b1a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_getChangeLog_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_getChangeLog_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackGetChangeLogMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_getChangeLog_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_getChangeLog_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_getChangeLog_MaximumSet_Gen. 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 a71f2bc283b2..dbb1ac762433 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_Get_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackGetMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_Get_MaximumSet_Gen. 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 85f1d3fcbdef..465c7e151393 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,9 +11,7 @@ */ 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: 2025-10-08/GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen. @@ -28,9 +26,7 @@ public static void globalRulestackListAdvancedSecurityObjectsMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen. 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 c8751416c267..5f1bd9b553fe 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_listAppIds_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAppIds_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void globalRulestackListAppIdsMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listAppIds_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listAppIds_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listAppIds_MinimumSet_Gen. 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 5f6667d9cb8b..cb6fc9fc3978 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_listCountries_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listCountries_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackListCountriesMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listCountries_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listCountries_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listCountries_MaximumSet_Gen. 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 f9babb35a6f9..63a4970017db 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_listFirewalls_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listFirewalls_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackListFirewallsMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listFirewalls_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listFirewalls_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listFirewalls_MinimumSet_Gen. 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 a8c8b4b1fbce..cc6c5fad20de 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void globalRulestackListPredefinedUrlCategoriesMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen. 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 4067eb340384..9ab11fc95202 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_List_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackListMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_List_MaximumSet_Gen. 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 a0f693599a5e..cd7932b16d69 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,9 +11,7 @@ */ 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: 2025-10-08/GlobalRulestack_listSecurityServices_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_listSecurityServices_MinimumSet_Gen. @@ -28,9 +26,7 @@ public static void globalRulestackListSecurityServicesMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_listSecurityServices_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_listSecurityServices_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_listSecurityServices_MaximumSet_Gen. 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 2b6498cc1832..5d894c1cbb1d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/GlobalRulestack_revert_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_revert_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void globalRulestackRevertMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_revert_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_revert_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_revert_MaximumSet_Gen. 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 6b7c1cb9909d..887d06525f5c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -21,9 +21,7 @@ */ 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: 2025-10-08/GlobalRulestack_Update_MaximumSet_Gen.json */ /** * Sample code: GlobalRulestack_Update_MaximumSet_Gen. @@ -58,9 +56,7 @@ public static void globalRulestackUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * GlobalRulestack_Update_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/GlobalRulestack_Update_MinimumSet_Gen.json */ /** * Sample code: GlobalRulestack_Update_MinimumSet_Gen. 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 5458f910547a..553f10e5993a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -19,9 +19,7 @@ */ 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: 2025-10-08/LocalRules_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: LocalRules_CreateOrUpdate_MinimumSet_Gen. @@ -38,9 +36,7 @@ public static void localRulesCreateOrUpdateMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: LocalRules_CreateOrUpdate_MaximumSet_Gen. 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 4a4764efca3e..031a50eaf4f3 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRules_Delete_MaximumSet_Gen.json */ /** * Sample code: LocalRules_Delete_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulesDeleteMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_Delete_MinimumSet_Gen.json */ /** * Sample code: LocalRules_Delete_MinimumSet_Gen. 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 b7d2149f7b10..f24ce75d0d00 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRules_getCounters_MaximumSet_Gen.json */ /** * Sample code: LocalRules_getCounters_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void localRulesGetCountersMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_getCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_getCounters_MinimumSet_Gen.json */ /** * Sample code: LocalRules_getCounters_MinimumSet_Gen. 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 42cbe0e513db..a979322d6a06 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRules_Get_MaximumSet_Gen.json */ /** * Sample code: LocalRules_Get_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulesGetMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_Get_MinimumSet_Gen.json */ /** * Sample code: LocalRules_Get_MinimumSet_Gen. 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 b345818dfb43..78b2e4680d95 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRules_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: LocalRules_ListByLocalRulestacks_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulesListByLocalRulestacksMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: LocalRules_ListByLocalRulestacks_MaximumSet_Gen. 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 d3776fb1d0bf..9d268836b372 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRules_refreshCounters_MinimumSet_Gen.json */ /** * Sample code: LocalRules_refreshCounters_MinimumSet_Gen. @@ -25,9 +23,7 @@ public static void localRulesRefreshCountersMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_refreshCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_refreshCounters_MaximumSet_Gen.json */ /** * Sample code: LocalRules_refreshCounters_MaximumSet_Gen. 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 fc933f2bc46d..169e6bfda780 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRules_resetCounters_MaximumSet_Gen.json */ /** * Sample code: LocalRules_resetCounters_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void localRulesResetCountersMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRules_resetCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRules_resetCounters_MinimumSet_Gen.json */ /** * Sample code: LocalRules_resetCounters_MinimumSet_Gen. 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 5b766ee151cb..d3205ba0db31 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRulestacks_commit_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_commit_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksCommitMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_commit_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_commit_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_commit_MaximumSet_Gen. 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 1ec5c9a1dc2b..33034e55cf9c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -19,9 +19,7 @@ */ 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: 2025-10-08/LocalRulestacks_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_CreateOrUpdate_MinimumSet_Gen. @@ -34,9 +32,7 @@ public static void localRulestacksCreateOrUpdateMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_CreateOrUpdate_MaximumSet_Gen. 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 c66779921336..e798e1a29765 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRulestacks_Delete_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_Delete_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksDeleteMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Delete_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_Delete_MinimumSet_Gen. 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 4d1f5b3580cb..89e7fcf491de 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRulestacks_Get_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_Get_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksGetMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Get_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_Get_MinimumSet_Gen. 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 469aaeda0345..1de0343ef7ed 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRulestacks_getChangeLog_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_getChangeLog_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksGetChangeLogMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_getChangeLog_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_getChangeLog_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_getChangeLog_MaximumSet_Gen. 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 7e822cf8d543..9385cb3109c7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRulestacks_getSupportInfo_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_getSupportInfo_MinimumSet_Gen. @@ -25,9 +23,7 @@ public static void localRulestacksGetSupportInfoMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_getSupportInfo_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_getSupportInfo_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_getSupportInfo_MaximumSet_Gen. 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 d71a377e6370..1813d88163bf 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,9 +11,7 @@ */ 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: 2025-10-08/LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen. @@ -29,9 +27,7 @@ public static void localRulestacksListAdvancedSecurityObjectsMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen. 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 index ffaa3d4009d1..ea6d51ef9c2a 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ public final class LocalRulestacksListAppIdsSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listAppIds_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listAppIds_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAppIds_MaximumSet_Gen. @@ -21,14 +19,11 @@ public final class LocalRulestacksListAppIdsSamples { 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); + .listAppIds("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 + * x-ms-original-file: 2025-10-08/LocalRulestacks_listAppIds_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listAppIds_MinimumSet_Gen. @@ -38,6 +33,6 @@ public static void localRulestacksListAppIdsMaximumSetGen( 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); + .listAppIds("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 36ae75ce3cfc..e4dc932c096a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ public final class LocalRulestacksListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListByResourceGroup_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksListByResourceGroupMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListByResourceGroup_MinimumSet_Gen. 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 index 4153abb381ac..f456e8cf610b 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ public final class LocalRulestacksListCountriesSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listCountries_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listCountries_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listCountries_MaximumSet_Gen. @@ -20,14 +18,11 @@ public final class LocalRulestacksListCountriesSamples { */ public static void localRulestacksListCountriesMaximumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { - manager.localRulestacks() - .listCountriesWithResponse("rgopenapi", "lrs1", "a6a321", 20, com.azure.core.util.Context.NONE); + manager.localRulestacks().listCountries("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 + * x-ms-original-file: 2025-10-08/LocalRulestacks_listCountries_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listCountries_MinimumSet_Gen. @@ -36,7 +31,6 @@ public static void localRulestacksListCountriesMaximumSetGen( */ public static void localRulestacksListCountriesMinimumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { - manager.localRulestacks() - .listCountriesWithResponse("rgopenapi", "lrs1", null, null, com.azure.core.util.Context.NONE); + manager.localRulestacks().listCountries("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 b908aba96eb3..7ef5c5b079bb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ public final class LocalRulestacksListFirewallsSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listFirewalls_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listFirewalls_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listFirewalls_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksListFirewallsMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listFirewalls_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listFirewalls_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listFirewalls_MaximumSet_Gen. 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 index 4c9251789314..f396d9a29f15 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ public final class LocalRulestacksListPredefinedUrlCategoriesSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen. @@ -21,13 +19,11 @@ public final class LocalRulestacksListPredefinedUrlCategoriesSamples { public static void localRulestacksListPredefinedUrlCategoriesMinimumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { manager.localRulestacks() - .listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", null, null, com.azure.core.util.Context.NONE); + .listPredefinedUrlCategories("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 + * x-ms-original-file: 2025-10-08/LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen. @@ -37,7 +33,6 @@ public static void localRulestacksListPredefinedUrlCategoriesMinimumSetGen( public static void localRulestacksListPredefinedUrlCategoriesMaximumSetGen( com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { manager.localRulestacks() - .listPredefinedUrlCategoriesWithResponse("rgopenapi", "lrs1", "a6a321", 20, - com.azure.core.util.Context.NONE); + .listPredefinedUrlCategories("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 2eda00bc2890..745717c7ea98 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/LocalRulestacks_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListBySubscription_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksListBySubscriptionMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_ListBySubscription_MinimumSet_Gen. 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 97e28f927aaf..c68014f5afcb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,9 +11,7 @@ */ public final class LocalRulestacksListSecurityServicesSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listSecurityServices_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listSecurityServices_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_listSecurityServices_MinimumSet_Gen. @@ -28,9 +26,7 @@ public static void localRulestacksListSecurityServicesMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_listSecurityServices_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_listSecurityServices_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_listSecurityServices_MaximumSet_Gen. 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 19a14ec5181e..5940b5ec08ed 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ public final class LocalRulestacksRevertSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_revert_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_revert_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_revert_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void localRulestacksRevertMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_revert_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_revert_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_revert_MinimumSet_Gen. 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 9364f8109267..35169c7adda5 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -21,9 +21,7 @@ */ public final class LocalRulestacksUpdateSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Update_MaximumSet_Gen.json */ /** * Sample code: LocalRulestacks_Update_MaximumSet_Gen. @@ -61,9 +59,7 @@ public static void localRulestacksUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * LocalRulestacks_Update_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/LocalRulestacks_Update_MinimumSet_Gen.json */ /** * Sample code: LocalRulestacks_Update_MinimumSet_Gen. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallCreateOrUpdateSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallCreateOrUpdateSamples.java new file mode 100644 index 000000000000..5a60de1bbfa7 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallCreateOrUpdateSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; + +/** + * Samples for MetricsObjectFirewall CreateOrUpdate. + */ +public final class MetricsObjectFirewallCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_CreateOrUpdate_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallCreateOrUpdateMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .createOrUpdate("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", + new MetricsObjectFirewallResourceInner().withApplicationInsightsResourceId("aaaaaaaaaaaaaaa") + .withApplicationInsightsConnectionString("aaa"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_CreateOrUpdate_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallCreateOrUpdateMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .createOrUpdate("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", + new MetricsObjectFirewallResourceInner().withApplicationInsightsResourceId("aaaaaaaaaaaaaaa") + .withApplicationInsightsConnectionString("aaa") + .withPanEtag("aaaaaaaaaa"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallDeleteSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallDeleteSamples.java new file mode 100644 index 000000000000..f3f5f19797c3 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallDeleteSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +/** + * Samples for MetricsObjectFirewall Delete. + */ +public final class MetricsObjectFirewallDeleteSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Delete_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallDeleteMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .delete("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Delete_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallDeleteMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .delete("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallGetSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallGetSamples.java new file mode 100644 index 000000000000..e08f85a52303 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallGetSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +/** + * Samples for MetricsObjectFirewall Get. + */ +public final class MetricsObjectFirewallGetSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Get_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Get_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallGetMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .getWithResponse("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_Get_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_Get_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallGetMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls() + .getWithResponse("rgopenapi", "aaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallListByFirewallsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallListByFirewallsSamples.java new file mode 100644 index 000000000000..00e535370e90 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallListByFirewallsSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +/** + * Samples for MetricsObjectFirewall ListByFirewalls. + */ +public final class MetricsObjectFirewallListByFirewallsSamples { + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_ListByFirewalls_MinimumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_ListByFirewalls_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallListByFirewallsMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls().listByFirewalls("rgopenapi", "IFTDk", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/MetricsObjectFirewall_ListByFirewalls_MaximumSet_Gen.json + */ + /** + * Sample code: MetricsObjectFirewall_ListByFirewalls_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void metricsObjectFirewallListByFirewallsMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.metricsObjectFirewalls().listByFirewalls("rgopenapi", "IFTDk", com.azure.core.util.Context.NONE); + } +} 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 9e24a803b4bc..17751134c709 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void operationsListMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List_MaximumSet_Gen. diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberSamples.java new file mode 100644 index 000000000000..5296c8f769e3 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +/** + * Samples for PaloAltoNetworksCloudngfwOperations CreateProductSerialNumber. + */ +public final class PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberSamples { + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsCreateProductSerialNumberMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_createProductSerialNumber_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsCreateProductSerialNumberMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .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/PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsSamples.java new file mode 100644 index 000000000000..968d2e7b1038 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +/** + * Samples for PaloAltoNetworksCloudngfwOperations ListCloudManagerTenants. + */ +public final class PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsSamples { + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListCloudManagerTenantsMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listCloudManagerTenants_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListCloudManagerTenantsMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .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/PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusSamples.java new file mode 100644 index 000000000000..796806d85ede --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusSamples.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +/** + * Samples for PaloAltoNetworksCloudngfwOperations ListProductSerialNumberStatus. + */ +public final class PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusSamples { + /* + * x-ms-original-file: + * 2025-10-08/PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .listProductSerialNumberStatusWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * 2025-10-08/PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listProductSerialNumberStatus_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations() + .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/PaloAltoNetworksCloudngfwOperationsListSupportInfoSamples.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListSupportInfoSamples.java new file mode 100644 index 000000000000..7118b412a03e --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/samples/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListSupportInfoSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +/** + * Samples for PaloAltoNetworksCloudngfwOperations ListSupportInfo. + */ +public final class PaloAltoNetworksCloudngfwOperationsListSupportInfoSamples { + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listSupportInfo_MinimumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listSupportInfo_MinimumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListSupportInfoMinimumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations().listSupportInfoWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-10-08/PaloAltoNetworksCloudngfwOperations_listSupportInfo_MaximumSet_Gen.json + */ + /** + * Sample code: PaloAltoNetworksCloudngfwOperations_listSupportInfo_MaximumSet_Gen. + * + * @param manager Entry point to PaloAltoNetworksNgfwManager. + */ + public static void paloAltoNetworksCloudngfwOperationsListSupportInfoMaximumSetGen( + com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager manager) { + manager.paloAltoNetworksCloudngfwOperations().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 b8fa3f4b21a1..8c9d04426435 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -20,9 +20,7 @@ */ 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: 2025-10-08/PostRules_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PostRules_CreateOrUpdate_MaximumSet_Gen. @@ -63,9 +61,7 @@ public static void postRulesCreateOrUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PostRules_CreateOrUpdate_MinimumSet_Gen. 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 990aa54d1baa..7a06d8c7f5f6 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PostRules_Delete_MinimumSet_Gen.json */ /** * Sample code: PostRules_Delete_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void postRulesDeleteMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_Delete_MaximumSet_Gen.json */ /** * Sample code: PostRules_Delete_MaximumSet_Gen. 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 9b49c290de16..542817d9a733 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PostRules_getCounters_MinimumSet_Gen.json */ /** * Sample code: PostRules_getCounters_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void postRulesGetCountersMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_getCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_getCounters_MaximumSet_Gen.json */ /** * Sample code: PostRules_getCounters_MaximumSet_Gen. 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 50772c8c4c9b..9b81ae065fb1 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PostRules_Get_MinimumSet_Gen.json */ /** * Sample code: PostRules_Get_MinimumSet_Gen. @@ -24,9 +22,7 @@ public final class PostRulesGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_Get_MaximumSet_Gen.json */ /** * Sample code: PostRules_Get_MaximumSet_Gen. 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 859769d59a59..175e4b5a730a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PostRules_List_MinimumSet_Gen.json */ /** * Sample code: PostRules_List_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void postRulesListMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_List_MaximumSet_Gen.json */ /** * Sample code: PostRules_List_MaximumSet_Gen. 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 69d23b99f404..56d6f1b6f61f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PostRules_refreshCounters_MaximumSet_Gen.json */ /** * Sample code: PostRules_refreshCounters_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void postRulesRefreshCountersMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_refreshCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_refreshCounters_MinimumSet_Gen.json */ /** * Sample code: PostRules_refreshCounters_MinimumSet_Gen. 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 69ca9d2b68e0..a92e85ed09c7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PostRules_resetCounters_MaximumSet_Gen.json */ /** * Sample code: PostRules_resetCounters_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void postRulesResetCountersMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PostRules_resetCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PostRules_resetCounters_MinimumSet_Gen.json */ /** * Sample code: PostRules_resetCounters_MinimumSet_Gen. 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 b34656fa77c3..2007471e141c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -20,9 +20,7 @@ */ 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: 2025-10-08/PreRules_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PreRules_CreateOrUpdate_MaximumSet_Gen. @@ -63,9 +61,7 @@ public static void preRulesCreateOrUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PreRules_CreateOrUpdate_MinimumSet_Gen. 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 7fc4e4ecd637..830ff402389b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PreRules_Delete_MinimumSet_Gen.json */ /** * Sample code: PreRules_Delete_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void preRulesDeleteMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_Delete_MaximumSet_Gen.json */ /** * Sample code: PreRules_Delete_MaximumSet_Gen. 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 fcc1f424f2e3..02d4eb4c850a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PreRules_getCounters_MinimumSet_Gen.json */ /** * Sample code: PreRules_getCounters_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void preRulesGetCountersMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_getCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_getCounters_MaximumSet_Gen.json */ /** * Sample code: PreRules_getCounters_MaximumSet_Gen. 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 c21393d5db73..4a23b8a5cf8f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PreRules_Get_MaximumSet_Gen.json */ /** * Sample code: PreRules_Get_MaximumSet_Gen. @@ -24,9 +22,7 @@ public final class PreRulesGetSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_Get_MinimumSet_Gen.json */ /** * Sample code: PreRules_Get_MinimumSet_Gen. 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 34a469e28328..fa824980f76a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PreRules_List_MinimumSet_Gen.json */ /** * Sample code: PreRules_List_MinimumSet_Gen. @@ -24,9 +22,7 @@ public final class PreRulesListSamples { } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_List_MaximumSet_Gen.json */ /** * Sample code: PreRules_List_MaximumSet_Gen. 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 00d1775b1a9f..f532978c827b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PreRules_refreshCounters_MaximumSet_Gen.json */ /** * Sample code: PreRules_refreshCounters_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void preRulesRefreshCountersMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_refreshCounters_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_refreshCounters_MinimumSet_Gen.json */ /** * Sample code: PreRules_refreshCounters_MinimumSet_Gen. 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 fdf9a3ef716c..960c11d86005 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PreRules_resetCounters_MinimumSet_Gen.json */ /** * Sample code: PreRules_resetCounters_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void preRulesResetCountersMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PreRules_resetCounters_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PreRules_resetCounters_MaximumSet_Gen.json */ /** * Sample code: PreRules_resetCounters_MaximumSet_Gen. 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 bb0203f9c97a..353bf7b35584 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,9 +12,7 @@ */ 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: 2025-10-08/PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen. @@ -33,9 +31,7 @@ public static void prefixListGlobalRulestackCreateOrUpdateMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen. 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 5eb02cb84116..219fd5e12ef7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PrefixListGlobalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Delete_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void prefixListGlobalRulestackDeleteMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Delete_MinimumSet_Gen. 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 bd02c6948bee..5818c789d7bc 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PrefixListGlobalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Get_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void prefixListGlobalRulestackGetMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_Get_MaximumSet_Gen. 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 377fb002f190..0ad4b63d0dcb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PrefixListGlobalRulestack_List_MaximumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_List_MaximumSet_Gen. @@ -24,9 +22,7 @@ public static void prefixListGlobalRulestackListMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListGlobalRulestack_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListGlobalRulestack_List_MinimumSet_Gen.json */ /** * Sample code: PrefixListGlobalRulestack_List_MinimumSet_Gen. 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 83804d0ecd46..ba1e7389798f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,9 +11,7 @@ */ 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: 2025-10-08/PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen. @@ -30,9 +28,7 @@ public static void prefixListLocalRulestackCreateOrUpdateMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen. 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 972dfdfb6069..1aa94295dd1d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PrefixListLocalRulestack_Delete_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Delete_MinimumSet_Gen. @@ -24,9 +22,7 @@ public static void prefixListLocalRulestackDeleteMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_Delete_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Delete_MaximumSet_Gen. 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 b2c834e72fbc..effa7a36b8a5 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PrefixListLocalRulestack_Get_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Get_MinimumSet_Gen. @@ -25,9 +23,7 @@ public static void prefixListLocalRulestackGetMinimumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_Get_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_Get_MaximumSet_Gen. 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 a6ad210d3d28..97c591a39ea4 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -9,9 +9,7 @@ */ 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: 2025-10-08/PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen. @@ -25,9 +23,7 @@ public static void prefixListLocalRulestackListByLocalRulestacksMaximumSetGen( } /* - * x-ms-original-file: - * specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/ - * PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json + * x-ms-original-file: 2025-10-08/PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json */ /** * Sample code: PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen. 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 index b23c4ab7743e..bf21b3f6ce43 100644 --- 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 @@ -1,40 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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\"}") + "{\"value\":{\"type\":\"npc\",\"entry\":[{\"name\":\"ocohslkevleg\",\"description\":\"fbuhfmvfaxkffe\"},{\"name\":\"ithlvmezyvshxm\",\"description\":\"bbzoggig\"},{\"name\":\"xwburvjxxjns\",\"description\":\"dptkoenkouk\"}]},\"nextLink\":\"udwtiukbl\"}") .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()); + Assertions.assertEquals("npc", model.value().type()); + Assertions.assertEquals("ocohslkevleg", model.value().entry().get(0).name()); + Assertions.assertEquals("fbuhfmvfaxkffe", model.value().entry().get(0).description()); + Assertions.assertEquals("udwtiukbl", 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 index bc678b8443da..1fc8472fbb5b 100644 --- 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 @@ -1,35 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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\"}]}") + "{\"type\":\"gkpocipazyxoe\",\"entry\":[{\"name\":\"kgjn\",\"description\":\"ucgygevqz\"},{\"name\":\"typmrbpizcdrqjsd\",\"description\":\"dnfyhxdeoejzicwi\"},{\"name\":\"sjttgzfbish\",\"description\":\"khaj\"},{\"name\":\"eyeam\",\"description\":\"hagalpbuxwgipwh\"}]}") .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()); + Assertions.assertEquals("gkpocipazyxoe", model.type()); + Assertions.assertEquals("kgjn", model.entry().get(0).name()); + Assertions.assertEquals("ucgygevqz", 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 index e82aab35dd28..9d3dd9787a3c 100644 --- 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 @@ -1,49 +1,26 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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\"}]}") + "{\"count\":498356163,\"appSeenList\":[{\"title\":\"n\",\"category\":\"a\",\"subCategory\":\"vxwc\",\"risk\":\"elpcirelsfeaenwa\",\"tag\":\"fatkld\",\"technology\":\"xbjhwuaanozjosph\",\"standardPorts\":\"oulpjrv\"},{\"title\":\"ag\",\"category\":\"rvimjwosytxitcsk\",\"subCategory\":\"cktqumiekkezzi\",\"risk\":\"hlyfjhdgqgg\",\"tag\":\"bdunygaeqid\",\"technology\":\"qfatpxllrxcyjm\",\"standardPorts\":\"a\"}]}") .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()); + Assertions.assertEquals(498356163, model.count()); + Assertions.assertEquals("n", model.appSeenList().get(0).title()); + Assertions.assertEquals("a", model.appSeenList().get(0).category()); + Assertions.assertEquals("vxwc", model.appSeenList().get(0).subCategory()); + Assertions.assertEquals("elpcirelsfeaenwa", model.appSeenList().get(0).risk()); + Assertions.assertEquals("fatkld", model.appSeenList().get(0).tag()); + Assertions.assertEquals("xbjhwuaanozjosph", model.appSeenList().get(0).technology()); + Assertions.assertEquals("oulpjrv", 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 index 5c9703fd6f57..3d4d75dc522e 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,33 +12,14 @@ 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\"}") + "{\"title\":\"su\",\"category\":\"arm\",\"subCategory\":\"wdmjsjqbjhhyx\",\"risk\":\"rw\",\"tag\":\"yc\",\"technology\":\"duhpk\",\"standardPorts\":\"kgymareqnajxqug\"}") .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()); + Assertions.assertEquals("su", model.title()); + Assertions.assertEquals("arm", model.category()); + Assertions.assertEquals("wdmjsjqbjhhyx", model.subCategory()); + Assertions.assertEquals("rw", model.risk()); + Assertions.assertEquals("yc", model.tag()); + Assertions.assertEquals("duhpk", model.technology()); + Assertions.assertEquals("kgymareqnajxqug", 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 index 474bd914e4df..3e2bb9beb1f0 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -16,27 +16,26 @@ 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\"}}}") + "{\"tenantId\":\"nzl\",\"principalId\":\"fmppe\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"vndhkrwpdapp\":{\"clientId\":\"xsabkyqdu\",\"principalId\":\"itcjczdz\"},\"je\":{\"clientId\":\"bdkvwrwjf\",\"principalId\":\"snhu\"}}}") .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()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, model.type()); + Assertions.assertEquals("xsabkyqdu", model.userAssignedIdentities().get("vndhkrwpdapp").clientId()); + Assertions.assertEquals("itcjczdz", model.userAssignedIdentities().get("vndhkrwpdapp").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"))); + = new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("vndhkrwpdapp", + new AzureResourceManagerUserAssignedIdentity().withClientId("xsabkyqdu") + .withPrincipalId("itcjczdz"), + "je", + new AzureResourceManagerUserAssignedIdentity().withClientId("bdkvwrwjf").withPrincipalId("snhu"))); 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()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, model.type()); + Assertions.assertEquals("xsabkyqdu", model.userAssignedIdentities().get("vndhkrwpdapp").clientId()); + Assertions.assertEquals("itcjczdz", model.userAssignedIdentities().get("vndhkrwpdapp").principalId()); } // Use "Map.of" if available 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 index 4a22d9f91752..b48e8a5adbf0 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,19 +12,18 @@ public final class AzureResourceManagerUserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureResourceManagerUserAssignedIdentity model - = BinaryData.fromString("{\"clientId\":\"odgmaajrmvdjwz\",\"principalId\":\"ovmclwhijcoejct\"}") + = BinaryData.fromString("{\"clientId\":\"mrldhu\",\"principalId\":\"zzd\"}") .toObject(AzureResourceManagerUserAssignedIdentity.class); - Assertions.assertEquals("odgmaajrmvdjwz", model.clientId()); - Assertions.assertEquals("ovmclwhijcoejct", model.principalId()); + Assertions.assertEquals("mrldhu", model.clientId()); + Assertions.assertEquals("zzd", model.principalId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureResourceManagerUserAssignedIdentity model - = new AzureResourceManagerUserAssignedIdentity().withClientId("odgmaajrmvdjwz") - .withPrincipalId("ovmclwhijcoejct"); + = new AzureResourceManagerUserAssignedIdentity().withClientId("mrldhu").withPrincipalId("zzd"); model = BinaryData.fromObject(model).toObject(AzureResourceManagerUserAssignedIdentity.class); - Assertions.assertEquals("odgmaajrmvdjwz", model.clientId()); - Assertions.assertEquals("ovmclwhijcoejct", model.principalId()); + Assertions.assertEquals("mrldhu", model.clientId()); + Assertions.assertEquals("zzd", 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 index fbe7658a1740..d905c38e1924 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,19 +13,18 @@ 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\"]}") + .fromString("{\"urlCustom\":[\"gdkz\",\"ewkfvhqcrai\"],\"feeds\":[\"pnppfuf\",\"rwdmhdlxyjrxsa\"]}") .toObject(Category.class); - Assertions.assertEquals("ewgdrjervn", model.urlCustom().get(0)); - Assertions.assertEquals("doy", model.feeds().get(0)); + Assertions.assertEquals("gdkz", model.urlCustom().get(0)); + Assertions.assertEquals("pnppfuf", 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")); + Category model = new Category().withUrlCustom(Arrays.asList("gdkz", "ewkfvhqcrai")) + .withFeeds(Arrays.asList("pnppfuf", "rwdmhdlxyjrxsa")); model = BinaryData.fromObject(model).toObject(Category.class); - Assertions.assertEquals("ewgdrjervn", model.urlCustom().get(0)); - Assertions.assertEquals("doy", model.feeds().get(0)); + Assertions.assertEquals("gdkz", model.urlCustom().get(0)); + Assertions.assertEquals("pnppfuf", 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 index 3d8edfc710cd..3b7c8dfcae3f 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,28 +13,28 @@ 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\"}") + "{\"properties\":{\"certificateSignerResourceId\":\"mpukgriw\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"lfbxzpuzycisp\",\"description\":\"zahmgkbrpyydhibn\",\"etag\":\"qkpikadrgvtqagnb\",\"provisioningState\":\"Updating\"},\"id\":\"ijggmebfsiar\",\"name\":\"utrc\",\"type\":\"pnazzm\"}") .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()); + Assertions.assertEquals("mpukgriw", model.certificateSignerResourceId()); + Assertions.assertEquals(BooleanEnum.FALSE, model.certificateSelfSigned()); + Assertions.assertEquals("lfbxzpuzycisp", model.auditComment()); + Assertions.assertEquals("zahmgkbrpyydhibn", model.description()); + Assertions.assertEquals("qkpikadrgvtqagnb", 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"); + = new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("mpukgriw") + .withCertificateSelfSigned(BooleanEnum.FALSE) + .withAuditComment("lfbxzpuzycisp") + .withDescription("zahmgkbrpyydhibn") + .withEtag("qkpikadrgvtqagnb"); 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()); + Assertions.assertEquals("mpukgriw", model.certificateSignerResourceId()); + Assertions.assertEquals(BooleanEnum.FALSE, model.certificateSelfSigned()); + Assertions.assertEquals("lfbxzpuzycisp", model.auditComment()); + Assertions.assertEquals("zahmgkbrpyydhibn", model.description()); + Assertions.assertEquals("qkpikadrgvtqagnb", 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 index 6cc6739d66d8..ac43b7eca584 100644 --- 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 @@ -1,51 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectGlobalRulestackResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"qidybyx\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"clha\",\"description\":\"dbabp\",\"etag\":\"wrqlfktsthsuco\",\"provisioningState\":\"Creating\"},\"id\":\"yazttbtwwrqpue\",\"name\":\"ckzywbiexzfeyue\",\"type\":\"xibxujwbhqwalm\"},{\"properties\":{\"certificateSignerResourceId\":\"yoxa\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"kzjancuxrhdwbav\",\"description\":\"niwdjsw\",\"etag\":\"s\",\"provisioningState\":\"Updating\"},\"id\":\"nxytxh\",\"name\":\"zxbzpfzabglc\",\"type\":\"hxw\"},{\"properties\":{\"certificateSignerResourceId\":\"tyq\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"bbovplwzbhvgyugu\",\"description\":\"vmkfssxqu\",\"etag\":\"fpl\",\"provisioningState\":\"Updating\"},\"id\":\"xnkjzkdesl\",\"name\":\"vlopwiyighx\",\"type\":\"kdwzbaiuebbaumny\"}],\"nextLink\":\"ped\"}") .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()); + Assertions.assertEquals("qidybyx", model.value().get(0).certificateSignerResourceId()); + Assertions.assertEquals(BooleanEnum.TRUE, model.value().get(0).certificateSelfSigned()); + Assertions.assertEquals("clha", model.value().get(0).auditComment()); + Assertions.assertEquals("dbabp", model.value().get(0).description()); + Assertions.assertEquals("wrqlfktsthsuco", model.value().get(0).etag()); + Assertions.assertEquals("ped", 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 index 98ac31fa7869..2c63ef56b532 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectGlobalRulestackResourceInner; @@ -23,28 +23,28 @@ public final class CertificateObjectGlobalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"certificateSignerResourceId\":\"xpunjqi\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"vvi\",\"description\":\"cgx\",\"etag\":\"csserxht\",\"provisioningState\":\"Succeeded\"},\"id\":\"hlwntsjgq\",\"name\":\"sxypruuu\",\"type\":\"bnchrsziz\"}"; + = "{\"properties\":{\"certificateSignerResourceId\":\"crymodizrxklobd\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"zpmkmlmvev\",\"description\":\"zopjhbzxliohr\",\"etag\":\"dtfgxqbawpcbb\",\"provisioningState\":\"Succeeded\"},\"id\":\"yknapqofyuicdh\",\"name\":\"bd\",\"type\":\"bwwg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateObjectGlobalRulestackResource response = manager.certificateObjectGlobalRulestacks() - .createOrUpdate("fvcl", "lxnfuijtkbusqogs", - new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("kayi") + .createOrUpdate("ewuninvud", "chaqdtvqec", + new CertificateObjectGlobalRulestackResourceInner().withCertificateSignerResourceId("ct") .withCertificateSelfSigned(BooleanEnum.FALSE) - .withAuditComment("haru") - .withDescription("ji") - .withEtag("fzyjqt"), + .withAuditComment("dtddmflh") + .withDescription("tx") + .withEtag("tznapxbannovv"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("xpunjqi", response.certificateSignerResourceId()); + Assertions.assertEquals("crymodizrxklobd", response.certificateSignerResourceId()); Assertions.assertEquals(BooleanEnum.TRUE, response.certificateSelfSigned()); - Assertions.assertEquals("vvi", response.auditComment()); - Assertions.assertEquals("cgx", response.description()); - Assertions.assertEquals("csserxht", response.etag()); + Assertions.assertEquals("zpmkmlmvev", response.auditComment()); + Assertions.assertEquals("zopjhbzxliohr", response.description()); + Assertions.assertEquals("dtfgxqbawpcbb", 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 index 16bcc9ced6e0..93b50b1bc85c 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.certificateObjectGlobalRulestacks().delete("yuel", "etndnbfqyggagf", com.azure.core.util.Context.NONE); + manager.certificateObjectGlobalRulestacks().delete("d", "ibidmhmwffp", 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 index 4e3193f1d842..8476f4881b9c 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; @@ -22,23 +22,23 @@ public final class CertificateObjectGlobalRulestacksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"certificateSignerResourceId\":\"ebnfxofvc\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"dirazf\",\"description\":\"ejwabmdujtmvco\",\"etag\":\"xcmjurbu\",\"provisioningState\":\"Deleting\"},\"id\":\"yqltqsro\",\"name\":\"tuwkffdj\",\"type\":\"tsysi\"}"; + = "{\"properties\":{\"certificateSignerResourceId\":\"ehtuevrhr\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"oogwxhnsduugwb\",\"description\":\"e\",\"etag\":\"fqkfuarenl\",\"provisioningState\":\"Canceled\"},\"id\":\"klnvnafvvkyfede\",\"name\":\"jboslcqxypok\",\"type\":\"hminqcymczngnbdx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateObjectGlobalRulestackResource response = manager.certificateObjectGlobalRulestacks() - .getWithResponse("eiookjbsah", "tdtpdelqacslmo", com.azure.core.util.Context.NONE) + .getWithResponse("pfpazjzoywjxhpdu", "ontacnpq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ebnfxofvc", response.certificateSignerResourceId()); + Assertions.assertEquals("ehtuevrhr", response.certificateSignerResourceId()); Assertions.assertEquals(BooleanEnum.TRUE, response.certificateSelfSigned()); - Assertions.assertEquals("dirazf", response.auditComment()); - Assertions.assertEquals("ejwabmdujtmvco", response.description()); - Assertions.assertEquals("xcmjurbu", response.etag()); + Assertions.assertEquals("oogwxhnsduugwb", response.auditComment()); + Assertions.assertEquals("e", response.description()); + Assertions.assertEquals("fqkfuarenl", 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 index af7199d3a020..85f0c6f079a3 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; @@ -23,22 +23,22 @@ public final class CertificateObjectGlobalRulestacksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"bgdlfgtdysna\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"lqbctqhamzjrw\",\"description\":\"qzeqyjleziunjxdf\",\"etag\":\"ntkwcegy\",\"provisioningState\":\"Failed\"},\"id\":\"nseqacjjvp\",\"name\":\"lguooqjagmd\",\"type\":\"tg\"}]}"; + = "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"weyoxoy\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"phaimmoi\",\"description\":\"qboshbra\",\"etag\":\"pyyrmfs\",\"provisioningState\":\"Creating\"},\"id\":\"vbopfppdbwnu\",\"name\":\"gahxkumasjcaa\",\"type\":\"fdmmcpug\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.certificateObjectGlobalRulestacks().list("g", com.azure.core.util.Context.NONE); + = manager.certificateObjectGlobalRulestacks().list("fmuvapckccr", 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()); + Assertions.assertEquals("weyoxoy", response.iterator().next().certificateSignerResourceId()); + Assertions.assertEquals(BooleanEnum.FALSE, response.iterator().next().certificateSelfSigned()); + Assertions.assertEquals("phaimmoi", response.iterator().next().auditComment()); + Assertions.assertEquals("qboshbra", response.iterator().next().description()); + Assertions.assertEquals("pyyrmfs", 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 index 265158727f69..4a727f221457 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,28 +13,28 @@ 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\"}") + "{\"properties\":{\"certificateSignerResourceId\":\"utlwxezwzhok\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"nhhtql\",\"description\":\"hgppipifhpfeoa\",\"etag\":\"gcxtxj\",\"provisioningState\":\"Updating\"},\"id\":\"afidltugsres\",\"name\":\"kssjhoiftxfk\",\"type\":\"wegprh\"}") .toObject(CertificateObjectLocalRulestackResourceInner.class); - Assertions.assertEquals("aaeranokqgukk", model.certificateSignerResourceId()); + Assertions.assertEquals("utlwxezwzhok", model.certificateSignerResourceId()); Assertions.assertEquals(BooleanEnum.TRUE, model.certificateSelfSigned()); - Assertions.assertEquals("vbroylaxxu", model.auditComment()); - Assertions.assertEquals("disdosfjbjsvgj", model.description()); - Assertions.assertEquals("hryvy", model.etag()); + Assertions.assertEquals("nhhtql", model.auditComment()); + Assertions.assertEquals("hgppipifhpfeoa", model.description()); + Assertions.assertEquals("gcxtxj", model.etag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CertificateObjectLocalRulestackResourceInner model - = new CertificateObjectLocalRulestackResourceInner().withCertificateSignerResourceId("aaeranokqgukk") + = new CertificateObjectLocalRulestackResourceInner().withCertificateSignerResourceId("utlwxezwzhok") .withCertificateSelfSigned(BooleanEnum.TRUE) - .withAuditComment("vbroylaxxu") - .withDescription("disdosfjbjsvgj") - .withEtag("hryvy"); + .withAuditComment("nhhtql") + .withDescription("hgppipifhpfeoa") + .withEtag("gcxtxj"); model = BinaryData.fromObject(model).toObject(CertificateObjectLocalRulestackResourceInner.class); - Assertions.assertEquals("aaeranokqgukk", model.certificateSignerResourceId()); + Assertions.assertEquals("utlwxezwzhok", model.certificateSignerResourceId()); Assertions.assertEquals(BooleanEnum.TRUE, model.certificateSelfSigned()); - Assertions.assertEquals("vbroylaxxu", model.auditComment()); - Assertions.assertEquals("disdosfjbjsvgj", model.description()); - Assertions.assertEquals("hryvy", model.etag()); + Assertions.assertEquals("nhhtql", model.auditComment()); + Assertions.assertEquals("hgppipifhpfeoa", model.description()); + Assertions.assertEquals("gcxtxj", 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 index 46559b782fa3..1160c9b684ca 100644 --- 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 @@ -1,51 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CertificateObjectLocalRulestackResourceInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.CertificateObjectLocalRulestackResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"llu\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"qtgdqohmcwsl\",\"description\":\"izetpw\",\"etag\":\"a\",\"provisioningState\":\"NotSpecified\"},\"id\":\"bphbqzmizakakank\",\"name\":\"p\",\"type\":\"n\"},{\"properties\":{\"certificateSignerResourceId\":\"ha\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"lhjlmuoyxprimr\",\"description\":\"pteecjme\",\"etag\":\"ls\",\"provisioningState\":\"Updating\"},\"id\":\"ylw\",\"name\":\"dzaumweooh\",\"type\":\"uufuz\"},{\"properties\":{\"certificateSignerResourceId\":\"yjathwtzo\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"emwmdxmebwjs\",\"description\":\"p\",\"etag\":\"lxveabfqx\",\"provisioningState\":\"NotSpecified\"},\"id\":\"qtibxyijddtv\",\"name\":\"cttadi\",\"type\":\"aeukm\"}],\"nextLink\":\"ieekpndzaa\"}") .toObject(CertificateObjectLocalRulestackResourceListResult.class); - Assertions.assertEquals("kkzddrtkgdojbmx", model.value().get(0).certificateSignerResourceId()); + Assertions.assertEquals("llu", 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()); + Assertions.assertEquals("qtgdqohmcwsl", model.value().get(0).auditComment()); + Assertions.assertEquals("izetpw", model.value().get(0).description()); + Assertions.assertEquals("a", model.value().get(0).etag()); + Assertions.assertEquals("ieekpndzaa", 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 index 730d5db92293..89396c1041c8 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; @@ -22,29 +22,29 @@ public final class CertificateObjectLocalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"certificateSignerResourceId\":\"u\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"mdwmf\",\"description\":\"pycvjqdvdwkqpldr\",\"etag\":\"fgnaavuagnteta\",\"provisioningState\":\"Succeeded\"},\"id\":\"pdctuhspfefyi\",\"name\":\"duyeuyl\",\"type\":\"phm\"}"; + = "{\"properties\":{\"certificateSignerResourceId\":\"vxekraokqkbud\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"aokbavlyttaaknwf\",\"description\":\"ebsmhpdujdigato\",\"etag\":\"ksc\",\"provisioningState\":\"Succeeded\"},\"id\":\"anqimwbzxpdcl\",\"name\":\"pkawnsnlaim\",\"type\":\"ux\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateObjectLocalRulestackResource response = manager.certificateObjectLocalRulestacks() - .define("kdschlzvfictnkjj") - .withExistingLocalRulestack("ununm", "zkrvfyi") + .define("gmihzpimcqr") + .withExistingLocalRulestack("qszllrz", "smmd") .withCertificateSelfSigned(BooleanEnum.FALSE) - .withCertificateSignerResourceId("cwnphbkgfyrtogm") - .withAuditComment("pjscdfpdqwtygev") - .withDescription("mseharx") - .withEtag("vqnrxtmbpj") + .withCertificateSignerResourceId("xtminklogxsvtzar") + .withAuditComment("qnsqktcmb") + .withDescription("zzoslpkyb") + .withEtag("lwkzpgajsqjcem") .create(); - Assertions.assertEquals("u", response.certificateSignerResourceId()); + Assertions.assertEquals("vxekraokqkbud", response.certificateSignerResourceId()); Assertions.assertEquals(BooleanEnum.TRUE, response.certificateSelfSigned()); - Assertions.assertEquals("mdwmf", response.auditComment()); - Assertions.assertEquals("pycvjqdvdwkqpldr", response.description()); - Assertions.assertEquals("fgnaavuagnteta", response.etag()); + Assertions.assertEquals("aokbavlyttaaknwf", response.auditComment()); + Assertions.assertEquals("ebsmhpdujdigato", response.description()); + Assertions.assertEquals("ksc", 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 index 286cc304ed70..361eb8ab1759 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,10 +25,10 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.certificateObjectLocalRulestacks() - .delete("ptdmkrrbhmpful", "be", "gybpmfb", com.azure.core.util.Context.NONE); + .delete("vzilmhiv", "kwwwnckn", "zdajlskzptjxu", 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 index 15a4f8030d54..c28d67d94b3f 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; @@ -22,23 +22,23 @@ public final class CertificateObjectLocalRulestacksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"certificateSignerResourceId\":\"hmptyrilkfbn\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"xvztpbnfnqtxj\",\"description\":\"m\",\"etag\":\"swbnfddepldwqjns\",\"provisioningState\":\"Accepted\"},\"id\":\"leexahvmywh\",\"name\":\"brcary\",\"type\":\"sjjzyvoaqajuveh\"}"; + = "{\"properties\":{\"certificateSignerResourceId\":\"qbglcjkaysp\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"odubtlmjt\",\"description\":\"lioskkfmkmfdjx\",\"etag\":\"gbkkqvjcteoed\",\"provisioningState\":\"Updating\"},\"id\":\"skkzpxvjnzdpvo\",\"name\":\"ojhpcnabxzfsn\",\"type\":\"gyte\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateObjectLocalRulestackResource response = manager.certificateObjectLocalRulestacks() - .getWithResponse("ykcrraue", "kcsueho", "ddacbcbgydlqidy", com.azure.core.util.Context.NONE) + .getWithResponse("ygg", "pmcrdcuelj", "iahxmfqryarvs", 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()); + Assertions.assertEquals("qbglcjkaysp", response.certificateSignerResourceId()); + Assertions.assertEquals(BooleanEnum.TRUE, response.certificateSelfSigned()); + Assertions.assertEquals("odubtlmjt", response.auditComment()); + Assertions.assertEquals("lioskkfmkmfdjx", response.description()); + Assertions.assertEquals("gbkkqvjcteoed", 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 index 999a44df7a8d..893572759db8 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; @@ -23,22 +23,22 @@ public final class CertificateObjectLocalRulestacksListByLocalRulestacksMockTest @Test public void testListByLocalRulestacks() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"xawqy\",\"certificateSelfSigned\":\"TRUE\",\"auditComment\":\"hd\",\"description\":\"myck\",\"etag\":\"xnx\",\"provisioningState\":\"Accepted\"},\"id\":\"ywymxgaabj\",\"name\":\"dtfohfaog\",\"type\":\"vkiwrsiwdyjqu\"}]}"; + = "{\"value\":[{\"properties\":{\"certificateSignerResourceId\":\"oka\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"ejvqnt\",\"description\":\"bqd\",\"etag\":\"zfivfokpysthhzag\",\"provisioningState\":\"Canceled\"},\"id\":\"yrl\",\"name\":\"g\",\"type\":\"nuzejgvkveb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.certificateObjectLocalRulestacks() - .listByLocalRulestacks("exhvuqbozoolz", "ocarkuzlbcnndt", com.azure.core.util.Context.NONE); + .listByLocalRulestacks("weucyrth", "qlehmcgcjeinu", 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()); + Assertions.assertEquals("oka", response.iterator().next().certificateSignerResourceId()); + Assertions.assertEquals(BooleanEnum.FALSE, response.iterator().next().certificateSelfSigned()); + Assertions.assertEquals("ejvqnt", response.iterator().next().auditComment()); + Assertions.assertEquals("bqd", response.iterator().next().description()); + Assertions.assertEquals("zfivfokpysthhzag", 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 index 8c6175006766..f04adbca0ee4 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,27 +13,27 @@ 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\"}") + "{\"certificateSignerResourceId\":\"runmp\",\"certificateSelfSigned\":\"FALSE\",\"auditComment\":\"dbhrbnlankxm\",\"description\":\"k\",\"etag\":\"henbtkcxywnytn\",\"provisioningState\":\"Succeeded\"}") .toObject(CertificateObject.class); - Assertions.assertEquals("scjeypv", model.certificateSignerResourceId()); + Assertions.assertEquals("runmp", model.certificateSignerResourceId()); Assertions.assertEquals(BooleanEnum.FALSE, model.certificateSelfSigned()); - Assertions.assertEquals("rkgqhcjrefo", model.auditComment()); - Assertions.assertEquals("mkqsleyyv", model.description()); - Assertions.assertEquals("qjpkcattpngjcrc", model.etag()); + Assertions.assertEquals("dbhrbnlankxm", model.auditComment()); + Assertions.assertEquals("k", model.description()); + Assertions.assertEquals("henbtkcxywnytn", model.etag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CertificateObject model = new CertificateObject().withCertificateSignerResourceId("scjeypv") + CertificateObject model = new CertificateObject().withCertificateSignerResourceId("runmp") .withCertificateSelfSigned(BooleanEnum.FALSE) - .withAuditComment("rkgqhcjrefo") - .withDescription("mkqsleyyv") - .withEtag("qjpkcattpngjcrc"); + .withAuditComment("dbhrbnlankxm") + .withDescription("k") + .withEtag("henbtkcxywnytn"); model = BinaryData.fromObject(model).toObject(CertificateObject.class); - Assertions.assertEquals("scjeypv", model.certificateSignerResourceId()); + Assertions.assertEquals("runmp", model.certificateSignerResourceId()); Assertions.assertEquals(BooleanEnum.FALSE, model.certificateSelfSigned()); - Assertions.assertEquals("rkgqhcjrefo", model.auditComment()); - Assertions.assertEquals("mkqsleyyv", model.description()); - Assertions.assertEquals("qjpkcattpngjcrc", model.etag()); + Assertions.assertEquals("dbhrbnlankxm", model.auditComment()); + Assertions.assertEquals("k", model.description()); + Assertions.assertEquals("henbtkcxywnytn", 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 index d9c9e7c4f589..8a5b29c7e7cd 100644 --- 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 @@ -1,34 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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\"}") + "{\"changes\":[\"aos\"],\"lastCommitted\":\"2021-01-29T02:12:36Z\",\"lastModified\":\"2021-10-23T12:01:36Z\"}") .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()); + Assertions.assertEquals("aos", model.changes().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T02:12:36Z"), model.lastCommitted()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-23T12:01:36Z"), model.lastModified()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CloudManagerTenantListInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CloudManagerTenantListInnerTests.java new file mode 100644 index 000000000000..fdc7b5378044 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/CloudManagerTenantListInnerTests.java @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantListInner; +import org.junit.jupiter.api.Assertions; + +public final class CloudManagerTenantListInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CloudManagerTenantListInner model = BinaryData.fromString("{\"value\":[\"zvcjfelisdjubggb\",\"igkxkbsazga\"]}") + .toObject(CloudManagerTenantListInner.class); + Assertions.assertEquals("zvcjfelisdjubggb", model.value().get(0)); + } +} 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 index 12f789ec6f11..f6c8d332e3fc 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,28 +13,27 @@ 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\"]}") + "{\"cidrs\":[\"pxebmnzbt\"],\"countries\":[\"pglkf\",\"ohdneuel\",\"phsdyhto\"],\"feeds\":[\"kd\",\"wwquuvxzxclvithh\",\"zonosgg\"],\"prefixLists\":[\"ohfwds\"],\"fqdnLists\":[\"aljutiiswac\"]}") .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)); + Assertions.assertEquals("pxebmnzbt", model.cidrs().get(0)); + Assertions.assertEquals("pglkf", model.countries().get(0)); + Assertions.assertEquals("kd", model.feeds().get(0)); + Assertions.assertEquals("ohfwds", model.prefixLists().get(0)); + Assertions.assertEquals("aljutiiswac", 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")); + DestinationAddr model = new DestinationAddr().withCidrs(Arrays.asList("pxebmnzbt")) + .withCountries(Arrays.asList("pglkf", "ohdneuel", "phsdyhto")) + .withFeeds(Arrays.asList("kd", "wwquuvxzxclvithh", "zonosgg")) + .withPrefixLists(Arrays.asList("ohfwds")) + .withFqdnLists(Arrays.asList("aljutiiswac")); 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)); + Assertions.assertEquals("pxebmnzbt", model.cidrs().get(0)); + Assertions.assertEquals("pglkf", model.countries().get(0)); + Assertions.assertEquals("kd", model.feeds().get(0)); + Assertions.assertEquals("ohfwds", model.prefixLists().get(0)); + Assertions.assertEquals("aljutiiswac", 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 index 7ccd65488bc5..dbb0957b61d4 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -16,24 +16,23 @@ 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\"}]}") + "{\"enableDnsProxy\":\"DISABLED\",\"enabledDnsType\":\"CUSTOM\",\"dnsServers\":[{\"resourceId\":\"huwrykqgaifm\",\"address\":\"klbydv\"}]}") .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()); + Assertions.assertEquals(EnabledDnsType.CUSTOM, model.enabledDnsType()); + Assertions.assertEquals("huwrykqgaifm", model.dnsServers().get(0).resourceId()); + Assertions.assertEquals("klbydv", 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"))); + .withEnabledDnsType(EnabledDnsType.CUSTOM) + .withDnsServers(Arrays.asList(new IpAddress().withResourceId("huwrykqgaifm").withAddress("klbydv"))); 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()); + Assertions.assertEquals(EnabledDnsType.CUSTOM, model.enabledDnsType()); + Assertions.assertEquals("huwrykqgaifm", model.dnsServers().get(0).resourceId()); + Assertions.assertEquals("klbydv", 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 index 0a6cdf833610..62e9ee3bac1c 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,21 +12,21 @@ 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\"}}") + EndpointConfiguration model = BinaryData + .fromString("{\"port\":\"heyd\",\"address\":{\"resourceId\":\"dshmkxmaehvbbx\",\"address\":\"iplt\"}}") .toObject(EndpointConfiguration.class); - Assertions.assertEquals("totxhojujb", model.port()); - Assertions.assertEquals("elmcuvhixbjxyfw", model.address().resourceId()); - Assertions.assertEquals("lrcoolsttpki", model.address().address()); + Assertions.assertEquals("heyd", model.port()); + Assertions.assertEquals("dshmkxmaehvbbx", model.address().resourceId()); + Assertions.assertEquals("iplt", 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")); + EndpointConfiguration model = new EndpointConfiguration().withPort("heyd") + .withAddress(new IpAddress().withResourceId("dshmkxmaehvbbx").withAddress("iplt")); model = BinaryData.fromObject(model).toObject(EndpointConfiguration.class); - Assertions.assertEquals("totxhojujb", model.port()); - Assertions.assertEquals("elmcuvhixbjxyfw", model.address().resourceId()); - Assertions.assertEquals("lrcoolsttpki", model.address().address()); + Assertions.assertEquals("heyd", model.port()); + Assertions.assertEquals("dshmkxmaehvbbx", model.address().resourceId()); + Assertions.assertEquals("iplt", 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 index c85801684121..32322bc53367 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,27 +12,27 @@ 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\"}") + "{\"id\":\"iglaecx\",\"subscriptionId\":\"t\",\"name\":\"okpvzm\",\"nameSpace\":\"t\",\"policyName\":\"dgxobfircl\"}") .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()); + Assertions.assertEquals("iglaecx", model.id()); + Assertions.assertEquals("t", model.subscriptionId()); + Assertions.assertEquals("okpvzm", model.name()); + Assertions.assertEquals("t", model.nameSpace()); + Assertions.assertEquals("dgxobfircl", 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"); + EventHub model = new EventHub().withId("iglaecx") + .withSubscriptionId("t") + .withName("okpvzm") + .withNameSpace("t") + .withPolicyName("dgxobfircl"); 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()); + Assertions.assertEquals("iglaecx", model.id()); + Assertions.assertEquals("t", model.subscriptionId()); + Assertions.assertEquals("okpvzm", model.name()); + Assertions.assertEquals("t", model.nameSpace()); + Assertions.assertEquals("dgxobfircl", 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 index 149bb1ef79a6..97655f5edbe3 100644 --- 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 @@ -1,18 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallStatusResource; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -20,18 +21,20 @@ public final class FirewallStatusGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"INITIALIZING\",\"healthReason\":\"zji\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Failed\"},\"id\":\"absol\",\"name\":\"onqqlmgn\",\"type\":\"qxsjxte\"}"; + = "{\"properties\":{\"isPanoramaManaged\":\"FALSE\",\"healthStatus\":\"RED\",\"healthReason\":\"okgkskjivbs\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"DOWN\"},\"provisioningState\":\"Failed\",\"isStrataCloudManaged\":\"FALSE\",\"strataCloudManagerInfo\":{\"folderName\":\"pgeumilh\",\"hubUrl\":\"itrdexy\"}},\"id\":\"nofnin\",\"name\":\"dbzsx\",\"type\":\"wqqrsmpcbbprtuga\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FirewallStatusResource response = manager.firewallStatus() - .getWithResponse("svkskmqoz", "kivy", com.azure.core.util.Context.NONE) + .getWithResponse("xhmt", "tvegwqiukvzwy", com.azure.core.util.Context.NONE) .getValue(); + Assertions.assertEquals("pgeumilh", response.strataCloudManagerInfo().folderName()); + Assertions.assertEquals("itrdexy", response.strataCloudManagerInfo().hubUrl()); } } 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 index b3a14c2c3ea9..45a053afbef6 100644 --- 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 @@ -1,19 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FirewallStatusResource; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -21,17 +22,19 @@ public final class FirewallStatusListByFirewallsMockTests { @Test public void testListByFirewalls() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"isPanoramaManaged\":\"FALSE\",\"healthStatus\":\"INITIALIZING\",\"healthReason\":\"ibtyibuyvpirfqjp\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Deleted\"},\"id\":\"denrexkxbhxv\",\"name\":\"cnulgmnhjevdy\",\"type\":\"nfa\"}]}"; + = "{\"value\":[{\"properties\":{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"INITIALIZING\",\"healthReason\":\"cwjjxsgmbawvif\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Succeeded\",\"isStrataCloudManaged\":\"FALSE\",\"strataCloudManagerInfo\":{\"folderName\":\"wkloozr\",\"hubUrl\":\"xvcmufunlcp\"}},\"id\":\"vir\",\"name\":\"eyngjg\",\"type\":\"rquv\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.firewallStatus().listByFirewalls("pnx", "dvwnjkgvfnmxa", com.azure.core.util.Context.NONE); + = manager.firewallStatus().listByFirewalls("bzbcyksiv", "fogdrtbfcm", com.azure.core.util.Context.NONE); + Assertions.assertEquals("wkloozr", response.iterator().next().strataCloudManagerInfo().folderName()); + Assertions.assertEquals("xvcmufunlcp", response.iterator().next().strataCloudManagerInfo().hubUrl()); } } 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 index d9277c3998b0..fece00686e3d 100644 --- 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 @@ -1,23 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusProperty; +import org.junit.jupiter.api.Assertions; 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\"}") + "{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"YELLOW\",\"healthReason\":\"izvy\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Deleted\",\"isStrataCloudManaged\":\"FALSE\",\"strataCloudManagerInfo\":{\"folderName\":\"rano\",\"hubUrl\":\"gukkjqnvbroy\"}}") .toObject(FirewallStatusProperty.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FirewallStatusProperty model = new FirewallStatusProperty(); - model = BinaryData.fromObject(model).toObject(FirewallStatusProperty.class); + Assertions.assertEquals("rano", model.strataCloudManagerInfo().folderName()); + Assertions.assertEquals("gukkjqnvbroy", model.strataCloudManagerInfo().hubUrl()); } } 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 index 0caf8c3f6633..80f0bda480d2 100644 --- 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 @@ -1,23 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FirewallStatusResourceInner; +import org.junit.jupiter.api.Assertions; 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\"}") + "{\"properties\":{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"GREEN\",\"healthReason\":\"db\",\"panoramaStatus\":{\"panoramaServerStatus\":\"UP\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Succeeded\",\"isStrataCloudManaged\":\"FALSE\",\"strataCloudManagerInfo\":{\"folderName\":\"hzmme\",\"hubUrl\":\"kdlpa\"}},\"id\":\"rcxfailcfxwmdb\",\"name\":\"xdfgsftufqobr\",\"type\":\"lnacgcc\"}") .toObject(FirewallStatusResourceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FirewallStatusResourceInner model = new FirewallStatusResourceInner(); - model = BinaryData.fromObject(model).toObject(FirewallStatusResourceInner.class); + Assertions.assertEquals("hzmme", model.strataCloudManagerInfo().folderName()); + Assertions.assertEquals("kdlpa", model.strataCloudManagerInfo().hubUrl()); } } 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 index 7d862404be02..858a976a84af 100644 --- 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 @@ -1,30 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FirewallStatusResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"isPanoramaManaged\":\"TRUE\",\"healthStatus\":\"YELLOW\",\"healthReason\":\"whryvycytdcl\",\"panoramaStatus\":{\"panoramaServerStatus\":\"DOWN\",\"panoramaServer2Status\":\"UP\"},\"provisioningState\":\"Succeeded\",\"isStrataCloudManaged\":\"FALSE\",\"strataCloudManagerInfo\":{\"folderName\":\"mvpdvjdhttzaef\",\"hubUrl\":\"x\"}},\"id\":\"ch\",\"name\":\"phkmcrjdqnsdfz\",\"type\":\"bg\"}],\"nextLink\":\"kylkdghrj\"}") .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()); + Assertions.assertEquals("mvpdvjdhttzaef", model.value().get(0).strataCloudManagerInfo().folderName()); + Assertions.assertEquals("x", model.value().get(0).strataCloudManagerInfo().hubUrl()); + Assertions.assertEquals("kylkdghrj", 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 index d7180feb2c8c..9a35ee164f6c 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.firewalls().delete("lbemyej", "riuxegthortuda", com.azure.core.util.Context.NONE); + manager.firewalls().delete("fpgylkve", "jujcngoad", 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 index 9cb795bcf88a..d32b996e9d9a 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.GlobalRulestackInfo; @@ -20,19 +20,19 @@ public final class FirewallsGetGlobalRulestackWithResponseMockTests { @Test public void testGetGlobalRulestackWithResponse() throws Exception { - String responseStr = "{\"azureId\":\"gckbb\"}"; + String responseStr = "{\"azureId\":\"rcyrucpcunnu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GlobalRulestackInfo response = manager.firewalls() - .getGlobalRulestackWithResponse("lpjfelqerpptcbgq", "zmnhiilialwc", com.azure.core.util.Context.NONE) + .getGlobalRulestackWithResponse("ytoithgygvfl", "gvdihoynkrxwetwk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gckbb", response.azureId()); + Assertions.assertEquals("rcyrucpcunnu", 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 index 792fd1e70efa..d613d3cbc299 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; @@ -22,30 +22,30 @@ public final class FirewallsGetSupportInfoWithResponseMockTests { @Test public void testGetSupportInfoWithResponse() throws Exception { 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\"}"; + = "{\"productSku\":\"zqymtuowogtgits\",\"productSerial\":\"zvbrzcdbanfzndsc\",\"accountRegistered\":\"TRUE\",\"accountId\":\"atkdbmwnrd\",\"userDomainSupported\":\"FALSE\",\"userRegistered\":\"TRUE\",\"freeTrial\":\"TRUE\",\"freeTrialDaysLeft\":287826060,\"freeTrialCreditLeft\":708712993,\"helpURL\":\"rmkuh\",\"supportURL\":\"xljalfihc\",\"registerURL\":\"obcancdexxqcw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SupportInfo response = manager.firewalls() - .getSupportInfoWithResponse("byl", "ui", "vxva", com.azure.core.util.Context.NONE) + .getSupportInfoWithResponse("cnrly", "nucaephblkwqpat", "bqsdtcjbctvi", 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("zqymtuowogtgits", response.productSku()); + Assertions.assertEquals("zvbrzcdbanfzndsc", response.productSerial()); + Assertions.assertEquals(BooleanEnum.TRUE, response.accountRegistered()); + Assertions.assertEquals("atkdbmwnrd", response.accountId()); + Assertions.assertEquals(BooleanEnum.FALSE, response.userDomainSupported()); + Assertions.assertEquals(BooleanEnum.TRUE, 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()); + Assertions.assertEquals(287826060, response.freeTrialDaysLeft()); + Assertions.assertEquals(708712993, response.freeTrialCreditLeft()); + Assertions.assertEquals("rmkuh", response.helpUrl()); + Assertions.assertEquals("xljalfihc", response.supportUrl()); + Assertions.assertEquals("obcancdexxqcw", 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 index 22e08907f89c..b309eceea9ba 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,24 +13,24 @@ 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\"}") + "{\"properties\":{\"description\":\"jn\",\"fqdnList\":[\"ckhsmtxpsieb\",\"fhvpesaps\",\"rdqmhjjdhtldwkyz\"],\"etag\":\"utknc\",\"auditComment\":\"cwsvlxotog\",\"provisioningState\":\"Updating\"},\"id\":\"pqsxvnmicy\",\"name\":\"vce\",\"type\":\"vei\"}") .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()); + Assertions.assertEquals("jn", model.description()); + Assertions.assertEquals("ckhsmtxpsieb", model.fqdnList().get(0)); + Assertions.assertEquals("utknc", model.etag()); + Assertions.assertEquals("cwsvlxotog", 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"); + FqdnListGlobalRulestackResourceInner model = new FqdnListGlobalRulestackResourceInner().withDescription("jn") + .withFqdnList(Arrays.asList("ckhsmtxpsieb", "fhvpesaps", "rdqmhjjdhtldwkyz")) + .withEtag("utknc") + .withAuditComment("cwsvlxotog"); 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()); + Assertions.assertEquals("jn", model.description()); + Assertions.assertEquals("ckhsmtxpsieb", model.fqdnList().get(0)); + Assertions.assertEquals("utknc", model.etag()); + Assertions.assertEquals("cwsvlxotog", 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 index 80f70bbe98f9..ba7eee6c2214 100644 --- 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 @@ -1,46 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListGlobalRulestackResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"description\":\"uscrpabgyepsb\",\"fqdnList\":[\"azqugxywpmueefj\",\"wfqkquj\",\"dsuyonobgla\",\"cq\"],\"etag\":\"ccm\",\"auditComment\":\"udxytlmoyrx\",\"provisioningState\":\"NotSpecified\"},\"id\":\"dw\",\"name\":\"zntxhdz\",\"type\":\"lrqjbhckfr\"},{\"properties\":{\"description\":\"rxsbkyvp\",\"fqdnList\":[\"anuzbpzkafkuw\"],\"etag\":\"rnwb\",\"auditComment\":\"hhseyv\",\"provisioningState\":\"Deleted\"},\"id\":\"tslhspkdeem\",\"name\":\"ofmxagkvtmelmqkr\",\"type\":\"ahvljuaha\"},{\"properties\":{\"description\":\"hcdhmdual\",\"fqdnList\":[\"xqpvfadmw\"],\"etag\":\"crgvxpvgom\",\"auditComment\":\"fmisg\",\"provisioningState\":\"NotSpecified\"},\"id\":\"beldawkzbaliourq\",\"name\":\"akauha\",\"type\":\"hsfwxosowzxcug\"},{\"properties\":{\"description\":\"jooxdjebw\",\"fqdnList\":[\"cwwfvovbvme\"],\"etag\":\"civyhzceuo\",\"auditComment\":\"jrwjueiotwm\",\"provisioningState\":\"NotSpecified\"},\"id\":\"dxwitx\",\"name\":\"rjaw\",\"type\":\"qwgxhniskx\"}],\"nextLink\":\"kpycgklwndnhjd\"}") .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()); + Assertions.assertEquals("uscrpabgyepsb", model.value().get(0).description()); + Assertions.assertEquals("azqugxywpmueefj", model.value().get(0).fqdnList().get(0)); + Assertions.assertEquals("ccm", model.value().get(0).etag()); + Assertions.assertEquals("udxytlmoyrx", model.value().get(0).auditComment()); + Assertions.assertEquals("kpycgklwndnhjd", 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 index ecd7542cf130..c06afcd279ce 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListGlobalRulestackResourceInner; @@ -23,26 +23,26 @@ public final class FqdnListGlobalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"tprwnw\",\"fqdnList\":[\"oevytlyokr\",\"rouuxvnsasbcry\"],\"etag\":\"dizr\",\"auditComment\":\"lobdxna\",\"provisioningState\":\"Succeeded\"},\"id\":\"mlmvevfxzo\",\"name\":\"jhbzxliohrdddtf\",\"type\":\"xqbawpc\"}"; + = "{\"properties\":{\"description\":\"jrtwsz\",\"fqdnList\":[\"vuicp\"],\"etag\":\"trrmhwrb\",\"auditComment\":\"pyf\",\"provisioningState\":\"Succeeded\"},\"id\":\"vjglrocuyzlwhhme\",\"name\":\"hoocl\",\"type\":\"tnpqmemczjk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FqdnListGlobalRulestackResource response = manager.fqdnListGlobalRulestacks() - .createOrUpdate("q", "fuarenlvhht", - new FqdnListGlobalRulestackResourceInner().withDescription("nvnaf") - .withFqdnList(Arrays.asList("kyfede", "jboslcqxypok", "hminqcymczngnbdx", "ewuninvud")) - .withEtag("h") - .withAuditComment("dtvqe"), + .createOrUpdate("luqvoxmycjimryv", "gc", + new FqdnListGlobalRulestackResourceInner().withDescription("pbmz") + .withFqdnList(Arrays.asList("esyds")) + .withEtag("efoh") + .withAuditComment("bvopwndyqle"), 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()); + Assertions.assertEquals("jrtwsz", response.description()); + Assertions.assertEquals("vuicp", response.fqdnList().get(0)); + Assertions.assertEquals("trrmhwrb", response.etag()); + Assertions.assertEquals("pyf", 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 index 2a3241b2deda..f8614b3c6128 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.fqdnListGlobalRulestacks().delete("bnzqcyknapq", "fyuicdh", com.azure.core.util.Context.NONE); + manager.fqdnListGlobalRulestacks().delete("mykyujxsglhs", "rryejylmbkzudnig", 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 index 62b3b1418f3d..2848344da7f7 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListGlobalRulestackResource; @@ -21,22 +21,22 @@ public final class FqdnListGlobalRulestacksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"nmg\",\"fqdnList\":[\"ouxddbhfhpfpazj\"],\"etag\":\"ywjxh\",\"auditComment\":\"ulontacnpqwteht\",\"provisioningState\":\"Canceled\"},\"id\":\"hrljy\",\"name\":\"ogwxhnsduugwb\",\"type\":\"reur\"}"; + = "{\"properties\":{\"description\":\"nbldxeaclgschori\",\"fqdnList\":[\"rsrrmoucsofldp\",\"viyfcaabeolhbhlv\",\"mxuq\"],\"etag\":\"s\",\"auditComment\":\"kcudfbsfarfsiowl\",\"provisioningState\":\"Succeeded\"},\"id\":\"qpvwgfst\",\"name\":\"hqykizmdk\",\"type\":\"aoaf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FqdnListGlobalRulestackResource response = manager.fqdnListGlobalRulestacks() - .getWithResponse("narfdlpukhpyrn", "izjcpeog", com.azure.core.util.Context.NONE) + .getWithResponse("ehqepvufhbzehe", "hoqhnl", 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()); + Assertions.assertEquals("nbldxeaclgschori", response.description()); + Assertions.assertEquals("rsrrmoucsofldp", response.fqdnList().get(0)); + Assertions.assertEquals("s", response.etag()); + Assertions.assertEquals("kcudfbsfarfsiowl", 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 index 121f0bb50508..c8cc128acc2f 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListGlobalRulestackResource; @@ -22,21 +22,21 @@ public final class FqdnListGlobalRulestacksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"tb\",\"fqdnList\":[\"plrohkpigq\"],\"etag\":\"suckzm\",\"auditComment\":\"klsnoxaxmqeqa\",\"provisioningState\":\"Accepted\"},\"id\":\"nhg\",\"name\":\"ydyynfsvkh\",\"type\":\"bvqt\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"lpxuzzjgnrefq\",\"fqdnList\":[\"qotoihiqakydiwfb\"],\"etag\":\"wpzdqtvhcspo\",\"auditComment\":\"qaxsipietgbebjf\",\"provisioningState\":\"NotSpecified\"},\"id\":\"oichdlpnfpubnt\",\"name\":\"batzviqsows\",\"type\":\"aelcat\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.fqdnListGlobalRulestacks().list("nlgmtrwahzjmu", com.azure.core.util.Context.NONE); + = manager.fqdnListGlobalRulestacks().list("fihotj", 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()); + Assertions.assertEquals("lpxuzzjgnrefq", response.iterator().next().description()); + Assertions.assertEquals("qotoihiqakydiwfb", response.iterator().next().fqdnList().get(0)); + Assertions.assertEquals("wpzdqtvhcspo", response.iterator().next().etag()); + Assertions.assertEquals("qaxsipietgbebjf", 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 index 9dd0b38869e6..9ce188b7000a 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,24 +13,25 @@ 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\"}") + "{\"properties\":{\"description\":\"udqmeqwigpibudq\",\"fqdnList\":[\"xebeybpmz\"],\"etag\":\"rtffyaqitmh\",\"auditComment\":\"ioqaqhvs\",\"provisioningState\":\"Updating\"},\"id\":\"qyrxp\",\"name\":\"lcgqlsismj\",\"type\":\"frddgamquhiosrsj\"}") .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()); + Assertions.assertEquals("udqmeqwigpibudq", model.description()); + Assertions.assertEquals("xebeybpmz", model.fqdnList().get(0)); + Assertions.assertEquals("rtffyaqitmh", model.etag()); + Assertions.assertEquals("ioqaqhvs", 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"); + FqdnListLocalRulestackResourceInner model + = new FqdnListLocalRulestackResourceInner().withDescription("udqmeqwigpibudq") + .withFqdnList(Arrays.asList("xebeybpmz")) + .withEtag("rtffyaqitmh") + .withAuditComment("ioqaqhvs"); 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()); + Assertions.assertEquals("udqmeqwigpibudq", model.description()); + Assertions.assertEquals("xebeybpmz", model.fqdnList().get(0)); + Assertions.assertEquals("rtffyaqitmh", model.etag()); + Assertions.assertEquals("ioqaqhvs", 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 index 6409cd3c7614..f754522ce908 100644 --- 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 @@ -1,54 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.FqdnListLocalRulestackResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"description\":\"fcdis\",\"fqdnList\":[\"rnxzh\",\"zexrxzbujrt\"],\"etag\":\"qvwre\",\"auditComment\":\"h\",\"provisioningState\":\"Deleting\"},\"id\":\"zonzlrpiqywnc\",\"name\":\"jtszcof\",\"type\":\"zehtdhgb\"},{\"properties\":{\"description\":\"vreljea\",\"fqdnList\":[\"rvzmlovuana\",\"hcxlpm\",\"erbdk\",\"lvidizozs\"],\"etag\":\"ccxjm\",\"auditComment\":\"fdgnwncypuuwwlt\",\"provisioningState\":\"Accepted\"},\"id\":\"ctzenkeifzzhmkd\",\"name\":\"svflyhbxcudch\",\"type\":\"gsrboldforobw\"},{\"properties\":{\"description\":\"vizbfhfo\",\"fqdnList\":[\"acqpbtuodxesza\",\"belawumuaslzkwr\",\"woycqucwyha\",\"nomdrkywuhpsv\"],\"etag\":\"urut\",\"auditComment\":\"exxwlalniexzsrz\",\"provisioningState\":\"Updating\"},\"id\":\"q\",\"name\":\"yb\",\"type\":\"wwpgdakchzyvlixq\"}],\"nextLink\":\"kcxk\"}") .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()); + Assertions.assertEquals("fcdis", model.value().get(0).description()); + Assertions.assertEquals("rnxzh", model.value().get(0).fqdnList().get(0)); + Assertions.assertEquals("qvwre", model.value().get(0).etag()); + Assertions.assertEquals("h", model.value().get(0).auditComment()); + Assertions.assertEquals("kcxk", 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 index 61fe7ca4fb01..acfe127e9e4e 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResource; @@ -22,27 +22,27 @@ public final class FqdnListLocalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"aokgkskjivbsshaj\",\"fqdnList\":[\"u\",\"peexpgeumilhwuit\",\"dexyionofninbdb\"],\"etag\":\"xcwqqrsmpc\",\"auditComment\":\"prtug\",\"provisioningState\":\"Succeeded\"},\"id\":\"bcyksivmfogd\",\"name\":\"tbfcm\",\"type\":\"rftsjcwjjxs\"}"; + = "{\"properties\":{\"description\":\"j\",\"fqdnList\":[\"ggjh\",\"f\"],\"etag\":\"rqrkijpeuqlsdx\",\"auditComment\":\"ztv\",\"provisioningState\":\"Succeeded\"},\"id\":\"wmjswenaww\",\"name\":\"me\",\"type\":\"leqioulndh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FqdnListLocalRulestackResource response = manager.fqdnListLocalRulestacks() - .define("hctmjtsgh") - .withExistingLocalRulestack("xegqphr", "fn") - .withFqdnList(Arrays.asList("pzarpzeqacdld")) - .withDescription("c") - .withEtag("mpypefcpczshnuq") - .withAuditComment("aizu") + .define("aqzi") + .withExistingLocalRulestack("pqagynoiprn", "calincryqxz") + .withFqdnList(Arrays.asList("guhfupe", "asvvoqsbpkfl", "nfkgxsyaowuzowpu", "hdkcprgu")) + .withDescription("qimiymqr") + .withEtag("rztiochlutixmqr") + .withAuditComment("jizcbfzmcrunfhiu") .create(); - Assertions.assertEquals("aokgkskjivbsshaj", response.description()); - Assertions.assertEquals("u", response.fqdnList().get(0)); - Assertions.assertEquals("xcwqqrsmpc", response.etag()); - Assertions.assertEquals("prtug", response.auditComment()); + Assertions.assertEquals("j", response.description()); + Assertions.assertEquals("ggjh", response.fqdnList().get(0)); + Assertions.assertEquals("rqrkijpeuqlsdx", response.etag()); + Assertions.assertEquals("ztv", 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 index 6bdf1a63e6dd..f156c8148b85 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.fqdnListLocalRulestacks().delete("skoynuiylpc", "aewse", "vesk", com.azure.core.util.Context.NONE); + manager.fqdnListLocalRulestacks().delete("ukosrn", "wnvz", "lnk", 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 index 172bfaf6242a..e0e6ed528df2 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResource; @@ -21,22 +21,22 @@ public final class FqdnListLocalRulestacksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"ricctkwmuqqoa\",\"fqdnList\":[\"eiyglesrwvaexhdc\",\"rceqnkbrupob\",\"hdmljz\"],\"etag\":\"vume\",\"auditComment\":\"pbibn\",\"provisioningState\":\"Canceled\"},\"id\":\"epifexleqirccjc\",\"name\":\"ykcgxvrpjlvcz\",\"type\":\"odacpunettepdjxq\"}"; + = "{\"properties\":{\"description\":\"sjhbtq\",\"fqdnList\":[\"yfscyrfwbivqvo\",\"fuy\",\"wvbhlimbyq\"],\"etag\":\"r\",\"auditComment\":\"dlikcdrdaasa\",\"provisioningState\":\"Accepted\"},\"id\":\"sm\",\"name\":\"kwiy\",\"type\":\"v\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FqdnListLocalRulestackResource response = manager.fqdnListLocalRulestacks() - .getWithResponse("rngl", "mbiipsnawwlqk", "nxhhl", com.azure.core.util.Context.NONE) + .getWithResponse("ksqmudmfcoibi", "ziuswsw", "rk", 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()); + Assertions.assertEquals("sjhbtq", response.description()); + Assertions.assertEquals("yfscyrfwbivqvo", response.fqdnList().get(0)); + Assertions.assertEquals("r", response.etag()); + Assertions.assertEquals("dlikcdrdaasa", 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 index 734a1b0c67b8..8d01d7e6f719 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.FqdnListLocalRulestackResource; @@ -22,21 +22,21 @@ public final class FqdnListLocalRulestacksListByLocalRulestacksMockTests { @Test public void testListByLocalRulestacks() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"atxtjrrlkmdskjhh\",\"fqdnList\":[\"lajfoxcxscvslxlh\"],\"etag\":\"vkrmukmyjmkx\",\"auditComment\":\"tcsloj\",\"provisioningState\":\"Succeeded\"},\"id\":\"dnqtoqxjhqx\",\"name\":\"s\",\"type\":\"htkbtnq\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"udndoabhjxw\",\"fqdnList\":[\"weuipmpvksmi\",\"nsqxtltc\"],\"etag\":\"rdpqgfhy\",\"auditComment\":\"rakkld\",\"provisioningState\":\"Deleting\"},\"id\":\"fcmfcn\",\"name\":\"jajqmatxjt\",\"type\":\"elnzqgxxgfbbmt\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.fqdnListLocalRulestacks() - .listByLocalRulestacks("ybkcgsuthhllnmwy", "efxexlf", com.azure.core.util.Context.NONE); + .listByLocalRulestacks("ywsxvjabjqqaxu", "vym", 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()); + Assertions.assertEquals("udndoabhjxw", response.iterator().next().description()); + Assertions.assertEquals("weuipmpvksmi", response.iterator().next().fqdnList().get(0)); + Assertions.assertEquals("rdpqgfhy", response.iterator().next().etag()); + Assertions.assertEquals("rakkld", 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 index 1debf20d5535..31b12a4903b0 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,24 +13,24 @@ 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\"}") + "{\"description\":\"vnotyfjfcnj\",\"fqdnList\":[\"cn\"],\"etag\":\"hbttkphyw\",\"auditComment\":\"vjtoqnermclfp\",\"provisioningState\":\"Succeeded\"}") .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()); + Assertions.assertEquals("vnotyfjfcnj", model.description()); + Assertions.assertEquals("cn", model.fqdnList().get(0)); + Assertions.assertEquals("hbttkphyw", model.etag()); + Assertions.assertEquals("vjtoqnermclfp", 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"); + FqdnObject model = new FqdnObject().withDescription("vnotyfjfcnj") + .withFqdnList(Arrays.asList("cn")) + .withEtag("hbttkphyw") + .withAuditComment("vjtoqnermclfp"); 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()); + Assertions.assertEquals("vnotyfjfcnj", model.description()); + Assertions.assertEquals("cn", model.fqdnList().get(0)); + Assertions.assertEquals("hbttkphyw", model.etag()); + Assertions.assertEquals("vjtoqnermclfp", 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 index 53708ec7024c..c64e567b153b 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -15,34 +15,34 @@ 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\"}}}") + "{\"name\":\"hbejdznxcvdsrhnj\",\"protocol\":\"TCP\",\"frontendConfiguration\":{\"port\":\"olvtnovqfzge\",\"address\":{\"resourceId\":\"dftuljltduce\",\"address\":\"tmczuomejwcwwqi\"}},\"backendConfiguration\":{\"port\":\"knssxmojm\",\"address\":{\"resourceId\":\"p\",\"address\":\"prvkwcfzqljyxgtc\"}}}") .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()); + Assertions.assertEquals("hbejdznxcvdsrhnj", model.name()); + Assertions.assertEquals(ProtocolType.TCP, model.protocol()); + Assertions.assertEquals("olvtnovqfzge", model.frontendConfiguration().port()); + Assertions.assertEquals("dftuljltduce", model.frontendConfiguration().address().resourceId()); + Assertions.assertEquals("tmczuomejwcwwqi", model.frontendConfiguration().address().address()); + Assertions.assertEquals("knssxmojm", model.backendConfiguration().port()); + Assertions.assertEquals("p", model.backendConfiguration().address().resourceId()); + Assertions.assertEquals("prvkwcfzqljyxgtc", 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"))); + FrontendSetting model = new FrontendSetting().withName("hbejdznxcvdsrhnj") + .withProtocol(ProtocolType.TCP) + .withFrontendConfiguration(new EndpointConfiguration().withPort("olvtnovqfzge") + .withAddress(new IpAddress().withResourceId("dftuljltduce").withAddress("tmczuomejwcwwqi"))) + .withBackendConfiguration(new EndpointConfiguration().withPort("knssxmojm") + .withAddress(new IpAddress().withResourceId("p").withAddress("prvkwcfzqljyxgtc"))); 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()); + Assertions.assertEquals("hbejdznxcvdsrhnj", model.name()); + Assertions.assertEquals(ProtocolType.TCP, model.protocol()); + Assertions.assertEquals("olvtnovqfzge", model.frontendConfiguration().port()); + Assertions.assertEquals("dftuljltduce", model.frontendConfiguration().address().resourceId()); + Assertions.assertEquals("tmczuomejwcwwqi", model.frontendConfiguration().address().address()); + Assertions.assertEquals("knssxmojm", model.backendConfiguration().port()); + Assertions.assertEquals("p", model.backendConfiguration().address().resourceId()); + Assertions.assertEquals("prvkwcfzqljyxgtc", 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 index 68d5805dbc52..b1a87b0fe93c 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,14 +12,7 @@ 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()); + = BinaryData.fromString("{\"azureId\":\"y\"}").toObject(GlobalRulestackInfoInner.class); + Assertions.assertEquals("y", 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 index 25e646660ed1..41db1eda7123 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -21,76 +21,77 @@ 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\"}") + "{\"properties\":{\"panEtag\":\"ijbpzvgnwzsymgl\",\"panLocation\":\"fcyzkohdbihanufh\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"s\"],\"description\":\"ithxqhabifpi\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"zb\",\"provisioningState\":\"NotSpecified\",\"securityServices\":{\"vulnerabilityProfile\":\"q\",\"antiSpywareProfile\":\"hiv\",\"antiVirusProfile\":\"n\",\"urlFilteringProfile\":\"b\",\"fileBlockingProfile\":\"rkxvdum\",\"dnsSubscription\":\"rtfw\",\"outboundUnTrustCertificate\":\"k\",\"outboundTrustCertificate\":\"audccsnhs\"}},\"location\":\"cnyejhkryhtnapcz\",\"identity\":{\"tenantId\":\"kjyemkk\",\"principalId\":\"ipjoxzjnchgejs\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"wyahuxinpmqnja\":{\"clientId\":\"ilzyd\",\"principalId\":\"o\"},\"uuvmkjozkrwfnd\":{\"clientId\":\"ixjsprozvcputeg\",\"principalId\":\"wmfdatscmdvpjhul\"},\"akl\":{\"clientId\":\"djpslw\",\"principalId\":\"dpvwryoqpsoaccta\"}}},\"id\":\"ahbc\",\"name\":\"yffdfdos\",\"type\":\"gexpaojakhmsbz\"}") .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("cnyejhkryhtnapcz", model.location()); + Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals("ilzyd", model.identity().userAssignedIdentities().get("wyahuxinpmqnja").clientId()); + Assertions.assertEquals("o", model.identity().userAssignedIdentities().get("wyahuxinpmqnja").principalId()); + Assertions.assertEquals("ijbpzvgnwzsymgl", model.panEtag()); + Assertions.assertEquals("fcyzkohdbihanufh", model.panLocation()); Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("syyp", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("dhsgcba", model.description()); + Assertions.assertEquals("s", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("ithxqhabifpi", 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()); + Assertions.assertEquals("zb", model.minAppIdVersion()); + Assertions.assertEquals("q", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("hiv", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("n", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("b", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("rkxvdum", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("rtfw", model.securityServices().dnsSubscription()); + Assertions.assertEquals("k", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("audccsnhs", 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") + GlobalRulestackResourceInner model = new GlobalRulestackResourceInner().withLocation("cnyejhkryhtnapcz") + .withIdentity( + new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("wyahuxinpmqnja", + new AzureResourceManagerUserAssignedIdentity().withClientId("ilzyd").withPrincipalId("o"), + "uuvmkjozkrwfnd", + new AzureResourceManagerUserAssignedIdentity().withClientId("ixjsprozvcputeg") + .withPrincipalId("wmfdatscmdvpjhul"), + "akl", + new AzureResourceManagerUserAssignedIdentity().withClientId("djpslw") + .withPrincipalId("dpvwryoqpsoaccta")))) + .withPanEtag("ijbpzvgnwzsymgl") + .withPanLocation("fcyzkohdbihanufh") .withScope(ScopeType.LOCAL) - .withAssociatedSubscriptions(Arrays.asList("syyp")) - .withDescription("dhsgcba") + .withAssociatedSubscriptions(Arrays.asList("s")) + .withDescription("ithxqhabifpi") .withDefaultMode(DefaultMode.IPS) - .withMinAppIdVersion("jkot") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("ulzndlikwyqk") - .withAntiSpywareProfile("gibma") - .withAntiVirusProfile("akeqs") - .withUrlFilteringProfile("yb") - .withFileBlockingProfile("qedqytbciqfoufl") - .withDnsSubscription("nkzsmodmglou") - .withOutboundUnTrustCertificate("b") - .withOutboundTrustCertificate("tmut")); + .withMinAppIdVersion("zb") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("q") + .withAntiSpywareProfile("hiv") + .withAntiVirusProfile("n") + .withUrlFilteringProfile("b") + .withFileBlockingProfile("rkxvdum") + .withDnsSubscription("rtfw") + .withOutboundUnTrustCertificate("k") + .withOutboundTrustCertificate("audccsnhs")); 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("cnyejhkryhtnapcz", model.location()); + Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals("ilzyd", model.identity().userAssignedIdentities().get("wyahuxinpmqnja").clientId()); + Assertions.assertEquals("o", model.identity().userAssignedIdentities().get("wyahuxinpmqnja").principalId()); + Assertions.assertEquals("ijbpzvgnwzsymgl", model.panEtag()); + Assertions.assertEquals("fcyzkohdbihanufh", model.panLocation()); Assertions.assertEquals(ScopeType.LOCAL, model.scope()); - Assertions.assertEquals("syyp", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("dhsgcba", model.description()); + Assertions.assertEquals("s", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("ithxqhabifpi", 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()); + Assertions.assertEquals("zb", model.minAppIdVersion()); + Assertions.assertEquals("q", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("hiv", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("n", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("b", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("rkxvdum", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("rtfw", model.securityServices().dnsSubscription()); + Assertions.assertEquals("k", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("audccsnhs", model.securityServices().outboundTrustCertificate()); } // Use "Map.of" if available 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 index cf6b7044ba02..34c3ecf33e50 100644 --- 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 @@ -1,166 +1,43 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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.implementation.models.GlobalRulestackResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"panEtag\":\"oodqxhcrm\",\"panLocation\":\"hjtckwhd\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"yip\"],\"description\":\"sqwpgrjb\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"cjxvsnbyxqab\",\"provisioningState\":\"Updating\",\"securityServices\":{\"vulnerabilityProfile\":\"cyshurzafbljjgp\",\"antiSpywareProfile\":\"oq\",\"antiVirusProfile\":\"mkljavb\",\"urlFilteringProfile\":\"dtqajzyulpkudj\",\"fileBlockingProfile\":\"lkhbz\",\"dnsSubscription\":\"epgzgqexz\",\"outboundUnTrustCertificate\":\"c\",\"outboundTrustCertificate\":\"c\"}},\"location\":\"aierhhb\",\"identity\":{\"tenantId\":\"l\",\"principalId\":\"majtjaod\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"po\":{\"clientId\":\"dxkqpx\",\"principalId\":\"ajionpimexgstxg\"},\"qsqsy\":{\"clientId\":\"maajrmvdjwzrlo\",\"principalId\":\"clwhijcoejctbz\"}}},\"id\":\"kbfkg\",\"name\":\"kdkexxp\",\"type\":\"ofmx\"},{\"properties\":{\"panEtag\":\"c\",\"panLocation\":\"pg\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"jjxhvpmo\"],\"description\":\"xhdzxibqeojnx\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"ddntwndei\",\"provisioningState\":\"Deleted\",\"securityServices\":{\"vulnerabilityProfile\":\"pzaoqvuhr\",\"antiSpywareProfile\":\"f\",\"antiVirusProfile\":\"yd\",\"urlFilteringProfile\":\"lmjthjq\",\"fileBlockingProfile\":\"pyeicxm\",\"dnsSubscription\":\"iwqvhkh\",\"outboundUnTrustCertificate\":\"uigdtopbobjog\",\"outboundTrustCertificate\":\"e\"}},\"location\":\"u\",\"identity\":{\"tenantId\":\"uhrzayvvt\",\"principalId\":\"vdfgiotk\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"thz\":{\"clientId\":\"xlngx\",\"principalId\":\"fgugnxkrxdqmid\"},\"yktz\":{\"clientId\":\"qdrabhjybigehoqf\",\"principalId\":\"wska\"}}},\"id\":\"u\",\"name\":\"y\",\"type\":\"gqywgndrv\"},{\"properties\":{\"panEtag\":\"hzgpphrcgyncocpe\",\"panLocation\":\"vmmcoofs\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"gbmqjqabcypmiv\"],\"description\":\"lzu\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"wnfnbacf\",\"provisioningState\":\"Deleted\",\"securityServices\":{\"vulnerabilityProfile\":\"bxetqgtzxdpn\",\"antiSpywareProfile\":\"qqwx\",\"antiVirusProfile\":\"feallnwsu\",\"urlFilteringProfile\":\"snjampmng\",\"fileBlockingProfile\":\"scxaq\",\"dnsSubscription\":\"ochcbonqvpkvl\",\"outboundUnTrustCertificate\":\"njeaseipheofloke\",\"outboundTrustCertificate\":\"ienjbdlwtgr\"}},\"location\":\"pdjpjumasxazjp\",\"identity\":{\"tenantId\":\"gual\",\"principalId\":\"xxhejjzzvd\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"cftadeh\":{\"clientId\":\"slfhotwm\",\"principalId\":\"npwlbjnpg\"},\"ej\":{\"clientId\":\"ltyfsop\",\"principalId\":\"suesnzw\"},\"ndnvo\":{\"clientId\":\"vorxzdmohct\",\"principalId\":\"vudwx\"}}},\"id\":\"ujjugwdkcglh\",\"name\":\"lazjdyggdtjixhbk\",\"type\":\"ofqweykhmenevfye\"},{\"properties\":{\"panEtag\":\"whybcib\",\"panLocation\":\"vdcsitynn\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"ctehfiqscjey\",\"vhezrkgqhcj\"],\"description\":\"fovgmkqsleyyvxy\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"cattpngjcrcczsq\",\"provisioningState\":\"Canceled\",\"securityServices\":{\"vulnerabilityProfile\":\"daj\",\"antiSpywareProfile\":\"ysou\",\"antiVirusProfile\":\"e\",\"urlFilteringProfile\":\"noae\",\"fileBlockingProfile\":\"fhyhltrpmopjmcma\",\"dnsSubscription\":\"okth\",\"outboundUnTrustCertificate\":\"iuaod\",\"outboundTrustCertificate\":\"cpkvxodp\"}},\"location\":\"ozmyzydagfu\",\"identity\":{\"tenantId\":\"ezyiuokktwhrdxw\",\"principalId\":\"wqsmbsur\",\"type\":\"None\",\"userAssignedIdentities\":{\"uxh\":{\"clientId\":\"ryocfsfksymdd\",\"principalId\":\"tki\"},\"fqrvkdvjsllrmvvd\":{\"clientId\":\"udxorrqn\",\"principalId\":\"oczvy\"},\"wiqzbqjvsovmyo\":{\"clientId\":\"atkpnp\",\"principalId\":\"exxbczwtr\"},\"wwzjuqkhrsajiwku\":{\"clientId\":\"cspkwlhzdobpxjmf\",\"principalId\":\"vvnchrkcc\"}}},\"id\":\"oskg\",\"name\":\"sauuimj\",\"type\":\"vxieduugidyj\"}],\"nextLink\":\"f\"}") .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("aierhhb", model.value().get(0).location()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, model.value().get(0).identity().type()); + Assertions.assertEquals("dxkqpx", + model.value().get(0).identity().userAssignedIdentities().get("po").clientId()); + Assertions.assertEquals("ajionpimexgstxg", + model.value().get(0).identity().userAssignedIdentities().get("po").principalId()); + Assertions.assertEquals("oodqxhcrm", model.value().get(0).panEtag()); + Assertions.assertEquals("hjtckwhd", 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; + Assertions.assertEquals("yip", model.value().get(0).associatedSubscriptions().get(0)); + Assertions.assertEquals("sqwpgrjb", model.value().get(0).description()); + Assertions.assertEquals(DefaultMode.FIREWALL, model.value().get(0).defaultMode()); + Assertions.assertEquals("cjxvsnbyxqab", model.value().get(0).minAppIdVersion()); + Assertions.assertEquals("cyshurzafbljjgp", model.value().get(0).securityServices().vulnerabilityProfile()); + Assertions.assertEquals("oq", model.value().get(0).securityServices().antiSpywareProfile()); + Assertions.assertEquals("mkljavb", model.value().get(0).securityServices().antiVirusProfile()); + Assertions.assertEquals("dtqajzyulpkudj", model.value().get(0).securityServices().urlFilteringProfile()); + Assertions.assertEquals("lkhbz", model.value().get(0).securityServices().fileBlockingProfile()); + Assertions.assertEquals("epgzgqexz", model.value().get(0).securityServices().dnsSubscription()); + Assertions.assertEquals("c", model.value().get(0).securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("c", model.value().get(0).securityServices().outboundTrustCertificate()); + Assertions.assertEquals("f", model.nextLink()); } } 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 index 5cfd59983466..85d8c8bf9eb4 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -16,59 +16,58 @@ 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\"}}") + "{\"panEtag\":\"wbnguitnwui\",\"panLocation\":\"a\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"zuckyfi\",\"rfidfvzwdz\",\"htymw\",\"sdkf\"],\"description\":\"wxmnteiwao\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"ijcmmx\",\"securityServices\":{\"vulnerabilityProfile\":\"fufsrpymzi\",\"antiSpywareProfile\":\"sezcxtb\",\"antiVirusProfile\":\"gfycc\",\"urlFilteringProfile\":\"ewmdw\",\"fileBlockingProfile\":\"eiachboosflnr\",\"dnsSubscription\":\"fqpte\",\"outboundUnTrustCertificate\":\"zzvypyqrimzinp\",\"outboundTrustCertificate\":\"wjdk\"}}") .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()); + Assertions.assertEquals("wbnguitnwui", model.panEtag()); + Assertions.assertEquals("a", model.panLocation()); + Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); + Assertions.assertEquals("zuckyfi", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("wxmnteiwao", model.description()); + Assertions.assertEquals(DefaultMode.IPS, model.defaultMode()); + Assertions.assertEquals("ijcmmx", model.minAppIdVersion()); + Assertions.assertEquals("fufsrpymzi", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("sezcxtb", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("gfycc", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("ewmdw", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("eiachboosflnr", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("fqpte", model.securityServices().dnsSubscription()); + Assertions.assertEquals("zzvypyqrimzinp", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("wjdk", 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")); + = new GlobalRulestackResourceUpdateProperties().withPanEtag("wbnguitnwui") + .withPanLocation("a") + .withScope(ScopeType.GLOBAL) + .withAssociatedSubscriptions(Arrays.asList("zuckyfi", "rfidfvzwdz", "htymw", "sdkf")) + .withDescription("wxmnteiwao") + .withDefaultMode(DefaultMode.IPS) + .withMinAppIdVersion("ijcmmx") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("fufsrpymzi") + .withAntiSpywareProfile("sezcxtb") + .withAntiVirusProfile("gfycc") + .withUrlFilteringProfile("ewmdw") + .withFileBlockingProfile("eiachboosflnr") + .withDnsSubscription("fqpte") + .withOutboundUnTrustCertificate("zzvypyqrimzinp") + .withOutboundTrustCertificate("wjdk")); 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()); + Assertions.assertEquals("wbnguitnwui", model.panEtag()); + Assertions.assertEquals("a", model.panLocation()); + Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); + Assertions.assertEquals("zuckyfi", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("wxmnteiwao", model.description()); + Assertions.assertEquals(DefaultMode.IPS, model.defaultMode()); + Assertions.assertEquals("ijcmmx", model.minAppIdVersion()); + Assertions.assertEquals("fufsrpymzi", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("sezcxtb", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("gfycc", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("ewmdw", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("eiachboosflnr", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("fqpte", model.securityServices().dnsSubscription()); + Assertions.assertEquals("zzvypyqrimzinp", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("wjdk", 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 index 8101e6511604..0588b6c1577f 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -22,72 +22,76 @@ 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\"}}}") + "{\"location\":\"qxhocdgeablgphut\",\"identity\":{\"tenantId\":\"dvkaozw\",\"principalId\":\"ftyhxhurokf\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"lryplwckbasyy\":{\"clientId\":\"niwpwcukj\",\"principalId\":\"giawx\"},\"nqgoulzndli\":{\"clientId\":\"ddhsgcbacphe\",\"principalId\":\"ot\"},\"qqedqytbciqfou\":{\"clientId\":\"yqkgfg\",\"principalId\":\"madgakeqsrxyb\"}}},\"properties\":{\"panEtag\":\"mnkzsmod\",\"panLocation\":\"lougpbkw\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"uqktap\",\"pwgcuertu\"],\"description\":\"dosvqwhbmdgbbjf\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"bmbexppbhtqqro\",\"securityServices\":{\"vulnerabilityProfile\":\"fpsalgbqu\",\"antiSpywareProfile\":\"gjyjgzjaoyfhrtxi\",\"antiVirusProfile\":\"erkujys\",\"urlFilteringProfile\":\"eju\",\"fileBlockingProfile\":\"qawrlyxwj\",\"dnsSubscription\":\"prbnwbxgjvtbv\",\"outboundUnTrustCertificate\":\"sszdnru\",\"outboundTrustCertificate\":\"guhmuouqfpr\"}}}") .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("qxhocdgeablgphut", model.location()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("niwpwcukj", model.identity().userAssignedIdentities().get("lryplwckbasyy").clientId()); + Assertions.assertEquals("giawx", model.identity().userAssignedIdentities().get("lryplwckbasyy").principalId()); + Assertions.assertEquals("mnkzsmod", model.properties().panEtag()); + Assertions.assertEquals("lougpbkw", 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("uqktap", model.properties().associatedSubscriptions().get(0)); + Assertions.assertEquals("dosvqwhbmdgbbjf", 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()); + Assertions.assertEquals("bmbexppbhtqqro", model.properties().minAppIdVersion()); + Assertions.assertEquals("fpsalgbqu", model.properties().securityServices().vulnerabilityProfile()); + Assertions.assertEquals("gjyjgzjaoyfhrtxi", model.properties().securityServices().antiSpywareProfile()); + Assertions.assertEquals("erkujys", model.properties().securityServices().antiVirusProfile()); + Assertions.assertEquals("eju", model.properties().securityServices().urlFilteringProfile()); + Assertions.assertEquals("qawrlyxwj", model.properties().securityServices().fileBlockingProfile()); + Assertions.assertEquals("prbnwbxgjvtbv", model.properties().securityServices().dnsSubscription()); + Assertions.assertEquals("sszdnru", model.properties().securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("guhmuouqfpr", model.properties().securityServices().outboundTrustCertificate()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GlobalRulestackResourceUpdate model = new GlobalRulestackResourceUpdate().withLocation("aqsqsycbkbfk") + GlobalRulestackResourceUpdate model = new GlobalRulestackResourceUpdate().withLocation("qxhocdgeablgphut") .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") + .withType(ManagedIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("lryplwckbasyy", + new AzureResourceManagerUserAssignedIdentity().withClientId("niwpwcukj").withPrincipalId("giawx"), + "nqgoulzndli", + new AzureResourceManagerUserAssignedIdentity().withClientId("ddhsgcbacphe").withPrincipalId("ot"), + "qqedqytbciqfou", + new AzureResourceManagerUserAssignedIdentity().withClientId("yqkgfg") + .withPrincipalId("madgakeqsrxyb")))) + .withProperties(new GlobalRulestackResourceUpdateProperties().withPanEtag("mnkzsmod") + .withPanLocation("lougpbkw") .withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions(Arrays.asList("cyddglmjthjqk", "pyeicxm")) - .withDescription("iwqvhkh") + .withAssociatedSubscriptions(Arrays.asList("uqktap", "pwgcuertu")) + .withDescription("dosvqwhbmdgbbjf") .withDefaultMode(DefaultMode.IPS) - .withMinAppIdVersion("gdtopbobjogh") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("u") - .withAntiSpywareProfile("a") - .withAntiVirusProfile("rzayv") - .withUrlFilteringProfile("pgvdf") - .withFileBlockingProfile("otkftutqxlngx") - .withDnsSubscription("fgugnxkrxdqmid") - .withOutboundUnTrustCertificate("hzrvqd") - .withOutboundTrustCertificate("bhj"))); + .withMinAppIdVersion("bmbexppbhtqqro") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("fpsalgbqu") + .withAntiSpywareProfile("gjyjgzjaoyfhrtxi") + .withAntiVirusProfile("erkujys") + .withUrlFilteringProfile("eju") + .withFileBlockingProfile("qawrlyxwj") + .withDnsSubscription("prbnwbxgjvtbv") + .withOutboundUnTrustCertificate("sszdnru") + .withOutboundTrustCertificate("guhmuouqfpr"))); 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("qxhocdgeablgphut", model.location()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("niwpwcukj", model.identity().userAssignedIdentities().get("lryplwckbasyy").clientId()); + Assertions.assertEquals("giawx", model.identity().userAssignedIdentities().get("lryplwckbasyy").principalId()); + Assertions.assertEquals("mnkzsmod", model.properties().panEtag()); + Assertions.assertEquals("lougpbkw", 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("uqktap", model.properties().associatedSubscriptions().get(0)); + Assertions.assertEquals("dosvqwhbmdgbbjf", 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()); + Assertions.assertEquals("bmbexppbhtqqro", model.properties().minAppIdVersion()); + Assertions.assertEquals("fpsalgbqu", model.properties().securityServices().vulnerabilityProfile()); + Assertions.assertEquals("gjyjgzjaoyfhrtxi", model.properties().securityServices().antiSpywareProfile()); + Assertions.assertEquals("erkujys", model.properties().securityServices().antiVirusProfile()); + Assertions.assertEquals("eju", model.properties().securityServices().urlFilteringProfile()); + Assertions.assertEquals("qawrlyxwj", model.properties().securityServices().fileBlockingProfile()); + Assertions.assertEquals("prbnwbxgjvtbv", model.properties().securityServices().dnsSubscription()); + Assertions.assertEquals("sszdnru", model.properties().securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("guhmuouqfpr", model.properties().securityServices().outboundTrustCertificate()); } // Use "Map.of" if available 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 index fec42e9cb90a..b4dd14204fa2 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.GlobalRulestackResourceInner; @@ -31,66 +31,63 @@ public final class GlobalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { 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\"}"; + = "{\"properties\":{\"panEtag\":\"atzv\",\"panLocation\":\"glbyvi\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"rxkjzwrgxffmshk\",\"fbkgozxwopdby\"],\"description\":\"izqaclnapxbiyg\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"knfsmfcttuxuuyil\",\"provisioningState\":\"Succeeded\",\"securityServices\":{\"vulnerabilityProfile\":\"quvre\",\"antiSpywareProfile\":\"rnjhvsujztczytqj\",\"antiVirusProfile\":\"h\",\"urlFilteringProfile\":\"unfprnjletlxs\",\"fileBlockingProfile\":\"pddouifamowaziyn\",\"dnsSubscription\":\"lqwzdvpiwhxqsz\",\"outboundUnTrustCertificate\":\"maajquhuxylr\",\"outboundTrustCertificate\":\"m\"}},\"location\":\"ygjbmzyospspsh\",\"identity\":{\"tenantId\":\"kyjpmspbps\",\"principalId\":\"fppyogtieyujtvcz\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"paglqivbgk\":{\"clientId\":\"rxmunjdxvgln\",\"principalId\":\"xl\"},\"bcpzgpxtivh\":{\"clientId\":\"khpzvuqdflv\",\"principalId\":\"iypfp\"}}},\"id\":\"nidibgqjxg\",\"name\":\"n\",\"type\":\"hgovfgp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); 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")), + .createOrUpdate("rytfmpcycil", new GlobalRulestackResourceInner().withLocation("wtlmjjyuo") + .withIdentity(new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.NONE) + .withUserAssignedIdentities(mapOf("aulk", + new AzureResourceManagerUserAssignedIdentity().withClientId("qbhsyrq") + .withPrincipalId("jqhden"), + "bpxuckpggqoweyi", + new AzureResourceManagerUserAssignedIdentity().withClientId("kdk").withPrincipalId("mjnnawtq"), + "xiw", + new AzureResourceManagerUserAssignedIdentity().withClientId("hlisngw") + .withPrincipalId("qqmpizruwnpqx")))) + .withPanEtag("caykggnoxuz") + .withPanLocation("ksxwpnd") + .withScope(ScopeType.GLOBAL) + .withAssociatedSubscriptions(Arrays.asList("znth", "twk")) + .withDescription("osrxuzvoa") + .withDefaultMode(DefaultMode.NONE) + .withMinAppIdVersion("q") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("bzahgxqd") + .withAntiSpywareProfile("rtltla") + .withAntiVirusProfile("ltzkatbhjmznnb") + .withUrlFilteringProfile("qeqala") + .withFileBlockingProfile("lagun") + .withDnsSubscription("gfebwlnb") + .withOutboundUnTrustCertificate("yreeudz") + .withOutboundTrustCertificate("vbpdqmjxlyyzglgo")), 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("ygjbmzyospspsh", response.location()); + Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("rxmunjdxvgln", + response.identity().userAssignedIdentities().get("paglqivbgk").clientId()); + Assertions.assertEquals("xl", response.identity().userAssignedIdentities().get("paglqivbgk").principalId()); + Assertions.assertEquals("atzv", response.panEtag()); + Assertions.assertEquals("glbyvi", response.panLocation()); Assertions.assertEquals(ScopeType.GLOBAL, response.scope()); - Assertions.assertEquals("bs", response.associatedSubscriptions().get(0)); - Assertions.assertEquals("xgrytfmp", response.description()); + Assertions.assertEquals("rxkjzwrgxffmshk", response.associatedSubscriptions().get(0)); + Assertions.assertEquals("izqaclnapxbiyg", 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()); + Assertions.assertEquals("knfsmfcttuxuuyil", response.minAppIdVersion()); + Assertions.assertEquals("quvre", response.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("rnjhvsujztczytqj", response.securityServices().antiSpywareProfile()); + Assertions.assertEquals("h", response.securityServices().antiVirusProfile()); + Assertions.assertEquals("unfprnjletlxs", response.securityServices().urlFilteringProfile()); + Assertions.assertEquals("pddouifamowaziyn", response.securityServices().fileBlockingProfile()); + Assertions.assertEquals("lqwzdvpiwhxqsz", response.securityServices().dnsSubscription()); + Assertions.assertEquals("maajquhuxylr", response.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("m", response.securityServices().outboundTrustCertificate()); } // Use "Map.of" if available 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 index 406724291b24..a49fe53f86c2 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.globalRulestacks().delete("gox", com.azure.core.util.Context.NONE); + manager.globalRulestacks().delete("pnulaiywzej", 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 index 4d244da8f912..1bdee2f6ed5a 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Changelog; @@ -21,21 +21,20 @@ public final class GlobalRulestacksGetChangeLogWithResponseMockTests { @Test public void testGetChangeLogWithResponse() throws Exception { String responseStr - = "{\"changes\":[\"wjedmurrxxgew\"],\"lastCommitted\":\"2021-06-22T20:24:57Z\",\"lastModified\":\"2021-05-29T11:10:18Z\"}"; + = "{\"changes\":[\"gcgbjb\",\"dlfgtdysnaq\",\"flq\",\"ctqhamzjrwdk\"],\"lastCommitted\":\"2021-10-20T22:55:55Z\",\"lastModified\":\"2021-03-01T23:08:24Z\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - Changelog response = manager.globalRulestacks() - .getChangeLogWithResponse("jiuqhibtozi", com.azure.core.util.Context.NONE) - .getValue(); + Changelog response + = manager.globalRulestacks().getChangeLogWithResponse("m", 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()); + Assertions.assertEquals("gcgbjb", response.changes().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T22:55:55Z"), response.lastCommitted()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-01T23:08:24Z"), 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 index ab61d55894bd..91156d023fe3 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; @@ -24,36 +24,37 @@ public final class GlobalRulestacksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { 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\"}"; + = "{\"properties\":{\"panEtag\":\"lkkshkbffmbmx\",\"panLocation\":\"rgywwp\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"ptfujgicgaaoept\",\"aqutdewemxswvruu\"],\"description\":\"zjgehkfkim\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"okffqyinljqepqwh\",\"provisioningState\":\"Succeeded\",\"securityServices\":{\"vulnerabilityProfile\":\"stshiy\",\"antiSpywareProfile\":\"velfcldu\",\"antiVirusProfile\":\"birdsvuwcobiegs\",\"urlFilteringProfile\":\"ninwjizc\",\"fileBlockingProfile\":\"nghgshej\",\"dnsSubscription\":\"bxqmu\",\"outboundUnTrustCertificate\":\"xlxqzvn\",\"outboundTrustCertificate\":\"sbycucrwnamikz\"}},\"location\":\"brqbsmswzi\",\"identity\":{\"tenantId\":\"uhok\",\"principalId\":\"uswhvhczznvfbycj\",\"type\":\"None\",\"userAssignedIdentities\":{\"dvnoamldsehaohdj\":{\"clientId\":\"i\",\"principalId\":\"vumwmxqh\"},\"nje\":{\"clientId\":\"flzokxco\",\"principalId\":\"e\"},\"pnpbswveflocc\":{\"clientId\":\"gltsxoat\",\"principalId\":\"g\"}}},\"id\":\"mozi\",\"name\":\"m\",\"type\":\"pgawtxxpkyjcxcjx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GlobalRulestackResource response - = manager.globalRulestacks().getWithResponse("uamwabzxrvxc", com.azure.core.util.Context.NONE).getValue(); + = manager.globalRulestacks().getWithResponse("deqvhp", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("igkxkbsazga", response.location()); + Assertions.assertEquals("brqbsmswzi", 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()); + Assertions.assertEquals("i", response.identity().userAssignedIdentities().get("dvnoamldsehaohdj").clientId()); + Assertions.assertEquals("vumwmxqh", + response.identity().userAssignedIdentities().get("dvnoamldsehaohdj").principalId()); + Assertions.assertEquals("lkkshkbffmbmx", response.panEtag()); + Assertions.assertEquals("rgywwp", response.panLocation()); + Assertions.assertEquals(ScopeType.LOCAL, response.scope()); + Assertions.assertEquals("ptfujgicgaaoept", response.associatedSubscriptions().get(0)); + Assertions.assertEquals("zjgehkfkim", response.description()); + Assertions.assertEquals(DefaultMode.NONE, response.defaultMode()); + Assertions.assertEquals("okffqyinljqepqwh", response.minAppIdVersion()); + Assertions.assertEquals("stshiy", response.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("velfcldu", response.securityServices().antiSpywareProfile()); + Assertions.assertEquals("birdsvuwcobiegs", response.securityServices().antiVirusProfile()); + Assertions.assertEquals("ninwjizc", response.securityServices().urlFilteringProfile()); + Assertions.assertEquals("nghgshej", response.securityServices().fileBlockingProfile()); + Assertions.assertEquals("bxqmu", response.securityServices().dnsSubscription()); + Assertions.assertEquals("xlxqzvn", response.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("sbycucrwnamikz", 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 index e6fe5c368ae0..bb07ba8ac8fb 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectListResponse; @@ -22,23 +22,23 @@ public final class GlobalRulestacksListAdvancedSecurityObjectsWithResponseMockTe @Test public void testListAdvancedSecurityObjectsWithResponse() throws Exception { String responseStr - = "{\"value\":{\"type\":\"xoe\",\"entry\":[{\"name\":\"injipnwjf\",\"description\":\"qlafcbahhpzpofoi\"},{\"name\":\"jwpfilkm\",\"description\":\"holvdn\"},{\"name\":\"viauogphua\",\"description\":\"vtiukyef\"}]},\"nextLink\":\"nmnahmnx\"}"; + = "{\"value\":{\"type\":\"lbnseqac\",\"entry\":[{\"name\":\"vpilg\",\"description\":\"oq\"},{\"name\":\"agmdit\",\"description\":\"eiookjbsah\"},{\"name\":\"tdtpdelqacslmo\",\"description\":\"ebnfxofvc\"}]},\"nextLink\":\"gdirazf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AdvSecurityObjectListResponse response = manager.globalRulestacks() - .listAdvancedSecurityObjectsWithResponse("lkm", AdvSecurityObjectTypeEnum.FEEDS, "zoyhlfbcgwg", 125495169, - com.azure.core.util.Context.NONE) + .listAdvancedSecurityObjectsWithResponse("jleziunjx", AdvSecurityObjectTypeEnum.URL_CUSTOM, "zantkwceg", + 1902347173, 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()); + Assertions.assertEquals("lbnseqac", response.value().type()); + Assertions.assertEquals("vpilg", response.value().entry().get(0).name()); + Assertions.assertEquals("oq", response.value().entry().get(0).description()); + Assertions.assertEquals("gdirazf", 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 index ed10f30b07db..6158bdfe9449 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListAppIdResponse; @@ -20,20 +20,22 @@ public final class GlobalRulestacksListAppIdsWithResponseMockTests { @Test public void testListAppIdsWithResponse() throws Exception { - String responseStr = "{\"value\":[\"wrsnewmozqvbu\",\"qmamhsycxhxzga\"],\"nextLink\":\"taboidvmf\"}"; + String responseStr + = "{\"value\":[\"tsysi\",\"fvcl\",\"lxnfuijtkbusqogs\",\"ikayiansharuj\"],\"nextLink\":\"iqxf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ListAppIdResponse response = manager.globalRulestacks() - .listAppIdsWithResponse("k", "jqirwrw", "ooxf", "i", 423706619, com.azure.core.util.Context.NONE) + .listAppIdsWithResponse("xejw", "bmdujtmvcopexc", "jurbuhhlkyqltqsr", "gtuwkff", 369277903, + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wrsnewmozqvbu", response.value().get(0)); - Assertions.assertEquals("taboidvmf", response.nextLink()); + Assertions.assertEquals("tsysi", response.value().get(0)); + Assertions.assertEquals("iqxf", 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 index 821bc6b73eb0..9fd1f942ff47 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListFirewallsResponse; @@ -20,21 +20,19 @@ public final class GlobalRulestacksListFirewallsWithResponseMockTests { @Test public void testListFirewallsWithResponse() throws Exception { - String responseStr - = "{\"value\":[\"hwpnulaiywzejywh\",\"lwkojpllndnpdw\",\"pqafgfugsnnfhy\",\"tefypococtfjgti\"],\"nextLink\":\"jvzuy\"}"; + String responseStr = "{\"value\":[\"wnlaxpu\",\"jqi\"],\"nextLink\":\"zvvitacgxmfcs\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - ListFirewallsResponse response = manager.globalRulestacks() - .listFirewallsWithResponse("obkauxofsh", com.azure.core.util.Context.NONE) - .getValue(); + ListFirewallsResponse response + = manager.globalRulestacks().listFirewallsWithResponse("f", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("hwpnulaiywzejywh", response.value().get(0)); - Assertions.assertEquals("jvzuy", response.nextLink()); + Assertions.assertEquals("wnlaxpu", response.value().get(0)); + Assertions.assertEquals("zvvitacgxmfcs", 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 index 824c4cbe4783..585ba3123c5b 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; @@ -25,39 +25,39 @@ public final class GlobalRulestacksListMockTests { @Test public void testList() throws Exception { 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\"}]}"; + = "{\"value\":[{\"properties\":{\"panEtag\":\"hs\",\"panLocation\":\"koj\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"npdwr\",\"qafgfugsnnfhyet\",\"fypococtfjgti\"],\"description\":\"jvzuy\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"lmuowo\",\"provisioningState\":\"NotSpecified\",\"securityServices\":{\"vulnerabilityProfile\":\"ropions\",\"antiSpywareProfile\":\"nw\",\"antiVirusProfile\":\"gajinnixjawrtmj\",\"urlFilteringProfile\":\"myccx\",\"fileBlockingProfile\":\"hcoxov\",\"dnsSubscription\":\"khenlus\",\"outboundUnTrustCertificate\":\"rd\",\"outboundTrustCertificate\":\"xtxrdcqtjvidt\"}},\"location\":\"gepuslvyjtc\",\"identity\":{\"tenantId\":\"kasizie\",\"principalId\":\"uughtuqfecjxeyg\",\"type\":\"None\",\"userAssignedIdentities\":{\"rhwpus\":{\"clientId\":\"ic\",\"principalId\":\"ewmrswnjlxu\"}}},\"id\":\"baqehgpdoh\",\"name\":\"jqatucoigebxn\",\"type\":\"nwfepbnwg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.globalRulestacks().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("xecwcro", response.iterator().next().location()); + Assertions.assertEquals("gepuslvyjtc", 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("ic", + response.iterator().next().identity().userAssignedIdentities().get("rhwpus").clientId()); + Assertions.assertEquals("ewmrswnjlxu", + response.iterator().next().identity().userAssignedIdentities().get("rhwpus").principalId()); + Assertions.assertEquals("hs", response.iterator().next().panEtag()); + Assertions.assertEquals("koj", 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", + Assertions.assertEquals("npdwr", response.iterator().next().associatedSubscriptions().get(0)); + Assertions.assertEquals("jvzuy", response.iterator().next().description()); + Assertions.assertEquals(DefaultMode.FIREWALL, response.iterator().next().defaultMode()); + Assertions.assertEquals("lmuowo", response.iterator().next().minAppIdVersion()); + Assertions.assertEquals("ropions", response.iterator().next().securityServices().vulnerabilityProfile()); + Assertions.assertEquals("nw", response.iterator().next().securityServices().antiSpywareProfile()); + Assertions.assertEquals("gajinnixjawrtmj", response.iterator().next().securityServices().antiVirusProfile()); + Assertions.assertEquals("myccx", response.iterator().next().securityServices().urlFilteringProfile()); + Assertions.assertEquals("hcoxov", response.iterator().next().securityServices().fileBlockingProfile()); + Assertions.assertEquals("khenlus", response.iterator().next().securityServices().dnsSubscription()); + Assertions.assertEquals("rd", response.iterator().next().securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("xtxrdcqtjvidt", 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 index b5f2e6b4fb53..acade788d4dd 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategoriesResponse; @@ -21,22 +21,21 @@ public final class GlobalRulestacksListPredefinedUrlCategoriesWithResponseMockTe @Test public void testListPredefinedUrlCategoriesWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"action\":\"szonwpngajinn\",\"name\":\"xjawrt\"},{\"action\":\"jfjmyccxlzh\",\"name\":\"oxovnekhenlusf\"},{\"action\":\"rd\",\"name\":\"jxtxrdc\"}],\"nextLink\":\"jvidttge\"}"; + = "{\"value\":[{\"action\":\"lwntsjgqrs\",\"name\":\"y\"},{\"action\":\"ruuuybnch\",\"name\":\"szizoyuelyetndnb\"},{\"action\":\"qyggagfl\",\"name\":\"lgmtrwahzjmucf\"}],\"nextLink\":\"yrplrohkpigqfus\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PredefinedUrlCategoriesResponse response = manager.globalRulestacks() - .listPredefinedUrlCategoriesWithResponse("urmlmuo", "olbauirop", 713536788, - com.azure.core.util.Context.NONE) + .listPredefinedUrlCategoriesWithResponse("er", "htvs", 817459269, 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()); + Assertions.assertEquals("lwntsjgqrs", response.value().get(0).action()); + Assertions.assertEquals("y", response.value().get(0).name()); + Assertions.assertEquals("yrplrohkpigqfus", 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 index fd71c2b36e91..058d46a397d6 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesResponse; @@ -22,23 +22,23 @@ public final class GlobalRulestacksListSecurityServicesWithResponseMockTests { @Test public void testListSecurityServicesWithResponse() throws Exception { String responseStr - = "{\"value\":{\"type\":\"ecjxe\",\"entry\":[{\"name\":\"tuhxuicb\",\"description\":\"wmrswnjlxuzrh\"},{\"name\":\"pusxjb\",\"description\":\"ehgpdohzjqatu\"},{\"name\":\"o\",\"description\":\"e\"}]},\"nextLink\":\"ncnwfepbnwgf\"}"; + = "{\"value\":{\"type\":\"hjnhgwydyynfsvk\",\"entry\":[{\"name\":\"bvqt\",\"description\":\"arfdlpukhpyrnei\"}]},\"nextLink\":\"cpeogkhnmgbrou\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SecurityServicesResponse response = manager.globalRulestacks() - .listSecurityServicesWithResponse("uslvyjtcvuwkasi", SecurityServicesTypeEnum.ANTI_VIRUS, "esfuught", - 1326845225, com.azure.core.util.Context.NONE) + .listSecurityServicesWithResponse("ckzmkwklsnox", SecurityServicesTypeEnum.FILE_BLOCKING, "mqeq", + 1409659836, 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()); + Assertions.assertEquals("hjnhgwydyynfsvk", response.value().type()); + Assertions.assertEquals("bvqt", response.value().entry().get(0).name()); + Assertions.assertEquals("arfdlpukhpyrnei", response.value().entry().get(0).description()); + Assertions.assertEquals("cpeogkhnmgbrou", 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 index a76b11704ff3..71ef17529971 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testRevertWithResponse() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.globalRulestacks().revertWithResponse("xjg", com.azure.core.util.Context.NONE); + manager.globalRulestacks().revertWithResponse("ddbhf", 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 index 20cbb844b17c..85d31bc9ad1f 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties; @@ -32,68 +32,62 @@ public final class GlobalRulestacksUpdateWithResponseMockTests { @Test public void testUpdateWithResponse() throws Exception { 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\"}"; + = "{\"properties\":{\"panEtag\":\"buzphdugn\",\"panLocation\":\"knpgoxgjiuq\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"z\",\"pqwjedm\",\"rrxxgewpktvq\",\"lkm\"],\"description\":\"zoyhlfbcgwg\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"oebqinjipn\",\"provisioningState\":\"Updating\",\"securityServices\":{\"vulnerabilityProfile\":\"qlafcbahhpzpofoi\",\"antiSpywareProfile\":\"w\",\"antiVirusProfile\":\"ilkmk\",\"urlFilteringProfile\":\"olvdnd\",\"fileBlockingProfile\":\"auo\",\"dnsSubscription\":\"huartv\",\"outboundUnTrustCertificate\":\"ukyefchnmnahmnxh\",\"outboundTrustCertificate\":\"jqirwrw\"}},\"location\":\"ooxf\",\"identity\":{\"tenantId\":\"hx\",\"principalId\":\"snewmozqvbub\",\"type\":\"None\",\"userAssignedIdentities\":{\"dvmfqhppub\":{\"clientId\":\"sycxhxzgaz\",\"principalId\":\"abo\"}}},\"id\":\"sepdfgk\",\"name\":\"tdherngbtcjuahok\",\"type\":\"tobkauxofshfph\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - 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(); + GlobalRulestackResource response + = manager.globalRulestacks() + .updateWithResponse("kqmhhaowjr", + new GlobalRulestackResourceUpdate().withLocation("vuporqzdfuydzv") + .withIdentity(new AzureResourceManagerManagedIdentityProperties() + .withType(ManagedIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("icrmnzh", + new AzureResourceManagerUserAssignedIdentity().withClientId("sz") + .withPrincipalId("iwtglxxhljfpg")))) + .withProperties(new GlobalRulestackResourceUpdateProperties().withPanEtag("qgjsxvpqcbfrmbod") + .withPanLocation("s") + .withScope(ScopeType.GLOBAL) + .withAssociatedSubscriptions(Arrays.asList("iibakcl", "c", "fr")) + .withDescription("ousxauzlwvsgmw") + .withDefaultMode(DefaultMode.NONE) + .withMinAppIdVersion("zizvuxmmk") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("thnwpzte") + .withAntiSpywareProfile("vmribiat") + .withAntiVirusProfile("plucfotangcfhnyk") + .withUrlFilteringProfile("ugswvx") + .withFileBlockingProfile("mzqwmvtxnjmxmcu") + .withDnsSubscription("dtcvcl") + .withOutboundUnTrustCertificate("npdkv") + .withOutboundTrustCertificate("abuiy"))), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("c", response.location()); + Assertions.assertEquals("ooxf", 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()); + Assertions.assertEquals("sycxhxzgaz", + response.identity().userAssignedIdentities().get("dvmfqhppub").clientId()); + Assertions.assertEquals("abo", response.identity().userAssignedIdentities().get("dvmfqhppub").principalId()); + Assertions.assertEquals("buzphdugn", response.panEtag()); + Assertions.assertEquals("knpgoxgjiuq", response.panLocation()); + Assertions.assertEquals(ScopeType.GLOBAL, response.scope()); + Assertions.assertEquals("z", response.associatedSubscriptions().get(0)); + Assertions.assertEquals("zoyhlfbcgwg", response.description()); + Assertions.assertEquals(DefaultMode.NONE, response.defaultMode()); + Assertions.assertEquals("oebqinjipn", response.minAppIdVersion()); + Assertions.assertEquals("qlafcbahhpzpofoi", response.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("w", response.securityServices().antiSpywareProfile()); + Assertions.assertEquals("ilkmk", response.securityServices().antiVirusProfile()); + Assertions.assertEquals("olvdnd", response.securityServices().urlFilteringProfile()); + Assertions.assertEquals("auo", response.securityServices().fileBlockingProfile()); + Assertions.assertEquals("huartv", response.securityServices().dnsSubscription()); + Assertions.assertEquals("ukyefchnmnahmnxh", response.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("jqirwrw", response.securityServices().outboundTrustCertificate()); } // Use "Map.of" if available 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 index 937644db76ce..0cf9601d9f70 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,17 +11,18 @@ 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()); + IpAddressSpace model + = BinaryData.fromString("{\"resourceId\":\"mrfhirctymox\",\"addressSpace\":\"tpipiwyczuhx\"}") + .toObject(IpAddressSpace.class); + Assertions.assertEquals("mrfhirctymox", model.resourceId()); + Assertions.assertEquals("tpipiwyczuhx", model.addressSpace()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IpAddressSpace model = new IpAddressSpace().withResourceId("hcexdrrvqa").withAddressSpace("kghtpwijnh"); + IpAddressSpace model = new IpAddressSpace().withResourceId("mrfhirctymox").withAddressSpace("tpipiwyczuhx"); model = BinaryData.fromObject(model).toObject(IpAddressSpace.class); - Assertions.assertEquals("hcexdrrvqa", model.resourceId()); - Assertions.assertEquals("kghtpwijnh", model.addressSpace()); + Assertions.assertEquals("mrfhirctymox", model.resourceId()); + Assertions.assertEquals("tpipiwyczuhx", 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 index def05bbdd3ce..e991a61399fc 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,17 +11,17 @@ public final class IpAddressTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IpAddress model = BinaryData.fromString("{\"resourceId\":\"svfycxzbfv\",\"address\":\"wvrvmtg\"}") + IpAddress model = BinaryData.fromString("{\"resourceId\":\"pqjlihhyusps\",\"address\":\"sdvlmfwdgzxulucv\"}") .toObject(IpAddress.class); - Assertions.assertEquals("svfycxzbfv", model.resourceId()); - Assertions.assertEquals("wvrvmtg", model.address()); + Assertions.assertEquals("pqjlihhyusps", model.resourceId()); + Assertions.assertEquals("sdvlmfwdgzxulucv", model.address()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IpAddress model = new IpAddress().withResourceId("svfycxzbfv").withAddress("wvrvmtg"); + IpAddress model = new IpAddress().withResourceId("pqjlihhyusps").withAddress("sdvlmfwdgzxulucv"); model = BinaryData.fromObject(model).toObject(IpAddress.class); - Assertions.assertEquals("svfycxzbfv", model.resourceId()); - Assertions.assertEquals("wvrvmtg", model.address()); + Assertions.assertEquals("pqjlihhyusps", model.resourceId()); + Assertions.assertEquals("sdvlmfwdgzxulucv", 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 index 5dac45527268..6eada06461df 100644 --- 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 @@ -1,31 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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\"}") + ListAppIdResponseInner model = BinaryData.fromString("{\"value\":[\"injep\"],\"nextLink\":\"tmryw\"}") .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()); + Assertions.assertEquals("injep", model.value().get(0)); + Assertions.assertEquals("tmryw", 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 index 75ffc1395847..98189172429e 100644 --- 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 @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 { @@ -18,14 +17,4 @@ public void testDeserialize() throws Exception { 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 index 169ef3412de9..32ab2ce3a848 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.localRules().delete("ht", "llhsvidmyt", "l", com.azure.core.util.Context.NONE); + manager.localRules().delete("vrbnyrukoil", "ciduwjle", "pjlh", 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 index 15aa9fffc000..f16ea1dc687b 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounter; @@ -21,35 +21,36 @@ public final class LocalRulesGetCountersWithResponseMockTests { @Test public void testGetCountersWithResponse() throws Exception { 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\"}"; + = "{\"priority\":\"vlzw\",\"ruleStackName\":\"gmfalkzazmgoked\",\"ruleListName\":\"qafkmkrokzrth\",\"firewallName\":\"twpqrtva\",\"ruleName\":\"znq\",\"hitCount\":873197720,\"appSeen\":{\"count\":1482907808,\"appSeenList\":[{\"title\":\"eagmceituug\",\"category\":\"dhfpjstlzmbl\",\"subCategory\":\"yjdeolctaebfs\",\"risk\":\"rledjcu\",\"tag\":\"tb\",\"technology\":\"tqi\",\"standardPorts\":\"d\"},{\"title\":\"zvsgeafgfosehxlz\",\"category\":\"xezppk\",\"subCategory\":\"waaeskyfjl\",\"risk\":\"zeqtoyrplixlajml\",\"tag\":\"pq\",\"technology\":\"evhamfowg\",\"standardPorts\":\"btmkekxpkzwaq\"},{\"title\":\"ofqovchiqbplv\",\"category\":\"idu\",\"subCategory\":\"ztekxbyjgmsfep\",\"risk\":\"yihpqadagrh\",\"tag\":\"dicxdw\",\"technology\":\"jfowxwy\",\"standardPorts\":\"vcxjsgbipcukdvek\"},{\"title\":\"buhoduchv\",\"category\":\"scrdp\",\"subCategory\":\"bfdyjduss\",\"risk\":\"yszekbhwlka\",\"tag\":\"ggkrehbf\",\"technology\":\"n\",\"standardPorts\":\"ybff\"}]},\"timestamp\":\"2020-12-23T02:51:33Z\",\"requestTimestamp\":\"2021-06-08T15:40:26Z\",\"lastUpdatedTimestamp\":\"2021-06-15T23:31:14Z\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RuleCounter response = manager.localRules() - .getCountersWithResponse("glxpnovyoanfbcsw", "agyw", "t", "igvjrktp", com.azure.core.util.Context.NONE) + .getCountersWithResponse("akw", "eivmak", "hysowljuxlkbect", "tfjmskdchmaiub", + 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()); + Assertions.assertEquals("vlzw", response.priority()); + Assertions.assertEquals("gmfalkzazmgoked", response.ruleStackName()); + Assertions.assertEquals("qafkmkrokzrth", response.ruleListName()); + Assertions.assertEquals("twpqrtva", response.firewallName()); + Assertions.assertEquals("znq", response.ruleName()); + Assertions.assertEquals(873197720, response.hitCount()); + Assertions.assertEquals(1482907808, response.appSeen().count()); + Assertions.assertEquals("eagmceituug", response.appSeen().appSeenList().get(0).title()); + Assertions.assertEquals("dhfpjstlzmbl", response.appSeen().appSeenList().get(0).category()); + Assertions.assertEquals("yjdeolctaebfs", response.appSeen().appSeenList().get(0).subCategory()); + Assertions.assertEquals("rledjcu", response.appSeen().appSeenList().get(0).risk()); + Assertions.assertEquals("tb", response.appSeen().appSeenList().get(0).tag()); + Assertions.assertEquals("tqi", response.appSeen().appSeenList().get(0).technology()); + Assertions.assertEquals("d", response.appSeen().appSeenList().get(0).standardPorts()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-23T02:51:33Z"), response.timestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-08T15:40:26Z"), response.requestTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T23:31:14Z"), 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 index 0b0091694236..60693d311dbd 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,10 +25,10 @@ public void testRefreshCountersWithResponse() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.localRules() - .refreshCountersWithResponse("vrbnyrukoil", "ciduwjle", "pjlh", "yxpzruzythqk", + .refreshCountersWithResponse("eoagsqta", "dusr", "xxfavsqwudohzilf", "nl", 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 index e7c38986364c..020def082407 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounterReset; @@ -21,23 +21,23 @@ public final class LocalRulesResetCountersWithResponseMockTests { @Test public void testResetCountersWithResponse() throws Exception { String responseStr - = "{\"priority\":\"zuvrzmzqmz\",\"ruleStackName\":\"rb\",\"ruleListName\":\"vnmdyfoeboj\",\"firewallName\":\"pp\",\"ruleName\":\"aohoqkpjtnq\"}"; + = "{\"priority\":\"vgohtw\",\"ruleStackName\":\"qilrixysfn\",\"ruleListName\":\"sqywwwmhkru\",\"firewallName\":\"edrympmlqo\",\"ruleName\":\"hzdue\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RuleCounterReset response = manager.localRules() - .resetCountersWithResponse("whbgxvellvul", "xdm", "itmujdtvm", "lyymffhmjpddny", + .resetCountersWithResponse("kpsimsfeypofqp", "bh", "qgsdr", "mttjxophgerh", 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()); + Assertions.assertEquals("qilrixysfn", response.ruleStackName()); + Assertions.assertEquals("sqywwwmhkru", response.ruleListName()); + Assertions.assertEquals("edrympmlqo", response.firewallName()); + Assertions.assertEquals("hzdue", 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 index dbed8e340526..d2915c8c9e46 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -21,85 +21,79 @@ 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\"}") + "{\"properties\":{\"panEtag\":\"wmn\",\"panLocation\":\"ttijfybvpoekrs\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"huzqgn\",\"dgkynscliqhzvhxn\",\"omtkub\"],\"description\":\"ppnvdxz\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"frbbc\",\"provisioningState\":\"Updating\",\"securityServices\":{\"vulnerabilityProfile\":\"tltdhlfkqojpy\",\"antiSpywareProfile\":\"gtrd\",\"antiVirusProfile\":\"ifmzzsd\",\"urlFilteringProfile\":\"brn\",\"fileBlockingProfile\":\"u\",\"dnsSubscription\":\"prafwgckhoc\",\"outboundUnTrustCertificate\":\"d\",\"outboundTrustCertificate\":\"fwafqrouda\"}},\"identity\":{\"tenantId\":\"vehhrvkbunzozu\",\"principalId\":\"cxgkmoyxcdyui\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"fukiscvwmzhw\":{\"clientId\":\"nbzydvfvfcj\",\"principalId\":\"eoisrvhmgor\"}}},\"location\":\"efaxvxilc\",\"tags\":{\"jfzqlqhycavodgg\":\"nhnzeyqxt\",\"nlrariaawiuagy\":\"dbeesmie\"},\"id\":\"wqfbylyrfgiagt\",\"name\":\"ojocqwogf\",\"type\":\"zjvusfzldmo\"}") .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()); + Assertions.assertEquals("efaxvxilc", model.location()); + Assertions.assertEquals("nhnzeyqxt", model.tags().get("jfzqlqhycavodgg")); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals("nbzydvfvfcj", + model.identity().userAssignedIdentities().get("fukiscvwmzhw").clientId()); + Assertions.assertEquals("eoisrvhmgor", + model.identity().userAssignedIdentities().get("fukiscvwmzhw").principalId()); + Assertions.assertEquals("wmn", model.panEtag()); + Assertions.assertEquals("ttijfybvpoekrs", model.panLocation()); + Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); + Assertions.assertEquals("huzqgn", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("ppnvdxz", model.description()); + Assertions.assertEquals(DefaultMode.IPS, model.defaultMode()); + Assertions.assertEquals("frbbc", model.minAppIdVersion()); + Assertions.assertEquals("tltdhlfkqojpy", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("gtrd", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("ifmzzsd", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("brn", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("u", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("prafwgckhoc", model.securityServices().dnsSubscription()); + Assertions.assertEquals("d", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("fwafqrouda", 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")); + LocalRulestackResourceInner model = new LocalRulestackResourceInner().withLocation("efaxvxilc") + .withTags(mapOf("jfzqlqhycavodgg", "nhnzeyqxt", "nlrariaawiuagy", "dbeesmie")) + .withIdentity(new AzureResourceManagerManagedIdentityProperties() + .withType(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("fukiscvwmzhw", + new AzureResourceManagerUserAssignedIdentity().withClientId("nbzydvfvfcj") + .withPrincipalId("eoisrvhmgor")))) + .withPanEtag("wmn") + .withPanLocation("ttijfybvpoekrs") + .withScope(ScopeType.GLOBAL) + .withAssociatedSubscriptions(Arrays.asList("huzqgn", "dgkynscliqhzvhxn", "omtkub")) + .withDescription("ppnvdxz") + .withDefaultMode(DefaultMode.IPS) + .withMinAppIdVersion("frbbc") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("tltdhlfkqojpy") + .withAntiSpywareProfile("gtrd") + .withAntiVirusProfile("ifmzzsd") + .withUrlFilteringProfile("brn") + .withFileBlockingProfile("u") + .withDnsSubscription("prafwgckhoc") + .withOutboundUnTrustCertificate("d") + .withOutboundTrustCertificate("fwafqrouda")); 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()); + Assertions.assertEquals("efaxvxilc", model.location()); + Assertions.assertEquals("nhnzeyqxt", model.tags().get("jfzqlqhycavodgg")); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals("nbzydvfvfcj", + model.identity().userAssignedIdentities().get("fukiscvwmzhw").clientId()); + Assertions.assertEquals("eoisrvhmgor", + model.identity().userAssignedIdentities().get("fukiscvwmzhw").principalId()); + Assertions.assertEquals("wmn", model.panEtag()); + Assertions.assertEquals("ttijfybvpoekrs", model.panLocation()); + Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); + Assertions.assertEquals("huzqgn", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("ppnvdxz", model.description()); + Assertions.assertEquals(DefaultMode.IPS, model.defaultMode()); + Assertions.assertEquals("frbbc", model.minAppIdVersion()); + Assertions.assertEquals("tltdhlfkqojpy", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("gtrd", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("ifmzzsd", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("brn", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("u", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("prafwgckhoc", model.securityServices().dnsSubscription()); + Assertions.assertEquals("d", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("fwafqrouda", model.securityServices().outboundTrustCertificate()); } // Use "Map.of" if available 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 index dc3888a6371c..f56599609924 100644 --- 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 @@ -1,197 +1,44 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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.implementation.models.LocalRulestackResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"panEtag\":\"z\",\"panLocation\":\"cse\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"pjhlf\",\"swpchwahfbousn\",\"epgfew\",\"twly\"],\"description\":\"ncxykxhdjhlimm\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"h\",\"provisioningState\":\"Failed\",\"securityServices\":{\"vulnerabilityProfile\":\"xvxcjzhq\",\"antiSpywareProfile\":\"xfpxtgqscja\",\"antiVirusProfile\":\"t\",\"urlFilteringProfile\":\"hdqazkmtgguwp\",\"fileBlockingProfile\":\"r\",\"dnsSubscription\":\"civmmg\",\"outboundUnTrustCertificate\":\"cf\",\"outboundTrustCertificate\":\"rxgkne\"}},\"identity\":{\"tenantId\":\"inzqodfvpgs\",\"principalId\":\"xgsg\",\"type\":\"None\",\"userAssignedIdentities\":{\"vetnwsdtutn\":{\"clientId\":\"djtxvzflbq\",\"principalId\":\"aqvlgafcqusr\"},\"kuqgsjjxundxgket\":{\"clientId\":\"duy\",\"principalId\":\"uzhyrmewipmvekdx\"},\"gpmuneqsxvmhfbuz\":{\"clientId\":\"hhzjhfj\",\"principalId\":\"vvmu\"}}},\"location\":\"ihsasb\",\"tags\":{\"uemsly\":\"ypoh\"},\"id\":\"sqy\",\"name\":\"pfoobr\",\"type\":\"ttymsjny\"},{\"properties\":{\"panEtag\":\"dnfwqzdzg\",\"panLocation\":\"la\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"qlyvijo\",\"wivkxo\"],\"description\":\"un\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"rtikvcpwpg\",\"provisioningState\":\"Canceled\",\"securityServices\":{\"vulnerabilityProfile\":\"vtsoxf\",\"antiSpywareProfile\":\"enxpmyyefr\",\"antiVirusProfile\":\"pdnqqskawaoqvmmb\",\"urlFilteringProfile\":\"qfr\",\"fileBlockingProfile\":\"lkzmegnitgvkxl\",\"dnsSubscription\":\"qdrfegcealzxwhc\",\"outboundUnTrustCertificate\":\"symoyq\",\"outboundTrustCertificate\":\"wigdi\"}},\"identity\":{\"tenantId\":\"bxgomfaj\",\"principalId\":\"asqvd\",\"type\":\"None\",\"userAssignedIdentities\":{\"skgfmocwahpq\":{\"clientId\":\"uxakjsqzhzbezk\",\"principalId\":\"msidxasicddyvv\"}}},\"location\":\"tjeaahhvjhh\",\"tags\":{\"idjks\":\"zybbj\"},\"id\":\"xkyxvxevblbj\",\"name\":\"dnlj\",\"type\":\"age\"}],\"nextLink\":\"ulxunsmjbnkpp\"}") .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("ihsasb", model.value().get(0).location()); + Assertions.assertEquals("ypoh", model.value().get(0).tags().get("uemsly")); + Assertions.assertEquals(ManagedIdentityType.NONE, model.value().get(0).identity().type()); + Assertions.assertEquals("djtxvzflbq", + model.value().get(0).identity().userAssignedIdentities().get("vetnwsdtutn").clientId()); + Assertions.assertEquals("aqvlgafcqusr", + model.value().get(0).identity().userAssignedIdentities().get("vetnwsdtutn").principalId()); + Assertions.assertEquals("z", model.value().get(0).panEtag()); + Assertions.assertEquals("cse", 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("pjhlf", model.value().get(0).associatedSubscriptions().get(0)); + Assertions.assertEquals("ncxykxhdjhlimm", 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; + Assertions.assertEquals("h", model.value().get(0).minAppIdVersion()); + Assertions.assertEquals("xvxcjzhq", model.value().get(0).securityServices().vulnerabilityProfile()); + Assertions.assertEquals("xfpxtgqscja", model.value().get(0).securityServices().antiSpywareProfile()); + Assertions.assertEquals("t", model.value().get(0).securityServices().antiVirusProfile()); + Assertions.assertEquals("hdqazkmtgguwp", model.value().get(0).securityServices().urlFilteringProfile()); + Assertions.assertEquals("r", model.value().get(0).securityServices().fileBlockingProfile()); + Assertions.assertEquals("civmmg", model.value().get(0).securityServices().dnsSubscription()); + Assertions.assertEquals("cf", model.value().get(0).securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("rxgkne", model.value().get(0).securityServices().outboundTrustCertificate()); + Assertions.assertEquals("ulxunsmjbnkpp", model.nextLink()); } } 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 index 4346cf5fe04f..c313b9f938f1 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -16,58 +16,57 @@ 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\"}}") + "{\"panEtag\":\"nhl\",\"panLocation\":\"rqnkkzjcjbtr\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"vibr\"],\"description\":\"jsto\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"tpkxztmoobklft\",\"securityServices\":{\"vulnerabilityProfile\":\"fc\",\"antiSpywareProfile\":\"mpimaqxzhemjyh\",\"antiVirusProfile\":\"uj\",\"urlFilteringProfile\":\"t\",\"fileBlockingProfile\":\"ozzwculkba\",\"dnsSubscription\":\"fajnjwltlwtjjguk\",\"outboundUnTrustCertificate\":\"lhsnvkcdmx\",\"outboundTrustCertificate\":\"poaimlnwiaaomyl\"}}") .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()); + Assertions.assertEquals("nhl", model.panEtag()); + Assertions.assertEquals("rqnkkzjcjbtr", model.panLocation()); + Assertions.assertEquals(ScopeType.LOCAL, model.scope()); + Assertions.assertEquals("vibr", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("jsto", model.description()); + Assertions.assertEquals(DefaultMode.NONE, model.defaultMode()); + Assertions.assertEquals("tpkxztmoobklft", model.minAppIdVersion()); + Assertions.assertEquals("fc", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("mpimaqxzhemjyh", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("uj", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("t", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("ozzwculkba", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("fajnjwltlwtjjguk", model.securityServices().dnsSubscription()); + Assertions.assertEquals("lhsnvkcdmx", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("poaimlnwiaaomyl", 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")); + LocalRulestackResourceUpdateProperties model = new LocalRulestackResourceUpdateProperties().withPanEtag("nhl") + .withPanLocation("rqnkkzjcjbtr") + .withScope(ScopeType.LOCAL) + .withAssociatedSubscriptions(Arrays.asList("vibr")) + .withDescription("jsto") + .withDefaultMode(DefaultMode.NONE) + .withMinAppIdVersion("tpkxztmoobklft") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("fc") + .withAntiSpywareProfile("mpimaqxzhemjyh") + .withAntiVirusProfile("uj") + .withUrlFilteringProfile("t") + .withFileBlockingProfile("ozzwculkba") + .withDnsSubscription("fajnjwltlwtjjguk") + .withOutboundUnTrustCertificate("lhsnvkcdmx") + .withOutboundTrustCertificate("poaimlnwiaaomyl")); 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()); + Assertions.assertEquals("nhl", model.panEtag()); + Assertions.assertEquals("rqnkkzjcjbtr", model.panLocation()); + Assertions.assertEquals(ScopeType.LOCAL, model.scope()); + Assertions.assertEquals("vibr", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("jsto", model.description()); + Assertions.assertEquals(DefaultMode.NONE, model.defaultMode()); + Assertions.assertEquals("tpkxztmoobklft", model.minAppIdVersion()); + Assertions.assertEquals("fc", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("mpimaqxzhemjyh", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("uj", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("t", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("ozzwculkba", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("fajnjwltlwtjjguk", model.securityServices().dnsSubscription()); + Assertions.assertEquals("lhsnvkcdmx", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("poaimlnwiaaomyl", 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 index 3694513deae0..352c7bf4b27c 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -22,79 +22,71 @@ 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\"}}}") + "{\"identity\":{\"tenantId\":\"ylfsbtk\",\"principalId\":\"pysownbt\",\"type\":\"None\",\"userAssignedIdentities\":{\"cmisofie\":{\"clientId\":\"rj\",\"principalId\":\"to\"}}},\"tags\":{\"qdhcu\":\"foj\",\"khihihlhzds\":\"lcplc\",\"mvec\":\"tzbsrgnowcjhf\"},\"properties\":{\"panEtag\":\"xmwoteyowcluqo\",\"panLocation\":\"kqvgqouw\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"j\",\"yivqikfxcvhrfsp\"],\"description\":\"agr\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"teusqczkvyklxu\",\"securityServices\":{\"vulnerabilityProfile\":\"affmmfblcqc\",\"antiSpywareProfile\":\"bgq\",\"antiVirusProfile\":\"rtalmet\",\"urlFilteringProfile\":\"wgdsl\",\"fileBlockingProfile\":\"ihhrmo\",\"dnsSubscription\":\"z\",\"outboundUnTrustCertificate\":\"eypxiutcxapzhyr\",\"outboundTrustCertificate\":\"togebjoxsl\"}}}") .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("rj", model.identity().userAssignedIdentities().get("cmisofie").clientId()); + Assertions.assertEquals("to", model.identity().userAssignedIdentities().get("cmisofie").principalId()); + Assertions.assertEquals("foj", model.tags().get("qdhcu")); + Assertions.assertEquals("xmwoteyowcluqo", model.properties().panEtag()); + Assertions.assertEquals("kqvgqouw", 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()); + Assertions.assertEquals("j", model.properties().associatedSubscriptions().get(0)); + Assertions.assertEquals("agr", model.properties().description()); + Assertions.assertEquals(DefaultMode.NONE, model.properties().defaultMode()); + Assertions.assertEquals("teusqczkvyklxu", model.properties().minAppIdVersion()); + Assertions.assertEquals("affmmfblcqc", model.properties().securityServices().vulnerabilityProfile()); + Assertions.assertEquals("bgq", model.properties().securityServices().antiSpywareProfile()); + Assertions.assertEquals("rtalmet", model.properties().securityServices().antiVirusProfile()); + Assertions.assertEquals("wgdsl", model.properties().securityServices().urlFilteringProfile()); + Assertions.assertEquals("ihhrmo", model.properties().securityServices().fileBlockingProfile()); + Assertions.assertEquals("z", model.properties().securityServices().dnsSubscription()); + Assertions.assertEquals("eypxiutcxapzhyr", model.properties().securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("togebjoxsl", 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") + .withUserAssignedIdentities(mapOf("cmisofie", + new AzureResourceManagerUserAssignedIdentity().withClientId("rj").withPrincipalId("to")))) + .withTags(mapOf("qdhcu", "foj", "khihihlhzds", "lcplc", "mvec", "tzbsrgnowcjhf")) + .withProperties(new LocalRulestackResourceUpdateProperties().withPanEtag("xmwoteyowcluqo") + .withPanLocation("kqvgqouw") .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"))); + .withAssociatedSubscriptions(Arrays.asList("j", "yivqikfxcvhrfsp")) + .withDescription("agr") + .withDefaultMode(DefaultMode.NONE) + .withMinAppIdVersion("teusqczkvyklxu") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("affmmfblcqc") + .withAntiSpywareProfile("bgq") + .withAntiVirusProfile("rtalmet") + .withUrlFilteringProfile("wgdsl") + .withFileBlockingProfile("ihhrmo") + .withDnsSubscription("z") + .withOutboundUnTrustCertificate("eypxiutcxapzhyr") + .withOutboundTrustCertificate("togebjoxsl"))); 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("rj", model.identity().userAssignedIdentities().get("cmisofie").clientId()); + Assertions.assertEquals("to", model.identity().userAssignedIdentities().get("cmisofie").principalId()); + Assertions.assertEquals("foj", model.tags().get("qdhcu")); + Assertions.assertEquals("xmwoteyowcluqo", model.properties().panEtag()); + Assertions.assertEquals("kqvgqouw", 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()); + Assertions.assertEquals("j", model.properties().associatedSubscriptions().get(0)); + Assertions.assertEquals("agr", model.properties().description()); + Assertions.assertEquals(DefaultMode.NONE, model.properties().defaultMode()); + Assertions.assertEquals("teusqczkvyklxu", model.properties().minAppIdVersion()); + Assertions.assertEquals("affmmfblcqc", model.properties().securityServices().vulnerabilityProfile()); + Assertions.assertEquals("bgq", model.properties().securityServices().antiSpywareProfile()); + Assertions.assertEquals("rtalmet", model.properties().securityServices().antiVirusProfile()); + Assertions.assertEquals("wgdsl", model.properties().securityServices().urlFilteringProfile()); + Assertions.assertEquals("ihhrmo", model.properties().securityServices().fileBlockingProfile()); + Assertions.assertEquals("z", model.properties().securityServices().dnsSubscription()); + Assertions.assertEquals("eypxiutcxapzhyr", model.properties().securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("togebjoxsl", model.properties().securityServices().outboundTrustCertificate()); } // Use "Map.of" if available 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 index a03933eae051..37aa4a792031 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AzureResourceManagerManagedIdentityProperties; @@ -30,71 +30,63 @@ public final class LocalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { 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\"}"; + = "{\"properties\":{\"panEtag\":\"lhdyzmyckzex\",\"panLocation\":\"akckywym\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"jkdtfoh\",\"aogzvkiw\",\"siwdyjqur\"],\"description\":\"crraueekcsu\",\"defaultMode\":\"FIREWALL\",\"minAppIdVersion\":\"ddacbcbgydlqidy\",\"provisioningState\":\"Succeeded\",\"securityServices\":{\"vulnerabilityProfile\":\"tyrilkfbnrqqxvz\",\"antiSpywareProfile\":\"bnfnqtxjtoma\",\"antiVirusProfile\":\"wbnfddepl\",\"urlFilteringProfile\":\"qjn\",\"fileBlockingProfile\":\"zygleexahvm\",\"dnsSubscription\":\"hsbrcary\",\"outboundUnTrustCertificate\":\"jjzyvoaqajuve\",\"outboundTrustCertificate\":\"ptdmkrrbhmpful\"}},\"identity\":{\"tenantId\":\"fgybpmfbf\",\"principalId\":\"unmpzkrvfyifkdsc\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"gm\":{\"clientId\":\"ictnkjjwgcw\",\"principalId\":\"hbkgfyrt\"},\"ygevgwmseharx\":{\"clientId\":\"j\",\"principalId\":\"scdfpdqw\"},\"tpakf\":{\"clientId\":\"vqnrxtmbpj\",\"principalId\":\"nvwjhrsidqpxl\"},\"wmfjhp\":{\"clientId\":\"gatwmykyu\",\"principalId\":\"ym\"}}},\"location\":\"vjqdvdwkq\",\"tags\":{\"gnteta\":\"rlefgnaavu\",\"duyeuyl\":\"utnpdctuhspfefyi\",\"ybkcgsuthhllnmwy\":\"phm\",\"i\":\"efxexlf\"},\"id\":\"txtjrrlkmds\",\"name\":\"jhhxdlajf\",\"type\":\"xcxscvslxlh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - 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(); + LocalRulestackResource response = manager.localRulestacks() + .define("parybjufpt") + .withRegion("fajs") + .withExistingResourceGroup("apezkiswqjmdghs") + .withTags(mapOf("zzkivyhjr", "kmq", "solronqqlm", "iizjixlqfhefkwa", "hvuqbo", "nlqxsjxtele", "cnn", + "oolzqocarkuzl")) + .withIdentity( + new AzureResourceManagerManagedIdentityProperties().withType(ManagedIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("cnulgmnhjevdy", + new AzureResourceManagerUserAssignedIdentity().withClientId("irfqjpnqnoow") + .withPrincipalId("edenrexkxbhxv")))) + .withPanEtag("czjnc") + .withPanLocation("iyqvldaswv") + .withScope(ScopeType.LOCAL) + .withAssociatedSubscriptions(Arrays.asList("qzlgcndhzxrrfcfs", "hkhg", "nxu")) + .withDescription("kpphefsbzx") + .withDefaultMode(DefaultMode.FIREWALL) + .withMinAppIdVersion("omeikjcl") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("mwpfs") + .withAntiSpywareProfile("t") + .withAntiVirusProfile("zyqbxyxoyfpuq") + .withUrlFilteringProfile("qezxlhdj") + .withFileBlockingProfile("dcadwvpsozjiihjr") + .withDnsSubscription("bmrzoepnx") + .withOutboundUnTrustCertificate("v") + .withOutboundTrustCertificate("jkgv")) + .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("vjqdvdwkq", response.location()); + Assertions.assertEquals("rlefgnaavu", response.tags().get("gnteta")); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("ictnkjjwgcw", response.identity().userAssignedIdentities().get("gm").clientId()); + Assertions.assertEquals("hbkgfyrt", response.identity().userAssignedIdentities().get("gm").principalId()); + Assertions.assertEquals("lhdyzmyckzex", response.panEtag()); + Assertions.assertEquals("akckywym", 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()); + Assertions.assertEquals("jkdtfoh", response.associatedSubscriptions().get(0)); + Assertions.assertEquals("crraueekcsu", response.description()); + Assertions.assertEquals(DefaultMode.FIREWALL, response.defaultMode()); + Assertions.assertEquals("ddacbcbgydlqidy", response.minAppIdVersion()); + Assertions.assertEquals("tyrilkfbnrqqxvz", response.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("bnfnqtxjtoma", response.securityServices().antiSpywareProfile()); + Assertions.assertEquals("wbnfddepl", response.securityServices().antiVirusProfile()); + Assertions.assertEquals("qjn", response.securityServices().urlFilteringProfile()); + Assertions.assertEquals("zygleexahvm", response.securityServices().fileBlockingProfile()); + Assertions.assertEquals("hsbrcary", response.securityServices().dnsSubscription()); + Assertions.assertEquals("jjzyvoaqajuve", response.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("ptdmkrrbhmpful", response.securityServices().outboundTrustCertificate()); } // Use "Map.of" if available 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 index ae5b0905fad9..4a374196ed41 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.localRulestacks().delete("tdsbezax", "f", com.azure.core.util.Context.NONE); + manager.localRulestacks().delete("tiotzb", "d", 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 index 5f01d67edced..0dec68a0bd7c 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; @@ -24,40 +24,38 @@ public final class LocalRulestacksGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { 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\"}"; + = "{\"properties\":{\"panEtag\":\"fanraybfu\",\"panLocation\":\"frojsydgr\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"gywezskiec\",\"f\"],\"description\":\"zmxieqvdsmaklix\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"y\",\"provisioningState\":\"Updating\",\"securityServices\":{\"vulnerabilityProfile\":\"bx\",\"antiSpywareProfile\":\"oij\",\"antiVirusProfile\":\"dtblxpk\",\"urlFilteringProfile\":\"j\",\"fileBlockingProfile\":\"odqhyk\",\"dnsSubscription\":\"cnre\",\"outboundUnTrustCertificate\":\"hllizhceumoq\",\"outboundTrustCertificate\":\"kadppyibngq\"}},\"identity\":{\"tenantId\":\"ywrxw\",\"principalId\":\"dtluvvadswzsn\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"mouvbl\":{\"clientId\":\"owuowh\",\"principalId\":\"lnwy\"},\"cvjdrqcrjidhft\":{\"clientId\":\"okzkltr\",\"principalId\":\"wtdvrfmvli\"},\"kfnjyixhafrat\":{\"clientId\":\"vhdxlwyo\",\"principalId\":\"fqz\"}}},\"location\":\"mbjrou\",\"tags\":{\"al\":\"n\"},\"id\":\"jrhuzgf\",\"name\":\"on\",\"type\":\"tpusllywp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LocalRulestackResource response = manager.localRulestacks() - .getByResourceGroupWithResponse("yxey", "uqi", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("ijiitns", "xlzdesygrijwa", 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("mbjrou", response.location()); + Assertions.assertEquals("n", response.tags().get("al")); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("owuowh", response.identity().userAssignedIdentities().get("mouvbl").clientId()); + Assertions.assertEquals("lnwy", response.identity().userAssignedIdentities().get("mouvbl").principalId()); + Assertions.assertEquals("fanraybfu", response.panEtag()); + Assertions.assertEquals("frojsydgr", 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()); + Assertions.assertEquals("gywezskiec", response.associatedSubscriptions().get(0)); + Assertions.assertEquals("zmxieqvdsmaklix", response.description()); + Assertions.assertEquals(DefaultMode.IPS, response.defaultMode()); + Assertions.assertEquals("y", response.minAppIdVersion()); + Assertions.assertEquals("bx", response.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("oij", response.securityServices().antiSpywareProfile()); + Assertions.assertEquals("dtblxpk", response.securityServices().antiVirusProfile()); + Assertions.assertEquals("j", response.securityServices().urlFilteringProfile()); + Assertions.assertEquals("odqhyk", response.securityServices().fileBlockingProfile()); + Assertions.assertEquals("cnre", response.securityServices().dnsSubscription()); + Assertions.assertEquals("hllizhceumoq", response.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("kadppyibngq", 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 index bde940fe9125..41f1b7251b84 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Changelog; @@ -21,21 +21,21 @@ public final class LocalRulestacksGetChangeLogWithResponseMockTests { @Test public void testGetChangeLogWithResponse() throws Exception { String responseStr - = "{\"changes\":[\"epkpe\"],\"lastCommitted\":\"2021-06-28T20:48:42Z\",\"lastModified\":\"2021-07-29T17:20:07Z\"}"; + = "{\"changes\":[\"lmf\",\"jdoq\"],\"lastCommitted\":\"2021-02-22T14:13:44Z\",\"lastModified\":\"2021-03-26T23:45:40Z\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Changelog response = manager.localRulestacks() - .getChangeLogWithResponse("kzxuiz", "y", com.azure.core.util.Context.NONE) + .getChangeLogWithResponse("yngydgrpxncaki", "aondjrkclamgg", 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()); + Assertions.assertEquals("lmf", response.changes().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T14:13:44Z"), response.lastCommitted()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T23:45:40Z"), 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 index a94c1b9d04f1..5e2ccdbefe80 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.BooleanEnum; @@ -22,30 +22,30 @@ public final class LocalRulestacksGetSupportInfoWithResponseMockTests { @Test public void testGetSupportInfoWithResponse() throws Exception { 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\"}"; + = "{\"productSku\":\"ijjj\",\"productSerial\":\"va\",\"accountRegistered\":\"TRUE\",\"accountId\":\"zknxkv\",\"userDomainSupported\":\"TRUE\",\"userRegistered\":\"FALSE\",\"freeTrial\":\"TRUE\",\"freeTrialDaysLeft\":570636581,\"freeTrialCreditLeft\":335381854,\"helpURL\":\"gno\",\"supportURL\":\"k\",\"registerURL\":\"qo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SupportInfo response = manager.localRulestacks() - .getSupportInfoWithResponse("qiubxdukecpxda", "v", "hctmmkosz", com.azure.core.util.Context.NONE) + .getSupportInfoWithResponse("tygxhqfgq", "ayejsxtlgflwfgz", "iucijjcea", 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("ijjj", response.productSku()); + Assertions.assertEquals("va", response.productSerial()); + Assertions.assertEquals(BooleanEnum.TRUE, response.accountRegistered()); + Assertions.assertEquals("zknxkv", response.accountId()); Assertions.assertEquals(BooleanEnum.TRUE, response.userDomainSupported()); - Assertions.assertEquals(BooleanEnum.TRUE, response.userRegistered()); + Assertions.assertEquals(BooleanEnum.FALSE, 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()); + Assertions.assertEquals(570636581, response.freeTrialDaysLeft()); + Assertions.assertEquals(335381854, response.freeTrialCreditLeft()); + Assertions.assertEquals("gno", response.helpUrl()); + Assertions.assertEquals("k", response.supportUrl()); + Assertions.assertEquals("qo", 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 index 0969626f9674..67b3d47f6002 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectListResponse; @@ -22,23 +22,23 @@ public final class LocalRulestacksListAdvancedSecurityObjectsWithResponseMockTes @Test public void testListAdvancedSecurityObjectsWithResponse() throws Exception { String responseStr - = "{\"value\":{\"type\":\"gxnoqrxtdis\",\"entry\":[{\"name\":\"evhdlmydid\",\"description\":\"epfwwt\"},{\"name\":\"f\",\"description\":\"esxxhmwcdbckyoi\"},{\"name\":\"xkxhnegknjzrbhtm\",\"description\":\"lvukaobrlb\"}]},\"nextLink\":\"snbagnchjhg\"}"; + = "{\"value\":{\"type\":\"wypusuvjsl\",\"entry\":[{\"name\":\"wci\",\"description\":\"jsllfryvd\"}]},\"nextLink\":\"x\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AdvSecurityObjectListResponse response = manager.localRulestacks() - .listAdvancedSecurityObjectsWithResponse("yuuatvlmbjwcolbm", "lbnwtpcpahp", - AdvSecurityObjectTypeEnum.URL_CUSTOM, "rvxhmtfhocnxzcm", 762399451, com.azure.core.util.Context.NONE) + .listAdvancedSecurityObjectsWithResponse("jwpindedvabbxbh", "edeilb", AdvSecurityObjectTypeEnum.URL_CUSTOM, + "wfcfxzirzz", 1264754105, 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()); + Assertions.assertEquals("wypusuvjsl", response.value().type()); + Assertions.assertEquals("wci", response.value().entry().get(0).name()); + Assertions.assertEquals("jsllfryvd", response.value().entry().get(0).description()); + Assertions.assertEquals("x", response.nextLink()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsMockTests.java new file mode 100644 index 000000000000..f8d790d51d78 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsMockTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class LocalRulestacksListAppIdsMockTests { + @Test + public void testListAppIds() throws Exception { + String responseStr = "{\"value\":[\"qg\"]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.localRulestacks() + .listAppIds("dqacfrgnawbabgf", "ktyjmf", "zlfsyqkfrbzgowo", "qmje", "jcx", 2009268691, + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("qg", response.iterator().next()); + } +} 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 index 3124f28d9829..7704b740f549 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; @@ -25,41 +25,41 @@ public final class LocalRulestacksListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { 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\"}]}"; + = "{\"value\":[{\"properties\":{\"panEtag\":\"iuas\",\"panLocation\":\"rowsocnequy\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"qgrm\",\"qjkqevadrmmwi\",\"awvcmjzkxiid\",\"scz\"],\"description\":\"oswoqiqazugamx\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"coiisbamnppcce\",\"provisioningState\":\"Succeeded\",\"securityServices\":{\"vulnerabilityProfile\":\"sbezaxyfukzxuizh\",\"antiSpywareProfile\":\"nepk\",\"antiVirusProfile\":\"tiarxqiubxduk\",\"urlFilteringProfile\":\"pxdazv\",\"fileBlockingProfile\":\"ctmmkoszudbl\",\"dnsSubscription\":\"ntrpcaqkiof\",\"outboundUnTrustCertificate\":\"tfmhklbnldpvcb\",\"outboundTrustCertificate\":\"ezyquw\"}},\"identity\":{\"tenantId\":\"xut\",\"principalId\":\"brruyuuatv\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ahprzrvxhmtfhocn\":{\"clientId\":\"colbmxlb\",\"principalId\":\"tpc\"},\"jevhdlmydidw\":{\"clientId\":\"cmj\",\"principalId\":\"gxnoqrxtdis\"}}},\"location\":\"pfwwt\",\"tags\":{\"sxxh\":\"o\",\"kxhnegknj\":\"wcdbckyoik\",\"bpgsnbagnc\":\"rbhtmeplvukaobr\"},\"id\":\"jhgem\",\"name\":\"owa\",\"type\":\"ywalhjymxcg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.localRulestacks().listByResourceGroup("zrltixldzyyf", com.azure.core.util.Context.NONE); + = manager.localRulestacks().listByResourceGroup("ollgry", 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()); + Assertions.assertEquals("pfwwt", response.iterator().next().location()); + Assertions.assertEquals("o", response.iterator().next().tags().get("sxxh")); + Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); + Assertions.assertEquals("colbmxlb", + response.iterator().next().identity().userAssignedIdentities().get("ahprzrvxhmtfhocn").clientId()); + Assertions.assertEquals("tpc", + response.iterator().next().identity().userAssignedIdentities().get("ahprzrvxhmtfhocn").principalId()); + Assertions.assertEquals("iuas", response.iterator().next().panEtag()); + Assertions.assertEquals("rowsocnequy", response.iterator().next().panLocation()); + Assertions.assertEquals(ScopeType.LOCAL, response.iterator().next().scope()); + Assertions.assertEquals("qgrm", response.iterator().next().associatedSubscriptions().get(0)); + Assertions.assertEquals("oswoqiqazugamx", response.iterator().next().description()); + Assertions.assertEquals(DefaultMode.NONE, response.iterator().next().defaultMode()); + Assertions.assertEquals("coiisbamnppcce", response.iterator().next().minAppIdVersion()); + Assertions.assertEquals("sbezaxyfukzxuizh", + response.iterator().next().securityServices().vulnerabilityProfile()); + Assertions.assertEquals("nepk", response.iterator().next().securityServices().antiSpywareProfile()); + Assertions.assertEquals("tiarxqiubxduk", response.iterator().next().securityServices().antiVirusProfile()); + Assertions.assertEquals("pxdazv", response.iterator().next().securityServices().urlFilteringProfile()); + Assertions.assertEquals("ctmmkoszudbl", response.iterator().next().securityServices().fileBlockingProfile()); + Assertions.assertEquals("ntrpcaqkiof", response.iterator().next().securityServices().dnsSubscription()); + Assertions.assertEquals("tfmhklbnldpvcb", + response.iterator().next().securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("ezyquw", 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 index 16f3b2e8eb45..a18be02d3491 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListFirewallsResponse; @@ -20,20 +20,20 @@ public final class LocalRulestacksListFirewallsWithResponseMockTests { @Test public void testListFirewallsWithResponse() throws Exception { - String responseStr = "{\"value\":[\"ygtvxbyjanepub\",\"pkxyqvgxi\"],\"nextLink\":\"detv\"}"; + String responseStr = "{\"value\":[\"eebgvopemtuoqu\"],\"nextLink\":\"yegq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ListFirewallsResponse response = manager.localRulestacks() - .listFirewallsWithResponse("iw", "wxlboncqbazqicq", com.azure.core.util.Context.NONE) + .listFirewallsWithResponse("yjfqipubyznc", "k", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ygtvxbyjanepub", response.value().get(0)); - Assertions.assertEquals("detv", response.nextLink()); + Assertions.assertEquals("eebgvopemtuoqu", response.value().get(0)); + Assertions.assertEquals("yegq", 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 index 4c3b9da0c8df..d06e8cded10f 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.DefaultMode; @@ -25,40 +25,41 @@ public final class LocalRulestacksListMockTests { @Test public void testList() throws Exception { 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\"}]}"; + = "{\"value\":[{\"properties\":{\"panEtag\":\"agdrcls\",\"panLocation\":\"ljomevt\",\"scope\":\"LOCAL\",\"associatedSubscriptions\":[\"bvgjcodkkgj\",\"iytssikizbc\"],\"description\":\"q\",\"defaultMode\":\"IPS\",\"minAppIdVersion\":\"nrgmqsorhce\",\"provisioningState\":\"Updating\",\"securityServices\":{\"vulnerabilityProfile\":\"ykmxcpwzvm\",\"antiSpywareProfile\":\"ksqd\",\"antiVirusProfile\":\"wlwxlboncqbazqic\",\"urlFilteringProfile\":\"hygtv\",\"fileBlockingProfile\":\"yjanepubdp\",\"dnsSubscription\":\"yqvgxia\",\"outboundUnTrustCertificate\":\"etvohkxdxuwsaifm\",\"outboundTrustCertificate\":\"nosbz\"}},\"identity\":{\"tenantId\":\"gcv\",\"principalId\":\"cknjolgj\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"vxoqe\":{\"clientId\":\"els\",\"principalId\":\"rqz\"},\"yqbhd\":{\"clientId\":\"txwaljglzo\",\"principalId\":\"qwaafrqulhm\"},\"bnrzorpdltbqctq\":{\"clientId\":\"fjrqpjiyr\",\"principalId\":\"crgaxwmzwdf\"}}},\"location\":\"gxx\",\"tags\":{\"yig\":\"tgzdgv\",\"ngucaifpaurww\":\"aqqilzdcduwjoed\",\"wxdcvjwcyz\":\"ilfjqqacdmk\"},\"id\":\"akeciqchx\",\"name\":\"tuicds\",\"type\":\"wdfmmpzhzzwvywr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); 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()); + Assertions.assertEquals("gxx", response.iterator().next().location()); + Assertions.assertEquals("tgzdgv", response.iterator().next().tags().get("yig")); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_AND_USER_ASSIGNED, + response.iterator().next().identity().type()); + Assertions.assertEquals("els", + response.iterator().next().identity().userAssignedIdentities().get("vxoqe").clientId()); + Assertions.assertEquals("rqz", + response.iterator().next().identity().userAssignedIdentities().get("vxoqe").principalId()); + Assertions.assertEquals("agdrcls", response.iterator().next().panEtag()); + Assertions.assertEquals("ljomevt", response.iterator().next().panLocation()); + Assertions.assertEquals(ScopeType.LOCAL, response.iterator().next().scope()); + Assertions.assertEquals("bvgjcodkkgj", response.iterator().next().associatedSubscriptions().get(0)); + Assertions.assertEquals("q", response.iterator().next().description()); + Assertions.assertEquals(DefaultMode.IPS, response.iterator().next().defaultMode()); + Assertions.assertEquals("nrgmqsorhce", response.iterator().next().minAppIdVersion()); + Assertions.assertEquals("ykmxcpwzvm", response.iterator().next().securityServices().vulnerabilityProfile()); + Assertions.assertEquals("ksqd", response.iterator().next().securityServices().antiSpywareProfile()); + Assertions.assertEquals("wlwxlboncqbazqic", response.iterator().next().securityServices().antiVirusProfile()); + Assertions.assertEquals("hygtv", response.iterator().next().securityServices().urlFilteringProfile()); + Assertions.assertEquals("yjanepubdp", response.iterator().next().securityServices().fileBlockingProfile()); + Assertions.assertEquals("yqvgxia", response.iterator().next().securityServices().dnsSubscription()); + Assertions.assertEquals("etvohkxdxuwsaifm", + response.iterator().next().securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("nosbz", response.iterator().next().securityServices().outboundTrustCertificate()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesMockTests.java new file mode 100644 index 000000000000..1b7d5ba85e7c --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategory; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class LocalRulestacksListPredefinedUrlCategoriesMockTests { + @Test + public void testListPredefinedUrlCategories() throws Exception { + String responseStr = "{\"value\":[{\"action\":\"aevwjcnkot\",\"name\":\"lwuhvajmailfe\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.localRulestacks() + .listPredefinedUrlCategories("vn", "gflqqbtnyjp", "lxdbfvabmvms", 1081151366, + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("aevwjcnkot", response.iterator().next().action()); + Assertions.assertEquals("lwuhvajmailfe", response.iterator().next().name()); + } +} 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 index 7765ed803e29..a19cac075804 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesResponse; @@ -22,23 +22,23 @@ public final class LocalRulestacksListSecurityServicesWithResponseMockTests { @Test public void testListSecurityServicesWithResponse() throws Exception { String responseStr - = "{\"value\":{\"type\":\"afjrqpjiyrqjcrg\",\"entry\":[{\"name\":\"wmzwdfkbnrzorpdl\",\"description\":\"qctqjfg\"},{\"name\":\"xsaetg\",\"description\":\"gvpyigdaqqilzdc\"},{\"name\":\"uwjoedxnguca\",\"description\":\"pa\"}]},\"nextLink\":\"wwgilfjqqacdm\"}"; + = "{\"value\":{\"type\":\"eof\",\"entry\":[{\"name\":\"fnnxrkad\",\"description\":\"ynnfmuiii\"},{\"name\":\"ipfohykfkx\",\"description\":\"cbrwjiutgnjizbe\"}]},\"nextLink\":\"oiymrvzbjuyrsrzi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SecurityServicesResponse response = manager.localRulestacks() - .listSecurityServicesWithResponse("jglzoblqwaafrq", "lhm", SecurityServicesTypeEnum.ANTI_VIRUS, "qb", - 826879471, com.azure.core.util.Context.NONE) + .listSecurityServicesWithResponse("jjzakzwjiqullqx", "dmvr", SecurityServicesTypeEnum.FILE_BLOCKING, + "mqerndb", 1077842907, 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()); + Assertions.assertEquals("eof", response.value().type()); + Assertions.assertEquals("fnnxrkad", response.value().entry().get(0).name()); + Assertions.assertEquals("ynnfmuiii", response.value().entry().get(0).description()); + Assertions.assertEquals("oiymrvzbjuyrsrzi", 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 index 935ea90b9fc3..e515aa469872 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testRevertWithResponse() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.localRulestacks().revertWithResponse("xwxdcvjwc", "z", com.azure.core.util.Context.NONE); + manager.localRulestacks().revertWithResponse("c", "ixgbdsuifrevk", 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 index db22b2a1aee7..af6454e56742 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,21 +13,21 @@ 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\"}") + "{\"marketplaceSubscriptionId\":\"rc\",\"offerId\":\"pyklyhpluodpvru\",\"publisherId\":\"dlgzibthostgkt\",\"marketplaceSubscriptionStatus\":\"Subscribed\"}") .toObject(MarketplaceDetails.class); - Assertions.assertEquals("wubxc", model.offerId()); - Assertions.assertEquals("ihwqknfdntwjchr", model.publisherId()); - Assertions.assertEquals(MarketplaceSubscriptionStatus.NOT_STARTED, model.marketplaceSubscriptionStatus()); + Assertions.assertEquals("pyklyhpluodpvru", model.offerId()); + Assertions.assertEquals("dlgzibthostgkt", model.publisherId()); + Assertions.assertEquals(MarketplaceSubscriptionStatus.SUBSCRIBED, model.marketplaceSubscriptionStatus()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MarketplaceDetails model = new MarketplaceDetails().withOfferId("wubxc") - .withPublisherId("ihwqknfdntwjchr") - .withMarketplaceSubscriptionStatus(MarketplaceSubscriptionStatus.NOT_STARTED); + MarketplaceDetails model = new MarketplaceDetails().withOfferId("pyklyhpluodpvru") + .withPublisherId("dlgzibthostgkt") + .withMarketplaceSubscriptionStatus(MarketplaceSubscriptionStatus.SUBSCRIBED); model = BinaryData.fromObject(model).toObject(MarketplaceDetails.class); - Assertions.assertEquals("wubxc", model.offerId()); - Assertions.assertEquals("ihwqknfdntwjchr", model.publisherId()); - Assertions.assertEquals(MarketplaceSubscriptionStatus.NOT_STARTED, model.marketplaceSubscriptionStatus()); + Assertions.assertEquals("pyklyhpluodpvru", model.offerId()); + Assertions.assertEquals("dlgzibthostgkt", model.publisherId()); + Assertions.assertEquals(MarketplaceSubscriptionStatus.SUBSCRIBED, model.marketplaceSubscriptionStatus()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallResourceInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallResourceInnerTests.java new file mode 100644 index 000000000000..502dd1dcc03d --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallResourceInnerTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; +import org.junit.jupiter.api.Assertions; + +public final class MetricsObjectFirewallResourceInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MetricsObjectFirewallResourceInner model = BinaryData.fromString( + "{\"properties\":{\"applicationInsightsResourceId\":\"ynenlsvxeizz\",\"applicationInsightsConnectionString\":\"wklnsrmffeyc\",\"panEtag\":\"ktp\",\"provisioningState\":\"Deleted\"},\"id\":\"rteeamm\",\"name\":\"qiekkkzddrt\",\"type\":\"g\"}") + .toObject(MetricsObjectFirewallResourceInner.class); + Assertions.assertEquals("ynenlsvxeizz", model.applicationInsightsResourceId()); + Assertions.assertEquals("wklnsrmffeyc", model.applicationInsightsConnectionString()); + Assertions.assertEquals("ktp", model.panEtag()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MetricsObjectFirewallResourceInner model + = new MetricsObjectFirewallResourceInner().withApplicationInsightsResourceId("ynenlsvxeizz") + .withApplicationInsightsConnectionString("wklnsrmffeyc") + .withPanEtag("ktp"); + model = BinaryData.fromObject(model).toObject(MetricsObjectFirewallResourceInner.class); + Assertions.assertEquals("ynenlsvxeizz", model.applicationInsightsResourceId()); + Assertions.assertEquals("wklnsrmffeyc", model.applicationInsightsConnectionString()); + Assertions.assertEquals("ktp", model.panEtag()); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallResourceListResultTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallResourceListResultTests.java new file mode 100644 index 000000000000..5db0e2f85631 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallResourceListResultTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.MetricsObjectFirewallResourceListResult; +import org.junit.jupiter.api.Assertions; + +public final class MetricsObjectFirewallResourceListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MetricsObjectFirewallResourceListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"applicationInsightsResourceId\":\"s\",\"applicationInsightsConnectionString\":\"wprtu\",\"panEtag\":\"sawddjibabxvi\",\"provisioningState\":\"Creating\"},\"id\":\"tzeexav\",\"name\":\"xtfglecdmdqb\",\"type\":\"pypqtgsfj\"}],\"nextLink\":\"b\"}") + .toObject(MetricsObjectFirewallResourceListResult.class); + Assertions.assertEquals("s", model.value().get(0).applicationInsightsResourceId()); + Assertions.assertEquals("wprtu", model.value().get(0).applicationInsightsConnectionString()); + Assertions.assertEquals("sawddjibabxvi", model.value().get(0).panEtag()); + Assertions.assertEquals("b", model.nextLink()); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsCreateOrUpdateMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsCreateOrUpdateMockTests.java new file mode 100644 index 000000000000..e4693d68c72b --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsCreateOrUpdateMockTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObjectFirewallResourceInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MetricsObjectFirewallResource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class MetricsObjectFirewallsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"applicationInsightsResourceId\":\"cgxvrpj\",\"applicationInsightsConnectionString\":\"vczuodacpune\",\"panEtag\":\"epdjxqeskoyn\",\"provisioningState\":\"Succeeded\"},\"id\":\"pckaewse\",\"name\":\"vesk\",\"type\":\"xegqphr\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MetricsObjectFirewallResource response = manager.metricsObjectFirewalls() + .createOrUpdate("ajxeiygle", "rwvaexhdc", + new MetricsObjectFirewallResourceInner().withApplicationInsightsResourceId("rceqnkbrupob") + .withApplicationInsightsConnectionString("hdmljz") + .withPanEtag("vume"), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("cgxvrpj", response.applicationInsightsResourceId()); + Assertions.assertEquals("vczuodacpune", response.applicationInsightsConnectionString()); + Assertions.assertEquals("epdjxqeskoyn", response.panEtag()); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsGetWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsGetWithResponseMockTests.java new file mode 100644 index 000000000000..a48ec71f14ee --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsGetWithResponseMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MetricsObjectFirewallResource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class MetricsObjectFirewallsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"applicationInsightsResourceId\":\"slojfkqidnqt\",\"applicationInsightsConnectionString\":\"qxjhqxcsqhtkbtnq\",\"panEtag\":\"ngldmbiipsn\",\"provisioningState\":\"Accepted\"},\"id\":\"qkzn\",\"name\":\"hhl\",\"type\":\"xricctkwmuqq\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MetricsObjectFirewallResource response = manager.metricsObjectFirewalls() + .getWithResponse("a", "krmukmyjmkxett", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("slojfkqidnqt", response.applicationInsightsResourceId()); + Assertions.assertEquals("qxjhqxcsqhtkbtnq", response.applicationInsightsConnectionString()); + Assertions.assertEquals("ngldmbiipsn", response.panEtag()); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsListByFirewallsMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsListByFirewallsMockTests.java new file mode 100644 index 000000000000..03fe4cdcfc12 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectFirewallsListByFirewallsMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.MetricsObjectFirewallResource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class MetricsObjectFirewallsListByFirewallsMockTests { + @Test + public void testListByFirewalls() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"applicationInsightsResourceId\":\"bcbcpz\",\"applicationInsightsConnectionString\":\"rpzeqac\",\"panEtag\":\"dtzmpype\",\"provisioningState\":\"Deleted\"},\"id\":\"zshnuqndaizup\",\"name\":\"kh\",\"type\":\"ytus\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.metricsObjectFirewalls().listByFirewalls("fn", "hctmjtsgh", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("bcbcpz", response.iterator().next().applicationInsightsResourceId()); + Assertions.assertEquals("rpzeqac", response.iterator().next().applicationInsightsConnectionString()); + Assertions.assertEquals("dtzmpype", response.iterator().next().panEtag()); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectTests.java new file mode 100644 index 000000000000..a3bacc1d15d5 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/MetricsObjectTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.MetricsObject; +import org.junit.jupiter.api.Assertions; + +public final class MetricsObjectTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MetricsObject model = BinaryData.fromString( + "{\"applicationInsightsResourceId\":\"ojbmxv\",\"applicationInsightsConnectionString\":\"vrefdeesv\",\"panEtag\":\"uij\",\"provisioningState\":\"Failed\"}") + .toObject(MetricsObject.class); + Assertions.assertEquals("ojbmxv", model.applicationInsightsResourceId()); + Assertions.assertEquals("vrefdeesv", model.applicationInsightsConnectionString()); + Assertions.assertEquals("uij", model.panEtag()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MetricsObject model = new MetricsObject().withApplicationInsightsResourceId("ojbmxv") + .withApplicationInsightsConnectionString("vrefdeesv") + .withPanEtag("uij"); + model = BinaryData.fromObject(model).toObject(MetricsObject.class); + Assertions.assertEquals("ojbmxv", model.applicationInsightsResourceId()); + Assertions.assertEquals("vrefdeesv", model.applicationInsightsConnectionString()); + Assertions.assertEquals("uij", model.panEtag()); + } +} 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 index 9ed410059b12..8298fc4cda34 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,17 +11,9 @@ public final class NameDescriptionObjectTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NameDescriptionObject model = BinaryData.fromString("{\"name\":\"cwif\",\"description\":\"ttgzfbis\"}") + NameDescriptionObject model = BinaryData.fromString("{\"name\":\"nowkgshw\",\"description\":\"kix\"}") .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()); + Assertions.assertEquals("nowkgshw", model.name()); + Assertions.assertEquals("kix", 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 index 3d88b1eb9f70..e11ba8cff780 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -19,79 +19,86 @@ 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\"]}") + "{\"vnetConfiguration\":{\"vnet\":{\"resourceId\":\"phvwauyqncygu\",\"addressSpace\":\"vipmdscwxqupevzh\"},\"trustSubnet\":{\"resourceId\":\"totxhojujb\",\"addressSpace\":\"elmcuvhixbjxyfw\"},\"unTrustSubnet\":{\"resourceId\":\"lrcoolsttpki\",\"addressSpace\":\"kbnujr\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"tylbfpncurdoiw\",\"address\":\"thtywub\"}},\"vwanConfiguration\":{\"networkVirtualApplianceId\":\"ihwqknfdntwjchr\",\"vHub\":{\"resourceId\":\"oihxumwctondzjlu\",\"addressSpace\":\"fdlwg\"},\"trustSubnet\":{\"resourceId\":\"sb\",\"addressSpace\":\"ovvtgseinqfiu\"},\"unTrustSubnet\":{\"resourceId\":\"knpirgnepttwq\",\"addressSpace\":\"niffcdmqnroj\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"jnkrxf\",\"address\":\"dhcrati\"}},\"networkType\":\"VWAN\",\"publicIps\":[{\"resourceId\":\"nasx\",\"address\":\"tozqyzhftwesgo\"},{\"resourceId\":\"zhonnxkrlgnyhmo\",\"address\":\"xkk\"},{\"resourceId\":\"h\",\"address\":\"gh\"}],\"enableEgressNat\":\"DISABLED\",\"egressNatIp\":[{\"resourceId\":\"qxvcxgfrpdsofb\",\"address\":\"rnsvbuswd\"},{\"resourceId\":\"yybyc\",\"address\":\"nvjsrtkfa\"}],\"trustedRanges\":[\"pqgik\",\"zirtxdyuxzejntps\",\"wgioilqukry\",\"xtqmieoxor\"],\"privateSourceNatRulesDestination\":[\"f\",\"yaomtb\",\"hhavgrvkffovjz\"]}") .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("phvwauyqncygu", model.vnetConfiguration().vnet().resourceId()); + Assertions.assertEquals("vipmdscwxqupevzh", model.vnetConfiguration().vnet().addressSpace()); + Assertions.assertEquals("totxhojujb", model.vnetConfiguration().trustSubnet().resourceId()); + Assertions.assertEquals("elmcuvhixbjxyfw", model.vnetConfiguration().trustSubnet().addressSpace()); + Assertions.assertEquals("lrcoolsttpki", model.vnetConfiguration().unTrustSubnet().resourceId()); + Assertions.assertEquals("kbnujr", model.vnetConfiguration().unTrustSubnet().addressSpace()); + Assertions.assertEquals("tylbfpncurdoiw", model.vnetConfiguration().ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("thtywub", model.vnetConfiguration().ipOfTrustSubnetForUdr().address()); + Assertions.assertEquals("ihwqknfdntwjchr", model.vwanConfiguration().networkVirtualApplianceId()); + Assertions.assertEquals("oihxumwctondzjlu", model.vwanConfiguration().vHub().resourceId()); + Assertions.assertEquals("fdlwg", model.vwanConfiguration().vHub().addressSpace()); + Assertions.assertEquals("sb", model.vwanConfiguration().trustSubnet().resourceId()); + Assertions.assertEquals("ovvtgseinqfiu", model.vwanConfiguration().trustSubnet().addressSpace()); + Assertions.assertEquals("knpirgnepttwq", model.vwanConfiguration().unTrustSubnet().resourceId()); + Assertions.assertEquals("niffcdmqnroj", model.vwanConfiguration().unTrustSubnet().addressSpace()); + Assertions.assertEquals("jnkrxf", model.vwanConfiguration().ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("dhcrati", 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("nasx", model.publicIps().get(0).resourceId()); + Assertions.assertEquals("tozqyzhftwesgo", 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)); + Assertions.assertEquals("qxvcxgfrpdsofb", model.egressNatIp().get(0).resourceId()); + Assertions.assertEquals("rnsvbuswd", model.egressNatIp().get(0).address()); + Assertions.assertEquals("pqgik", model.trustedRanges().get(0)); + Assertions.assertEquals("f", model.privateSourceNatRulesDestination().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")); + NetworkProfile model + = new NetworkProfile() + .withVnetConfiguration(new VnetConfiguration() + .withVnet(new IpAddressSpace().withResourceId("phvwauyqncygu").withAddressSpace("vipmdscwxqupevzh")) + .withTrustSubnet( + new IpAddressSpace().withResourceId("totxhojujb").withAddressSpace("elmcuvhixbjxyfw")) + .withUnTrustSubnet(new IpAddressSpace().withResourceId("lrcoolsttpki").withAddressSpace("kbnujr")) + .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("tylbfpncurdoiw").withAddress("thtywub"))) + .withVwanConfiguration(new VwanConfiguration().withNetworkVirtualApplianceId("ihwqknfdntwjchr") + .withVHub(new IpAddressSpace().withResourceId("oihxumwctondzjlu").withAddressSpace("fdlwg")) + .withTrustSubnet(new IpAddressSpace().withResourceId("sb").withAddressSpace("ovvtgseinqfiu")) + .withUnTrustSubnet( + new IpAddressSpace().withResourceId("knpirgnepttwq").withAddressSpace("niffcdmqnroj")) + .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("jnkrxf").withAddress("dhcrati"))) + .withNetworkType(NetworkType.VWAN) + .withPublicIps(Arrays.asList(new IpAddress().withResourceId("nasx").withAddress("tozqyzhftwesgo"), + new IpAddress().withResourceId("zhonnxkrlgnyhmo").withAddress("xkk"), + new IpAddress().withResourceId("h").withAddress("gh"))) + .withEnableEgressNat(EgressNat.DISABLED) + .withEgressNatIp( + Arrays.asList(new IpAddress().withResourceId("qxvcxgfrpdsofb").withAddress("rnsvbuswd"), + new IpAddress().withResourceId("yybyc").withAddress("nvjsrtkfa"))) + .withTrustedRanges(Arrays.asList("pqgik", "zirtxdyuxzejntps", "wgioilqukry", "xtqmieoxor")) + .withPrivateSourceNatRulesDestination(Arrays.asList("f", "yaomtb", "hhavgrvkffovjz")); 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("phvwauyqncygu", model.vnetConfiguration().vnet().resourceId()); + Assertions.assertEquals("vipmdscwxqupevzh", model.vnetConfiguration().vnet().addressSpace()); + Assertions.assertEquals("totxhojujb", model.vnetConfiguration().trustSubnet().resourceId()); + Assertions.assertEquals("elmcuvhixbjxyfw", model.vnetConfiguration().trustSubnet().addressSpace()); + Assertions.assertEquals("lrcoolsttpki", model.vnetConfiguration().unTrustSubnet().resourceId()); + Assertions.assertEquals("kbnujr", model.vnetConfiguration().unTrustSubnet().addressSpace()); + Assertions.assertEquals("tylbfpncurdoiw", model.vnetConfiguration().ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("thtywub", model.vnetConfiguration().ipOfTrustSubnetForUdr().address()); + Assertions.assertEquals("ihwqknfdntwjchr", model.vwanConfiguration().networkVirtualApplianceId()); + Assertions.assertEquals("oihxumwctondzjlu", model.vwanConfiguration().vHub().resourceId()); + Assertions.assertEquals("fdlwg", model.vwanConfiguration().vHub().addressSpace()); + Assertions.assertEquals("sb", model.vwanConfiguration().trustSubnet().resourceId()); + Assertions.assertEquals("ovvtgseinqfiu", model.vwanConfiguration().trustSubnet().addressSpace()); + Assertions.assertEquals("knpirgnepttwq", model.vwanConfiguration().unTrustSubnet().resourceId()); + Assertions.assertEquals("niffcdmqnroj", model.vwanConfiguration().unTrustSubnet().addressSpace()); + Assertions.assertEquals("jnkrxf", model.vwanConfiguration().ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("dhcrati", 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("nasx", model.publicIps().get(0).resourceId()); + Assertions.assertEquals("tozqyzhftwesgo", 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)); + Assertions.assertEquals("qxvcxgfrpdsofb", model.egressNatIp().get(0).resourceId()); + Assertions.assertEquals("rnsvbuswd", model.egressNatIp().get(0).address()); + Assertions.assertEquals("pqgik", model.trustedRanges().get(0)); + Assertions.assertEquals("f", model.privateSourceNatRulesDestination().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 index b5d70879d5c2..7add011ef110 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,13 +11,7 @@ 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\"}") + "{\"provider\":\"cdm\",\"resource\":\"rcryuanzwuxzdxta\",\"operation\":\"lhmwhfpmrqobm\",\"description\":\"kknryrtihf\"}") .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 index 6efff84397ad..e347d06f27b1 100644 --- 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 @@ -1,24 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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\"}") + "{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"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 index 4ea199c759e6..7a0e309e8271 100644 --- 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 @@ -1,23 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.OperationListResult; +import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.OperationListResult; +import org.junit.jupiter.api.Assertions; 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\"}") + "{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}") .toObject(OperationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult(); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); + Assertions.assertEquals("kfo", model.nextLink()); } } 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 index c96580828962..151e94e29502 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Operation; @@ -21,14 +21,14 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"pkxkdtxfk\",\"isDataAction\":false,\"display\":{\"provider\":\"twknvgm\",\"resource\":\"ugtywatmqaqkue\",\"operation\":\"groeshoyg\",\"description\":\"byfqxkfaoy\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"jwetnpsihcla\",\"isDataAction\":false,\"display\":{\"provider\":\"lpt\",\"resource\":\"qqwzt\",\"operation\":\"w\",\"description\":\"chcxwaxfewzj\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); 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/LocalRulestacksListAppIdsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberWithResponsMockTests.java similarity index 56% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListAppIdsWithResponseMockTests.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberWithResponsMockTests.java index 862548cea9fc..3ee67e6029f9 100644 --- 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/PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberWithResponsMockTests.java @@ -1,40 +1,38 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ListAppIdResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberRequestStatus; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class LocalRulestacksListAppIdsWithResponseMockTests { +public final class PaloAltoNetworksCloudngfwOperationsCreateProductSerialNumberWithResponsMockTests { @Test - public void testListAppIdsWithResponse() throws Exception { - String responseStr = "{\"value\":[\"iytssikizbc\"],\"nextLink\":\"q\"}"; + public void testCreateProductSerialNumberWithResponse() throws Exception { + String responseStr = "{\"status\":\"wffcvvye\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - ListAppIdResponse response = manager.localRulestacks() - .listAppIdsWithResponse("muowakywalhjy", "xcgqtagdrclsso", "jomevtfycnlb", "gjco", "kk", 353901873, - com.azure.core.util.Context.NONE) + ProductSerialNumberRequestStatus response = manager.paloAltoNetworksCloudngfwOperations() + .createProductSerialNumberWithResponse(com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("iytssikizbc", response.value().get(0)); - Assertions.assertEquals("q", response.nextLink()); + Assertions.assertEquals("wffcvvye", response.status()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsWithResponseMockTests.java new file mode 100644 index 000000000000..b5c1725e00b8 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsWithResponseMockTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.CloudManagerTenantList; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PaloAltoNetworksCloudngfwOperationsListCloudManagerTenantsWithResponseMockTests { + @Test + public void testListCloudManagerTenantsWithResponse() throws Exception { + String responseStr = "{\"value\":[\"lpuxgcbdsvalpnpt\",\"trkxgpazwu\",\"x\"]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + CloudManagerTenantList response = manager.paloAltoNetworksCloudngfwOperations() + .listCloudManagerTenantsWithResponse(com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("lpuxgcbdsvalpnpt", response.value().get(0)); + } +} 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/PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusWithResMockTests.java similarity index 54% rename from sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/LocalRulestacksListPredefinedUrlCategoriesWithResponseMockTests.java rename to sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusWithResMockTests.java index 2043778b26b1..c7f5d239393c 100644 --- 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/PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusWithResMockTests.java @@ -1,41 +1,40 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; -import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PredefinedUrlCategoriesResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialNumberStatus; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class LocalRulestacksListPredefinedUrlCategoriesWithResponseMockTests { +public final class PaloAltoNetworksCloudngfwOperationsListProductSerialNumberStatusWithResMockTests { @Test - public void testListPredefinedUrlCategoriesWithResponse() throws Exception { - String responseStr = "{\"value\":[{\"action\":\"y\",\"name\":\"xpvelszerqzevxo\"}],\"nextLink\":\"intxwa\"}"; + public void testListProductSerialNumberStatusWithResponse() throws Exception { + String responseStr = "{\"serialNumber\":\"vnjobfelhldiuhzz\",\"status\":\"Allocated\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PredefinedUrlCategoriesResponse response = manager.localRulestacks() - .listPredefinedUrlCategoriesWithResponse("hkxdxuwsaifmc", "nosbz", "ehgcvkbcknjo", 988926975, - com.azure.core.util.Context.NONE) + ProductSerialNumberStatus response = manager.paloAltoNetworksCloudngfwOperations() + .listProductSerialNumberStatusWithResponse(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()); + Assertions.assertEquals("vnjobfelhldiuhzz", response.serialNumber()); + Assertions.assertEquals(ProductSerialStatusValues.ALLOCATED, response.status()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListSupportInfoWithResponseMockTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListSupportInfoWithResponseMockTests.java new file mode 100644 index 000000000000..a07865e2dd40 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PaloAltoNetworksCloudngfwOperationsListSupportInfoWithResponseMockTests.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.EnableStatus; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RegistrationStatus; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.SupportInfoModel; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PaloAltoNetworksCloudngfwOperationsListSupportInfoWithResponseMockTests { + @Test + public void testListSupportInfoWithResponse() throws Exception { + String responseStr + = "{\"productSku\":\"mfaewzgi\",\"productSerial\":\"jpxpqhttqhnmhkre\",\"accountRegistrationStatus\":\"Not Registered\",\"accountId\":\"uxh\",\"freeTrial\":\"Disabled\",\"freeTrialDaysLeft\":355331537,\"freeTrialCreditLeft\":981218662,\"helpURL\":\"spiny\",\"supportURL\":\"qgwokmikp\",\"registerURL\":\"fbmjxuvji\",\"hubUrl\":\"dvhaxdvw\",\"credits\":1625333661,\"monthlyCreditLeft\":2097746238,\"startDateForCredits\":\"hthdklmvetatlakf\",\"endDateForCredits\":\"ixwgiksbbvtooxrp\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + SupportInfoModel response = manager.paloAltoNetworksCloudngfwOperations() + .listSupportInfoWithResponse(com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("mfaewzgi", response.productSku()); + Assertions.assertEquals("jpxpqhttqhnmhkre", response.productSerial()); + Assertions.assertEquals(RegistrationStatus.NOT_REGISTERED, response.accountRegistrationStatus()); + Assertions.assertEquals("uxh", response.accountId()); + Assertions.assertEquals(EnableStatus.DISABLED, response.freeTrial()); + Assertions.assertEquals(355331537, response.freeTrialDaysLeft()); + Assertions.assertEquals(981218662, response.freeTrialCreditLeft()); + Assertions.assertEquals("spiny", response.helpUrl()); + Assertions.assertEquals("qgwokmikp", response.supportUrl()); + Assertions.assertEquals("fbmjxuvji", response.registerUrl()); + Assertions.assertEquals("dvhaxdvw", response.hubUrl()); + Assertions.assertEquals(1625333661, response.credits()); + Assertions.assertEquals(2097746238, response.monthlyCreditLeft()); + Assertions.assertEquals("hthdklmvetatlakf", response.startDateForCredits()); + Assertions.assertEquals("ixwgiksbbvtooxrp", response.endDateForCredits()); + } +} 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 index 19019fda6f5c..40cd4b1bec3f 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,13 +11,7 @@ public final class PanoramaStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PanoramaStatus model - = BinaryData.fromString("{\"panoramaServerStatus\":\"DOWN\",\"panoramaServer2Status\":\"DOWN\"}") + = BinaryData.fromString("{\"panoramaServerStatus\":\"UP\",\"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 index 115003f4a76b..1e2a460bc98e 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -14,21 +14,20 @@ 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\"}") + "{\"usageType\":\"PAYG\",\"billingCycle\":\"WEEKLY\",\"planId\":\"baxk\",\"effectiveDate\":\"2021-11-06T21:21:21Z\"}") .toObject(PlanData.class); Assertions.assertEquals(UsageType.PAYG, model.usageType()); - Assertions.assertEquals(BillingCycle.MONTHLY, model.billingCycle()); - Assertions.assertEquals("nujrywvtyl", model.planId()); + Assertions.assertEquals(BillingCycle.WEEKLY, model.billingCycle()); + Assertions.assertEquals("baxk", model.planId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PlanData model = new PlanData().withUsageType(UsageType.PAYG) - .withBillingCycle(BillingCycle.MONTHLY) - .withPlanId("nujrywvtyl"); + PlanData model + = new PlanData().withUsageType(UsageType.PAYG).withBillingCycle(BillingCycle.WEEKLY).withPlanId("baxk"); model = BinaryData.fromObject(model).toObject(PlanData.class); Assertions.assertEquals(UsageType.PAYG, model.usageType()); - Assertions.assertEquals(BillingCycle.MONTHLY, model.billingCycle()); - Assertions.assertEquals("nujrywvtyl", model.planId()); + Assertions.assertEquals(BillingCycle.WEEKLY, model.billingCycle()); + Assertions.assertEquals("baxk", 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 index b5edd66e867d..45e9a6659a58 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.postRules().delete("dyvt", "owx", com.azure.core.util.Context.NONE); + manager.postRules().delete("emmucfxh", "kkflrmymyincqlhr", 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 index a539a7277223..f0b3a0802e6c 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounter; @@ -21,35 +21,35 @@ public final class PostRulesGetCountersWithResponseMockTests { @Test public void testGetCountersWithResponse() throws Exception { 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\"}"; + = "{\"priority\":\"sgl\",\"ruleStackName\":\"czezkhhlt\",\"ruleListName\":\"adhqoa\",\"firewallName\":\"qoyueayfbpcmsplb\",\"ruleName\":\"rrueqthwmg\",\"hitCount\":249669652,\"appSeen\":{\"count\":472451577,\"appSeenList\":[{\"title\":\"bxigdhxiidlo\",\"category\":\"edbw\",\"subCategory\":\"pyqy\",\"risk\":\"bxubmdna\",\"tag\":\"cbq\",\"technology\":\"remj\",\"standardPorts\":\"laqacigele\"}]},\"timestamp\":\"2021-10-21T16:22:49Z\",\"requestTimestamp\":\"2021-03-27T19:33:47Z\",\"lastUpdatedTimestamp\":\"2021-08-29T06:27:54Z\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RuleCounter response = manager.postRules() - .getCountersWithResponse("gpiudeug", "sxze", "paxwkufyk", com.azure.core.util.Context.NONE) + .getCountersWithResponse("hspnxwqagnepz", "aklsbsbq", "qagwwrxaomz", 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()); + Assertions.assertEquals("sgl", response.priority()); + Assertions.assertEquals("czezkhhlt", response.ruleStackName()); + Assertions.assertEquals("adhqoa", response.ruleListName()); + Assertions.assertEquals("qoyueayfbpcmsplb", response.firewallName()); + Assertions.assertEquals("rrueqthwmg", response.ruleName()); + Assertions.assertEquals(249669652, response.hitCount()); + Assertions.assertEquals(472451577, response.appSeen().count()); + Assertions.assertEquals("bxigdhxiidlo", response.appSeen().appSeenList().get(0).title()); + Assertions.assertEquals("edbw", response.appSeen().appSeenList().get(0).category()); + Assertions.assertEquals("pyqy", response.appSeen().appSeenList().get(0).subCategory()); + Assertions.assertEquals("bxubmdna", response.appSeen().appSeenList().get(0).risk()); + Assertions.assertEquals("cbq", response.appSeen().appSeenList().get(0).tag()); + Assertions.assertEquals("remj", response.appSeen().appSeenList().get(0).technology()); + Assertions.assertEquals("laqacigele", response.appSeen().appSeenList().get(0).standardPorts()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T16:22:49Z"), response.timestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-27T19:33:47Z"), response.requestTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T06:27:54Z"), 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 index 1e468d32fe84..fc1a933e84d8 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,11 +25,10 @@ public void testRefreshCountersWithResponse() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.postRules() - .refreshCountersWithResponse("qedikdfrd", "iqmrjgeihfqlggw", "iwzcxmjpbyeph", - com.azure.core.util.Context.NONE); + .refreshCountersWithResponse("wzkjopwbeonrlkw", "dqybx", "eakxcptsoqfyi", 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 index 5b7d7bc64500..775fc1a57551 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounterReset; @@ -21,22 +21,22 @@ public final class PostRulesResetCountersWithResponseMockTests { @Test public void testResetCountersWithResponse() throws Exception { String responseStr - = "{\"priority\":\"ui\",\"ruleStackName\":\"ey\",\"ruleListName\":\"wlpaugmrmfjlrxwt\",\"firewallName\":\"ukhfkvc\",\"ruleName\":\"izmoaeds\"}"; + = "{\"priority\":\"nbwzohmnrxxbso\",\"ruleStackName\":\"linhmdptysprqs\",\"ruleListName\":\"zxojpslsv\",\"firewallName\":\"pli\",\"ruleName\":\"iqwoyxqvapcoh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RuleCounterReset response = manager.postRules() - .resetCountersWithResponse("gt", "ljvrcmyfqipgxhnp", "myqwcab", com.azure.core.util.Context.NONE) + .resetCountersWithResponse("seqchkrt", "zrazisgyk", "uem", 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()); + Assertions.assertEquals("linhmdptysprqs", response.ruleStackName()); + Assertions.assertEquals("zxojpslsv", response.ruleListName()); + Assertions.assertEquals("pli", response.firewallName()); + Assertions.assertEquals("iqwoyxqvapcoh", 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 index 69ce5d6daa4f..bc27f32459ca 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.preRules().delete("zptwrlohap", "infsz", com.azure.core.util.Context.NONE); + manager.preRules().delete("fwxzutg", "ztwhghmupg", 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 index 508509cd76a1..f87cbf9169d3 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounter; @@ -21,35 +21,35 @@ public final class PreRulesGetCountersWithResponseMockTests { @Test public void testGetCountersWithResponse() throws Exception { 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\"}"; + = "{\"priority\":\"req\",\"ruleStackName\":\"kceysfaqegplw\",\"ruleListName\":\"shwddkvbxgk\",\"firewallName\":\"sybwptdaca\",\"ruleName\":\"vvlfntymtp\",\"hitCount\":1309536765,\"appSeen\":{\"count\":662572464,\"appSeenList\":[{\"title\":\"zerohzrsqalsxk\",\"category\":\"nwqapfgsdpcvess\",\"subCategory\":\"zhhkuuipldqqc\",\"risk\":\"ekvalblhtjq\",\"tag\":\"qyv\",\"technology\":\"eh\",\"standardPorts\":\"a\"},{\"title\":\"mxhzzysevus\",\"category\":\"ivzrrryveimipsk\",\"subCategory\":\"yzatvfuzkaft\",\"risk\":\"vvruxwi\",\"tag\":\"syeipqd\",\"technology\":\"mjtgrqg\",\"standardPorts\":\"gkkileplkcsmkn\"},{\"title\":\"wtbbaedorvvmqf\",\"category\":\"oygbdgwumgxd\",\"subCategory\":\"dhp\",\"risk\":\"bgd\",\"tag\":\"xjd\",\"technology\":\"vjsaqwotm\",\"standardPorts\":\"wllcolsr\"}]},\"timestamp\":\"2021-09-17T20:00:17Z\",\"requestTimestamp\":\"2021-04-26T14:25:13Z\",\"lastUpdatedTimestamp\":\"2021-05-30T01:29:06Z\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RuleCounter response = manager.preRules() - .getCountersWithResponse("yglqdhmrjzral", "xpjb", "ypsjoq", com.azure.core.util.Context.NONE) + .getCountersWithResponse("puvjmvqmtd", "ckygroejnndljdju", "kb", 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()); + Assertions.assertEquals("req", response.priority()); + Assertions.assertEquals("kceysfaqegplw", response.ruleStackName()); + Assertions.assertEquals("shwddkvbxgk", response.ruleListName()); + Assertions.assertEquals("sybwptdaca", response.firewallName()); + Assertions.assertEquals("vvlfntymtp", response.ruleName()); + Assertions.assertEquals(1309536765, response.hitCount()); + Assertions.assertEquals(662572464, response.appSeen().count()); + Assertions.assertEquals("zerohzrsqalsxk", response.appSeen().appSeenList().get(0).title()); + Assertions.assertEquals("nwqapfgsdpcvess", response.appSeen().appSeenList().get(0).category()); + Assertions.assertEquals("zhhkuuipldqqc", response.appSeen().appSeenList().get(0).subCategory()); + Assertions.assertEquals("ekvalblhtjq", response.appSeen().appSeenList().get(0).risk()); + Assertions.assertEquals("qyv", response.appSeen().appSeenList().get(0).tag()); + Assertions.assertEquals("eh", response.appSeen().appSeenList().get(0).technology()); + Assertions.assertEquals("a", response.appSeen().appSeenList().get(0).standardPorts()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T20:00:17Z"), response.timestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-26T14:25:13Z"), response.requestTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T01:29:06Z"), 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 index 9e597e3b472a..be439fa9009b 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,10 +25,11 @@ public void testRefreshCountersWithResponse() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.preRules() - .refreshCountersWithResponse("duusioycblevpmcl", "jy", "kyxl", com.azure.core.util.Context.NONE); + .refreshCountersWithResponse("hexcgjokj", "jnhvlqjbekpeeks", "bksdqhjvyklxesl", + 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 index 97d59c7ae4e0..0e35a0aa4d7a 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.RuleCounterReset; @@ -21,22 +21,22 @@ public final class PreRulesResetCountersWithResponseMockTests { @Test public void testResetCountersWithResponse() throws Exception { String responseStr - = "{\"priority\":\"owftptnuwjtks\",\"ruleStackName\":\"gcgqyhleseyqrhvy\",\"ruleListName\":\"dotjvdk\",\"firewallName\":\"swskuk\",\"ruleName\":\"asbvw\"}"; + = "{\"priority\":\"o\",\"ruleStackName\":\"lejjjkxy\",\"ruleListName\":\"fdb\",\"firewallName\":\"bztensvkzykjtj\",\"ruleName\":\"sxfwushcdp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RuleCounterReset response = manager.preRules() - .resetCountersWithResponse("gsjgkzzlta", "hbzffovwmbjlzqs", "zpgvdwnapfd", com.azure.core.util.Context.NONE) + .resetCountersWithResponse("hhus", "cpoq", "avnwqj", 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()); + Assertions.assertEquals("lejjjkxy", response.ruleStackName()); + Assertions.assertEquals("fdb", response.ruleListName()); + Assertions.assertEquals("bztensvkzykjtj", response.firewallName()); + Assertions.assertEquals("sxfwushcdp", 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 index 6dd2d32bc8b1..660051e29606 100644 --- 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 @@ -1,13 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 { @@ -20,16 +18,4 @@ public void testDeserialize() throws Exception { 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/PredefinedUrlCategoryInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoryInnerTests.java new file mode 100644 index 000000000000..a78353ba51c9 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/PredefinedUrlCategoryInnerTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoryInner; +import org.junit.jupiter.api.Assertions; + +public final class PredefinedUrlCategoryInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PredefinedUrlCategoryInner model = BinaryData.fromString("{\"action\":\"qdqgbi\",\"name\":\"ylihkaetckt\"}") + .toObject(PredefinedUrlCategoryInner.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/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 2ee6ce6399e3..000000000000 --- 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 index b8969d0611de..db2030bc4bf8 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,25 +13,25 @@ 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\"}") + "{\"properties\":{\"description\":\"ffimrzrtuzqogsex\",\"prefixList\":[\"vfdnwnwmewzsyyce\",\"zsoibjudpfrxtr\",\"hzv\"],\"etag\":\"tdwkqbrq\",\"auditComment\":\"paxh\",\"provisioningState\":\"Creating\"},\"id\":\"livpdt\",\"name\":\"irqtdqoa\",\"type\":\"oruzfgsquyfxrxx\"}") .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()); + Assertions.assertEquals("ffimrzrtuzqogsex", model.description()); + Assertions.assertEquals("vfdnwnwmewzsyyce", model.prefixList().get(0)); + Assertions.assertEquals("tdwkqbrq", model.etag()); + Assertions.assertEquals("paxh", 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"); + = new PrefixListGlobalRulestackResourceInner().withDescription("ffimrzrtuzqogsex") + .withPrefixList(Arrays.asList("vfdnwnwmewzsyyce", "zsoibjudpfrxtr", "hzv")) + .withEtag("tdwkqbrq") + .withAuditComment("paxh"); 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()); + Assertions.assertEquals("ffimrzrtuzqogsex", model.description()); + Assertions.assertEquals("vfdnwnwmewzsyyce", model.prefixList().get(0)); + Assertions.assertEquals("tdwkqbrq", model.etag()); + Assertions.assertEquals("paxh", 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 index 0f06772df650..07897d082482 100644 --- 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 @@ -1,46 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListGlobalRulestackResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"description\":\"rodtjinfwjlfl\",\"prefixList\":[\"acjvefkd\",\"foakgg\",\"fpagaowpulp\"],\"etag\":\"lyls\",\"auditComment\":\"k\",\"provisioningState\":\"Updating\"},\"id\":\"jervtia\",\"name\":\"xsdszuempsb\",\"type\":\"kfzbeyvpnqicvi\"},{\"properties\":{\"description\":\"kjj\",\"prefixList\":[\"xrbuukzclew\",\"hmlwpaztzpo\",\"ncckw\"],\"etag\":\"zqwhxxbuyqaxzfeq\",\"auditComment\":\"ppriol\",\"provisioningState\":\"Failed\"},\"id\":\"altol\",\"name\":\"ncwsob\",\"type\":\"wcsdbnwdcfhucq\"},{\"properties\":{\"description\":\"fuvglsbjjca\",\"prefixList\":[\"xbvtvudu\"],\"etag\":\"cormr\",\"auditComment\":\"qtvcofudflvkgj\",\"provisioningState\":\"Canceled\"},\"id\":\"knnqvsaznq\",\"name\":\"tor\",\"type\":\"dsg\"}],\"nextLink\":\"hmk\"}") .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()); + Assertions.assertEquals("rodtjinfwjlfl", model.value().get(0).description()); + Assertions.assertEquals("acjvefkd", model.value().get(0).prefixList().get(0)); + Assertions.assertEquals("lyls", model.value().get(0).etag()); + Assertions.assertEquals("k", model.value().get(0).auditComment()); + Assertions.assertEquals("hmk", 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 index 231196e35480..d9578cfac80d 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PrefixListGlobalRulestackResourceInner; @@ -23,26 +23,26 @@ public final class PrefixListGlobalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"qagnepzwakl\",\"prefixList\":[\"sbq\",\"qagwwrxaomz\"],\"etag\":\"glrrczez\",\"auditComment\":\"hltnjadhqoawjq\",\"provisioningState\":\"Succeeded\"},\"id\":\"ayfbpcm\",\"name\":\"plby\",\"type\":\"rueqthwm\"}"; + = "{\"properties\":{\"description\":\"antuygdhgaqipirp\",\"prefixList\":[\"rqofulopmjnlexwh\"],\"etag\":\"jpib\",\"auditComment\":\"phuuuerctato\",\"provisioningState\":\"Succeeded\"},\"id\":\"qpbrlc\",\"name\":\"rduczkgofxyfs\",\"type\":\"uc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrefixListGlobalRulestackResource response = manager.prefixListGlobalRulestacks() - .createOrUpdate("dmxzjijpv", "aurkihcirlde", - new PrefixListGlobalRulestackResourceInner().withDescription("rdcoxnbkkj") - .withPrefixList(Arrays.asList("urnnqbnqbpiz", "qltgrd")) - .withEtag("ypxrx") - .withAuditComment("fihwu"), + .createOrUpdate("ajqfutlx", "oqza", + new PrefixListGlobalRulestackResourceInner().withDescription("nwqrjzfrgqh") + .withPrefixList(Arrays.asList("hcmbuocnjrohmbp", "ryxameblydyvkfkm")) + .withEtag("cxneh") + .withAuditComment("mtodl"), 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()); + Assertions.assertEquals("antuygdhgaqipirp", response.description()); + Assertions.assertEquals("rqofulopmjnlexwh", response.prefixList().get(0)); + Assertions.assertEquals("jpib", response.etag()); + Assertions.assertEquals("phuuuerctato", 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 index 71368f418710..47ad9134d988 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,9 +25,9 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.prefixListGlobalRulestacks().delete("nmbscbbx", "gdhxi", com.azure.core.util.Context.NONE); + manager.prefixListGlobalRulestacks().delete("crrpcjttbstvje", "qnrmvvfko", 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 index 6cc8c25889f9..471a49697821 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestackResource; @@ -21,22 +21,22 @@ public final class PrefixListGlobalRulestacksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"c\",\"prefixList\":[\"zvxnqmhrp\"],\"etag\":\"df\",\"auditComment\":\"kois\",\"provisioningState\":\"Failed\"},\"id\":\"f\",\"name\":\"xuifmcsypobkdqz\",\"type\":\"dzsylollgtrczz\"}"; + = "{\"properties\":{\"description\":\"zdcgdzbenr\",\"prefixList\":[\"cawetzqddt\",\"wflj\"],\"etag\":\"namtuatmzw\",\"auditComment\":\"jncqtjzmi\",\"provisioningState\":\"Updating\"},\"id\":\"gat\",\"name\":\"uuvbx\",\"type\":\"grebwggahttzlsw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrefixListGlobalRulestackResource response = manager.prefixListGlobalRulestacks() - .getWithResponse("lhkgmnsghp", "ycphdrwjjkhvyo", com.azure.core.util.Context.NONE) + .getWithResponse("oucqpqojx", "x", 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()); + Assertions.assertEquals("zdcgdzbenr", response.description()); + Assertions.assertEquals("cawetzqddt", response.prefixList().get(0)); + Assertions.assertEquals("namtuatmzw", response.etag()); + Assertions.assertEquals("jncqtjzmi", 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 index dffb6e8cd31e..05679c378855 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestackResource; @@ -22,21 +22,21 @@ public final class PrefixListGlobalRulestacksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"cgyee\",\"prefixList\":[\"ei\",\"bp\",\"mgomg\"],\"etag\":\"mljdlrgmsplzga\",\"auditComment\":\"cshhv\",\"provisioningState\":\"Deleting\"},\"id\":\"nxkympqanxrjk\",\"name\":\"xtwbta\",\"type\":\"ypnyghshxc\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"wex\",\"prefixList\":[\"zvlazipbhpwvqsgn\",\"yuuzivens\",\"pmeyyvpkpatlbijp\"],\"etag\":\"sksrfhfvolmknbn\",\"auditComment\":\"cdommpvfqaw\",\"provisioningState\":\"Deleting\"},\"id\":\"rttuiaclkiexha\",\"name\":\"lfnthiqfyut\",\"type\":\"diygbpvnwswmtxky\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.prefixListGlobalRulestacks().list("jwuive", com.azure.core.util.Context.NONE); + = manager.prefixListGlobalRulestacks().list("mlghktuidvrmazlp", 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()); + Assertions.assertEquals("wex", response.iterator().next().description()); + Assertions.assertEquals("zvlazipbhpwvqsgn", response.iterator().next().prefixList().get(0)); + Assertions.assertEquals("sksrfhfvolmknbn", response.iterator().next().etag()); + Assertions.assertEquals("cdommpvfqaw", 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 index 6a636ff1d24b..58ae0a23426b 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListResource; @@ -22,27 +22,27 @@ public final class PrefixListLocalRulestacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"dmskxknpdgzigjsu\",\"prefixList\":[\"whgsaodkww\",\"bafo\",\"to\"],\"etag\":\"haquvwsxbgnvk\",\"auditComment\":\"vqchoadhrs\",\"provisioningState\":\"Succeeded\"},\"id\":\"vspabdsrgfajgl\",\"name\":\"rsubklrxhjnl\",\"type\":\"cetjdvq\"}"; + = "{\"properties\":{\"description\":\"ol\",\"prefixList\":[\"rghsrleinkfsc\",\"fncjwvua\",\"fqwtltngvm\"],\"etag\":\"uptrklz\",\"auditComment\":\"jajwolxfsvag\",\"provisioningState\":\"Succeeded\"},\"id\":\"nwlslrcigtzjcvbx\",\"name\":\"lapsnsso\",\"type\":\"yxpavidnie\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrefixListResource response = manager.prefixListLocalRulestacks() - .define("ilrixysf") - .withExistingLocalRulestack("phgerhsmvgoh", "wzm") - .withPrefixList(Arrays.asList("ympmlqoin", "zduewihapfjii")) - .withDescription("msqywwwmhkruwae") - .withEtag("jdiq") - .withAuditComment("iej") + .define("fbngfcocef") + .withExistingLocalRulestack("cgxefnohaitraniz", "rwgudasmxub") + .withPrefixList(Arrays.asList("svhl")) + .withDescription("riylfmpztra") + .withEtag("culregpqt") + .withAuditComment("jhvrztnvgyshqrdg") .create(); - Assertions.assertEquals("dmskxknpdgzigjsu", response.description()); - Assertions.assertEquals("whgsaodkww", response.prefixList().get(0)); - Assertions.assertEquals("haquvwsxbgnvk", response.etag()); - Assertions.assertEquals("vqchoadhrs", response.auditComment()); + Assertions.assertEquals("ol", response.description()); + Assertions.assertEquals("rghsrleinkfsc", response.prefixList().get(0)); + Assertions.assertEquals("uptrklz", response.etag()); + Assertions.assertEquals("jajwolxfsvag", 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 index 2567d8455578..1368ccb5b167 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import java.nio.charset.StandardCharsets; @@ -25,10 +25,10 @@ public void testDelete() throws Exception { PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.prefixListLocalRulestacks() - .delete("zilfmnlikps", "msfeypofqpm", "hyqgsdrmmttjx", com.azure.core.util.Context.NONE); + .delete("zjwhsetwwjwz", "qseuzuukykcyqhy", "qzzdcykeyste", 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 index f4396d6d1a43..4a9c344d76e8 100644 --- 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 @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListResource; @@ -21,22 +21,22 @@ public final class PrefixListLocalRulestacksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"kdveksb\",\"prefixList\":[\"oduchvlscr\",\"pibfdy\",\"dusspyszekbhwlka\"],\"etag\":\"gkrehbf\",\"auditComment\":\"uybffljfiim\",\"provisioningState\":\"NotSpecified\"},\"id\":\"g\",\"name\":\"qtaadusrexxfavsq\",\"type\":\"udo\"}"; + = "{\"properties\":{\"description\":\"ios\",\"prefixList\":[\"cyvaifppuacvfy\",\"owpsfxt\",\"dhsoymhpv\",\"yqfttehdpboujst\"],\"etag\":\"vvdshxcdedsue\",\"auditComment\":\"gnxcgjtfrnquktr\",\"provisioningState\":\"Creating\"},\"id\":\"nlrxsmyltrwntfmt\",\"name\":\"g\",\"type\":\"jdxwnazkurrdre\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrefixListResource response = manager.prefixListLocalRulestacks() - .getWithResponse("fepxyihpqadag", "hrdicxdwyjfo", "xwyovcxjsgbip", com.azure.core.util.Context.NONE) + .getWithResponse("ij", "ykwlefksxqceazf", "xgnmqvzvluyq", 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()); + Assertions.assertEquals("ios", response.description()); + Assertions.assertEquals("cyvaifppuacvfy", response.prefixList().get(0)); + Assertions.assertEquals("vvdshxcdedsue", response.etag()); + Assertions.assertEquals("gnxcgjtfrnquktr", 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 index fb6a6e8e98a0..4f90edb11ccd 100644 --- 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 @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.paloaltonetworks.ngfw.PaloAltoNetworksNgfwManager; import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListResource; @@ -22,21 +22,21 @@ public final class PrefixListLocalRulestacksListByLocalRulestacksMockTests { @Test public void testListByLocalRulestacks() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"kwaaesk\",\"prefixList\":[\"jlpzeqtoyrp\",\"ixlajmllpquevham\"],\"etag\":\"wg\",\"auditComment\":\"tmk\",\"provisioningState\":\"Succeeded\"},\"id\":\"kzwaqxofq\",\"name\":\"vchiqbpl\",\"type\":\"fidusztekxbyjgm\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"zgbsqgpewqcfutmd\",\"prefixList\":[\"ozglq\",\"bknlzcl\",\"tzeyowmndcovd\"],\"etag\":\"qauxzan\",\"auditComment\":\"kvfruwkudr\",\"provisioningState\":\"Canceled\"},\"id\":\"txudqyeme\",\"name\":\"unaucm\",\"type\":\"irtneemmjau\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); PaloAltoNetworksNgfwManager manager = PaloAltoNetworksNgfwManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.prefixListLocalRulestacks() - .listByLocalRulestacks("vsgeafgf", "sehxlzsxezp", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.prefixListLocalRulestacks().listByLocalRulestacks("fop", "z", 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()); + Assertions.assertEquals("zgbsqgpewqcfutmd", response.iterator().next().description()); + Assertions.assertEquals("ozglq", response.iterator().next().prefixList().get(0)); + Assertions.assertEquals("qauxzan", response.iterator().next().etag()); + Assertions.assertEquals("kvfruwkudr", 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 index b165b7938304..d21b97120c8f 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,24 +13,24 @@ 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\"}") + "{\"properties\":{\"description\":\"nobpudcdabtqwpw\",\"prefixList\":[\"wbzasqbuclj\",\"kyexaoguyaipi\"],\"etag\":\"daultxijjumfq\",\"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("nobpudcdabtqwpw", model.description()); + Assertions.assertEquals("wbzasqbuclj", model.prefixList().get(0)); + Assertions.assertEquals("daultxijjumfq", 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") + PrefixListResourceInner model = new PrefixListResourceInner().withDescription("nobpudcdabtqwpw") + .withPrefixList(Arrays.asList("wbzasqbuclj", "kyexaoguyaipi")) + .withEtag("daultxijjumfq") .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("nobpudcdabtqwpw", model.description()); + Assertions.assertEquals("wbzasqbuclj", model.prefixList().get(0)); + Assertions.assertEquals("daultxijjumfq", 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 index bfc7a85201d0..588098733625 100644 --- 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 @@ -1,41 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.models.PrefixListResourceListResult; 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\"}") + "{\"value\":[{\"properties\":{\"description\":\"fusfzsvtuikzhajq\",\"prefixList\":[\"cfhmlrqryxyn\",\"nzrdpsovwxz\",\"ptgoeiybbabp\"],\"etag\":\"vf\",\"auditComment\":\"kvntjlrigjkskyri\",\"provisioningState\":\"Deleting\"},\"id\":\"idsxwaabzmifry\",\"name\":\"znmmaxrizkzobgo\",\"type\":\"xlhslnel\"},{\"properties\":{\"description\":\"eixynllxecwcroj\",\"prefixList\":[\"slhcawjutifd\",\"fmvigorqjbttzh\"],\"etag\":\"glka\",\"auditComment\":\"onqjujeickpzvcpo\",\"provisioningState\":\"Accepted\"},\"id\":\"lnwcltyjed\",\"name\":\"xxmlfmkqscazua\",\"type\":\"xtzx\"},{\"properties\":{\"description\":\"amwabzxrvxcushsp\",\"prefixList\":[\"ivmxyasfl\",\"gsgzwywakoihk\",\"smjblmljhlnym\",\"otqyry\"],\"etag\":\"cbm\",\"auditComment\":\"vxmvw\",\"provisioningState\":\"Deleted\"},\"id\":\"yxonsupe\",\"name\":\"jlzqnhc\",\"type\":\"sqltnzo\"},{\"properties\":{\"description\":\"gsxgnxfyqon\",\"prefixList\":[\"qoxwd\"],\"etag\":\"dbxiqx\",\"auditComment\":\"iqbi\",\"provisioningState\":\"NotSpecified\"},\"id\":\"wwinhehf\",\"name\":\"pofvwb\",\"type\":\"blembnkbwvqvxkd\"}],\"nextLink\":\"qihebw\"}") .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()); + Assertions.assertEquals("fusfzsvtuikzhajq", model.value().get(0).description()); + Assertions.assertEquals("cfhmlrqryxyn", model.value().get(0).prefixList().get(0)); + Assertions.assertEquals("vf", model.value().get(0).etag()); + Assertions.assertEquals("kvntjlrigjkskyri", model.value().get(0).auditComment()); + Assertions.assertEquals("qihebw", 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 index 91b99d3e6119..58c3aca04d61 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,24 +13,24 @@ 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\"}") + "{\"description\":\"ptramxj\",\"prefixList\":[\"wlwnwxuqlcv\"],\"etag\":\"ypatdooaojkniod\",\"auditComment\":\"oebwnujhemms\",\"provisioningState\":\"Accepted\"}") .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()); + Assertions.assertEquals("ptramxj", model.description()); + Assertions.assertEquals("wlwnwxuqlcv", model.prefixList().get(0)); + Assertions.assertEquals("ypatdooaojkniod", model.etag()); + Assertions.assertEquals("oebwnujhemms", 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"); + PrefixObject model = new PrefixObject().withDescription("ptramxj") + .withPrefixList(Arrays.asList("wlwnwxuqlcv")) + .withEtag("ypatdooaojkniod") + .withAuditComment("oebwnujhemms"); 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()); + Assertions.assertEquals("ptramxj", model.description()); + Assertions.assertEquals("wlwnwxuqlcv", model.prefixList().get(0)); + Assertions.assertEquals("ypatdooaojkniod", model.etag()); + Assertions.assertEquals("oebwnujhemms", model.auditComment()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ProductSerialNumberRequestStatusInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ProductSerialNumberRequestStatusInnerTests.java new file mode 100644 index 000000000000..4f5e2c4eca25 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ProductSerialNumberRequestStatusInnerTests.java @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner; +import org.junit.jupiter.api.Assertions; + +public final class ProductSerialNumberRequestStatusInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ProductSerialNumberRequestStatusInner model = BinaryData.fromString("{\"status\":\"swbzuwfmdurage\"}") + .toObject(ProductSerialNumberRequestStatusInner.class); + Assertions.assertEquals("swbzuwfmdurage", model.status()); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ProductSerialNumberStatusInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ProductSerialNumberStatusInnerTests.java new file mode 100644 index 000000000000..9e056ba4d22e --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/ProductSerialNumberStatusInnerTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.ProductSerialStatusValues; +import org.junit.jupiter.api.Assertions; + +public final class ProductSerialNumberStatusInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ProductSerialNumberStatusInner model + = BinaryData.fromString("{\"serialNumber\":\"acy\",\"status\":\"InProgress\"}") + .toObject(ProductSerialNumberStatusInner.class); + Assertions.assertEquals("acy", model.serialNumber()); + Assertions.assertEquals(ProductSerialStatusValues.IN_PROGRESS, model.status()); + } +} 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 index 827b25ac2d1e..28b856ee9ea8 100644 --- 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 @@ -1,93 +1,36 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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\"}") + "{\"priority\":\"plsaknynfsynljph\",\"ruleStackName\":\"pxodlqiyntorzih\",\"ruleListName\":\"osjswsr\",\"firewallName\":\"lyzrpzbchckqqzqi\",\"ruleName\":\"xiy\",\"hitCount\":1721034864,\"appSeen\":{\"count\":1896138936,\"appSeenList\":[{\"title\":\"nkedyatrwyhqmib\",\"category\":\"yhwitsmypyynpcdp\",\"subCategory\":\"mnzgmwznmabi\",\"risk\":\"nsorgjhxbldt\",\"tag\":\"wwrlkdmtncv\",\"technology\":\"kotl\",\"standardPorts\":\"xdy\"},{\"title\":\"gsyocogj\",\"category\":\"tdtbnnhadooc\",\"subCategory\":\"kvci\",\"risk\":\"hnvpamqgxq\",\"tag\":\"u\",\"technology\":\"zikywgg\",\"standardPorts\":\"kallatmel\"},{\"title\":\"uipiccjzk\",\"category\":\"ivgvvcna\",\"subCategory\":\"rhyrnxxmueed\",\"risk\":\"drd\",\"tag\":\"stkwqqtch\",\"technology\":\"alm\",\"standardPorts\":\"mtdaa\"},{\"title\":\"gdv\",\"category\":\"vgpiohgwxrt\",\"subCategory\":\"udxepxgyqagv\",\"risk\":\"vmnpkukghimdblx\",\"tag\":\"wi\",\"technology\":\"fnjhfjxwmszkkfo\",\"standardPorts\":\"rey\"}]},\"timestamp\":\"2021-05-31T03:25:20Z\",\"requestTimestamp\":\"2021-03-26T08:18:16Z\",\"lastUpdatedTimestamp\":\"2021-01-04T11:20:29Z\"}") .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()); + Assertions.assertEquals("plsaknynfsynljph", model.priority()); + Assertions.assertEquals("pxodlqiyntorzih", model.ruleStackName()); + Assertions.assertEquals("osjswsr", model.ruleListName()); + Assertions.assertEquals("lyzrpzbchckqqzqi", model.firewallName()); + Assertions.assertEquals("xiy", model.ruleName()); + Assertions.assertEquals(1721034864, model.hitCount()); + Assertions.assertEquals(1896138936, model.appSeen().count()); + Assertions.assertEquals("nkedyatrwyhqmib", model.appSeen().appSeenList().get(0).title()); + Assertions.assertEquals("yhwitsmypyynpcdp", model.appSeen().appSeenList().get(0).category()); + Assertions.assertEquals("mnzgmwznmabi", model.appSeen().appSeenList().get(0).subCategory()); + Assertions.assertEquals("nsorgjhxbldt", model.appSeen().appSeenList().get(0).risk()); + Assertions.assertEquals("wwrlkdmtncv", model.appSeen().appSeenList().get(0).tag()); + Assertions.assertEquals("kotl", model.appSeen().appSeenList().get(0).technology()); + Assertions.assertEquals("xdy", model.appSeen().appSeenList().get(0).standardPorts()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-31T03:25:20Z"), model.timestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T08:18:16Z"), model.requestTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-04T11:20:29Z"), 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 index 50a0d6d5411f..2e286df6ea8e 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,24 +12,11 @@ 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\"}") + "{\"priority\":\"ky\",\"ruleStackName\":\"beddgssofw\",\"ruleListName\":\"zqalkrmnjijpx\",\"firewallName\":\"q\",\"ruleName\":\"dfnbyxbaaabjyv\"}") .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()); + Assertions.assertEquals("beddgssofw", model.ruleStackName()); + Assertions.assertEquals("zqalkrmnjijpx", model.ruleListName()); + Assertions.assertEquals("q", model.firewallName()); + Assertions.assertEquals("dfnbyxbaaabjyv", 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 index e80d3b51c5de..28415aad9920 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,21 +11,21 @@ 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()); + RulestackDetails model = BinaryData + .fromString("{\"resourceId\":\"slbi\",\"rulestackId\":\"ojgcyzt\",\"location\":\"mznbaeqphch\"}") + .toObject(RulestackDetails.class); + Assertions.assertEquals("slbi", model.resourceId()); + Assertions.assertEquals("ojgcyzt", model.rulestackId()); + Assertions.assertEquals("mznbaeqphch", model.location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RulestackDetails model - = new RulestackDetails().withResourceId("ugzxnf").withRulestackId("zpxdt").withLocation("dm"); + = new RulestackDetails().withResourceId("slbi").withRulestackId("ojgcyzt").withLocation("mznbaeqphch"); model = BinaryData.fromObject(model).toObject(RulestackDetails.class); - Assertions.assertEquals("ugzxnf", model.resourceId()); - Assertions.assertEquals("zpxdt", model.rulestackId()); - Assertions.assertEquals("dm", model.location()); + Assertions.assertEquals("slbi", model.resourceId()); + Assertions.assertEquals("ojgcyzt", model.rulestackId()); + Assertions.assertEquals("mznbaeqphch", 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 index 1d453e20cb99..240e3091c503 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -16,57 +16,57 @@ 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\"}}") + "{\"panEtag\":\"crzevdphlx\",\"panLocation\":\"lthqtrgqjbp\",\"scope\":\"GLOBAL\",\"associatedSubscriptions\":[\"n\",\"gvfcj\"],\"description\":\"zoxxjtf\",\"defaultMode\":\"NONE\",\"minAppIdVersion\":\"wfzitonpeqfpjk\",\"provisioningState\":\"Updating\",\"securityServices\":{\"vulnerabilityProfile\":\"pdvhpfxxypin\",\"antiSpywareProfile\":\"mayhuybbkpodepoo\",\"antiVirusProfile\":\"nuvamiheogna\",\"urlFilteringProfile\":\"zxtheotusivyevcc\",\"fileBlockingProfile\":\"ihnhun\",\"dnsSubscription\":\"wjzrnfygxgisp\",\"outboundUnTrustCertificate\":\"vtz\",\"outboundTrustCertificate\":\"ufubl\"}}") .toObject(RulestackProperties.class); - Assertions.assertEquals("jq", model.panEtag()); - Assertions.assertEquals("hmuouqfprwzwbn", model.panLocation()); + Assertions.assertEquals("crzevdphlx", model.panEtag()); + Assertions.assertEquals("lthqtrgqjbp", model.panLocation()); Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); - Assertions.assertEquals("wu", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("gazxuf", model.description()); + Assertions.assertEquals("n", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("zoxxjtf", 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()); + Assertions.assertEquals("wfzitonpeqfpjk", model.minAppIdVersion()); + Assertions.assertEquals("pdvhpfxxypin", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("mayhuybbkpodepoo", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("nuvamiheogna", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("zxtheotusivyevcc", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("ihnhun", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("wjzrnfygxgisp", model.securityServices().dnsSubscription()); + Assertions.assertEquals("vtz", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("ufubl", model.securityServices().outboundTrustCertificate()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RulestackProperties model = new RulestackProperties().withPanEtag("jq") - .withPanLocation("hmuouqfprwzwbn") + RulestackProperties model = new RulestackProperties().withPanEtag("crzevdphlx") + .withPanLocation("lthqtrgqjbp") .withScope(ScopeType.GLOBAL) - .withAssociatedSubscriptions(Arrays.asList("wu")) - .withDescription("gazxuf") + .withAssociatedSubscriptions(Arrays.asList("n", "gvfcj")) + .withDescription("zoxxjtf") .withDefaultMode(DefaultMode.NONE) - .withMinAppIdVersion("kyfi") - .withSecurityServices(new SecurityServices().withVulnerabilityProfile("fvzwdzuhty") - .withAntiSpywareProfile("isdkfthwxmnteiw") - .withAntiVirusProfile("pvkmijcmmxdcuf") - .withUrlFilteringProfile("srp") - .withFileBlockingProfile("zidnsezcxtbzsgfy") - .withDnsSubscription("sne") - .withOutboundUnTrustCertificate("dwzjeiach") - .withOutboundTrustCertificate("osfln")); + .withMinAppIdVersion("wfzitonpeqfpjk") + .withSecurityServices(new SecurityServices().withVulnerabilityProfile("pdvhpfxxypin") + .withAntiSpywareProfile("mayhuybbkpodepoo") + .withAntiVirusProfile("nuvamiheogna") + .withUrlFilteringProfile("zxtheotusivyevcc") + .withFileBlockingProfile("ihnhun") + .withDnsSubscription("wjzrnfygxgisp") + .withOutboundUnTrustCertificate("vtz") + .withOutboundTrustCertificate("ufubl")); model = BinaryData.fromObject(model).toObject(RulestackProperties.class); - Assertions.assertEquals("jq", model.panEtag()); - Assertions.assertEquals("hmuouqfprwzwbn", model.panLocation()); + Assertions.assertEquals("crzevdphlx", model.panEtag()); + Assertions.assertEquals("lthqtrgqjbp", model.panLocation()); Assertions.assertEquals(ScopeType.GLOBAL, model.scope()); - Assertions.assertEquals("wu", model.associatedSubscriptions().get(0)); - Assertions.assertEquals("gazxuf", model.description()); + Assertions.assertEquals("n", model.associatedSubscriptions().get(0)); + Assertions.assertEquals("zoxxjtf", 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()); + Assertions.assertEquals("wfzitonpeqfpjk", model.minAppIdVersion()); + Assertions.assertEquals("pdvhpfxxypin", model.securityServices().vulnerabilityProfile()); + Assertions.assertEquals("mayhuybbkpodepoo", model.securityServices().antiSpywareProfile()); + Assertions.assertEquals("nuvamiheogna", model.securityServices().antiVirusProfile()); + Assertions.assertEquals("zxtheotusivyevcc", model.securityServices().urlFilteringProfile()); + Assertions.assertEquals("ihnhun", model.securityServices().fileBlockingProfile()); + Assertions.assertEquals("wjzrnfygxgisp", model.securityServices().dnsSubscription()); + Assertions.assertEquals("vtz", model.securityServices().outboundUnTrustCertificate()); + Assertions.assertEquals("ufubl", 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 index 5a7f7f0b2a46..b8562dcb978e 100644 --- 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 @@ -1,14 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 { @@ -22,19 +19,4 @@ public void testDeserialize() throws Exception { 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 index 7b1b38d85cbe..52a9168c7ca4 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -12,36 +12,36 @@ 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\"}") + "{\"vulnerabilityProfile\":\"fxqeof\",\"antiSpywareProfile\":\"e\",\"antiVirusProfile\":\"hqjbasvmsmj\",\"urlFilteringProfile\":\"lngsntnbybkzgcwr\",\"fileBlockingProfile\":\"lxxwrljdouskc\",\"dnsSubscription\":\"kocrcjdkwtnhx\",\"outboundUnTrustCertificate\":\"jbiksqrglssai\",\"outboundTrustCertificate\":\"p\"}") .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()); + Assertions.assertEquals("fxqeof", model.vulnerabilityProfile()); + Assertions.assertEquals("e", model.antiSpywareProfile()); + Assertions.assertEquals("hqjbasvmsmj", model.antiVirusProfile()); + Assertions.assertEquals("lngsntnbybkzgcwr", model.urlFilteringProfile()); + Assertions.assertEquals("lxxwrljdouskc", model.fileBlockingProfile()); + Assertions.assertEquals("kocrcjdkwtnhx", model.dnsSubscription()); + Assertions.assertEquals("jbiksqrglssai", model.outboundUnTrustCertificate()); + Assertions.assertEquals("p", 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"); + SecurityServices model = new SecurityServices().withVulnerabilityProfile("fxqeof") + .withAntiSpywareProfile("e") + .withAntiVirusProfile("hqjbasvmsmj") + .withUrlFilteringProfile("lngsntnbybkzgcwr") + .withFileBlockingProfile("lxxwrljdouskc") + .withDnsSubscription("kocrcjdkwtnhx") + .withOutboundUnTrustCertificate("jbiksqrglssai") + .withOutboundTrustCertificate("p"); 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()); + Assertions.assertEquals("fxqeof", model.vulnerabilityProfile()); + Assertions.assertEquals("e", model.antiSpywareProfile()); + Assertions.assertEquals("hqjbasvmsmj", model.antiVirusProfile()); + Assertions.assertEquals("lngsntnbybkzgcwr", model.urlFilteringProfile()); + Assertions.assertEquals("lxxwrljdouskc", model.fileBlockingProfile()); + Assertions.assertEquals("kocrcjdkwtnhx", model.dnsSubscription()); + Assertions.assertEquals("jbiksqrglssai", model.outboundUnTrustCertificate()); + Assertions.assertEquals("p", 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 index 4322d108a829..4d406cb6cfb4 100644 --- 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 @@ -1,13 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.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 { @@ -20,17 +18,4 @@ public void testDeserialize() throws Exception { 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 index 064bca13bfc9..8be29b2da818 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,24 +13,24 @@ 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\"]}") + "{\"cidrs\":[\"hgure\"],\"countries\":[\"wobdagxtibqdx\",\"xwak\",\"ogqxndlkzgxhuri\"],\"feeds\":[\"podxunkb\",\"bxmubyynt\",\"lrb\",\"tkoievseotgq\"],\"prefixLists\":[\"tmuwlauwzi\",\"xbmp\",\"cjefuzmu\",\"pbttdum\"]}") .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)); + Assertions.assertEquals("hgure", model.cidrs().get(0)); + Assertions.assertEquals("wobdagxtibqdx", model.countries().get(0)); + Assertions.assertEquals("podxunkb", model.feeds().get(0)); + Assertions.assertEquals("tmuwlauwzi", 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")); + SourceAddr model = new SourceAddr().withCidrs(Arrays.asList("hgure")) + .withCountries(Arrays.asList("wobdagxtibqdx", "xwak", "ogqxndlkzgxhuri")) + .withFeeds(Arrays.asList("podxunkb", "bxmubyynt", "lrb", "tkoievseotgq")) + .withPrefixLists(Arrays.asList("tmuwlauwzi", "xbmp", "cjefuzmu", "pbttdum")); 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)); + Assertions.assertEquals("hgure", model.cidrs().get(0)); + Assertions.assertEquals("wobdagxtibqdx", model.countries().get(0)); + Assertions.assertEquals("podxunkb", model.feeds().get(0)); + Assertions.assertEquals("tmuwlauwzi", 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 index 12b331f80e22..47906c7dec7f 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -11,21 +11,21 @@ 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()); + StorageAccount model + = BinaryData.fromString("{\"id\":\"tpzdmovzvfvaawzq\",\"subscriptionId\":\"f\",\"accountName\":\"z\"}") + .toObject(StorageAccount.class); + Assertions.assertEquals("tpzdmovzvfvaawzq", model.id()); + Assertions.assertEquals("f", model.subscriptionId()); + Assertions.assertEquals("z", model.accountName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { StorageAccount model - = new StorageAccount().withId("dslqxihhrmooizqs").withSubscriptionId("pxiutc").withAccountName("pzhyr"); + = new StorageAccount().withId("tpzdmovzvfvaawzq").withSubscriptionId("f").withAccountName("z"); model = BinaryData.fromObject(model).toObject(StorageAccount.class); - Assertions.assertEquals("dslqxihhrmooizqs", model.id()); - Assertions.assertEquals("pxiutc", model.subscriptionId()); - Assertions.assertEquals("pzhyr", model.accountName()); + Assertions.assertEquals("tpzdmovzvfvaawzq", model.id()); + Assertions.assertEquals("f", model.subscriptionId()); + Assertions.assertEquals("z", model.accountName()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StrataCloudManagerConfigTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StrataCloudManagerConfigTests.java new file mode 100644 index 000000000000..f176a8cad106 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StrataCloudManagerConfigTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerConfig; +import org.junit.jupiter.api.Assertions; + +public final class StrataCloudManagerConfigTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + StrataCloudManagerConfig model + = BinaryData.fromString("{\"cloudManagerName\":\"gdyftumrtwna\"}").toObject(StrataCloudManagerConfig.class); + Assertions.assertEquals("gdyftumrtwna", model.cloudManagerName()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + StrataCloudManagerConfig model = new StrataCloudManagerConfig().withCloudManagerName("gdyftumrtwna"); + model = BinaryData.fromObject(model).toObject(StrataCloudManagerConfig.class); + Assertions.assertEquals("gdyftumrtwna", model.cloudManagerName()); + } +} diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StrataCloudManagerInfoTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StrataCloudManagerInfoTests.java new file mode 100644 index 000000000000..fea7b9c5c4af --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/StrataCloudManagerInfoTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StrataCloudManagerInfo; +import org.junit.jupiter.api.Assertions; + +public final class StrataCloudManagerInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + StrataCloudManagerInfo model = BinaryData.fromString("{\"folderName\":\"cdisd\",\"hubUrl\":\"fj\"}") + .toObject(StrataCloudManagerInfo.class); + Assertions.assertEquals("cdisd", model.folderName()); + Assertions.assertEquals("fj", model.hubUrl()); + } +} 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 index 07e412a6da2c..2f1de0e5c73e 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -13,48 +13,19 @@ 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\"}") + "{\"productSku\":\"ynhdwdigum\",\"productSerial\":\"raauzzpt\",\"accountRegistered\":\"TRUE\",\"accountId\":\"sdzhezww\",\"userDomainSupported\":\"TRUE\",\"userRegistered\":\"FALSE\",\"freeTrial\":\"TRUE\",\"freeTrialDaysLeft\":1770480211,\"freeTrialCreditLeft\":496304877,\"helpURL\":\"p\",\"supportURL\":\"qyikvy\",\"registerURL\":\"uyav\"}") .toObject(SupportInfoInner.class); - Assertions.assertEquals("h", model.productSku()); - Assertions.assertEquals("uj", model.productSerial()); + Assertions.assertEquals("ynhdwdigum", model.productSku()); + Assertions.assertEquals("raauzzpt", model.productSerial()); Assertions.assertEquals(BooleanEnum.TRUE, model.accountRegistered()); - Assertions.assertEquals("kozzwculkb", model.accountId()); - Assertions.assertEquals(BooleanEnum.FALSE, model.userDomainSupported()); + Assertions.assertEquals("sdzhezww", model.accountId()); + Assertions.assertEquals(BooleanEnum.TRUE, 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()); + Assertions.assertEquals(BooleanEnum.TRUE, model.freeTrial()); + Assertions.assertEquals(1770480211, model.freeTrialDaysLeft()); + Assertions.assertEquals(496304877, model.freeTrialCreditLeft()); + Assertions.assertEquals("p", model.helpUrl()); + Assertions.assertEquals("qyikvy", model.supportUrl()); + Assertions.assertEquals("uyav", model.registerUrl()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SupportInfoModelInnerTests.java b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SupportInfoModelInnerTests.java new file mode 100644 index 000000000000..e868f09276a3 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/src/test/java/com/azure/resourcemanager/paloaltonetworks/ngfw/generated/SupportInfoModelInnerTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; + +import com.azure.core.util.BinaryData; +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 org.junit.jupiter.api.Assertions; + +public final class SupportInfoModelInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SupportInfoModelInner model = BinaryData.fromString( + "{\"productSku\":\"jdmspofapvuhryln\",\"productSerial\":\"frzgbzjed\",\"accountRegistrationStatus\":\"Not Registered\",\"accountId\":\"vnlvxbcuiiznktwf\",\"freeTrial\":\"Disabled\",\"freeTrialDaysLeft\":206149919,\"freeTrialCreditLeft\":2089270983,\"helpURL\":\"bmikost\",\"supportURL\":\"bkiw\",\"registerURL\":\"qnyophzfyls\",\"hubUrl\":\"rpfbcunezz\",\"credits\":12099501,\"monthlyCreditLeft\":1368017233,\"startDateForCredits\":\"w\",\"endDateForCredits\":\"wl\"}") + .toObject(SupportInfoModelInner.class); + Assertions.assertEquals("jdmspofapvuhryln", model.productSku()); + Assertions.assertEquals("frzgbzjed", model.productSerial()); + Assertions.assertEquals(RegistrationStatus.NOT_REGISTERED, model.accountRegistrationStatus()); + Assertions.assertEquals("vnlvxbcuiiznktwf", model.accountId()); + Assertions.assertEquals(EnableStatus.DISABLED, model.freeTrial()); + Assertions.assertEquals(206149919, model.freeTrialDaysLeft()); + Assertions.assertEquals(2089270983, model.freeTrialCreditLeft()); + Assertions.assertEquals("bmikost", model.helpUrl()); + Assertions.assertEquals("bkiw", model.supportUrl()); + Assertions.assertEquals("qnyophzfyls", model.registerUrl()); + Assertions.assertEquals("rpfbcunezz", model.hubUrl()); + Assertions.assertEquals(12099501, model.credits()); + Assertions.assertEquals(1368017233, model.monthlyCreditLeft()); + Assertions.assertEquals("w", model.startDateForCredits()); + Assertions.assertEquals("wl", model.endDateForCredits()); + } +} 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 index 17eede8c72c4..7f264b5a52c5 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -14,33 +14,34 @@ 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\"}}") + "{\"vnet\":{\"resourceId\":\"jbibg\",\"addressSpace\":\"fxumv\"},\"trustSubnet\":{\"resourceId\":\"luyovwxnbkfezzx\",\"addressSpace\":\"yhwzdgiruj\"},\"unTrustSubnet\":{\"resourceId\":\"bomvzzbtdcqv\",\"addressSpace\":\"iyujviylwdshfs\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"bgye\",\"address\":\"ymsgaojfmwnc\"}}") .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()); + Assertions.assertEquals("jbibg", model.vnet().resourceId()); + Assertions.assertEquals("fxumv", model.vnet().addressSpace()); + Assertions.assertEquals("luyovwxnbkfezzx", model.trustSubnet().resourceId()); + Assertions.assertEquals("yhwzdgiruj", model.trustSubnet().addressSpace()); + Assertions.assertEquals("bomvzzbtdcqv", model.unTrustSubnet().resourceId()); + Assertions.assertEquals("iyujviylwdshfs", model.unTrustSubnet().addressSpace()); + Assertions.assertEquals("bgye", model.ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("ymsgaojfmwnc", 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")); + = new VnetConfiguration().withVnet(new IpAddressSpace().withResourceId("jbibg").withAddressSpace("fxumv")) + .withTrustSubnet(new IpAddressSpace().withResourceId("luyovwxnbkfezzx").withAddressSpace("yhwzdgiruj")) + .withUnTrustSubnet( + new IpAddressSpace().withResourceId("bomvzzbtdcqv").withAddressSpace("iyujviylwdshfs")) + .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("bgye").withAddress("ymsgaojfmwnc")); 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()); + Assertions.assertEquals("jbibg", model.vnet().resourceId()); + Assertions.assertEquals("fxumv", model.vnet().addressSpace()); + Assertions.assertEquals("luyovwxnbkfezzx", model.trustSubnet().resourceId()); + Assertions.assertEquals("yhwzdgiruj", model.trustSubnet().addressSpace()); + Assertions.assertEquals("bomvzzbtdcqv", model.unTrustSubnet().resourceId()); + Assertions.assertEquals("iyujviylwdshfs", model.unTrustSubnet().addressSpace()); + Assertions.assertEquals("bgye", model.ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("ymsgaojfmwnc", 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 index 9ac6e6a9abe7..dccd8454293e 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.generated; @@ -14,35 +14,35 @@ 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\"}}") + "{\"networkVirtualApplianceId\":\"mrsreuzvxurisjnh\",\"vHub\":{\"resourceId\":\"txifqj\",\"addressSpace\":\"xmrhu\"},\"trustSubnet\":{\"resourceId\":\"pcesutrg\",\"addressSpace\":\"pauutpw\"},\"unTrustSubnet\":{\"resourceId\":\"ih\",\"addressSpace\":\"qg\"},\"ipOfTrustSubnetForUdr\":{\"resourceId\":\"nfqn\",\"address\":\"ypsxjvfoim\"}}") .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()); + Assertions.assertEquals("mrsreuzvxurisjnh", model.networkVirtualApplianceId()); + Assertions.assertEquals("txifqj", model.vHub().resourceId()); + Assertions.assertEquals("xmrhu", model.vHub().addressSpace()); + Assertions.assertEquals("pcesutrg", model.trustSubnet().resourceId()); + Assertions.assertEquals("pauutpw", model.trustSubnet().addressSpace()); + Assertions.assertEquals("ih", model.unTrustSubnet().resourceId()); + Assertions.assertEquals("qg", model.unTrustSubnet().addressSpace()); + Assertions.assertEquals("nfqn", model.ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("ypsxjvfoim", 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")); + VwanConfiguration model = new VwanConfiguration().withNetworkVirtualApplianceId("mrsreuzvxurisjnh") + .withVHub(new IpAddressSpace().withResourceId("txifqj").withAddressSpace("xmrhu")) + .withTrustSubnet(new IpAddressSpace().withResourceId("pcesutrg").withAddressSpace("pauutpw")) + .withUnTrustSubnet(new IpAddressSpace().withResourceId("ih").withAddressSpace("qg")) + .withIpOfTrustSubnetForUdr(new IpAddress().withResourceId("nfqn").withAddress("ypsxjvfoim")); 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()); + Assertions.assertEquals("mrsreuzvxurisjnh", model.networkVirtualApplianceId()); + Assertions.assertEquals("txifqj", model.vHub().resourceId()); + Assertions.assertEquals("xmrhu", model.vHub().addressSpace()); + Assertions.assertEquals("pcesutrg", model.trustSubnet().resourceId()); + Assertions.assertEquals("pauutpw", model.trustSubnet().addressSpace()); + Assertions.assertEquals("ih", model.unTrustSubnet().resourceId()); + Assertions.assertEquals("qg", model.unTrustSubnet().addressSpace()); + Assertions.assertEquals("nfqn", model.ipOfTrustSubnetForUdr().resourceId()); + Assertions.assertEquals("ypsxjvfoim", model.ipOfTrustSubnetForUdr().address()); } } diff --git a/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/tsp-location.yaml b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/tsp-location.yaml new file mode 100644 index 000000000000..1eb12b3b7699 --- /dev/null +++ b/sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/paloaltonetworks/PaloAltoNetworks.Management +commit: 8e3e3baa2523e17becb3d7032eb909aba12b7f2c +repo: Azure/azure-rest-api-specs +additionalDirectories: