-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds generation for buf connect gRPCWeb ts clients. (#6031)
<!-- Before you open the request please review the following guidelines and tips to help it be more easily integrated: - Describe the scope of your change - i.e. what the change does. - Describe any known limitations with your change. - Please run any tests or examples that can exercise your modified code. Thank you for contributing! --> Part one of a series for #6013 ### Description of the change <!-- Describe the scope of your change - i.e. what the change does. --> Adds support for the typescript clients used by buf connect's gRPC-Web. ### Benefits <!-- What benefits will be realized by the code change? --> Just allows the next PR to be reviewable, only containing the actual code changes rather than the generated changes. ### Possible drawbacks <!-- Describe any known limitations with your change --> ### Applicable issues <!-- Enter any applicable Issues here (You can reference an issue using #) --> - ref #6013 ### Additional information <!-- If there's anything else that's important and relevant to your pull request, mention that information here.--> Once we've switched over, we can also look at removing this generated code altogether, since the buf connect system has support for remote plugins, enabling simple imports of the remotely generated code. --------- Signed-off-by: Michael Nelson <minelson@vmware.com>
- Loading branch information
1 parent
6b2cd93
commit e3d4cd5
Showing
17 changed files
with
8,883 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/packages_connect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
// Copyright 2021-2022 the Kubeapps contributors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// @generated by protoc-gen-connect-es v0.8.1 with parameter "target=ts,import_extension=none" | ||
// @generated from file kubeappsapis/core/packages/v1alpha1/packages.proto (package kubeappsapis.core.packages.v1alpha1, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import { | ||
CreateInstalledPackageRequest, | ||
CreateInstalledPackageResponse, | ||
DeleteInstalledPackageRequest, | ||
DeleteInstalledPackageResponse, | ||
GetAvailablePackageDetailRequest, | ||
GetAvailablePackageDetailResponse, | ||
GetAvailablePackageSummariesRequest, | ||
GetAvailablePackageSummariesResponse, | ||
GetAvailablePackageVersionsRequest, | ||
GetAvailablePackageVersionsResponse, | ||
GetInstalledPackageDetailRequest, | ||
GetInstalledPackageDetailResponse, | ||
GetInstalledPackageResourceRefsRequest, | ||
GetInstalledPackageResourceRefsResponse, | ||
GetInstalledPackageSummariesRequest, | ||
GetInstalledPackageSummariesResponse, | ||
UpdateInstalledPackageRequest, | ||
UpdateInstalledPackageResponse, | ||
} from "./packages_pb"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
|
||
/** | ||
* Each packages v1alpha1 plugin must implement at least the following rpcs: | ||
* | ||
* | ||
* @generated from service kubeappsapis.core.packages.v1alpha1.PackagesService | ||
*/ | ||
export const PackagesService = { | ||
typeName: "kubeappsapis.core.packages.v1alpha1.PackagesService", | ||
methods: { | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.GetAvailablePackageSummaries | ||
*/ | ||
getAvailablePackageSummaries: { | ||
name: "GetAvailablePackageSummaries", | ||
I: GetAvailablePackageSummariesRequest, | ||
O: GetAvailablePackageSummariesResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.GetAvailablePackageDetail | ||
*/ | ||
getAvailablePackageDetail: { | ||
name: "GetAvailablePackageDetail", | ||
I: GetAvailablePackageDetailRequest, | ||
O: GetAvailablePackageDetailResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.GetAvailablePackageVersions | ||
*/ | ||
getAvailablePackageVersions: { | ||
name: "GetAvailablePackageVersions", | ||
I: GetAvailablePackageVersionsRequest, | ||
O: GetAvailablePackageVersionsResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.GetInstalledPackageSummaries | ||
*/ | ||
getInstalledPackageSummaries: { | ||
name: "GetInstalledPackageSummaries", | ||
I: GetInstalledPackageSummariesRequest, | ||
O: GetInstalledPackageSummariesResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.GetInstalledPackageDetail | ||
*/ | ||
getInstalledPackageDetail: { | ||
name: "GetInstalledPackageDetail", | ||
I: GetInstalledPackageDetailRequest, | ||
O: GetInstalledPackageDetailResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.CreateInstalledPackage | ||
*/ | ||
createInstalledPackage: { | ||
name: "CreateInstalledPackage", | ||
I: CreateInstalledPackageRequest, | ||
O: CreateInstalledPackageResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.UpdateInstalledPackage | ||
*/ | ||
updateInstalledPackage: { | ||
name: "UpdateInstalledPackage", | ||
I: UpdateInstalledPackageRequest, | ||
O: UpdateInstalledPackageResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.DeleteInstalledPackage | ||
*/ | ||
deleteInstalledPackage: { | ||
name: "DeleteInstalledPackage", | ||
I: DeleteInstalledPackageRequest, | ||
O: DeleteInstalledPackageResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kubeappsapis.core.packages.v1alpha1.PackagesService.GetInstalledPackageResourceRefs | ||
*/ | ||
getInstalledPackageResourceRefs: { | ||
name: "GetInstalledPackageResourceRefs", | ||
I: GetInstalledPackageResourceRefsRequest, | ||
O: GetInstalledPackageResourceRefsResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
}, | ||
} as const; |
Oops, something went wrong.