diff --git a/generated/index.ts b/generated/index.ts index faadf7d..16f79c6 100644 --- a/generated/index.ts +++ b/generated/index.ts @@ -44,6 +44,8 @@ export type { v1CreateRuleTypeResponse } from './models/v1CreateRuleTypeResponse export type { v1CreateUserRequest } from './models/v1CreateUserRequest'; export type { v1CreateUserResponse } from './models/v1CreateUserResponse'; export type { v1DeleteProfileResponse } from './models/v1DeleteProfileResponse'; +export type { v1DeleteRepositoryByIdResponse } from './models/v1DeleteRepositoryByIdResponse'; +export type { v1DeleteRepositoryByNameResponse } from './models/v1DeleteRepositoryByNameResponse'; export type { v1DeleteRuleTypeResponse } from './models/v1DeleteRuleTypeResponse'; export type { v1DeleteUserResponse } from './models/v1DeleteUserResponse'; export type { v1DiffType } from './models/v1DiffType'; diff --git a/generated/models/v1DeleteRepositoryByIdResponse.ts b/generated/models/v1DeleteRepositoryByIdResponse.ts new file mode 100644 index 0000000..7675378 --- /dev/null +++ b/generated/models/v1DeleteRepositoryByIdResponse.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type v1DeleteRepositoryByIdResponse = { + repositoryId?: string; +}; + diff --git a/generated/models/v1DeleteRepositoryByNameResponse.ts b/generated/models/v1DeleteRepositoryByNameResponse.ts new file mode 100644 index 0000000..3cd2a3d --- /dev/null +++ b/generated/models/v1DeleteRepositoryByNameResponse.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type v1DeleteRepositoryByNameResponse = { + name?: string; +}; + diff --git a/generated/services/RepositoryServiceService.ts b/generated/services/RepositoryServiceService.ts index 7eee456..5c3fcd0 100644 --- a/generated/services/RepositoryServiceService.ts +++ b/generated/services/RepositoryServiceService.ts @@ -3,6 +3,8 @@ /* tslint:disable */ /* eslint-disable */ import type { googlerpcStatus } from '../models/googlerpcStatus'; +import type { v1DeleteRepositoryByIdResponse } from '../models/v1DeleteRepositoryByIdResponse'; +import type { v1DeleteRepositoryByNameResponse } from '../models/v1DeleteRepositoryByNameResponse'; import type { v1GetRepositoryByIdResponse } from '../models/v1GetRepositoryByIdResponse'; import type { v1GetRepositoryByNameResponse } from '../models/v1GetRepositoryByNameResponse'; import type { v1ListRemoteRepositoriesFromProviderResponse } from '../models/v1ListRemoteRepositoriesFromProviderResponse'; @@ -86,6 +88,24 @@ export class RepositoryServiceService { }); } + /** + * @param repositoryId + * @returns v1DeleteRepositoryByIdResponse A successful response. + * @returns googlerpcStatus An unexpected error response. + * @throws ApiError + */ + public static repositoryServiceDeleteRepositoryById( + repositoryId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/api/v1/repository/id/{repositoryId}', + path: { + 'repositoryId': repositoryId, + }, + }); + } + /** * @param provider * @param name @@ -112,6 +132,32 @@ export class RepositoryServiceService { }); } + /** + * @param provider + * @param name + * @param projectId + * @returns v1DeleteRepositoryByNameResponse A successful response. + * @returns googlerpcStatus An unexpected error response. + * @throws ApiError + */ + public static repositoryServiceDeleteRepositoryByName( + provider: string, + name: string, + projectId?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/api/v1/repository/provider/{provider}/name/{name}', + path: { + 'provider': provider, + 'name': name, + }, + query: { + 'projectId': projectId, + }, + }); + } + /** * @param provider * @param body