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

feat: added api for alias deletion #2439

Merged
merged 2 commits into from
May 8, 2024
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

Large diffs are not rendered by default.

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

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

6 changes: 6 additions & 0 deletions cloud/api/protobuf/kurtosis_backend_server_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ service KurtosisCloudBackendServer {
rpc GetUnlockedPorts(GetUnlockedPortsRequest) returns(GetUnlockedPortsResponse){};
rpc GetPorts(GetPortsRequest) returns(GetPortsResponse){};
rpc AddAlias(AddAliasRequest) returns(google.protobuf.Empty){};
rpc DeleteAlias(DeleteAliasRequest) returns (google.protobuf.Empty){};
rpc IsNewKurtosisVersionAvailable(IsNewKurtosisVersionAvailableRequest) returns(IsNewKurtosisVersionAvailableResponse){};
rpc UpgradeKurtosisVersion(UpgradeKurtosisVersionRequest) returns(google.protobuf.Empty){};
}
Expand Down Expand Up @@ -285,6 +286,11 @@ message AddAliasRequest {
string alias=3;
}

message DeleteAliasRequest {
string access_token=1;
string alias=2;
}

message IsNewKurtosisVersionAvailableRequest {
string access_token = 1;
string current_kurtosis_version = 2;
Expand Down
11 changes: 10 additions & 1 deletion cloud/api/typescript/src/kurtosis_backend_server_api_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @ts-nocheck

import { Empty, MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
import { AddAliasRequest, CancelPaymentSubscriptionArgs, ChangeUserActiveRequest, CheckPortAuthorizationRequest, DeleteInstanceRequest, DeleteInstanceResponse, GetCloudInstanceConfigArgs, GetCloudInstanceConfigResponse, GetInstancesResponse, GetOrCreateApiKeyRequest, GetOrCreateApiKeyResponse, GetOrCreateInstanceRequest, GetOrCreateInstanceResponse, GetOrCreatePaymentConfigArgs, GetOrCreatePaymentConfigResponse, GetPortsRequest, GetPortsResponse, GetUnlockedPortsRequest, GetUnlockedPortsResponse, GetUserRequest, GetUserResponse, IsNewKurtosisVersionAvailableRequest, IsNewKurtosisVersionAvailableResponse, LockPortRequest, RefreshDefaultPaymentMethodArgs, UnlockPortRequest, UpdateAddressArgs, UpgradeKurtosisVersionRequest } from "./kurtosis_backend_server_api_pb.js";
import { AddAliasRequest, CancelPaymentSubscriptionArgs, ChangeUserActiveRequest, CheckPortAuthorizationRequest, DeleteAliasRequest, DeleteInstanceRequest, DeleteInstanceResponse, GetCloudInstanceConfigArgs, GetCloudInstanceConfigResponse, GetInstancesResponse, GetOrCreateApiKeyRequest, GetOrCreateApiKeyResponse, GetOrCreateInstanceRequest, GetOrCreateInstanceResponse, GetOrCreatePaymentConfigArgs, GetOrCreatePaymentConfigResponse, GetPortsRequest, GetPortsResponse, GetUnlockedPortsRequest, GetUnlockedPortsResponse, GetUserRequest, GetUserResponse, IsNewKurtosisVersionAvailableRequest, IsNewKurtosisVersionAvailableResponse, LockPortRequest, RefreshDefaultPaymentMethodArgs, UnlockPortRequest, UpdateAddressArgs, UpgradeKurtosisVersionRequest } from "./kurtosis_backend_server_api_pb.js";

/**
* @generated from service kurtosis_cloud.KurtosisCloudBackendServer
Expand Down Expand Up @@ -177,6 +177,15 @@ export const KurtosisCloudBackendServer = {
O: Empty,
kind: MethodKind.Unary,
},
/**
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.DeleteAlias
*/
deleteAlias: {
name: "DeleteAlias",
I: DeleteAliasRequest,
O: Empty,
kind: MethodKind.Unary,
},
/**
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.IsNewKurtosisVersionAvailable
*/
Expand Down
43 changes: 43 additions & 0 deletions cloud/api/typescript/src/kurtosis_backend_server_api_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,49 @@ export class AddAliasRequest extends Message<AddAliasRequest> {
}
}

/**
* @generated from message kurtosis_cloud.DeleteAliasRequest
*/
export class DeleteAliasRequest extends Message<DeleteAliasRequest> {
/**
* @generated from field: string access_token = 1;
*/
accessToken = "";

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

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

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "kurtosis_cloud.DeleteAliasRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "alias", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

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

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

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

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

/**
* @generated from message kurtosis_cloud.IsNewKurtosisVersionAvailableRequest
*/
Expand Down
Loading