Skip to content

Commit

Permalink
fix: get for port auth instead of post (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y authored Apr 3, 2024
1 parent 7f6f30a commit 1ed7978
Show file tree
Hide file tree
Showing 5 changed files with 336 additions and 31 deletions.

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

0 comments on commit 1ed7978

Please sign in to comment.