Skip to content

Commit 974623c

Browse files
chore: add Portals mock (#303)
* chore: add Portals mock * Reset version to main - no version labels present * Bump .speakeasy/gen.yaml based on label * Reset version to main - no version labels present * Bump .speakeasy/gen.yaml based on label * Update provider based on openapi.yaml changes * chore: set version to 0.32.0 * chore: set version to 0.32.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 402b51f commit 974623c

7 files changed

Lines changed: 736 additions & 4990 deletions

File tree

.speakeasy/gen.lock

Lines changed: 233 additions & 99 deletions
Large diffs are not rendered by default.

.speakeasy/generated-files-b81e5def-5b1e-4753-ae7c-0efccc2e6f61.lock

Lines changed: 0 additions & 4885 deletions
This file was deleted.

.speakeasy/workflow.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ targets:
1313
sourceRevisionDigest: sha256:c639a509989846db09eb72fa0384d9d4cc7717a96710ef0075f7e4f85d3e5bed
1414
sourceBlobDigest: sha256:1d37bad2d56ec14c07aa336eab140bce5c3865b8072372dbd43c751527fa0e1d
1515
codeSamplesNamespace: konnect-go-code-samples
16-
codeSamplesRevisionDigest: sha256:c1280e95c1d7d03987ebebed45f519cfe07b7deaa2cf16747440f844c576d7a2
16+
codeSamplesRevisionDigest: sha256:a79f7c3b21445538e17ed550eee5fcf0012a7457399c23ee3aa1aee74c807356
1717
workflow:
1818
workflowVersion: 1.0.0
1919
speakeasyVersion: latest

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,21 @@ TYPES_TO_MOCK := \
197197
ControlPlaneGroups \
198198
ControlPlanes \
199199
DPCertificates \
200+
EventGatewayDataPlaneCertificates \
201+
EventGateways \
200202
HMACAuthCredentials \
201203
JWTs \
202204
Keys \
203205
KeySets \
204206
Me \
205207
Plugins \
208+
Portals \
206209
Routes \
207210
Services \
208211
SNIs \
209212
Targets \
210213
Upstreams \
211-
Vaults \
212-
EventGateways \
213-
EventGatewayDataPlaneCertificates
214+
Vaults
214215

215216
.PHONY: generate.interfaces
216217
generate.interfaces: ifacemaker

portals_i.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Code generated by ifacemaker; DO NOT EDIT.
2+
3+
package sdkkonnectgo
4+
5+
import (
6+
"context"
7+
8+
"github.com/Kong/sdk-konnect-go/models/components"
9+
"github.com/Kong/sdk-konnect-go/models/operations"
10+
)
11+
12+
// PortalsSDK is a generated interface.
13+
type PortalsSDK interface {
14+
// ListPortals - List Portals
15+
// Lists developer portals defined in this region for this organization. Each developer portal is available at a unique address and has isolated configuration, customization, developers, and applications.
16+
ListPortals(ctx context.Context, request operations.ListPortalsRequest, opts ...operations.Option) (*operations.ListPortalsResponse, error)
17+
// CreatePortal - Create Portal
18+
// Creates a new developer portal scoped in this region for this organization.
19+
CreatePortal(ctx context.Context, request components.CreatePortal, opts ...operations.Option) (*operations.CreatePortalResponse, error)
20+
// GetPortal - Get a Portal
21+
// Returns the configuration for a single developer portal, including the current visibility, access, and domain settings.
22+
GetPortal(ctx context.Context, portalID string, opts ...operations.Option) (*operations.GetPortalResponse, error)
23+
// UpdatePortal - Update Portal
24+
// Updates the configuration for a single portal including the visibility, access, and custom domain settings.
25+
UpdatePortal(ctx context.Context, portalID string, updatePortal components.UpdatePortal, opts ...operations.Option) (*operations.UpdatePortalResponse, error)
26+
// DeletePortal - Delete Portal
27+
// Deletes a single portal, along with all related entities.
28+
DeletePortal(ctx context.Context, portalID string, force *operations.DeletePortalQueryParamForce, opts ...operations.Option) (*operations.DeletePortalResponse, error)
29+
}

sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ func WithTimeout(timeout time.Duration) SDKOption {
469469
// New creates a new instance of the SDK with the provided options
470470
func New(opts ...SDKOption) *SDK {
471471
sdk := &SDK{
472-
SDKVersion: "0.31.2",
472+
SDKVersion: "0.32.0",
473473
sdkConfiguration: config.SDKConfiguration{
474-
UserAgent: "speakeasy-sdk/go 0.31.2 2.881.0 3.14.0 github.com/Kong/sdk-konnect-go",
474+
UserAgent: "speakeasy-sdk/go 0.32.0 2.881.0 3.14.0 github.com/Kong/sdk-konnect-go",
475475
ServerList: ServerList,
476476
},
477477
hooks: hooks.New(),

0 commit comments

Comments
 (0)