@@ -216,16 +216,16 @@ export const ConnectorsApiAxiosParamCreator = function (configuration?: Configur
216216 *
217217 * @summary patch a connector
218218 * @param {string } id The ID of record
219- * @param {object } body Data to patch the connector with
219+ * @param {Connector } connector Data to patch the connector with
220220 * @param {string } [kafkaId] The kafka cluster id
221221 * @param {* } [options] Override http request option.
222222 * @throws {RequiredError }
223223 */
224- patchConnector : async ( id : string , body : object , kafkaId ?: string , options : any = { } ) : Promise < RequestArgs > => {
224+ patchConnector : async ( id : string , connector : Connector , kafkaId ?: string , options : any = { } ) : Promise < RequestArgs > => {
225225 // verify required parameter 'id' is not null or undefined
226226 assertParamExists ( 'patchConnector' , 'id' , id )
227- // verify required parameter 'body ' is not null or undefined
228- assertParamExists ( 'patchConnector' , 'body ' , body )
227+ // verify required parameter 'connector ' is not null or undefined
228+ assertParamExists ( 'patchConnector' , 'connector ' , connector )
229229 const localVarPath = `/api/connector_mgmt/v1/kafka_connectors/{id}`
230230 . replace ( `{${ "id" } }` , encodeURIComponent ( String ( id ) ) ) ;
231231 // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -249,12 +249,12 @@ export const ConnectorsApiAxiosParamCreator = function (configuration?: Configur
249249
250250
251251
252- localVarHeaderParameter [ 'Content-Type' ] = 'application/json-patch+json ' ;
252+ localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ;
253253
254254 setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ;
255255 let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
256256 localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
257- localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration )
257+ localVarRequestOptions . data = serializeDataIfNeeded ( connector , localVarRequestOptions , configuration )
258258
259259 return {
260260 url : toPathString ( localVarUrlObj ) ,
@@ -324,13 +324,13 @@ export const ConnectorsApiFp = function(configuration?: Configuration) {
324324 *
325325 * @summary patch a connector
326326 * @param {string } id The ID of record
327- * @param {object } body Data to patch the connector with
327+ * @param {Connector } connector Data to patch the connector with
328328 * @param {string } [kafkaId] The kafka cluster id
329329 * @param {* } [options] Override http request option.
330330 * @throws {RequiredError }
331331 */
332- async patchConnector ( id : string , body : object , kafkaId ?: string , options ?: any ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < Connector > > {
333- const localVarAxiosArgs = await localVarAxiosParamCreator . patchConnector ( id , body , kafkaId , options ) ;
332+ async patchConnector ( id : string , connector : Connector , kafkaId ?: string , options ?: any ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < Connector > > {
333+ const localVarAxiosArgs = await localVarAxiosParamCreator . patchConnector ( id , connector , kafkaId , options ) ;
334334 return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
335335 } ,
336336 }
@@ -392,13 +392,13 @@ export const ConnectorsApiFactory = function (configuration?: Configuration, bas
392392 *
393393 * @summary patch a connector
394394 * @param {string } id The ID of record
395- * @param {object } body Data to patch the connector with
395+ * @param {Connector } connector Data to patch the connector with
396396 * @param {string } [kafkaId] The kafka cluster id
397397 * @param {* } [options] Override http request option.
398398 * @throws {RequiredError }
399399 */
400- patchConnector ( id : string , body : object , kafkaId ?: string , options ?: any ) : AxiosPromise < Connector > {
401- return localVarFp . patchConnector ( id , body , kafkaId , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
400+ patchConnector ( id : string , connector : Connector , kafkaId ?: string , options ?: any ) : AxiosPromise < Connector > {
401+ return localVarFp . patchConnector ( id , connector , kafkaId , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
402402 } ,
403403 } ;
404404} ;
@@ -458,13 +458,13 @@ export interface ConnectorsApiInterface {
458458 *
459459 * @summary patch a connector
460460 * @param {string } id The ID of record
461- * @param {object } body Data to patch the connector with
461+ * @param {Connector } connector Data to patch the connector with
462462 * @param {string } [kafkaId] The kafka cluster id
463463 * @param {* } [options] Override http request option.
464464 * @throws {RequiredError }
465465 * @memberof ConnectorsApiInterface
466466 */
467- patchConnector ( id : string , body : object , kafkaId ?: string , options ?: any ) : AxiosPromise < Connector > ;
467+ patchConnector ( id : string , connector : Connector , kafkaId ?: string , options ?: any ) : AxiosPromise < Connector > ;
468468
469469}
470470
@@ -532,13 +532,13 @@ export class ConnectorsApi extends BaseAPI implements ConnectorsApiInterface {
532532 *
533533 * @summary patch a connector
534534 * @param {string } id The ID of record
535- * @param {object } body Data to patch the connector with
535+ * @param {Connector } connector Data to patch the connector with
536536 * @param {string } [kafkaId] The kafka cluster id
537537 * @param {* } [options] Override http request option.
538538 * @throws {RequiredError }
539539 * @memberof ConnectorsApi
540540 */
541- public patchConnector ( id : string , body : object , kafkaId ?: string , options ?: any ) {
542- return ConnectorsApiFp ( this . configuration ) . patchConnector ( id , body , kafkaId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
541+ public patchConnector ( id : string , connector : Connector , kafkaId ?: string , options ?: any ) {
542+ return ConnectorsApiFp ( this . configuration ) . patchConnector ( id , connector , kafkaId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
543543 }
544544}
0 commit comments