Skip to content

Commit

Permalink
push latest version of APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rig-bot committed Sep 18, 2023
1 parent 42222c1 commit efdc250
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 102 deletions.
22 changes: 8 additions & 14 deletions api/v1/capsule/capsule_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,19 @@ export class Capsule extends Message<Capsule> {
capsuleId = "";

/**
* @generated from field: string name = 2;
*/
name = "";

/**
* @generated from field: google.protobuf.Timestamp created_at = 3;
* @generated from field: uint64 current_rollout = 5;
*/
createdAt?: Timestamp;
currentRollout = protoInt64.zero;

/**
* @generated from field: model.Author created_by = 4;
* @generated from field: google.protobuf.Timestamp updated_at = 6;
*/
createdBy?: Author;
updatedAt?: Timestamp;

/**
* @generated from field: uint64 current_rollout = 5;
* @generated from field: model.Author updated_by = 7;
*/
currentRollout = protoInt64.zero;
updatedBy?: Author;

constructor(data?: PartialMessage<Capsule>) {
super();
Expand All @@ -45,10 +40,9 @@ export class Capsule extends Message<Capsule> {
static readonly typeName = "api.v1.capsule.Capsule";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "capsule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "created_at", kind: "message", T: Timestamp },
{ no: 4, name: "created_by", kind: "message", T: Author },
{ no: 5, name: "current_rollout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
{ no: 6, name: "updated_at", kind: "message", T: Timestamp },
{ no: 7, name: "updated_by", kind: "message", T: Author },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Capsule {
Expand Down
13 changes: 1 addition & 12 deletions api/v1/capsule/service_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable */
// @ts-nocheck

import { AbortRolloutRequest, AbortRolloutResponse, CapsuleMetricsRequest, CapsuleMetricsResponse, CreateBuildRequest, CreateBuildResponse, CreateRequest, CreateResponse, DeleteBuildRequest, DeleteBuildResponse, DeleteRequest, DeleteResponse, DeployRequest, DeployResponse, GetByNameRequest, GetByNameResponse, GetRequest, GetResponse, GetRolloutRequest, GetRolloutResponse, ListBuildsRequest, ListBuildsResponse, ListEventsRequest, ListEventsResponse, ListInstancesRequest, ListInstancesResponse, ListRequest, ListResponse, ListRolloutsRequest, ListRolloutsResponse, LogsRequest, LogsResponse, RestartInstanceRequest, RestartInstanceResponse, UpdateRequest, UpdateResponse } from "./service_pb.js";
import { AbortRolloutRequest, AbortRolloutResponse, CapsuleMetricsRequest, CapsuleMetricsResponse, CreateBuildRequest, CreateBuildResponse, CreateRequest, CreateResponse, DeleteBuildRequest, DeleteBuildResponse, DeleteRequest, DeleteResponse, DeployRequest, DeployResponse, GetRequest, GetResponse, GetRolloutRequest, GetRolloutResponse, ListBuildsRequest, ListBuildsResponse, ListEventsRequest, ListEventsResponse, ListInstancesRequest, ListInstancesResponse, ListRequest, ListResponse, ListRolloutsRequest, ListRolloutsResponse, LogsRequest, LogsResponse, RestartInstanceRequest, RestartInstanceResponse, UpdateRequest, UpdateResponse } from "./service_pb.js";
import { MethodKind } from "@bufbuild/protobuf";

/**
Expand Down Expand Up @@ -80,17 +80,6 @@ export const Service = {
O: ListResponse,
kind: MethodKind.Unary,
},
/**
* Get a capsule by name.
*
* @generated from rpc api.v1.capsule.Service.GetByName
*/
getByName: {
name: "GetByName",
I: GetByNameRequest,
O: GetByNameResponse,
kind: MethodKind.Unary,
},
/**
* Create a new build.
* Builds are immutable and cannot change. Create a new build to make
Expand Down
76 changes: 0 additions & 76 deletions api/v1/capsule/service_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,82 +498,6 @@ export class ListResponse extends Message<ListResponse> {
}
}

/**
* @generated from message api.v1.capsule.GetByNameRequest
*/
export class GetByNameRequest extends Message<GetByNameRequest> {
/**
* The capsule to get.
*
* @generated from field: string name = 1;
*/
name = "";

constructor(data?: PartialMessage<GetByNameRequest>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.capsule.GetByNameRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetByNameRequest {
return new GetByNameRequest().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetByNameRequest {
return new GetByNameRequest().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetByNameRequest {
return new GetByNameRequest().fromJsonString(jsonString, options);
}

static equals(a: GetByNameRequest | PlainMessage<GetByNameRequest> | undefined, b: GetByNameRequest | PlainMessage<GetByNameRequest> | undefined): boolean {
return proto3.util.equals(GetByNameRequest, a, b);
}
}

/**
* @generated from message api.v1.capsule.GetByNameResponse
*/
export class GetByNameResponse extends Message<GetByNameResponse> {
/**
* @generated from field: api.v1.capsule.Capsule capsule = 1;
*/
capsule?: Capsule;

constructor(data?: PartialMessage<GetByNameResponse>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.capsule.GetByNameResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "capsule", kind: "message", T: Capsule },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetByNameResponse {
return new GetByNameResponse().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetByNameResponse {
return new GetByNameResponse().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetByNameResponse {
return new GetByNameResponse().fromJsonString(jsonString, options);
}

static equals(a: GetByNameResponse | PlainMessage<GetByNameResponse> | undefined, b: GetByNameResponse | PlainMessage<GetByNameResponse> | undefined): boolean {
return proto3.util.equals(GetByNameResponse, a, b);
}
}

/**
* @generated from message api.v1.capsule.CreateBuildRequest
*/
Expand Down

0 comments on commit efdc250

Please sign in to comment.