@@ -139,16 +139,12 @@ case class AccessLoggingConfig(
139139 @ BeanProperty var enabled : Boolean ,
140140 // Header that contains the client region code (for example: US, DE).
141141 @ BeanProperty var clientRegionHeader : String ,
142- // Header that contains the client region subdivision (for example: USCA, DEBE).
143- @ BeanProperty var clientRegionSubdivisionHeader : String ,
144142 // Header that contains client IP or forwarding chain (for example: X-Forwarded-For).
145143 @ BeanProperty var clientIpHeader : String ,
146- // Optional mapping from region/subdivision codes to pricing group labels.
147- // Keys should be uppercase location codes (for example: US, DE, USCA ).
144+ // Optional mapping from region codes to pricing group labels.
145+ // Keys should be uppercase location codes (for example: US, DE).
148146 // A wildcard key "*" can be used as a catch-all default.
149147 @ BeanProperty var pricingGroups : java.util.Map [String , String ],
150- // Fallback group when no mapping and no region are available.
151- @ BeanProperty var defaultPricingGroup : String ,
152148 // The GCP region where this server runs (for example: us-central1).
153149 // Used for pricing tier calculation based on source→destination pairs.
154150 @ BeanProperty var sourceRegion : String ,
@@ -161,19 +157,14 @@ case class AccessLoggingConfig(
161157 this (
162158 enabled = false ,
163159 clientRegionHeader = " x-client-region" ,
164- clientRegionSubdivisionHeader = " x-client-region-subdivision" ,
165160 clientIpHeader = " x-forwarded-for" ,
166161 pricingGroups = Collections .emptyMap(),
167- defaultPricingGroup = " unknown" ,
168162 sourceRegion = " " ,
169163 detectGcpTraffic = true )
170164 }
171165
172166 override def checkConfig (): Unit = {
173- if (defaultPricingGroup == null || defaultPricingGroup.trim.isEmpty) {
174- throw new IllegalArgumentException (
175- " 'defaultPricingGroup' in 'accessLogging' must be provided" )
176- }
167+ // No required fields to validate
177168 }
178169}
179170
0 commit comments