@@ -9,7 +9,7 @@ import Foundation
99
1010typealias Client = AbtestingClient
1111
12- @ objcMembers open class AbtestingClient : NSObject {
12+ open class AbtestingClient {
1313
1414 private var configuration : Configuration
1515 private var transporter : Transporter
@@ -295,33 +295,33 @@ typealias Client = AbtestingClient
295295 /**
296296 Delete an A/B test.
297297
298- - parameter _id : (path) Unique A/B test ID.
298+ - parameter id : (path) Unique A/B test ID.
299299 - returns: ABTestResponse
300300 */
301301 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
302- open func deleteABTest( _id : Int , requestOptions: RequestOptions ? = nil ) async throws
302+ open func deleteABTest( id : Int , requestOptions: RequestOptions ? = nil ) async throws
303303 -> ABTestResponse
304304 {
305- return try await deleteABTestWithRequestBuilder ( _id : _id , requestOptions: requestOptions)
305+ return try await deleteABTestWithRequestBuilder ( id : id , requestOptions: requestOptions)
306306 . execute ( ) . body
307307 }
308308
309309 /**
310310 Delete an A/B test.
311311
312312 Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
313- - parameter _id : (path) Unique A/B test ID.
313+ - parameter id : (path) Unique A/B test ID.
314314 - returns: RequestBuilder<ABTestResponse>
315315 */
316- open func deleteABTestWithRequestBuilder( _id : Int , requestOptions: RequestOptions ? = nil )
316+ open func deleteABTestWithRequestBuilder( id : Int , requestOptions: RequestOptions ? = nil )
317317 -> RequestBuilder < ABTestResponse >
318318 {
319319 var localVariablePath = " /2/abtests/{id} "
320- let _idPreEscape = " \( APIHelper . mapValueToPathItem ( _id ) ) "
321- let _idPostEscape =
322- _idPreEscape . addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
320+ let idPreEscape = " \( APIHelper . mapValueToPathItem ( id ) ) "
321+ let idPostEscape =
322+ idPreEscape . addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
323323 localVariablePath = localVariablePath. replacingOccurrences (
324- of: " {id} " , with: _idPostEscape , options: . literal, range: nil )
324+ of: " {id} " , with: idPostEscape , options: . literal, range: nil )
325325 let localVariableParameters : [ String : Any ? ] ? = nil
326326
327327 let localVariableQueryItems : [ URLQueryItem ] ? = nil
@@ -342,31 +342,31 @@ typealias Client = AbtestingClient
342342 /**
343343 Get A/B test details.
344344
345- - parameter _id : (path) Unique A/B test ID.
345+ - parameter id : (path) Unique A/B test ID.
346346 - returns: ABTest
347347 */
348348 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
349- open func getABTest( _id : Int , requestOptions: RequestOptions ? = nil ) async throws -> ABTest {
350- return try await getABTestWithRequestBuilder ( _id : _id , requestOptions: requestOptions) . execute ( )
349+ open func getABTest( id : Int , requestOptions: RequestOptions ? = nil ) async throws -> ABTest {
350+ return try await getABTestWithRequestBuilder ( id : id , requestOptions: requestOptions) . execute ( )
351351 . body
352352 }
353353
354354 /**
355355 Get A/B test details.
356356
357357 Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
358- - parameter _id : (path) Unique A/B test ID.
358+ - parameter id : (path) Unique A/B test ID.
359359 - returns: RequestBuilder<ABTest>
360360 */
361- open func getABTestWithRequestBuilder( _id : Int , requestOptions: RequestOptions ? = nil )
361+ open func getABTestWithRequestBuilder( id : Int , requestOptions: RequestOptions ? = nil )
362362 -> RequestBuilder < ABTest >
363363 {
364364 var localVariablePath = " /2/abtests/{id} "
365- let _idPreEscape = " \( APIHelper . mapValueToPathItem ( _id ) ) "
366- let _idPostEscape =
367- _idPreEscape . addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
365+ let idPreEscape = " \( APIHelper . mapValueToPathItem ( id ) ) "
366+ let idPostEscape =
367+ idPreEscape . addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
368368 localVariablePath = localVariablePath. replacingOccurrences (
369- of: " {id} " , with: _idPostEscape , options: . literal, range: nil )
369+ of: " {id} " , with: idPostEscape , options: . literal, range: nil )
370370 let localVariableParameters : [ String : Any ? ] ? = nil
371371
372372 let localVariableQueryItems : [ URLQueryItem ] ? = nil
@@ -444,33 +444,33 @@ typealias Client = AbtestingClient
444444 /**
445445 Stop an A/B test.
446446
447- - parameter _id : (path) Unique A/B test ID.
447+ - parameter id : (path) Unique A/B test ID.
448448 - returns: ABTestResponse
449449 */
450450 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
451- open func stopABTest( _id : Int , requestOptions: RequestOptions ? = nil ) async throws
451+ open func stopABTest( id : Int , requestOptions: RequestOptions ? = nil ) async throws
452452 -> ABTestResponse
453453 {
454- return try await stopABTestWithRequestBuilder ( _id : _id , requestOptions: requestOptions)
455- . execute ( ) . body
454+ return try await stopABTestWithRequestBuilder ( id : id , requestOptions: requestOptions) . execute ( )
455+ . body
456456 }
457457
458458 /**
459459 Stop an A/B test.
460460
461461 If stopped, the test is over and can't be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
462- - parameter _id : (path) Unique A/B test ID.
462+ - parameter id : (path) Unique A/B test ID.
463463 - returns: RequestBuilder<ABTestResponse>
464464 */
465- open func stopABTestWithRequestBuilder( _id : Int , requestOptions: RequestOptions ? = nil )
465+ open func stopABTestWithRequestBuilder( id : Int , requestOptions: RequestOptions ? = nil )
466466 -> RequestBuilder < ABTestResponse >
467467 {
468468 var localVariablePath = " /2/abtests/{id}/stop "
469- let _idPreEscape = " \( APIHelper . mapValueToPathItem ( _id ) ) "
470- let _idPostEscape =
471- _idPreEscape . addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
469+ let idPreEscape = " \( APIHelper . mapValueToPathItem ( id ) ) "
470+ let idPostEscape =
471+ idPreEscape . addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
472472 localVariablePath = localVariablePath. replacingOccurrences (
473- of: " {id} " , with: _idPostEscape , options: . literal, range: nil )
473+ of: " {id} " , with: idPostEscape , options: . literal, range: nil )
474474 let localVariableParameters : [ String : Any ? ] ? = nil
475475
476476 let localVariableQueryItems : [ URLQueryItem ] ? = nil
0 commit comments