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

fix: get for port auth instead of post #2353

Merged
merged 1 commit into from
Apr 3, 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

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.

4 changes: 3 additions & 1 deletion cloud/api/protobuf/kurtosis_backend_server_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ service KurtosisCloudBackendServer {
rpc RefreshDefaultPaymentMethod (RefreshDefaultPaymentMethodArgs) returns (google.protobuf.Empty) {};
rpc CancelPaymentSubscription (CancelPaymentSubscriptionArgs) returns (google.protobuf.Empty) {};
rpc UpdateAddress(UpdateAddressArgs) returns (google.protobuf.Empty) {};
rpc CheckPortAuthorization(CheckPortAuthorizationRequest) returns(google.protobuf.Empty){};
rpc CheckPortAuthorization(CheckPortAuthorizationRequest) returns(google.protobuf.Empty){
option idempotency_level = NO_SIDE_EFFECTS;
};
rpc UnlockPort(UnlockPortRequest) returns(google.protobuf.Empty){};
rpc LockPort(LockPortRequest) returns(google.protobuf.Empty){};
rpc GetUnlockedPorts(GetUnlockedPortsRequest) returns(GetUnlockedPortsResponse){}
Expand Down
41 changes: 39 additions & 2 deletions cloud/api/typescript/src/kurtosis_backend_server_api_connect.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts"
// @generated by protoc-gen-connect-es v0.13.2 with parameter "target=ts"
// @generated from file kurtosis_backend_server_api.proto (package kurtosis_cloud, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import { Empty, MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
import { CancelPaymentSubscriptionArgs, GetCloudInstanceConfigArgs, GetCloudInstanceConfigResponse, GetOrCreateApiKeyRequest, GetOrCreateApiKeyResponse, GetOrCreateInstanceRequest, GetOrCreateInstanceResponse, GetOrCreatePaymentConfigArgs, GetOrCreatePaymentConfigResponse, RefreshDefaultPaymentMethodArgs, UpdateAddressArgs } from "./kurtosis_backend_server_api_pb.js";
import { CancelPaymentSubscriptionArgs, CheckPortAuthorizationRequest, GetCloudInstanceConfigArgs, GetCloudInstanceConfigResponse, GetOrCreateApiKeyRequest, GetOrCreateApiKeyResponse, GetOrCreateInstanceRequest, GetOrCreateInstanceResponse, GetOrCreatePaymentConfigArgs, GetOrCreatePaymentConfigResponse, GetUnlockedPortsRequest, GetUnlockedPortsResponse, LockPortRequest, RefreshDefaultPaymentMethodArgs, UnlockPortRequest, UpdateAddressArgs } from "./kurtosis_backend_server_api_pb.js";

/**
* @generated from service kurtosis_cloud.KurtosisCloudBackendServer
Expand Down Expand Up @@ -86,6 +86,43 @@ export const KurtosisCloudBackendServer = {
O: Empty,
kind: MethodKind.Unary,
},
/**
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization
*/
checkPortAuthorization: {
name: "CheckPortAuthorization",
I: CheckPortAuthorizationRequest,
O: Empty,
kind: MethodKind.Unary,
idempotency: MethodIdempotency.NoSideEffects,
},
/**
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.UnlockPort
*/
unlockPort: {
name: "UnlockPort",
I: UnlockPortRequest,
O: Empty,
kind: MethodKind.Unary,
},
/**
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.LockPort
*/
lockPort: {
name: "LockPort",
I: LockPortRequest,
O: Empty,
kind: MethodKind.Unary,
},
/**
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.GetUnlockedPorts
*/
getUnlockedPorts: {
name: "GetUnlockedPorts",
I: GetUnlockedPortsRequest,
O: GetUnlockedPortsResponse,
kind: MethodKind.Unary,
},
}
} as const;

Loading
Loading