Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from stacklok/update-generated-05b1b3457108bc5b…
Browse files Browse the repository at this point in the history
…c56804d9b3f887c376a3fa00

Update Generated
  • Loading branch information
JAORMX authored Nov 2, 2023
2 parents 05b1b34 + a74e3d8 commit 6afd610
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
9 changes: 9 additions & 0 deletions generated/models/v1DeleteRepositoryByIdResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type v1DeleteRepositoryByIdResponse = {
repositoryId?: string;
};

9 changes: 9 additions & 0 deletions generated/models/v1DeleteRepositoryByNameResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type v1DeleteRepositoryByNameResponse = {
name?: string;
};

46 changes: 46 additions & 0 deletions generated/services/RepositoryServiceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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<v1DeleteRepositoryByIdResponse | googlerpcStatus> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/api/v1/repository/id/{repositoryId}',
path: {
'repositoryId': repositoryId,
},
});
}

/**
* @param provider
* @param name
Expand All @@ -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<v1DeleteRepositoryByNameResponse | googlerpcStatus> {
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
Expand Down

0 comments on commit 6afd610

Please sign in to comment.