@@ -19,9 +19,10 @@ export class Configurations extends APIResource {
1919 * ```
2020 */
2121 update ( params : ConfigurationUpdateParams , options ?: Core . RequestOptions ) : Core . APIPromise < Configuration > {
22- const { zone_id, ...body } = params ;
22+ const { zone_id, normalize , ...body } = params ;
2323 return (
2424 this . _client . put ( `/zones/${ zone_id } /api_gateway/configuration` , {
25+ query : { normalize } ,
2526 body,
2627 ...options ,
2728 } ) as Core . APIPromise < { result : Configuration } >
@@ -40,11 +41,12 @@ export class Configurations extends APIResource {
4041 * ```
4142 */
4243 get ( params : ConfigurationGetParams , options ?: Core . RequestOptions ) : Core . APIPromise < Configuration > {
43- const { zone_id } = params ;
44+ const { zone_id, ... query } = params ;
4445 return (
45- this . _client . get ( `/zones/${ zone_id } /api_gateway/configuration` , options ) as Core . APIPromise < {
46- result : Configuration ;
47- } >
46+ this . _client . get ( `/zones/${ zone_id } /api_gateway/configuration` , {
47+ query,
48+ ...options ,
49+ } ) as Core . APIPromise < { result : Configuration } >
4850 ) . _thenUnwrap ( ( obj ) => obj . result ) ;
4951 }
5052}
@@ -106,6 +108,12 @@ export interface ConfigurationUpdateParams {
106108 | ConfigurationUpdateParams . APIShieldAuthIDCharacteristic
107109 | ConfigurationUpdateParams . APIShieldAuthIDCharacteristicJWTClaim
108110 > ;
111+
112+ /**
113+ * Query param: Ensures that the configuration is written or retrieved in
114+ * normalized fashion
115+ */
116+ normalize ?: boolean ;
109117}
110118
111119export namespace ConfigurationUpdateParams {
@@ -148,9 +156,15 @@ export namespace ConfigurationUpdateParams {
148156
149157export interface ConfigurationGetParams {
150158 /**
151- * Identifier.
159+ * Path param: Identifier.
152160 */
153161 zone_id : string ;
162+
163+ /**
164+ * Query param: Ensures that the configuration is written or retrieved in
165+ * normalized fashion
166+ */
167+ normalize ?: boolean ;
154168}
155169
156170export declare namespace Configurations {
0 commit comments