From a92dc392e74359e9b32b3db51aeaab2e7a008fb8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 24 Jun 2024 00:12:47 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.314.2 --- .speakeasy/gen.lock | 12 +++++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 13 +++++++------ README.md | 12 +++--------- RELEASES.md | 11 +++++++++++ USAGE.md | 1 - docs/models/operations/createglobals.md | 2 +- docs/models/operations/createsessionglobals.md | 2 +- docs/models/operations/getglobals.md | 2 +- docs/models/operations/listglobals.md | 2 +- docs/models/operations/listungradedglobals.md | 2 +- docs/models/operations/updateglobals.md | 2 +- docs/models/operations/uploadglobals.md | 2 +- docs/sdks/completions/README.md | 3 --- docs/sdks/feedback/README.md | 3 --- docs/sdks/feedbacktasks/README.md | 3 --- docs/sdks/sessions/README.md | 1 - internal/globals/globals.go | 6 +++--- internal/utils/contenttype.go | 4 ++++ log10.go | 8 ++++---- models/operations/create.go | 6 +++--- models/operations/createsession.go | 6 +++--- models/operations/get.go | 6 +++--- models/operations/list.go | 6 +++--- models/operations/listungraded.go | 6 +++--- models/operations/update.go | 6 +++--- models/operations/upload.go | 6 +++--- 27 files changed, 68 insertions(+), 67 deletions(-) create mode 100644 RELEASES.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1154fda..501329d 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,15 +3,17 @@ id: af921c1a-d48f-4ab5-a412-4cf4ba8a50ad management: docChecksum: 5e7cc152f137f5919734cc70b836a4d6 docVersion: 1.0.0 - speakeasyVersion: 1.296.1 - generationVersion: 2.338.1 - releaseVersion: 0.0.1 - configChecksum: e63fe754c82a6ad123e8ccf7b0e616cd + speakeasyVersion: 1.314.2 + generationVersion: 2.349.6 + releaseVersion: 0.0.2 + configChecksum: cfea916ba38a564d96124530136e9740 + repoURL: https://github.com/log10-io/log10go.git + installationURL: https://github.com/log10-io/log10go features: go: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.4 - core: 3.4.10 + core: 3.4.14 deprecations: 2.81.1 examples: 2.81.3 flattening: 2.81.1 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c8fcbc8..fbcd3b8 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false go: - version: 0.0.1 + version: 0.0.2 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c154ffa..4659273 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,18 +1,19 @@ -speakeasyVersion: 1.296.1 +speakeasyVersion: 1.314.2 sources: default: sourceNamespace: default - sourceRevisionDigest: sha256:e13d61f8be0f7ff07045d20f2e0671b5c93c2f2f185d768d991ab68ca99760e0 - sourceBlobDigest: sha256:7811f9a53e442babdafdc93fd2ec222a80fe0a260d6dfc2603b48c0aa05350db + sourceRevisionDigest: sha256:42f8706dab31c314bf8313eac94101440ed747a92fba4f4053269541ccc4b989 + sourceBlobDigest: sha256:3ec92119b04b5301697a25fc0d890d3aace8103f8d6a26dff33c1d2779237e5b tags: - latest + - main targets: my-first-target: source: default sourceNamespace: default - sourceRevisionDigest: sha256:e13d61f8be0f7ff07045d20f2e0671b5c93c2f2f185d768d991ab68ca99760e0 - sourceBlobDigest: sha256:7811f9a53e442babdafdc93fd2ec222a80fe0a260d6dfc2603b48c0aa05350db - outLocation: /Users/niklasqnielsen/workspace/log10/log10go + sourceRevisionDigest: sha256:42f8706dab31c314bf8313eac94101440ed747a92fba4f4053269541ccc4b989 + sourceBlobDigest: sha256:3ec92119b04b5301697a25fc0d890d3aace8103f8d6a26dff33c1d2779237e5b + outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 134ffc3..99b863e 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,6 @@ import ( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var xLog10Organization *string = log10go.String("") ctx := context.Background() @@ -86,18 +85,18 @@ func main() { ## Global Parameters -A parameter is configured globally. This parameter must be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. +A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. For example, you can set `X-Log10-Organization` to `""` at SDK initialization and then you do not have to pass the same value on calls to operations like `Update`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. ### Available Globals -The following global parameter is available. The required parameter must be set when you initialize the SDK client. +The following global parameter is available. | Name | Type | Required | Description | | ---- | ---- |:--------:| ----------- | -| XLog10Organization | string | ✔️ | The XLog10Organization parameter. | +| XLog10Organization | string | | The XLog10Organization parameter. | ### Example @@ -115,7 +114,6 @@ import ( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var completionID string = "" @@ -184,7 +182,6 @@ import ( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) completion := components.Completion{ OrganizationID: "", @@ -252,7 +249,6 @@ func main() { s := log10go.New( log10go.WithServerIndex(0), log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) completion := components.Completion{ OrganizationID: "", @@ -308,7 +304,6 @@ func main() { s := log10go.New( log10go.WithServerURL("https://log10.io"), log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) completion := components.Completion{ OrganizationID: "", @@ -401,7 +396,6 @@ import ( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) completion := components.Completion{ OrganizationID: "", diff --git a/RELEASES.md b/RELEASES.md new file mode 100644 index 0000000..9bdb3e4 --- /dev/null +++ b/RELEASES.md @@ -0,0 +1,11 @@ + + +## 2024-06-24 00:12:08 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.314.2 (2.349.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.0.2] . +### Releases +- [Go v0.0.2] https://github.com/log10-io/log10go/releases/tag/v0.0.2 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index f80117f..0b300e1 100644 --- a/USAGE.md +++ b/USAGE.md @@ -11,7 +11,6 @@ import ( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var xLog10Organization *string = log10go.String("") ctx := context.Background() diff --git a/docs/models/operations/createglobals.md b/docs/models/operations/createglobals.md index a93a094..319079d 100644 --- a/docs/models/operations/createglobals.md +++ b/docs/models/operations/createglobals.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `XLog10Organization` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createsessionglobals.md b/docs/models/operations/createsessionglobals.md index f7446e9..182414d 100644 --- a/docs/models/operations/createsessionglobals.md +++ b/docs/models/operations/createsessionglobals.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `XLog10Organization` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getglobals.md b/docs/models/operations/getglobals.md index 4fd851e..a9536a2 100644 --- a/docs/models/operations/getglobals.md +++ b/docs/models/operations/getglobals.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `XLog10Organization` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listglobals.md b/docs/models/operations/listglobals.md index 9c28bd7..f15322b 100644 --- a/docs/models/operations/listglobals.md +++ b/docs/models/operations/listglobals.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `XLog10Organization` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listungradedglobals.md b/docs/models/operations/listungradedglobals.md index 83bd85c..2cbd220 100644 --- a/docs/models/operations/listungradedglobals.md +++ b/docs/models/operations/listungradedglobals.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `XLog10Organization` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updateglobals.md b/docs/models/operations/updateglobals.md index 7a45786..eb920d6 100644 --- a/docs/models/operations/updateglobals.md +++ b/docs/models/operations/updateglobals.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `XLog10Organization` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/uploadglobals.md b/docs/models/operations/uploadglobals.md index ba7439b..a1feeff 100644 --- a/docs/models/operations/uploadglobals.md +++ b/docs/models/operations/uploadglobals.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `XLog10Organization` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/completions/README.md b/docs/sdks/completions/README.md index 33bb0c0..fc70f13 100644 --- a/docs/sdks/completions/README.md +++ b/docs/sdks/completions/README.md @@ -30,7 +30,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) completion := components.Completion{ OrganizationID: "", @@ -102,7 +101,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var completionID string = "" @@ -178,7 +176,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var xLog10Organization *string = log10go.String("") ctx := context.Background() diff --git a/docs/sdks/feedback/README.md b/docs/sdks/feedback/README.md index 7dcfede..da9b50c 100644 --- a/docs/sdks/feedback/README.md +++ b/docs/sdks/feedback/README.md @@ -29,7 +29,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var feedbackID string = "" @@ -80,7 +79,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var xLog10Organization *string = log10go.String("") @@ -131,7 +129,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var requestBody operations.UploadRequestBody = operations.CreateUploadRequestBodyOne( operations.One{ diff --git a/docs/sdks/feedbacktasks/README.md b/docs/sdks/feedbacktasks/README.md index c229014..9922031 100644 --- a/docs/sdks/feedbacktasks/README.md +++ b/docs/sdks/feedbacktasks/README.md @@ -29,7 +29,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) ctx := context.Background() @@ -76,7 +75,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var request *components.Task = &components.Task{ JSONSchema: components.JSONSchema{}, @@ -128,7 +126,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var taskID string = "" ctx := context.Background() diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index 8b42e7a..95d968b 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -27,7 +27,6 @@ import( func main() { s := log10go.New( log10go.WithSecurity(""), - log10go.WithXLog10Organization(""), ) var xLog10Organization *string = log10go.String("") ctx := context.Background() diff --git a/internal/globals/globals.go b/internal/globals/globals.go index 5acf2ef..66a1a65 100644 --- a/internal/globals/globals.go +++ b/internal/globals/globals.go @@ -3,12 +3,12 @@ package globals type Globals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *Globals) GetXLog10Organization() string { +func (o *Globals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization } diff --git a/internal/utils/contenttype.go b/internal/utils/contenttype.go index 8ed13e2..763f2d6 100644 --- a/internal/utils/contenttype.go +++ b/internal/utils/contenttype.go @@ -9,6 +9,10 @@ import ( ) func MatchContentType(contentType string, pattern string) bool { + if contentType == "" { + contentType = "application/octet-stream" + } + if contentType == pattern || pattern == "*" || pattern == "*/*" { return true } diff --git a/log10.go b/log10.go index 82ab1a3..de42b8d 100644 --- a/log10.go +++ b/log10.go @@ -136,7 +136,7 @@ func WithSecuritySource(security func(context.Context) (components.Security, err // WithXLog10Organization allows setting the XLog10Organization parameter for all supported operations func WithXLog10Organization(xLog10Organization string) SDKOption { return func(sdk *Log10) { - sdk.sdkConfiguration.Globals.XLog10Organization = xLog10Organization + sdk.sdkConfiguration.Globals.XLog10Organization = &xLog10Organization } } @@ -152,9 +152,9 @@ func New(opts ...SDKOption) *Log10 { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "1.0.0", - SDKVersion: "0.0.1", - GenVersion: "2.338.1", - UserAgent: "speakeasy-sdk/go 0.0.1 2.338.1 1.0.0 github.com/log10-io/log10go", + SDKVersion: "0.0.2", + GenVersion: "2.349.6", + UserAgent: "speakeasy-sdk/go 0.0.2 2.349.6 1.0.0 github.com/log10-io/log10go", Globals: globals.Globals{}, Hooks: hooks.New(), }, diff --git a/models/operations/create.go b/models/operations/create.go index 9da3779..1ab0ea3 100644 --- a/models/operations/create.go +++ b/models/operations/create.go @@ -7,12 +7,12 @@ import ( ) type CreateGlobals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *CreateGlobals) GetXLog10Organization() string { +func (o *CreateGlobals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization } diff --git a/models/operations/createsession.go b/models/operations/createsession.go index 58f65ae..2099aad 100644 --- a/models/operations/createsession.go +++ b/models/operations/createsession.go @@ -7,12 +7,12 @@ import ( ) type CreateSessionGlobals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *CreateSessionGlobals) GetXLog10Organization() string { +func (o *CreateSessionGlobals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization } diff --git a/models/operations/get.go b/models/operations/get.go index 99a8d1a..d960282 100644 --- a/models/operations/get.go +++ b/models/operations/get.go @@ -7,12 +7,12 @@ import ( ) type GetGlobals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *GetGlobals) GetXLog10Organization() string { +func (o *GetGlobals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization } diff --git a/models/operations/list.go b/models/operations/list.go index 2f54a57..6b06b10 100644 --- a/models/operations/list.go +++ b/models/operations/list.go @@ -7,12 +7,12 @@ import ( ) type ListGlobals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *ListGlobals) GetXLog10Organization() string { +func (o *ListGlobals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization } diff --git a/models/operations/listungraded.go b/models/operations/listungraded.go index 62b3463..3e37748 100644 --- a/models/operations/listungraded.go +++ b/models/operations/listungraded.go @@ -7,12 +7,12 @@ import ( ) type ListUngradedGlobals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *ListUngradedGlobals) GetXLog10Organization() string { +func (o *ListUngradedGlobals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization } diff --git a/models/operations/update.go b/models/operations/update.go index 35bef45..5fe5570 100644 --- a/models/operations/update.go +++ b/models/operations/update.go @@ -7,12 +7,12 @@ import ( ) type UpdateGlobals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *UpdateGlobals) GetXLog10Organization() string { +func (o *UpdateGlobals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization } diff --git a/models/operations/upload.go b/models/operations/upload.go index e7091fa..d3966fc 100644 --- a/models/operations/upload.go +++ b/models/operations/upload.go @@ -10,12 +10,12 @@ import ( ) type UploadGlobals struct { - XLog10Organization string `header:"style=simple,explode=false,name=X-Log10-Organization"` + XLog10Organization *string `header:"style=simple,explode=false,name=X-Log10-Organization"` } -func (o *UploadGlobals) GetXLog10Organization() string { +func (o *UploadGlobals) GetXLog10Organization() *string { if o == nil { - return "" + return nil } return o.XLog10Organization }