import { DefaultDeSerializers , DeSerializers , GetAllRequestBuilder , GetByKeyRequestBuilder , CreateRequestBuilder , UpdateRequestBuilder , DeleteRequestBuilder , DeserializedType , RequestBuilder } from '@sap-cloud-sdk/odata-v4' ; import { TestEntity } from './TestEntity' ; /**
 * Request builder class for operations supported on the [[TestEntity]] entity.
 */ export class TestEntityRequestBuilder < T extends DeSerializers = DefaultDeSerializers > extends RequestBuilder < TestEntity < T > , T > { param keyTestEntity returns getByKey ( keyTestEntity ) { return new GetByKeyRequestBuilder < TestEntity < T > , T > ( this . entityApi , { KeyTestEntity : keyTestEntity } ) ; } returns getAll ( ) { return new GetAllRequestBuilder < TestEntity < T > , T > ( this . entityApi ) ; } param entity returns create ( entity ) { return new CreateRequestBuilder < TestEntity < T > , T > ( this . entityApi , entity ) ; } param entity returns update ( entity ) { return new UpdateRequestBuilder < TestEntity < T > , T > ( this . entityApi , entity ) ; } param keyTestEntity returns delete ( keyTestEntity ) ; param entity returns delete ( entity ) ; delete ( keyTestEntityOrEntity ) { return new DeleteRequestBuilder < TestEntity < T > , T > ( this . entityApi , keyTestEntityOrEntity instanceof TestEntity ? keyTestEntityOrEntity : { KeyTestEntity : keyTestEntityOrEntity ! } ) ; } }