Skip to content

Commit

Permalink
chore: update API client
Browse files Browse the repository at this point in the history
  • Loading branch information
apicurio-ci authored Aug 22, 2022
1 parent 3d62ad1 commit 65d4382
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.4.0
6.0.1
30 changes: 23 additions & 7 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3138,10 +3138,12 @@ export const ArtifactsApiAxiosParamCreator = function (configuration?: Configura
* @param {string} [xRegistryDescriptionEncoded] Specifies the description of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content.
* @param {string} [xRegistryName] Specifies the name of artifact being added. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryNameEncoded] Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryContentHash] Specifies the SHA-256 of the artifact to be verified.
* @param {'SHA256' | 'MD5'} [xRegistryHashAlgorithm] The algorithm to use when checking the content validity. (available: SHA256,MD5; default: SHA256)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createArtifact: async (groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
createArtifact: async (groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, xRegistryContentHash?: string, xRegistryHashAlgorithm?: 'SHA256' | 'MD5', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'groupId' is not null or undefined
assertParamExists('createArtifact', 'groupId', groupId)
// verify required parameter 'body' is not null or undefined
Expand Down Expand Up @@ -3195,6 +3197,14 @@ export const ArtifactsApiAxiosParamCreator = function (configuration?: Configura
localVarHeaderParameter['X-Registry-Name-Encoded'] = String(xRegistryNameEncoded);
}

if (xRegistryContentHash !== undefined && xRegistryContentHash !== null) {
localVarHeaderParameter['X-Registry-Content-Hash'] = String(xRegistryContentHash);
}

if (xRegistryHashAlgorithm !== undefined && xRegistryHashAlgorithm !== null) {
localVarHeaderParameter['X-Registry-Hash-Algorithm'] = String(xRegistryHashAlgorithm);
}



localVarHeaderParameter['Content-Type'] = 'application/create.extended+json';
Expand Down Expand Up @@ -3875,11 +3885,13 @@ export const ArtifactsApiFp = function(configuration?: Configuration) {
* @param {string} [xRegistryDescriptionEncoded] Specifies the description of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content.
* @param {string} [xRegistryName] Specifies the name of artifact being added. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryNameEncoded] Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryContentHash] Specifies the SHA-256 of the artifact to be verified.
* @param {'SHA256' | 'MD5'} [xRegistryHashAlgorithm] The algorithm to use when checking the content validity. (available: SHA256,MD5; default: SHA256)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createArtifact(groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArtifactMetaData>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createArtifact(groupId, body, xRegistryArtifactType, xRegistryArtifactId, xRegistryVersion, ifExists, canonical, xRegistryDescription, xRegistryDescriptionEncoded, xRegistryName, xRegistryNameEncoded, options);
async createArtifact(groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, xRegistryContentHash?: string, xRegistryHashAlgorithm?: 'SHA256' | 'MD5', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArtifactMetaData>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createArtifact(groupId, body, xRegistryArtifactType, xRegistryArtifactId, xRegistryVersion, ifExists, canonical, xRegistryDescription, xRegistryDescriptionEncoded, xRegistryName, xRegistryNameEncoded, xRegistryContentHash, xRegistryHashAlgorithm, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand Down Expand Up @@ -4093,11 +4105,13 @@ export const ArtifactsApiFactory = function (configuration?: Configuration, base
* @param {string} [xRegistryDescriptionEncoded] Specifies the description of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content.
* @param {string} [xRegistryName] Specifies the name of artifact being added. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryNameEncoded] Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryContentHash] Specifies the SHA-256 of the artifact to be verified.
* @param {'SHA256' | 'MD5'} [xRegistryHashAlgorithm] The algorithm to use when checking the content validity. (available: SHA256,MD5; default: SHA256)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createArtifact(groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, options?: any): AxiosPromise<ArtifactMetaData> {
return localVarFp.createArtifact(groupId, body, xRegistryArtifactType, xRegistryArtifactId, xRegistryVersion, ifExists, canonical, xRegistryDescription, xRegistryDescriptionEncoded, xRegistryName, xRegistryNameEncoded, options).then((request) => request(axios, basePath));
createArtifact(groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, xRegistryContentHash?: string, xRegistryHashAlgorithm?: 'SHA256' | 'MD5', options?: any): AxiosPromise<ArtifactMetaData> {
return localVarFp.createArtifact(groupId, body, xRegistryArtifactType, xRegistryArtifactId, xRegistryVersion, ifExists, canonical, xRegistryDescription, xRegistryDescriptionEncoded, xRegistryName, xRegistryNameEncoded, xRegistryContentHash, xRegistryHashAlgorithm, options).then((request) => request(axios, basePath));
},
/**
* Deletes an artifact completely, resulting in all versions of the artifact also being deleted. This may fail for one of the following reasons: * No artifact with the `artifactId` exists (HTTP error `404`) * A server error occurred (HTTP error `500`)
Expand Down Expand Up @@ -4296,12 +4310,14 @@ export class ArtifactsApi extends BaseAPI {
* @param {string} [xRegistryDescriptionEncoded] Specifies the description of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content.
* @param {string} [xRegistryName] Specifies the name of artifact being added. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryNameEncoded] Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content.
* @param {string} [xRegistryContentHash] Specifies the SHA-256 of the artifact to be verified.
* @param {'SHA256' | 'MD5'} [xRegistryHashAlgorithm] The algorithm to use when checking the content validity. (available: SHA256,MD5; default: SHA256)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ArtifactsApi
*/
public createArtifact(groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, options?: AxiosRequestConfig) {
return ArtifactsApiFp(this.configuration).createArtifact(groupId, body, xRegistryArtifactType, xRegistryArtifactId, xRegistryVersion, ifExists, canonical, xRegistryDescription, xRegistryDescriptionEncoded, xRegistryName, xRegistryNameEncoded, options).then((request) => request(this.axios, this.basePath));
public createArtifact(groupId: string, body: any, xRegistryArtifactType?: ArtifactType, xRegistryArtifactId?: string, xRegistryVersion?: string, ifExists?: IfExists, canonical?: boolean, xRegistryDescription?: string, xRegistryDescriptionEncoded?: string, xRegistryName?: string, xRegistryNameEncoded?: string, xRegistryContentHash?: string, xRegistryHashAlgorithm?: 'SHA256' | 'MD5', options?: AxiosRequestConfig) {
return ArtifactsApiFp(this.configuration).createArtifact(groupId, body, xRegistryArtifactType, xRegistryArtifactId, xRegistryVersion, ifExists, canonical, xRegistryDescription, xRegistryDescriptionEncoded, xRegistryName, xRegistryNameEncoded, xRegistryContentHash, xRegistryHashAlgorithm, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand Down

0 comments on commit 65d4382

Please sign in to comment.