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