From 214afb9c528b3512505636a6a6bcca4bc7b0e082 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 15 Mar 2022 10:43:53 +0000 Subject: [PATCH] CodeGen from PR 18257 in Azure/azure-rest-api-specs Merge 069f1ee3f06cd37bee701d20eb93f317e0d70d05 into 6354ca8bf06ea064f4f0fef331a10c1baf62ac35 --- .../CHANGELOG.md | 4 ++- .../README.md | 2 +- .../mobilenetwork/MobileNetworkManager.java | 8 +++-- .../models/AttachedDataNetworkInner.java | 23 ++++++------ .../AttachedDataNetworkPropertiesFormat.java | 7 ++-- .../fluent/models/DataNetworkInner.java | 20 +++++------ .../models/DataNetworkPropertiesFormat.java | 4 --- .../fluent/models/MobileNetworkInner.java | 23 ++++++------ .../models/MobileNetworkPropertiesFormat.java | 7 ++-- .../fluent/models/OperationInner.java | 4 --- .../models/PacketCoreControlPlaneInner.java | 23 ++++++------ ...acketCoreControlPlanePropertiesFormat.java | 9 +++-- .../models/PacketCoreDataPlaneInner.java | 23 ++++++------ .../PacketCoreDataPlanePropertiesFormat.java | 7 ++-- .../fluent/models/ServiceInner.java | 23 ++++++------ .../models/ServicePropertiesFormat.java | 7 ++-- .../fluent/models/SimIdListResultInner.java | 4 --- .../mobilenetwork/fluent/models/SimInner.java | 23 ++++++------ .../fluent/models/SimPolicyInner.java | 23 ++++++------ .../models/SimPolicyPropertiesFormat.java | 11 +++--- .../fluent/models/SimPropertiesFormat.java | 7 ++-- .../fluent/models/SiteInner.java | 20 +++++------ .../fluent/models/SitePropertiesFormat.java | 4 --- .../fluent/models/SliceInner.java | 23 ++++++------ .../fluent/models/SlicePropertiesFormat.java | 7 ++-- .../AttachedDataNetworksClientImpl.java | 3 -- .../AttachedDataNetworksImpl.java | 35 +++++++++---------- .../DataNetworksClientImpl.java | 3 -- .../implementation/DataNetworksImpl.java | 27 +++++++------- .../MobileNetworkManagementClientImpl.java | 6 ++-- .../MobileNetworksClientImpl.java | 3 -- .../implementation/MobileNetworksImpl.java | 19 +++++----- .../implementation/OperationsClientImpl.java | 3 -- .../implementation/OperationsImpl.java | 3 +- .../PacketCoreControlPlanesClientImpl.java | 3 -- .../PacketCoreControlPlanesImpl.java | 19 +++++----- .../PacketCoreDataPlanesClientImpl.java | 3 -- .../PacketCoreDataPlanesImpl.java | 27 +++++++------- .../implementation/ServicesClientImpl.java | 3 -- .../implementation/ServicesImpl.java | 27 +++++++------- .../implementation/SimPoliciesClientImpl.java | 3 -- .../implementation/SimPoliciesImpl.java | 27 +++++++------- .../implementation/SimsClientImpl.java | 3 -- .../implementation/SimsImpl.java | 19 +++++----- .../implementation/SitesClientImpl.java | 3 -- .../implementation/SitesImpl.java | 27 +++++++------- .../implementation/SlicesClientImpl.java | 3 -- .../implementation/SlicesImpl.java | 27 +++++++------- .../mobilenetwork/models/Ambr.java | 9 +++-- .../models/AttachedDataNetworkListResult.java | 4 --- .../models/AttachedDataNetworkResourceId.java | 7 ++-- .../models/CustomLocationResourceId.java | 7 ++-- .../models/DataNetworkConfiguration.java | 11 +++--- .../models/DataNetworkListResult.java | 4 --- .../models/DataNetworkResourceId.java | 7 ++-- .../models/InterfaceProperties.java | 7 ++-- .../models/MobileNetworkListResult.java | 4 --- .../models/MobileNetworkResourceId.java | 7 ++-- .../models/NaptConfiguration.java | 4 --- .../models/OperationDisplay.java | 4 --- .../mobilenetwork/models/OperationList.java | 4 --- .../PacketCoreControlPlaneListResult.java | 4 --- .../models/PacketCoreDataPlaneListResult.java | 4 --- .../models/PccRuleConfiguration.java | 9 +++-- .../models/PccRuleQosPolicy.java | 4 --- .../mobilenetwork/models/PinholeTimeouts.java | 4 --- .../mobilenetwork/models/PlmnId.java | 9 +++-- .../mobilenetwork/models/PortRange.java | 4 --- .../models/PortReuseHoldTimes.java | 4 --- .../mobilenetwork/models/QosPolicy.java | 7 ++-- .../models/ServiceDataFlowTemplate.java | 13 ++++--- .../models/ServiceListResult.java | 4 --- .../models/ServiceResourceId.java | 7 ++-- .../mobilenetwork/models/SimListResult.java | 4 --- .../models/SimPolicyListResult.java | 4 --- .../models/SimPolicyResourceId.java | 7 ++-- .../models/SimStaticIpProperties.java | 4 --- .../models/SimStaticIpPropertiesStaticIp.java | 4 --- .../mobilenetwork/models/SiteListResult.java | 4 --- .../models/SliceConfiguration.java | 11 +++--- .../mobilenetwork/models/SliceListResult.java | 4 --- .../mobilenetwork/models/SliceResourceId.java | 7 ++-- .../mobilenetwork/models/Snssai.java | 4 --- .../mobilenetwork/models/TagsObject.java | 4 --- 84 files changed, 321 insertions(+), 500 deletions(-) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md index 7c8526d6eeb85..29f4974a6be9b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-03-15) + +- Azure Resource Manager MobileNetwork client library for Java. This package contains Microsoft Azure SDK for MobileNetwork Management SDK. The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md index d6ceefdc32bd0..c791b1e398a74 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-mobilenetwork - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java index ac92671ac18d3..46b8ba81e6e48 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java @@ -117,7 +117,7 @@ public static Configurable configure() { /** The Configurable allowing configurations to be set. */ public static final class Configurable { - private final ClientLogger logger = new ClientLogger(Configurable.class); + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -191,9 +191,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null."); + this.defaultPollInterval = + Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { - throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative")); + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); } return this; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java index ae6a3d86b26e9..d98c81fb2a108 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java @@ -11,7 +11,6 @@ import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -19,8 +18,6 @@ /** Attached data network resource. */ @Fluent public final class AttachedDataNetworkInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkInner.class); - /* * Data network properties. */ @@ -42,14 +39,14 @@ private AttachedDataNetworkPropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -192,7 +189,7 @@ public AttachedDataNetworkInner withUserEquipmentStaticAddressPoolPrefix( */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model AttachedDataNetworkInner")); @@ -200,4 +197,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworkInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java index 300a51d6555c2..d2831a1dd1561 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java @@ -9,15 +9,12 @@ import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Data network properties. */ @Fluent public final class AttachedDataNetworkPropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkPropertiesFormat.class); - /* * The provisioning state of the attached data network resource. */ @@ -180,7 +177,7 @@ public AttachedDataNetworkPropertiesFormat withUserEquipmentStaticAddressPoolPre */ public void validate() { if (userPlaneDataInterface() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property userPlaneDataInterface in model" @@ -192,4 +189,6 @@ public void validate() { naptConfiguration().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworkPropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java index 5edc1c4b5f977..06afb0dfbf4d2 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java @@ -7,17 +7,13 @@ 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.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Data network resource. */ @Fluent public final class DataNetworkInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkInner.class); - /* * Data network properties. */ @@ -39,14 +35,14 @@ private DataNetworkPropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java index cb6b8484a1640..12f5fba9420e3 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.mobilenetwork.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Data network properties. */ @Fluent public final class DataNetworkPropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkPropertiesFormat.class); - /* * The provisioning state of the data network resource. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java index 8078ce08f783d..92708cd577a09 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java @@ -10,15 +10,12 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.PlmnId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Mobile network resource. */ @Fluent public final class MobileNetworkInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworkInner.class); - /* * Mobile network properties. */ @@ -40,14 +37,14 @@ private MobileNetworkPropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -117,7 +114,7 @@ public String serviceKey() { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model MobileNetworkInner")); @@ -125,4 +122,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(MobileNetworkInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java index cf9735dc72824..71ebb4be05812 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.PlmnId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Mobile network properties. */ @Fluent public final class MobileNetworkPropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworkPropertiesFormat.class); - /* * The provisioning state of the mobile network resource. */ @@ -90,7 +87,7 @@ public String serviceKey() { */ public void validate() { if (publicLandMobileNetworkIdentifier() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property publicLandMobileNetworkIdentifier in model" @@ -99,4 +96,6 @@ public void validate() { publicLandMobileNetworkIdentifier().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(MobileNetworkPropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java index feb28a701284e..3650568d1e757 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.mobilenetwork.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.OperationDisplay; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Object that describes a single Microsoft.MobileNetwork operation. */ @Fluent public final class OperationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); - /* * Indicates whether the operation applies to data-plane. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java index a223388ecf332..d5e8881c66af7 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java @@ -13,15 +13,12 @@ import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Packet core control plane resource. */ @Fluent public final class PacketCoreControlPlaneInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreControlPlaneInner.class); - /* * Packet core control plane Properties. */ @@ -43,14 +40,14 @@ private PacketCoreControlPlanePropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -200,7 +197,7 @@ public PacketCoreControlPlaneInner withControlPlaneAccessInterface( */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model PacketCoreControlPlaneInner")); @@ -208,4 +205,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlaneInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java index 2bf92c787d127..13f2e4130e372 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java @@ -11,14 +11,11 @@ import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** PacketCoreControlPlane properties. */ @Fluent public final class PacketCoreControlPlanePropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreControlPlanePropertiesFormat.class); - /* * The provisioning state of the packet core control plane resource. */ @@ -176,7 +173,7 @@ public PacketCoreControlPlanePropertiesFormat withControlPlaneAccessInterface( */ public void validate() { if (mobileNetwork() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property mobileNetwork in model PacketCoreControlPlanePropertiesFormat")); @@ -187,7 +184,7 @@ public void validate() { customLocation().validate(); } if (controlPlaneAccessInterface() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property controlPlaneAccessInterface in model" @@ -196,4 +193,6 @@ public void validate() { controlPlaneAccessInterface().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlanePropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java index c3392c1f2b034..37bca835627a3 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java @@ -10,15 +10,12 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Packet core data plane resource. */ @Fluent public final class PacketCoreDataPlaneInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreDataPlaneInner.class); - /* * Packet core data plane Properties. */ @@ -40,14 +37,14 @@ private PacketCoreDataPlanePropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -104,7 +101,7 @@ public PacketCoreDataPlaneInner withUserPlaneAccessInterface(InterfaceProperties */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model PacketCoreDataPlaneInner")); @@ -112,4 +109,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreDataPlaneInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java index 687ccc33af006..2474f1b771fd8 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** PacketCoreDataPlane properties. */ @Fluent public final class PacketCoreDataPlanePropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreDataPlanePropertiesFormat.class); - /* * The provisioning state of the packet core data plane resource. */ @@ -69,7 +66,7 @@ public PacketCoreDataPlanePropertiesFormat withUserPlaneAccessInterface( */ public void validate() { if (userPlaneAccessInterface() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property userPlaneAccessInterface in model" @@ -78,4 +75,6 @@ public void validate() { userPlaneAccessInterface().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreDataPlanePropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java index e1722ee2a3b18..ace77669f76dd 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java @@ -11,7 +11,6 @@ import com.azure.resourcemanager.mobilenetwork.models.PccRuleConfiguration; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.QosPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -19,8 +18,6 @@ /** Service resource. */ @Fluent public final class ServiceInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceInner.class); - /* * Service Properties. */ @@ -42,14 +39,14 @@ private ServicePropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -158,11 +155,13 @@ public ServiceInner withPccRules(List pccRules) { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerProperties in model ServiceInner")); } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServiceInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java index d74a906b90df7..0100ca20ad530 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java @@ -9,15 +9,12 @@ import com.azure.resourcemanager.mobilenetwork.models.PccRuleConfiguration; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.QosPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Service properties. */ @Fluent public final class ServicePropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServicePropertiesFormat.class); - /* * The provisioning state of the service resource. */ @@ -135,7 +132,7 @@ public void validate() { serviceQosPolicy().validate(); } if (pccRules() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property pccRules in model ServicePropertiesFormat")); @@ -143,4 +140,6 @@ public void validate() { pccRules().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServicePropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java index b024976bea45a..e93cba4e8f193 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for list sim ids API service call. */ @Fluent public final class SimIdListResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimIdListResultInner.class); - /* * A list of sim profile ids in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java index e80368c940e36..94eab9a2a6487 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -21,8 +20,6 @@ /** Sim resource. */ @Fluent public final class SimInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimInner.class); - /* * Sim Properties. */ @@ -44,14 +41,14 @@ private SimPropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -284,11 +281,13 @@ public SimInner withStaticIpConfiguration(List staticIpCo */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerProperties in model SimInner")); } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SimInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java index b1e8638c29291..ffb13bff17c84 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java @@ -12,7 +12,6 @@ import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SliceConfiguration; import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -20,8 +19,6 @@ /** Sim policy resource. */ @Fluent public final class SimPolicyInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimPolicyInner.class); - /* * Sim policy Properties. */ @@ -43,14 +40,14 @@ private SimPolicyPropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -205,11 +202,13 @@ public SimPolicyInner withSliceConfigurations(List sliceConf */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerProperties in model SimPolicyInner")); } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SimPolicyInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java index 86f494ac17478..9e3eec9f344e1 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java @@ -10,15 +10,12 @@ import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SliceConfiguration; import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** SimPolicy properties. */ @Fluent public final class SimPolicyPropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimPolicyPropertiesFormat.class); - /* * The provisioning state of the sim policy resource. */ @@ -184,7 +181,7 @@ public SimPolicyPropertiesFormat withSliceConfigurations(List e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(SimPolicyPropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java index 8548cf0c8f7e9..c8f19ed7d285d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java @@ -11,15 +11,12 @@ import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Sim properties. */ @Fluent public final class SimPropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimPropertiesFormat.class); - /* * The provisioning state of the sim resource. */ @@ -277,7 +274,7 @@ public SimPropertiesFormat withStaticIpConfiguration(List */ public void validate() { if (internationalMobileSubscriberIdentity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property internationalMobileSubscriberIdentity in model" @@ -293,4 +290,6 @@ public void validate() { staticIpConfiguration().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(SimPropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java index b5e2b6245fa1d..c90e4536cd4ea 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java @@ -8,9 +8,7 @@ import com.azure.core.management.Resource; import com.azure.core.management.SubResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -18,8 +16,6 @@ /** Site resource. */ @Fluent public final class SiteInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SiteInner.class); - /* * Site properties. */ @@ -41,14 +37,14 @@ private SitePropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java index f135aae7e9a96..eda4cd9bb0810 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Site properties. */ @Fluent public final class SitePropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SitePropertiesFormat.class); - /* * The provisioning state of the site resource. **TODO**: Confirm if this * is needed diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java index bb83d1e1612bd..cae035dd89ad1 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java @@ -10,15 +10,12 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.Snssai; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Network slice resource. */ @Fluent public final class SliceInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SliceInner.class); - /* * Slice properties. */ @@ -40,14 +37,14 @@ private SlicePropertiesFormat innerProperties() { return this.innerProperties; } -// /** -// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. -// * -// * @return the innerSystemData value. -// */ -// private SystemData innerSystemData() { -// return this.innerSystemData; -// } + /** + * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the innerSystemData value. + */ + private SystemData innerSystemData() { + return this.innerSystemData; + } /** {@inheritDoc} */ @Override @@ -127,11 +124,13 @@ public SliceInner withDescription(String description) { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerProperties in model SliceInner")); } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SliceInner.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java index cb6cef3faa77e..b3ec4361353b3 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.Snssai; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Network slice properties. */ @Fluent public final class SlicePropertiesFormat { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SlicePropertiesFormat.class); - /* * The provisioning state of the network slice resource. */ @@ -93,11 +90,13 @@ public SlicePropertiesFormat withDescription(String description) { */ public void validate() { if (snssai() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property snssai in model SlicePropertiesFormat")); } else { snssai().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SlicePropertiesFormat.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java index ede96456744e9..eccfbbaf41e5d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.AttachedDataNetworksClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in AttachedDataNetworksClient. */ public final class AttachedDataNetworksClientImpl implements AttachedDataNetworksClient { - private final ClientLogger logger = new ClientLogger(AttachedDataNetworksClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AttachedDataNetworksService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java index 4a543d73d846a..3682b00fbecdc 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.AttachedDataNetworkInner; import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetwork; import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworks; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AttachedDataNetworksImpl implements AttachedDataNetworks { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworksImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworksImpl.class); private final AttachedDataNetworksClient innerClient; @@ -119,7 +118,7 @@ public PagedIterable listByPacketCoreDataPlane( public AttachedDataNetwork getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -127,7 +126,7 @@ public AttachedDataNetwork getById(String id) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -137,7 +136,7 @@ public AttachedDataNetwork getById(String id) { } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -147,7 +146,7 @@ public AttachedDataNetwork getById(String id) { } String attachedDataNetworkName = Utils.getValueFromIdByName(id, "attachedDataNetworks"); if (attachedDataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -168,7 +167,7 @@ public AttachedDataNetwork getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -176,7 +175,7 @@ public Response getByIdWithResponse(String id, Context cont } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -186,7 +185,7 @@ public Response getByIdWithResponse(String id, Context cont } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -196,7 +195,7 @@ public Response getByIdWithResponse(String id, Context cont } String attachedDataNetworkName = Utils.getValueFromIdByName(id, "attachedDataNetworks"); if (attachedDataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -216,7 +215,7 @@ public Response getByIdWithResponse(String id, Context cont public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -224,7 +223,7 @@ public void deleteById(String id) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -234,7 +233,7 @@ public void deleteById(String id) { } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -244,7 +243,7 @@ public void deleteById(String id) { } String attachedDataNetworkName = Utils.getValueFromIdByName(id, "attachedDataNetworks"); if (attachedDataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -264,7 +263,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -272,7 +271,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -282,7 +281,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -292,7 +291,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String attachedDataNetworkName = Utils.getValueFromIdByName(id, "attachedDataNetworks"); if (attachedDataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java index 1489a96acb2c4..d00d8ccc15c05 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.DataNetworksClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in DataNetworksClient. */ public final class DataNetworksClientImpl implements DataNetworksClient { - private final ClientLogger logger = new ClientLogger(DataNetworksClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DataNetworksService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java index 81769e508f4e7..83808f2fd4142 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.DataNetworkInner; import com.azure.resourcemanager.mobilenetwork.models.DataNetwork; import com.azure.resourcemanager.mobilenetwork.models.DataNetworks; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DataNetworksImpl implements DataNetworks { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworksImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DataNetworksImpl.class); private final DataNetworksClient innerClient; @@ -76,7 +75,7 @@ public PagedIterable listByMobileNetwork( public DataNetwork getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -84,7 +83,7 @@ public DataNetwork getById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -92,7 +91,7 @@ public DataNetwork getById(String id) { } String dataNetworkName = Utils.getValueFromIdByName(id, "dataNetworks"); if (dataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'dataNetworks'.", id))); @@ -103,7 +102,7 @@ public DataNetwork getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public Response getByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -119,7 +118,7 @@ public Response getByIdWithResponse(String id, Context context) { } String dataNetworkName = Utils.getValueFromIdByName(id, "dataNetworks"); if (dataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'dataNetworks'.", id))); @@ -130,7 +129,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public void deleteById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -146,7 +145,7 @@ public void deleteById(String id) { } String dataNetworkName = Utils.getValueFromIdByName(id, "dataNetworks"); if (dataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'dataNetworks'.", id))); @@ -157,7 +156,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -165,7 +164,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -173,7 +172,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String dataNetworkName = Utils.getValueFromIdByName(id, "dataNetworks"); if (dataNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'dataNetworks'.", id))); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java index 159e2ff54aeb1..80d708b05500b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java @@ -46,8 +46,6 @@ /** Initializes a new instance of the MobileNetworkManagementClientImpl type. */ @ServiceClient(builder = MobileNetworkManagementClientBuilder.class) public final class MobileNetworkManagementClientImpl implements MobileNetworkManagementClient { - private final ClientLogger logger = new ClientLogger(MobileNetworkManagementClientImpl.class); - /** The ID of the target subscription. */ private final String subscriptionId; @@ -371,7 +369,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -430,4 +428,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(MobileNetworkManagementClientImpl.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java index acd48206804a2..cfc8a44d2b062 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.MobileNetworksClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in MobileNetworksClient. */ public final class MobileNetworksClientImpl implements MobileNetworksClient { - private final ClientLogger logger = new ClientLogger(MobileNetworksClientImpl.class); - /** The proxy service used to perform REST calls. */ private final MobileNetworksService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java index 30b169595bfbe..4dad51ec9ec79 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.mobilenetwork.models.MobileNetwork; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworks; import com.azure.resourcemanager.mobilenetwork.models.SimIdListResult; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class MobileNetworksImpl implements MobileNetworks { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworksImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(MobileNetworksImpl.class); private final MobileNetworksClient innerClient; @@ -103,7 +102,7 @@ public SimIdListResult listSimIds(String resourceGroupName, String mobileNetwork public MobileNetwork getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public MobileNetwork getById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -123,7 +122,7 @@ public MobileNetwork getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -131,7 +130,7 @@ public Response getByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -143,7 +142,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -151,7 +150,7 @@ public void deleteById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -163,7 +162,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -171,7 +170,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsClientImpl.java index 98fe29213100b..44bd92217df5c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.OperationsClient; import com.azure.resourcemanager.mobilenetwork.fluent.models.OperationInner; import com.azure.resourcemanager.mobilenetwork.models.OperationList; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public final class OperationsClientImpl implements OperationsClient { - private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsImpl.java index 50bc65ff4191e..13978c7b8c39d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.OperationInner; import com.azure.resourcemanager.mobilenetwork.models.Operation; import com.azure.resourcemanager.mobilenetwork.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsImpl implements Operations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); private final OperationsClient innerClient; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java index 695acac6c29d4..92f5dd91425a8 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreControlPlanesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in PacketCoreControlPlanesClient. */ public final class PacketCoreControlPlanesClientImpl implements PacketCoreControlPlanesClient { - private final ClientLogger logger = new ClientLogger(PacketCoreControlPlanesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PacketCoreControlPlanesService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java index 3be9708682a82..0bb5b3f821222 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlane; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlanes; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PacketCoreControlPlanesImpl implements PacketCoreControlPlanes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreControlPlanesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlanesImpl.class); private final PacketCoreControlPlanesClient innerClient; @@ -86,7 +85,7 @@ public PagedIterable listByResourceGroup(String resource public PacketCoreControlPlane getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -94,7 +93,7 @@ public PacketCoreControlPlane getById(String id) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -110,7 +109,7 @@ public PacketCoreControlPlane getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -118,7 +117,7 @@ public Response getByIdWithResponse(String id, Context c } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -132,7 +131,7 @@ public Response getByIdWithResponse(String id, Context c public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -140,7 +139,7 @@ public void deleteById(String id) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -154,7 +153,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -162,7 +161,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java index 3295e6a3515a0..fe9650b342e07 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreDataPlanesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in PacketCoreDataPlanesClient. */ public final class PacketCoreDataPlanesClientImpl implements PacketCoreDataPlanesClient { - private final ClientLogger logger = new ClientLogger(PacketCoreDataPlanesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PacketCoreDataPlanesService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java index cbdbfc3bbd5d0..b8527487e6eee 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreDataPlaneInner; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreDataPlane; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreDataPlanes; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PacketCoreDataPlanesImpl implements PacketCoreDataPlanes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreDataPlanesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreDataPlanesImpl.class); private final PacketCoreDataPlanesClient innerClient; @@ -83,7 +82,7 @@ public PagedIterable listByPacketCoreControlPlane( public PacketCoreDataPlane getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -91,7 +90,7 @@ public PacketCoreDataPlane getById(String id) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -101,7 +100,7 @@ public PacketCoreDataPlane getById(String id) { } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -117,7 +116,7 @@ public PacketCoreDataPlane getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -125,7 +124,7 @@ public Response getByIdWithResponse(String id, Context cont } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -135,7 +134,7 @@ public Response getByIdWithResponse(String id, Context cont } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -149,7 +148,7 @@ public Response getByIdWithResponse(String id, Context cont public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -157,7 +156,7 @@ public void deleteById(String id) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -167,7 +166,7 @@ public void deleteById(String id) { } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -181,7 +180,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -189,7 +188,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String packetCoreControlPlaneName = Utils.getValueFromIdByName(id, "packetCoreControlPlanes"); if (packetCoreControlPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -199,7 +198,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String packetCoreDataPlaneName = Utils.getValueFromIdByName(id, "packetCoreDataPlanes"); if (packetCoreDataPlaneName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java index d3aa744bc6de5..1342f8f28dd69 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.ServicesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in ServicesClient. */ public final class ServicesClientImpl implements ServicesClient { - private final ClientLogger logger = new ClientLogger(ServicesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ServicesService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java index 386882e130dc1..3ae73a04aff12 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.ServiceInner; import com.azure.resourcemanager.mobilenetwork.models.Service; import com.azure.resourcemanager.mobilenetwork.models.Services; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ServicesImpl implements Services { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServicesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ServicesImpl.class); private final ServicesClient innerClient; @@ -76,7 +75,7 @@ public PagedIterable listByMobileNetwork( public Service getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -84,7 +83,7 @@ public Service getById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -92,7 +91,7 @@ public Service getById(String id) { } String serviceName = Utils.getValueFromIdByName(id, "services"); if (serviceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'services'.", id))); @@ -103,7 +102,7 @@ public Service getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public Response getByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -119,7 +118,7 @@ public Response getByIdWithResponse(String id, Context context) { } String serviceName = Utils.getValueFromIdByName(id, "services"); if (serviceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'services'.", id))); @@ -130,7 +129,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public void deleteById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -146,7 +145,7 @@ public void deleteById(String id) { } String serviceName = Utils.getValueFromIdByName(id, "services"); if (serviceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'services'.", id))); @@ -157,7 +156,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -165,7 +164,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -173,7 +172,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String serviceName = Utils.getValueFromIdByName(id, "services"); if (serviceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'services'.", id))); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java index 2162471be2e1a..d42dac3e13b08 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.SimPoliciesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in SimPoliciesClient. */ public final class SimPoliciesClientImpl implements SimPoliciesClient { - private final ClientLogger logger = new ClientLogger(SimPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SimPoliciesService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java index 9e0e366c9342d..a8c288e10a78f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.SimPolicyInner; import com.azure.resourcemanager.mobilenetwork.models.SimPolicies; import com.azure.resourcemanager.mobilenetwork.models.SimPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SimPoliciesImpl implements SimPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SimPoliciesImpl.class); private final SimPoliciesClient innerClient; @@ -76,7 +75,7 @@ public PagedIterable listByMobileNetwork( public SimPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -84,7 +83,7 @@ public SimPolicy getById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -92,7 +91,7 @@ public SimPolicy getById(String id) { } String simPolicyName = Utils.getValueFromIdByName(id, "simPolicies"); if (simPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'simPolicies'.", id))); @@ -103,7 +102,7 @@ public SimPolicy getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public Response getByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -119,7 +118,7 @@ public Response getByIdWithResponse(String id, Context context) { } String simPolicyName = Utils.getValueFromIdByName(id, "simPolicies"); if (simPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'simPolicies'.", id))); @@ -130,7 +129,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public void deleteById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -146,7 +145,7 @@ public void deleteById(String id) { } String simPolicyName = Utils.getValueFromIdByName(id, "simPolicies"); if (simPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'simPolicies'.", id))); @@ -157,7 +156,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -165,7 +164,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -173,7 +172,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String simPolicyName = Utils.getValueFromIdByName(id, "simPolicies"); if (simPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'simPolicies'.", id))); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java index b7d02f035ec3e..79f85f6eaea60 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.SimsClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in SimsClient. */ public final class SimsClientImpl implements SimsClient { - private final ClientLogger logger = new ClientLogger(SimsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SimsService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java index 9338d397fd610..fd42c5bf5a8e0 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.SimInner; import com.azure.resourcemanager.mobilenetwork.models.Sim; import com.azure.resourcemanager.mobilenetwork.models.Sims; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SimsImpl implements Sims { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SimsImpl.class); private final SimsClient innerClient; @@ -82,7 +81,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName, Context public Sim getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -90,7 +89,7 @@ public Sim getById(String id) { } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); @@ -101,7 +100,7 @@ public Sim getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -109,7 +108,7 @@ public Response getByIdWithResponse(String id, Context context) { } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); @@ -120,7 +119,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -128,7 +127,7 @@ public void deleteById(String id) { } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); @@ -139,7 +138,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -147,7 +146,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java index a1b1287ddeb29..9d0b4235802ec 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.SitesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in SitesClient. */ public final class SitesClientImpl implements SitesClient { - private final ClientLogger logger = new ClientLogger(SitesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SitesService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java index 53338874ebaec..7de60750b384f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.SiteInner; import com.azure.resourcemanager.mobilenetwork.models.Site; import com.azure.resourcemanager.mobilenetwork.models.Sites; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SitesImpl implements Sites { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SitesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SitesImpl.class); private final SitesClient innerClient; @@ -75,7 +74,7 @@ public PagedIterable listByMobileNetwork( public Site getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -83,7 +82,7 @@ public Site getById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -91,7 +90,7 @@ public Site getById(String id) { } String siteName = Utils.getValueFromIdByName(id, "sites"); if (siteName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sites'.", id))); @@ -102,7 +101,7 @@ public Site getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -110,7 +109,7 @@ public Response getByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -118,7 +117,7 @@ public Response getByIdWithResponse(String id, Context context) { } String siteName = Utils.getValueFromIdByName(id, "sites"); if (siteName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sites'.", id))); @@ -129,7 +128,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -137,7 +136,7 @@ public void deleteById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -145,7 +144,7 @@ public void deleteById(String id) { } String siteName = Utils.getValueFromIdByName(id, "sites"); if (siteName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sites'.", id))); @@ -156,7 +155,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -164,7 +163,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -172,7 +171,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String siteName = Utils.getValueFromIdByName(id, "sites"); if (siteName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sites'.", id))); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java index 15bdb2e33d308..439a2e9e39e0f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.SlicesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in SlicesClient. */ public final class SlicesClientImpl implements SlicesClient { - private final ClientLogger logger = new ClientLogger(SlicesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SlicesService service; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java index 5549011e9d80e..06845c7970b71 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.mobilenetwork.fluent.models.SliceInner; import com.azure.resourcemanager.mobilenetwork.models.Slice; import com.azure.resourcemanager.mobilenetwork.models.Slices; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SlicesImpl implements Slices { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SlicesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SlicesImpl.class); private final SlicesClient innerClient; @@ -76,7 +75,7 @@ public PagedIterable listByMobileNetwork( public Slice getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -84,7 +83,7 @@ public Slice getById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -92,7 +91,7 @@ public Slice getById(String id) { } String sliceName = Utils.getValueFromIdByName(id, "slices"); if (sliceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'slices'.", id))); @@ -103,7 +102,7 @@ public Slice getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public Response getByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -119,7 +118,7 @@ public Response getByIdWithResponse(String id, Context context) { } String sliceName = Utils.getValueFromIdByName(id, "slices"); if (sliceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'slices'.", id))); @@ -130,7 +129,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public void deleteById(String id) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -146,7 +145,7 @@ public void deleteById(String id) { } String sliceName = Utils.getValueFromIdByName(id, "slices"); if (sliceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'slices'.", id))); @@ -157,7 +156,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -165,7 +164,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String mobileNetworkName = Utils.getValueFromIdByName(id, "mobileNetworks"); if (mobileNetworkName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -173,7 +172,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String sliceName = Utils.getValueFromIdByName(id, "slices"); if (sliceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'slices'.", id))); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java index 73f7157448640..081b27ce19517 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Aggregate Maximum Bit Rate. */ @Fluent public final class Ambr { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Ambr.class); - /* * Uplink bit rate. */ @@ -73,12 +70,14 @@ public Ambr withDownlink(String downlink) { */ public void validate() { if (uplink() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property uplink in model Ambr")); } if (downlink() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property downlink in model Ambr")); } } + + private static final ClientLogger LOGGER = new ClientLogger(Ambr.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java index 6ce38da705dec..dc3927510c0ec 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.AttachedDataNetworkInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for attached data network API service call. */ @Fluent public final class AttachedDataNetworkListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkListResult.class); - /* * A list of data networks in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java index f7474901d48c4..4222b78c66575 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Reference to an Attached Data Network resource. */ @Fluent public final class AttachedDataNetworkResourceId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkResourceId.class); - /* * Attached Data Network resource ID. */ @@ -47,10 +44,12 @@ public AttachedDataNetworkResourceId withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property id in model AttachedDataNetworkResourceId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworkResourceId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java index 94deb4b3b09ec..86a0c22344602 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Reference to an Azure ARC custom location resource. */ @Fluent public final class CustomLocationResourceId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomLocationResourceId.class); - /* * Azure ARC custom location resource ID. */ @@ -47,9 +44,11 @@ public CustomLocationResourceId withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property id in model CustomLocationResourceId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(CustomLocationResourceId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java index c92af2a1f5ac1..6b45ee982c206 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Settings controlling Data Network use. */ @Fluent public final class DataNetworkConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkConfiguration.class); - /* * A reference to the Data Network that these settings apply to */ @@ -312,7 +309,7 @@ public DataNetworkConfiguration withAllowedServices(List allo */ public void validate() { if (dataNetwork() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property dataNetwork in model DataNetworkConfiguration")); @@ -320,7 +317,7 @@ public void validate() { dataNetwork().validate(); } if (sessionAmbr() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property sessionAmbr in model DataNetworkConfiguration")); @@ -328,7 +325,7 @@ public void validate() { sessionAmbr().validate(); } if (allowedServices() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property allowedServices in model DataNetworkConfiguration")); @@ -336,4 +333,6 @@ public void validate() { allowedServices().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(DataNetworkConfiguration.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java index 1ec316cf1284b..5b92564d0863b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.DataNetworkInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for data network API service call. */ @Fluent public final class DataNetworkListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkListResult.class); - /* * A list of data networks in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java index 22623abb7fd15..011d64b470b82 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Reference to a Data Network resource. */ @Fluent public final class DataNetworkResourceId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkResourceId.class); - /* * Data Network resource ID. */ @@ -47,9 +44,11 @@ public DataNetworkResourceId withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property id in model DataNetworkResourceId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DataNetworkResourceId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java index db8e018d47023..730414d5c85c8 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Interface properties. */ @Fluent public final class InterfaceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InterfaceProperties.class); - /* * The logical name for this interface. This should match one of the * interfaces configured on your Azure Stack Edge machine. @@ -50,9 +47,11 @@ public InterfaceProperties withName(String name) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model InterfaceProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(InterfaceProperties.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java index 968061db8bb95..0c316b48d86e6 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.MobileNetworkInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for mobile networks API service call. */ @Fluent public final class MobileNetworkListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworkListResult.class); - /* * A list of mobile networks in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java index 7fdffdd5ebbe5..8ec1ab816a486 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Reference to a Mobile Network resource. */ @Fluent public final class MobileNetworkResourceId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworkResourceId.class); - /* * Mobile Network resource ID. */ @@ -47,9 +44,11 @@ public MobileNetworkResourceId withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property id in model MobileNetworkResourceId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(MobileNetworkResourceId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java index e5a675fcf95ad..ae00fe35cb87c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Network Address and Port Translation settings to use for the attached data network. */ @Fluent public final class NaptConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NaptConfiguration.class); - /* * Whether NAPT is enabled for connections to this attachedDataNetwork. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java index e3930e93edd90..9450b853b8cb4 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The object that represents the operation. */ @Fluent public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* * Service provider: Microsoft.MobileNetwork */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java index a7aeb63c05136..370b1cbe7c4b7 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of the operations. */ @Immutable public final class OperationList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationList.class); - /* * List of Microsoft.MobileNetwork operations. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java index d7c742bc3aba1..0940fbc04c90d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for packet core control planes API service call. */ @Fluent public final class PacketCoreControlPlaneListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreControlPlaneListResult.class); - /* * A list of packet core control planes in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java index 5f109f98e6e9d..98f1689fc8b17 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreDataPlaneInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for packet core data planes API service call. */ @Fluent public final class PacketCoreDataPlaneListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreDataPlaneListResult.class); - /* * A list of packet core data planes in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java index 15d60d1caf932..d33ecb1024216 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** PCC rule configuration. */ @Fluent public final class PccRuleConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PccRuleConfiguration.class); - /* * The name of the rule. This must be unique within the parent Service. You * must not use any of the following reserved strings - `default`, @@ -166,7 +163,7 @@ public PccRuleConfiguration withServiceDataFlowTemplates(List e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(PccRuleConfiguration.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java index 96ff62ee0288f..d7d0d049e2f08 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** PCC rule QoS policy. */ @Fluent public final class PccRuleQosPolicy extends QosPolicy { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PccRuleQosPolicy.class); - /* * The Guaranteed Bit Rate (GBR) for all service data flows that use this * PCC Rule. This is an optional setting. If you do not provide a value, diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java index 4a7dc6872f4f7..2b55d28d0cd39 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second. */ @Fluent public final class PinholeTimeouts { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PinholeTimeouts.class); - /* * Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours * 4 minutes per RFC 5382 section 5. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java index 352acbc0d8149..a06aaa304bf4d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Public Land Mobile Network (PLMN) ID. */ @Fluent public final class PlmnId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PlmnId.class); - /* * Mobile Country Code (MCC). */ @@ -73,12 +70,14 @@ public PlmnId withMnc(String mnc) { */ public void validate() { if (mcc() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property mcc in model PlmnId")); } if (mnc() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property mnc in model PlmnId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(PlmnId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java index cd8eec30ea199..7fd5fa3968af2 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -16,8 +14,6 @@ */ @Fluent public final class PortRange { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PortRange.class); - /* * The minimum port number */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java index 4825273e43254..7c93652571d6f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -15,8 +13,6 @@ */ @Fluent public final class PortReuseHoldTimes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PortReuseHoldTimes.class); - /* * Minimum time in seconds that will pass before a TCP port that was used * by a closed pinhole can be reused. Default for TCP is 2 minutes. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java index acc1e30806b43..f51cb5eb34725 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** QoS policy. */ @Fluent public class QosPolicy { - @JsonIgnore private final ClientLogger logger = new ClientLogger(QosPolicy.class); - /* * QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS * forwarding treatment to be provided to a flow. This must not be a @@ -193,11 +190,13 @@ public QosPolicy withMaximumBitRate(Ambr maximumBitRate) { */ public void validate() { if (maximumBitRate() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property maximumBitRate in model QosPolicy")); } else { maximumBitRate().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(QosPolicy.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java index c60c3fc3b6752..2f0bfb0ad161d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Service data flow (SDF) template. */ @Fluent public final class ServiceDataFlowTemplate { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceDataFlowTemplate.class); - /* * The name of the SDF template. This must be unique within the parent * PccRuleConfiguration. You must not use any of the following reserved @@ -196,28 +193,30 @@ public ServiceDataFlowTemplate withPorts(List ports) { */ public void validate() { if (templateName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property templateName in model ServiceDataFlowTemplate")); } if (direction() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property direction in model ServiceDataFlowTemplate")); } if (protocol() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property protocol in model ServiceDataFlowTemplate")); } if (remoteIpList() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property remoteIpList in model ServiceDataFlowTemplate")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServiceDataFlowTemplate.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java index a4b4b37b44bb7..687abf6f6fd3a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.ServiceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for Services API service call. */ @Fluent public final class ServiceListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceListResult.class); - /* * A list of Services. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java index afcf80e9a9ae4..dbd77cf042f58 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Reference to a Service resource. */ @Fluent public final class ServiceResourceId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceResourceId.class); - /* * Service resource ID. */ @@ -47,9 +44,11 @@ public ServiceResourceId withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property id in model ServiceResourceId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServiceResourceId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java index ae504e60433bd..825f976d436ce 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.SimInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for list Sims API service call. */ @Fluent public final class SimListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimListResult.class); - /* * A list of Sims in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java index fdc0d50020d0a..56dbeeb7a1e50 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.SimPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for SimPolicies API service call. */ @Fluent public final class SimPolicyListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimPolicyListResult.class); - /* * A list of SimPolicies. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java index 58e28219c9dc2..1aeddd8cabc13 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Reference to a SIM Policy resource. */ @Fluent public final class SimPolicyResourceId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimPolicyResourceId.class); - /* * SIM Policy resource ID. */ @@ -47,9 +44,11 @@ public SimPolicyResourceId withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property id in model SimPolicyResourceId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SimPolicyResourceId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java index 6d2b9e958675c..473c786ece85f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Static IP configuration for a sim, scoped to a particular attached data network and slice. */ @Fluent public final class SimStaticIpProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimStaticIpProperties.class); - /* * The attached data network on which the static IP address will be used. * The combination of attachedDataNetwork and slice defines the network diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java index 9dbaafef34da9..307abadeb5e2b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The static IP configuration for the sim to use at the defined network scope. */ @Fluent public final class SimStaticIpPropertiesStaticIp { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SimStaticIpPropertiesStaticIp.class); - /* * The IPv4 address assigned to the sim at this network scope. This address * must be in the userEquipmentStaticAddressPoolPrefix defined in the diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java index 53d4f391216c4..e61f0b3f76d02 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.SiteInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for sites API service call. */ @Fluent public final class SiteListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SiteListResult.class); - /* * A list of sites in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java index 75f4bd8b1301c..b5891ea542a8d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Per-slice settings. */ @Fluent public final class SliceConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SliceConfiguration.class); - /* * A reference to the Slice that these settings apply to */ @@ -107,14 +104,14 @@ public SliceConfiguration withDataNetworkConfigurations(List e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(SliceConfiguration.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java index 212be54cca7ad..41d74d372d02f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.models.SliceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Response for attached data network API service call. */ @Fluent public final class SliceListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SliceListResult.class); - /* * A list of data networks in a resource group. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java index 14a0ca0597c31..afa590815a6fc 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Reference to a Slice resource. */ @Fluent public final class SliceResourceId { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SliceResourceId.class); - /* * Slice resource ID. */ @@ -47,9 +44,11 @@ public SliceResourceId withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property id in model SliceResourceId")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SliceResourceId.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java index 829631e5691a4..594d25c200aeb 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Single-Network Slice Selection Assistance Information (S-NSSAI). */ @Fluent public final class Snssai { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Snssai.class); - /* * Slice/Service Type (SST). */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java index 6ce402e49a8f7..198f694ef7c55 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** Tags object for patch operations. */ @Fluent public final class TagsObject { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TagsObject.class); - /* * Resource tags. */