Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[usage-api] remove superceded API #12763

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
311 changes: 73 additions & 238 deletions components/usage-api/go/v1/usage.pb.go

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions components/usage-api/go/v1/usage_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions components/usage-api/typescript/src/usage/v1/usage_grpc_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,11 @@ import * as usage_v1_usage_pb from "../../usage/v1/usage_pb";
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";

interface IUsageServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
reconcileUsage: IUsageServiceService_IReconcileUsage;
getCostCenter: IUsageServiceService_IGetCostCenter;
reconcileUsageWithLedger: IUsageServiceService_IReconcileUsageWithLedger;
listUsage: IUsageServiceService_IListUsage;
}

interface IUsageServiceService_IReconcileUsage extends grpc.MethodDefinition<usage_v1_usage_pb.ReconcileUsageRequest, usage_v1_usage_pb.ReconcileUsageResponse> {
path: "/usage.v1.UsageService/ReconcileUsage";
requestStream: false;
responseStream: false;
requestSerialize: grpc.serialize<usage_v1_usage_pb.ReconcileUsageRequest>;
requestDeserialize: grpc.deserialize<usage_v1_usage_pb.ReconcileUsageRequest>;
responseSerialize: grpc.serialize<usage_v1_usage_pb.ReconcileUsageResponse>;
responseDeserialize: grpc.deserialize<usage_v1_usage_pb.ReconcileUsageResponse>;
}
interface IUsageServiceService_IGetCostCenter extends grpc.MethodDefinition<usage_v1_usage_pb.GetCostCenterRequest, usage_v1_usage_pb.GetCostCenterResponse> {
path: "/usage.v1.UsageService/GetCostCenter";
requestStream: false;
Expand Down Expand Up @@ -61,16 +51,12 @@ interface IUsageServiceService_IListUsage extends grpc.MethodDefinition<usage_v1
export const UsageServiceService: IUsageServiceService;

export interface IUsageServiceServer extends grpc.UntypedServiceImplementation {
reconcileUsage: grpc.handleUnaryCall<usage_v1_usage_pb.ReconcileUsageRequest, usage_v1_usage_pb.ReconcileUsageResponse>;
getCostCenter: grpc.handleUnaryCall<usage_v1_usage_pb.GetCostCenterRequest, usage_v1_usage_pb.GetCostCenterResponse>;
reconcileUsageWithLedger: grpc.handleUnaryCall<usage_v1_usage_pb.ReconcileUsageWithLedgerRequest, usage_v1_usage_pb.ReconcileUsageWithLedgerResponse>;
listUsage: grpc.handleUnaryCall<usage_v1_usage_pb.ListUsageRequest, usage_v1_usage_pb.ListUsageResponse>;
}

export interface IUsageServiceClient {
reconcileUsage(request: usage_v1_usage_pb.ReconcileUsageRequest, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.ReconcileUsageResponse) => void): grpc.ClientUnaryCall;
reconcileUsage(request: usage_v1_usage_pb.ReconcileUsageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.ReconcileUsageResponse) => void): grpc.ClientUnaryCall;
reconcileUsage(request: usage_v1_usage_pb.ReconcileUsageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.ReconcileUsageResponse) => void): grpc.ClientUnaryCall;
getCostCenter(request: usage_v1_usage_pb.GetCostCenterRequest, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.GetCostCenterResponse) => void): grpc.ClientUnaryCall;
getCostCenter(request: usage_v1_usage_pb.GetCostCenterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.GetCostCenterResponse) => void): grpc.ClientUnaryCall;
getCostCenter(request: usage_v1_usage_pb.GetCostCenterRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.GetCostCenterResponse) => void): grpc.ClientUnaryCall;
Expand All @@ -84,9 +70,6 @@ export interface IUsageServiceClient {

export class UsageServiceClient extends grpc.Client implements IUsageServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
public reconcileUsage(request: usage_v1_usage_pb.ReconcileUsageRequest, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.ReconcileUsageResponse) => void): grpc.ClientUnaryCall;
public reconcileUsage(request: usage_v1_usage_pb.ReconcileUsageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.ReconcileUsageResponse) => void): grpc.ClientUnaryCall;
public reconcileUsage(request: usage_v1_usage_pb.ReconcileUsageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.ReconcileUsageResponse) => void): grpc.ClientUnaryCall;
public getCostCenter(request: usage_v1_usage_pb.GetCostCenterRequest, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.GetCostCenterResponse) => void): grpc.ClientUnaryCall;
public getCostCenter(request: usage_v1_usage_pb.GetCostCenterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.GetCostCenterResponse) => void): grpc.ClientUnaryCall;
public getCostCenter(request: usage_v1_usage_pb.GetCostCenterRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: usage_v1_usage_pb.GetCostCenterResponse) => void): grpc.ClientUnaryCall;
Expand Down
34 changes: 0 additions & 34 deletions components/usage-api/typescript/src/usage/v1/usage_grpc_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,6 @@ function deserialize_usage_v1_ListUsageResponse(buffer_arg) {
return usage_v1_usage_pb.ListUsageResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_usage_v1_ReconcileUsageRequest(arg) {
if (!(arg instanceof usage_v1_usage_pb.ReconcileUsageRequest)) {
throw new Error('Expected argument of type usage.v1.ReconcileUsageRequest');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_usage_v1_ReconcileUsageRequest(buffer_arg) {
return usage_v1_usage_pb.ReconcileUsageRequest.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_usage_v1_ReconcileUsageResponse(arg) {
if (!(arg instanceof usage_v1_usage_pb.ReconcileUsageResponse)) {
throw new Error('Expected argument of type usage.v1.ReconcileUsageResponse');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_usage_v1_ReconcileUsageResponse(buffer_arg) {
return usage_v1_usage_pb.ReconcileUsageResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_usage_v1_ReconcileUsageWithLedgerRequest(arg) {
if (!(arg instanceof usage_v1_usage_pb.ReconcileUsageWithLedgerRequest)) {
throw new Error('Expected argument of type usage.v1.ReconcileUsageWithLedgerRequest');
Expand All @@ -101,18 +79,6 @@ function deserialize_usage_v1_ReconcileUsageWithLedgerResponse(buffer_arg) {


var UsageServiceService = exports.UsageServiceService = {
// ReconcileUsage collects usage for the specified time period, and stores the usage records in the database, returning the records.
reconcileUsage: {
path: '/usage.v1.UsageService/ReconcileUsage',
requestStream: false,
responseStream: false,
requestType: usage_v1_usage_pb.ReconcileUsageRequest,
responseType: usage_v1_usage_pb.ReconcileUsageResponse,
requestSerialize: serialize_usage_v1_ReconcileUsageRequest,
requestDeserialize: deserialize_usage_v1_ReconcileUsageRequest,
responseSerialize: serialize_usage_v1_ReconcileUsageResponse,
responseDeserialize: deserialize_usage_v1_ReconcileUsageResponse,
},
// GetCostCenter retrieves the spending limit with its associated attributionID
getCostCenter: {
path: '/usage.v1.UsageService/GetCostCenter',
Expand Down
54 changes: 0 additions & 54 deletions components/usage-api/typescript/src/usage/v1/usage_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,60 +304,6 @@ export namespace BilledSession {
}
}

export class ReconcileUsageRequest extends jspb.Message {

hasStartTime(): boolean;
clearStartTime(): void;
getStartTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setStartTime(value?: google_protobuf_timestamp_pb.Timestamp): ReconcileUsageRequest;

hasEndTime(): boolean;
clearEndTime(): void;
getEndTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setEndTime(value?: google_protobuf_timestamp_pb.Timestamp): ReconcileUsageRequest;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ReconcileUsageRequest.AsObject;
static toObject(includeInstance: boolean, msg: ReconcileUsageRequest): ReconcileUsageRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ReconcileUsageRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ReconcileUsageRequest;
static deserializeBinaryFromReader(message: ReconcileUsageRequest, reader: jspb.BinaryReader): ReconcileUsageRequest;
}

export namespace ReconcileUsageRequest {
export type AsObject = {
startTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
endTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}

export class ReconcileUsageResponse extends jspb.Message {
clearSessionsList(): void;
getSessionsList(): Array<BilledSession>;
setSessionsList(value: Array<BilledSession>): ReconcileUsageResponse;
addSessions(value?: BilledSession, index?: number): BilledSession;
getReportId(): string;
setReportId(value: string): ReconcileUsageResponse;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ReconcileUsageResponse.AsObject;
static toObject(includeInstance: boolean, msg: ReconcileUsageResponse): ReconcileUsageResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ReconcileUsageResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ReconcileUsageResponse;
static deserializeBinaryFromReader(message: ReconcileUsageResponse, reader: jspb.BinaryReader): ReconcileUsageResponse;
}

export namespace ReconcileUsageResponse {
export type AsObject = {
sessionsList: Array<BilledSession.AsObject>,
reportId: string,
}
}

export class GetCostCenterRequest extends jspb.Message {
getAttributionId(): string;
setAttributionId(value: string): GetCostCenterRequest;
Expand Down
Loading