diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 10f3091..6b7b74c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.3.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 1eb1c77..e97e7e3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 19 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5e2239ba23ac3dbbc95b8993a491e99e9fd23fed2e6ea9cecb81b83bf34a00ff.yml -openapi_spec_hash: 4708504f9119289926b3341d083a1814 -config_hash: 45d3d945ce8eea7a52c8ead4c03fcf3c +configured_endpoints: 18 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5058541cc0e298a6fc3e9cda1af0e32586d1f39c5666946e15f546c1aedc18ea.yml +openapi_spec_hash: 7f572ac0c7f9dc4f5fc7d9883a53d6c7 +config_hash: 35db4c99791f175865381f13a8ad6075 diff --git a/CHANGELOG.md b/CHANGELOG.md index dd49d7b..2f810d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.3.0 (2025-11-26) + +Full Changelog: [v0.2.0...v0.3.0](https://github.com/onkernel/hypeman-go/compare/v0.2.0...v0.3.0) + +### Features + +* Remove exec from openapi spec ([ee8d1bb](https://github.com/onkernel/hypeman-go/commit/ee8d1bb586a130c0b6629603ca4edb489f671889)) + ## 0.2.0 (2025-11-26) Full Changelog: [v0.1.0...v0.2.0](https://github.com/onkernel/hypeman-go/compare/v0.1.0...v0.2.0) diff --git a/README.md b/README.md index 194c0e5..0e79a1e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Or to pin the version: ```sh -go get -u 'github.com/onkernel/hypeman-go@v0.2.0' +go get -u 'github.com/onkernel/hypeman-go@v0.3.0' ``` diff --git a/api.md b/api.md index 8f9fefb..81083cd 100644 --- a/api.md +++ b/api.md @@ -33,7 +33,6 @@ Methods: - client.Instances.Get(ctx context.Context, id string) (hypeman.Instance, error) - client.Instances.List(ctx context.Context) ([]hypeman.Instance, error) - client.Instances.Delete(ctx context.Context, id string) error -- client.Instances.ExecuteCommand(ctx context.Context, id string) error - client.Instances.PutInStandby(ctx context.Context, id string) (hypeman.Instance, error) - client.Instances.RestoreFromStandby(ctx context.Context, id string) (hypeman.Instance, error) - client.Instances.StreamLogs(ctx context.Context, id string, query hypeman.InstanceStreamLogsParams) (string, error) diff --git a/instance.go b/instance.go index f4dea06..78f1bbd 100644 --- a/instance.go +++ b/instance.go @@ -82,19 +82,6 @@ func (r *InstanceService) Delete(ctx context.Context, id string, opts ...option. return } -// Upgrades to WebSocket for bidirectional streaming for shell access. -func (r *InstanceService) ExecuteCommand(ctx context.Context, id string, opts ...option.RequestOption) (err error) { - opts = slices.Concat(r.Options, opts) - opts = append([]option.RequestOption{option.WithHeader("Accept", "*/*")}, opts...) - if id == "" { - err = errors.New("missing required id parameter") - return - } - path := fmt.Sprintf("instances/%s/exec", id) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, nil, opts...) - return -} - // Put instance in standby (pause, snapshot, delete VMM) func (r *InstanceService) PutInStandby(ctx context.Context, id string, opts ...option.RequestOption) (res *Instance, err error) { opts = slices.Concat(r.Options, opts) diff --git a/instance_test.go b/instance_test.go index 6d6ab52..d88c1a6 100644 --- a/instance_test.go +++ b/instance_test.go @@ -119,29 +119,6 @@ func TestInstanceDelete(t *testing.T) { } } -func TestInstanceExecuteCommand(t *testing.T) { - t.Skip("Prism tests are disabled") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := hypeman.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("My API Key"), - ) - err := client.Instances.ExecuteCommand(context.TODO(), "id") - if err != nil { - var apierr *hypeman.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - func TestInstancePutInStandby(t *testing.T) { t.Skip("Prism tests are disabled") baseURL := "http://localhost:4010" diff --git a/internal/version.go b/internal/version.go index 774c6c4..7cb1898 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.2.0" // x-release-please-version +const PackageVersion = "0.3.0" // x-release-please-version