From e3ef6b5903b3b2728248ee3d1b9d5c3e182f1a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Wed, 11 Sep 2024 15:23:44 +0200 Subject: [PATCH] chore: add DeepCopy() funcs to UpstreamClientCertificate --- .speakeasy/gen.lock | 4 ++-- .speakeasy/gen.yaml | 2 +- Makefile | 8 +++++++- models/components/zz_generated.deepcopy.go | 20 ++++++++++++++++++++ sdk.go | 4 ++-- 5 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0115137..d5ad1af 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -5,8 +5,8 @@ management: docVersion: 0.0.1 speakeasyVersion: 1.395.1 generationVersion: 2.415.0 - releaseVersion: 0.0.8 - configChecksum: 7b07ca7b4e6e790123dd9b509754bd02 + releaseVersion: 0.0.9 + configChecksum: 9d6fb61b7d3c99286a9a6a4f986edf75 features: go: additionalDependencies: 0.1.0 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5ecce43..c6a8ddd 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false go: - version: 0.0.8 + version: 0.0.9 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/Makefile b/Makefile index 1158470..29f3ec2 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,7 @@ generate.sdk: yq --inplace '.components.schemas.CreateControlPlaneRequest.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) yq --inplace '.components.schemas.CreateServiceWithoutParents.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) yq --inplace '.components.schemas.RouteWithoutParents.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) + yq --inplace '.components.schemas.Upstream.properties.healthchecks.description += "\n$(KUBEBUILDER_GENERATE_CODE_MARKER)"' $(OPENAPI_FILE) speakeasy generate sdk --lang go --out . --schema ./$(OPENAPI_FILE) git checkout -- $(SPEAKEASY_DIR)/gen.lock $(SPEAKEASY_DIR)/gen.yaml sdk.go @@ -70,6 +71,8 @@ generate.sdk: models/components/routewithoutparents.go $(SED) -i 's#\(type RouteInput struct\)#// $(KUBEBUILDER_GENERATE_CODE_MARKER)\n\1#g' \ models/components/route.go + $(SED) -i 's#\(type UpstreamClientCertificate struct\)#// $(KUBEBUILDER_GENERATE_CODE_MARKER)\n\1#g' \ + models/components/upstream.go go mod tidy $(MAKE) generate.deepcopy @@ -77,6 +80,9 @@ generate.sdk: $(shell git ls-files models/components/route*.go) \ $(shell git ls-files docs/models/components/route*.md) \ $(shell git ls-files models/components/create*.go) \ - $(shell git ls-files docs/models/components/create*.md) + $(shell git ls-files docs/models/components/create*.md) \ + $(shell git ls-files models/components/upstream*.go) \ + $(shell git ls-files docs/models/components/upstream*.md) \ + $(shell git ls-files docs/models/components/healthchecks*.md) speakeasy generate sdk --lang go --out . --schema ./$(OPENAPI_FILE) go mod tidy diff --git a/models/components/zz_generated.deepcopy.go b/models/components/zz_generated.deepcopy.go index 9f1199c..3292d1e 100644 --- a/models/components/zz_generated.deepcopy.go +++ b/models/components/zz_generated.deepcopy.go @@ -515,3 +515,23 @@ func (in *Sources) DeepCopy() *Sources { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UpstreamClientCertificate) DeepCopyInto(out *UpstreamClientCertificate) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpstreamClientCertificate. +func (in *UpstreamClientCertificate) DeepCopy() *UpstreamClientCertificate { + if in == nil { + return nil + } + out := new(UpstreamClientCertificate) + in.DeepCopyInto(out) + return out +} diff --git a/sdk.go b/sdk.go index c611cd7..ce8c071 100644 --- a/sdk.go +++ b/sdk.go @@ -261,9 +261,9 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.1", - SDKVersion: "0.0.8", + SDKVersion: "0.0.9", GenVersion: "2.415.0", - UserAgent: "speakeasy-sdk/go 0.0.8 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go", + UserAgent: "speakeasy-sdk/go 0.0.9 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go", Hooks: hooks.New(), }, }