Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.445.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 25, 2024
1 parent 9afd002 commit 48a392e
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 21 deletions.
9 changes: 5 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2858c6d9-f946-4185-ae68-3b8e708830fb
management:
docChecksum: 04169f580d81fde74dfa8c8a3b75a513
docChecksum: bab3c8f9d597693c72890ed481ae46ea
docVersion: 0.4.0
speakeasyVersion: 1.442.0
speakeasyVersion: 1.445.2
generationVersion: 2.461.4
releaseVersion: 3.15.8
configChecksum: 47c0a50d8ad262d1ee996db0ca05702a
releaseVersion: 3.15.9
configChecksum: 471f488d07a1ca4e525b9e5cf23e78ac
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go
Expand Down Expand Up @@ -294,6 +294,7 @@ generatedFiles:
- docs/pkg/models/operations/getlintingreportsignedurlsignedaccess.md
- docs/pkg/models/operations/getmanifestrequest.md
- docs/pkg/models/operations/getmanifestresponse.md
- docs/pkg/models/operations/getnamespacesrequest.md
- docs/pkg/models/operations/getnamespacesresponse.md
- docs/pkg/models/operations/getorganizationrequest.md
- docs/pkg/models/operations/getorganizationresponse.md
Expand Down
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
speakeasyVersion: 1.442.0
speakeasyVersion: 1.445.2
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:f8b3a886c1125a1ba27058ae45513ccb0a1b1eb44f3cd916d018e4b90c65a8be
sourceBlobDigest: sha256:74787f4db92951059d965fb8a8647dac975d1ea2797d3b5337093b347fcddbe5
sourceRevisionDigest: sha256:5119abdeb0ceba6b6f5ead5daa073a14e0280327c74632ffe97f8321b5e2b76e
sourceBlobDigest: sha256:24814f277557dbc5514dcfc5403f04692a999a15e3e37cdef7fe8a4e18624130
tags:
- latest
- main
- 0.4.0
targets:
speakeasy-client-sdk-go:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:f8b3a886c1125a1ba27058ae45513ccb0a1b1eb44f3cd916d018e4b90c65a8be
sourceBlobDigest: sha256:74787f4db92951059d965fb8a8647dac975d1ea2797d3b5337093b347fcddbe5
sourceRevisionDigest: sha256:5119abdeb0ceba6b6f5ead5daa073a14e0280327c74632ffe97f8321b5e2b76e
sourceBlobDigest: sha256:24814f277557dbc5514dcfc5403f04692a999a15e3e37cdef7fe8a4e18624130
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
codeSamplesRevisionDigest: sha256:925d9ebde6d688d6f75ef6a3a808c39a5d0ea2ecd2eaf98f11021ab38ebfb2d2
codeSamplesRevisionDigest: sha256:ec186f2cb660df68dc9d6ed69edb12865ce4c6c23cc5a3c57142968775757b71
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1416,4 +1416,14 @@ Based on:
### Generated
- [go v3.15.8] .
### Releases
- [Go v3.15.8] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.15.8 - .
- [Go v3.15.8] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.15.8 - .

## 2024-11-25 22:02:31
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.445.2 (2.461.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v3.15.9] .
### Releases
- [Go v3.15.9] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.15.9 - .
6 changes: 5 additions & 1 deletion artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ func (s *Artifacts) GetManifest(ctx context.Context, request operations.GetManif
}

// GetNamespaces - Each namespace contains many revisions.
func (s *Artifacts) GetNamespaces(ctx context.Context, opts ...operations.Option) (*operations.GetNamespacesResponse, error) {
func (s *Artifacts) GetNamespaces(ctx context.Context, request operations.GetNamespacesRequest, opts ...operations.Option) (*operations.GetNamespacesResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getNamespaces",
Expand Down Expand Up @@ -665,6 +665,10 @@ func (s *Artifacts) GetNamespaces(ctx context.Context, opts ...operations.Option
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)

if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
}
Expand Down
3 changes: 2 additions & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ actions:
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"context"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"log"
)
Expand All @@ -937,7 +938,7 @@ actions:
)
ctx := context.Background()
res, err := s.Artifacts.GetNamespaces(ctx)
res, err := s.Artifacts.GetNamespaces(ctx, operations.GetNamespacesRequest{})
if err != nil {
log.Fatal(err)
}
Expand Down
8 changes: 8 additions & 0 deletions docs/pkg/models/operations/getnamespacesrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# GetNamespacesRequest


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `IsComposite` | **bool* | :heavy_minus_sign: | N/A |
1 change: 1 addition & 0 deletions docs/pkg/models/shared/namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ A namespace contains many revisions.
| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A |
| `ID` | *string* | :heavy_check_mark: | {organization_slug}/{workspace_slug}/{namespace_name} |
| `Name` | *string* | :heavy_check_mark: | A human-readable name for the namespace. |
| `Public` | **bool* | :heavy_minus_sign: | N/A |
| `UpdatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A |
12 changes: 7 additions & 5 deletions docs/sdks/artifacts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ import(
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"context"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"log"
)

Expand All @@ -212,7 +213,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Artifacts.GetNamespaces(ctx)
res, err := s.Artifacts.GetNamespaces(ctx, operations.GetNamespacesRequest{})
if err != nil {
log.Fatal(err)
}
Expand All @@ -224,10 +225,11 @@ func main() {

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. |
| Parameter | Type | Required | Description |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
| `request` | [operations.GetNamespacesRequest](../../pkg/models/operations/getnamespacesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. |

### Response

Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
go:
version: 3.15.8
version: 3.15.9
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
11 changes: 11 additions & 0 deletions pkg/models/operations/getnamespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ import (
"net/http"
)

type GetNamespacesRequest struct {
IsComposite *bool `queryParam:"style=form,explode=true,name=is_composite"`
}

func (o *GetNamespacesRequest) GetIsComposite() *bool {
if o == nil {
return nil
}
return o.IsComposite
}

type GetNamespacesResponse struct {
// HTTP response content type for this operation
ContentType string
Expand Down
8 changes: 8 additions & 0 deletions pkg/models/shared/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type Namespace struct {
ID string `json:"id"`
// A human-readable name for the namespace.
Name string `json:"name"`
Public *bool `json:"public,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
}

Expand Down Expand Up @@ -49,6 +50,13 @@ func (o *Namespace) GetName() string {
return o.Name
}

func (o *Namespace) GetPublic() *bool {
if o == nil {
return nil
}
return o.Public
}

func (o *Namespace) GetUpdatedAt() time.Time {
if o == nil {
return time.Time{}
Expand Down
4 changes: 2 additions & 2 deletions speakeasy.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ func New(opts ...SDKOption) *Speakeasy {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.4.0",
SDKVersion: "3.15.8",
SDKVersion: "3.15.9",
GenVersion: "2.461.4",
UserAgent: "speakeasy-sdk/go 3.15.8 2.461.4 0.4.0 github.com/speakeasy-api/speakeasy-client-sdk-go",
UserAgent: "speakeasy-sdk/go 3.15.9 2.461.4 0.4.0 github.com/speakeasy-api/speakeasy-client-sdk-go",
Globals: globals.Globals{},
Hooks: hooks.New(),
},
Expand Down

0 comments on commit 48a392e

Please sign in to comment.