{"id":18384267,"url":"https://github.com/speakeasy-sdks/singlestore-sample-sdk","last_synced_at":"2025-04-11T23:47:15.927Z","repository":{"id":199847237,"uuid":"703758794","full_name":"speakeasy-sdks/singlestore-sample-sdk","owner":"speakeasy-sdks","description":"A Go SDK for accessing the SingleStore-Management-API ","archived":false,"fork":false,"pushed_at":"2024-04-10T19:18:42.000Z","size":174,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-11T23:47:11.752Z","etag":null,"topics":["api","golang","management","sdk","singlestore"],"latest_commit_sha":null,"homepage":"https://docs.singlestore.com/cloud/reference/management-api/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/speakeasy-sdks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-11T21:22:59.000Z","updated_at":"2023-10-12T14:18:37.000Z","dependencies_parsed_at":"2023-10-12T22:02:26.754Z","dependency_job_id":"68595dd7-ddfd-42f2-9821-0cef14ffc444","html_url":"https://github.com/speakeasy-sdks/singlestore-sample-sdk","commit_stats":null,"previous_names":["speakeasy-sdks/singlestore-sample-sdk"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fsinglestore-sample-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fsinglestore-sample-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fsinglestore-sample-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fsinglestore-sample-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speakeasy-sdks","download_url":"https://codeload.github.com/speakeasy-sdks/singlestore-sample-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497892,"owners_count":21113983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","golang","management","sdk","singlestore"],"created_at":"2024-11-06T01:14:06.144Z","updated_at":"2025-04-11T23:47:15.890Z","avatar_url":"https://github.com/speakeasy-sdks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang SDK for Singlestore Management API\n\n\u003cdiv align=\"left\"\u003e\n    \u003ca href=\"https://speakeasyapi.dev/\"\u003e\u003cimg src=\"https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge\u0026logoColor=FBE331\u0026logo=speakeasy\u0026labelColor=545454\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/speakeasy-sdks/singlestore-sample-sdk.git/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/speakeasy-sdks/singlestore-sample-sdk/speakeasy_sdk_generation.yml?style=for-the-badge\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://codespaces.new/speakeasy-sdks/singlestore-sample-sdk.git/tree/main\"\u003e\u003cimg src=\"https://github.com/codespaces/badge.svg\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- Start SDK Installation --\u003e\n## SDK Installation\n\n```bash\ngo get github.com/speakeasy-sdks/singlestore-sample-sdk\n```\n\u003c!-- End SDK Installation --\u003e\n\n## SDK Example Usage\n\u003c!-- Start SDK Example Usage --\u003e\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\tsinglestoresamplesdk \"github.com/speakeasy-sdks/singlestore-sample-sdk\"\n\t\"github.com/speakeasy-sdks/singlestore-sample-sdk/pkg/models/operations\"\n)\n\nfunc main() {\n\ts := singlestoresamplesdk.New(\n\t\tsinglestoresamplesdk.WithSecurity(\"api-auth-key\"),\n\t)\n\n\tendTime := \"\"\n\tstartTime := \"\"\n\taggregateBy := operations.ListBillingUsageAggregateByHour\n\tmetric := operations.ListBillingUsageMetricComputeCredit\n\n\tctx := context.Background()\n\tres, err := s.Billing.List(ctx, endTime, startTime, \u0026aggregateBy, \u0026metric)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tif res.BillingUsage != nil {\n\t\t// handle response\n\t}\n}\n\n```\n\u003c!-- End SDK Example Usage --\u003e\n\n\u003c!-- Start SDK Available Operations --\u003e\n## Available Resources and Operations\n\n\n### [Billing](docs/sdks/billing/README.md)\n\n* [List](docs/sdks/billing/README.md#list) - Lists the compute and storage usage of a organization\n\n### [Organizations](docs/sdks/organizations/README.md)\n\n* [Get](docs/sdks/organizations/README.md#get) - Gets information about the current organization\n\n### [PrivateConnection](docs/sdks/privateconnection/README.md)\n\n* [Create](docs/sdks/privateconnection/README.md#create) - Creates a new private connection\n* [Delete](docs/sdks/privateconnection/README.md#delete) - Deletes a private connection\n* [Get](docs/sdks/privateconnection/README.md#get) - Gets information about a private connection\n* [Update](docs/sdks/privateconnection/README.md#update) - Updates a private connection\n\n### [Regions](docs/sdks/regions/README.md)\n\n* [List](docs/sdks/regions/README.md#list) - Lists all of the regions for the user that support workspaces\n\n### [Stages](docs/sdks/stages/README.md)\n\n* [Create](docs/sdks/stages/README.md#create) - Creates a new folder or uploads a file\n* [Delete](docs/sdks/stages/README.md#delete) - Deletes a file or folder\n* [Get](docs/sdks/stages/README.md#get) - Gets information about a folder or downloads a file\n* [Update](docs/sdks/stages/README.md#update) - Modifies a file or folder in Stages\n\n### [WorkspaceGroups](docs/sdks/workspacegroups/README.md)\n\n* [Create](docs/sdks/workspacegroups/README.md#create) - Creates a new workspace group\n* [CreateStorage](docs/sdks/workspacegroups/README.md#createstorage) - Sets up Storage DR for the workspace group. Backup region and selected databases to be replicated are provided as part of the request.\n* [Delete](docs/sdks/workspacegroups/README.md#delete) - Terminates a workspace group\n* [Get](docs/sdks/workspacegroups/README.md#get) - Gets information about a workspace group\n* [GetPrivateConnection](docs/sdks/workspacegroups/README.md#getprivateconnection) - Gets private connection information for a workspace group\n* [GetRecoveryBackup](docs/sdks/workspacegroups/README.md#getrecoverybackup) - Gets information about which regions you can setup as a disaster recovery backup\n* [GetStorageStatus](docs/sdks/workspacegroups/README.md#getstoragestatus) - Gets information about the storage DR status of the workspace group\n* [List](docs/sdks/workspacegroups/README.md#list) - Lists the workspace groups the user can access\n* [Update](docs/sdks/workspacegroups/README.md#update) - Updates a workspace group\n* [UpdateFailback](docs/sdks/workspacegroups/README.md#updatefailback) - Starts failback to the primary region\n* [UpdateFailover](docs/sdks/workspacegroups/README.md#updatefailover) - Starts failover to the secondary region\n* [UpdateStartFailoverTestMode](docs/sdks/workspacegroups/README.md#updatestartfailovertestmode) - Starts Failover test mode\n* [UpdateStopFailoverTestMode](docs/sdks/workspacegroups/README.md#updatestopfailovertestmode) - Stops Failover test mode\n\n### [Workspaces](docs/sdks/workspaces/README.md)\n\n* [Create](docs/sdks/workspaces/README.md#create) - Creates a new workspace\n* [CreateResume](docs/sdks/workspaces/README.md#createresume) - Resumes a workspace\n* [CreateStorage](docs/sdks/workspaces/README.md#createstorage) - Sets up Storage DR for the workspace group of the provided workspace. Backup region and selected databases to be replicated are provided as part of the request.\n* [CreateSuspend](docs/sdks/workspaces/README.md#createsuspend) - Suspends a workspace\n* [Delete](docs/sdks/workspaces/README.md#delete) - Terminates a workspace\n* [Get](docs/sdks/workspaces/README.md#get) - Gets information about a workspace\n* [GetOutbound](docs/sdks/workspaces/README.md#getoutbound) - Gets the outbound allow list for a workspace\n* [GetPrivateConnection](docs/sdks/workspaces/README.md#getprivateconnection) - Gets private connection information for a workspace\n* [GetRecoveryBackup](docs/sdks/workspaces/README.md#getrecoverybackup) - Gets information about which regions you can setup as a disaster recovery backup\n* [GetStorageStatus](docs/sdks/workspaces/README.md#getstoragestatus) - Gets information about the storage DR status of the group in which the provided workspace belongs to\n* [List](docs/sdks/workspaces/README.md#list) - Lists the workspaces the user can access\n* [Update](docs/sdks/workspaces/README.md#update) - Updates information about a workspace\n* [UpdateFailback](docs/sdks/workspaces/README.md#updatefailback) - Starts failback to the primary region\n* [UpdateFailover](docs/sdks/workspaces/README.md#updatefailover) - Starts failover to the secondary region\n* [UpdateStartFailoverTestMode](docs/sdks/workspaces/README.md#updatestartfailovertestmode) - Starts Failover test mode\n* [UpdateStopFailoverTestMode](docs/sdks/workspaces/README.md#updatestopfailovertestmode) - Stops Failover test mode\n\u003c!-- End SDK Available Operations --\u003e\n\n\u003c!-- Start Dev Containers --\u003e\n# Dev Containers\n\u003cdiv align=\"left\"\u003e\n    \u003ca href=\"https://codespaces.new/speakeasy-sdks/singlestore-sample-sdk.git/tree/main\"\u003e\u003cimg src=\"https://github.com/codespaces/badge.svg\" /\u003e\u003c/a\u003e\n    \n\u003c/div\u003e\n\nExperience our SDK in an enhanced sandbox environment. Try it now in **GitHub Codespaces**!\n\n* [Explore Dev Containers](.devcontainer/README.md)\n\u003c!-- End Dev Containers --\u003e\n\n\u003c!-- Start Go Types --\u003e\n\n\u003c!-- End Go Types --\u003e\n\n\u003c!-- Placeholder for Future Speakeasy SDK Sections --\u003e\n\n# Development\n\n## Maturity\n\nThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage\nto a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally\nlooking for the latest version.\n\n## Contributions\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically.\nFeel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!\n\n### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fsinglestore-sample-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeakeasy-sdks%2Fsinglestore-sample-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fsinglestore-sample-sdk/lists"}