Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rhoas/kafka-management-sdk

Package Overview
Dependencies
Maintainers
5
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rhoas/kafka-management-sdk - npm Package Compare versions

Comparing version 0.12.1 to 0.12.2

dist/generated/model/kafka-update-request.d.ts

48

dist/generated/api/default-api.d.ts

@@ -20,2 +20,3 @@ /**

import { KafkaRequestPayload } from '../model';
import { KafkaUpdateRequest } from '../model';
import { MetricsInstantQueryList } from '../model';

@@ -120,2 +121,11 @@ import { MetricsRangeQueryList } from '../model';

getVersionMetadata: (options?: any) => Promise<RequestArgs>;
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById: (id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any) => Promise<RequestArgs>;
};

@@ -217,2 +227,11 @@ /**

getVersionMetadata(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VersionMetadata>>;
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KafkaRequest>>;
};

@@ -314,2 +333,11 @@ /**

getVersionMetadata(options?: any): AxiosPromise<VersionMetadata>;
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any): AxiosPromise<KafkaRequest>;
};

@@ -422,2 +450,12 @@ /**

getVersionMetadata(options?: any): AxiosPromise<VersionMetadata>;
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApiInterface
*/
updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any): AxiosPromise<KafkaRequest>;
}

@@ -531,2 +569,12 @@ /**

getVersionMetadata(options?: any): Promise<import("axios").AxiosResponse<VersionMetadata>>;
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any): Promise<import("axios").AxiosResponse<KafkaRequest>>;
}

@@ -404,2 +404,39 @@ "use strict";

}),
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById: (id, kafkaUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
// verify required parameter 'id' is not null or undefined
common_1.assertParamExists('updateKafkaById', 'id', id);
// verify required parameter 'kafkaUpdateRequest' is not null or undefined
common_1.assertParamExists('updateKafkaById', 'kafkaUpdateRequest', kafkaUpdateRequest);
const localVarPath = `/api/kafkas_mgmt/v1/kafkas/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication Bearer required
// http bearer authentication required
yield common_1.setBearerAuthToObject(localVarHeaderParameter, configuration);
localVarHeaderParameter['Content-Type'] = 'application/json';
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
localVarRequestOptions.data = common_1.serializeDataIfNeeded(kafkaUpdateRequest, localVarRequestOptions, configuration);
return {
url: common_1.toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
}),
};

@@ -555,2 +592,16 @@ };

},
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById(id, kafkaUpdateRequest, options) {
return __awaiter(this, void 0, void 0, function* () {
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateKafkaById(id, kafkaUpdateRequest, options);
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
});
},
};

@@ -676,2 +727,13 @@ };

},
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById(id, kafkaUpdateRequest, options) {
return localVarFp.updateKafkaById(id, kafkaUpdateRequest, options).then((request) => request(axios, basePath));
},
};

@@ -807,3 +869,15 @@ };

}
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
updateKafkaById(id, kafkaUpdateRequest, options) {
return exports.DefaultApiFp(this.configuration).updateKafkaById(id, kafkaUpdateRequest, options).then((request) => request(this.axios, this.basePath));
}
}
exports.DefaultApi = DefaultApi;

1

dist/generated/model/index.d.ts

@@ -16,2 +16,3 @@ export * from './cloud-provider';

export * from './kafka-request-payload';
export * from './kafka-update-request';
export * from './list';

@@ -18,0 +19,0 @@ export * from './metrics-instant-query-list';

@@ -28,2 +28,3 @@ "use strict";

__exportStar(require("./kafka-request-payload"), exports);
__exportStar(require("./kafka-update-request"), exports);
__exportStar(require("./list"), exports);

@@ -30,0 +31,0 @@ __exportStar(require("./metrics-instant-query-list"), exports);

@@ -84,2 +84,8 @@ /**

version?: string;
/**
*
* @type {string}
* @memberof KafkaRequestAllOf
*/
instance_type?: string;
}

4

package.json
{
"name": "@rhoas/kafka-management-sdk",
"version": "0.12.1",
"version": "0.12.2",
"description": "RHOAS Kafka Management SDK",

@@ -30,5 +30,5 @@ "author": "Red Hat Developers",

"devDependencies": {
"@types/node": "14.17.7",
"@types/node": "14.17.9",
"typescript": "4.3.5"
}
}

@@ -34,2 +34,4 @@ /* tslint:disable */

// @ts-ignore
import { KafkaUpdateRequest } from '../model';
// @ts-ignore
import { MetricsInstantQueryList } from '../model';

@@ -488,2 +490,46 @@ // @ts-ignore

},
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById: async (id: string, kafkaUpdateRequest: KafkaUpdateRequest, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('updateKafkaById', 'id', id)
// verify required parameter 'kafkaUpdateRequest' is not null or undefined
assertParamExists('updateKafkaById', 'kafkaUpdateRequest', kafkaUpdateRequest)
const localVarPath = `/api/kafkas_mgmt/v1/kafkas/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication Bearer required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(kafkaUpdateRequest, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
}

@@ -619,2 +665,14 @@ };

},
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KafkaRequest>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateKafkaById(id, kafkaUpdateRequest, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}

@@ -740,2 +798,13 @@ };

},
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any): AxiosPromise<KafkaRequest> {
return localVarFp.updateKafkaById(id, kafkaUpdateRequest, options).then((request) => request(axios, basePath));
},
};

@@ -860,2 +929,13 @@ };

/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApiInterface
*/
updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any): AxiosPromise<KafkaRequest>;
}

@@ -999,2 +1079,15 @@

}
/**
*
* @summary Update a Kafka instance by id
* @param {string} id The ID of record
* @param {KafkaUpdateRequest} kafkaUpdateRequest Update owner of kafka
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public updateKafkaById(id: string, kafkaUpdateRequest: KafkaUpdateRequest, options?: any) {
return DefaultApiFp(this.configuration).updateKafkaById(id, kafkaUpdateRequest, options).then((request) => request(this.axios, this.basePath));
}
}

@@ -16,2 +16,3 @@ export * from './cloud-provider';

export * from './kafka-request-payload';
export * from './kafka-update-request';
export * from './list';

@@ -18,0 +19,0 @@ export * from './metrics-instant-query-list';

@@ -89,4 +89,10 @@ /* tslint:disable */

version?: string;
/**
*
* @type {string}
* @memberof KafkaRequestAllOf
*/
instance_type?: string;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc