ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.314.2

This commit is contained in:
speakeasybot
2024-06-24 00:12:47 +00:00
parent 65b44423c6
commit a92dc392e7
27 changed files with 68 additions and 67 deletions

View File

@@ -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

View File

@@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
go:
version: 0.0.1
version: 0.0.2
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true

View File

@@ -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

View File

@@ -41,7 +41,6 @@ import (
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var xLog10Organization *string = log10go.String("<value>")
ctx := context.Background()
@@ -86,18 +85,18 @@ func main() {
<!-- Start Global Parameters [global-parameters] -->
## 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 `"<value>"` 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("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var completionID string = "<value>"
@@ -184,7 +182,6 @@ import (
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
completion := components.Completion{
OrganizationID: "<value>",
@@ -252,7 +249,6 @@ func main() {
s := log10go.New(
log10go.WithServerIndex(0),
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
completion := components.Completion{
OrganizationID: "<value>",
@@ -308,7 +304,6 @@ func main() {
s := log10go.New(
log10go.WithServerURL("https://log10.io"),
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
completion := components.Completion{
OrganizationID: "<value>",
@@ -401,7 +396,6 @@ import (
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
completion := components.Completion{
OrganizationID: "<value>",

11
RELEASES.md Normal file
View File

@@ -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 - .

View File

@@ -11,7 +11,6 @@ import (
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var xLog10Organization *string = log10go.String("<value>")
ctx := context.Background()

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `XLog10Organization` | *string* | :heavy_check_mark: | N/A |
| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `XLog10Organization` | *string* | :heavy_check_mark: | N/A |
| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `XLog10Organization` | *string* | :heavy_check_mark: | N/A |
| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `XLog10Organization` | *string* | :heavy_check_mark: | N/A |
| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `XLog10Organization` | *string* | :heavy_check_mark: | N/A |
| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `XLog10Organization` | *string* | :heavy_check_mark: | N/A |
| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `XLog10Organization` | *string* | :heavy_check_mark: | N/A |
| `XLog10Organization` | **string* | :heavy_minus_sign: | N/A |

View File

@@ -30,7 +30,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
completion := components.Completion{
OrganizationID: "<value>",
@@ -102,7 +101,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var completionID string = "<value>"
@@ -178,7 +176,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var xLog10Organization *string = log10go.String("<value>")
ctx := context.Background()

View File

@@ -29,7 +29,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var feedbackID string = "<value>"
@@ -80,7 +79,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var xLog10Organization *string = log10go.String("<value>")
@@ -131,7 +129,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var requestBody operations.UploadRequestBody = operations.CreateUploadRequestBodyOne(
operations.One{

View File

@@ -29,7 +29,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
ctx := context.Background()
@@ -76,7 +75,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var request *components.Task = &components.Task{
JSONSchema: components.JSONSchema{},
@@ -128,7 +126,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var taskID string = "<value>"
ctx := context.Background()

View File

@@ -27,7 +27,6 @@ import(
func main() {
s := log10go.New(
log10go.WithSecurity("<YOUR_API_KEY_HERE>"),
log10go.WithXLog10Organization("<value>"),
)
var xLog10Organization *string = log10go.String("<value>")
ctx := context.Background()

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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(),
},

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}