Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/pan-sase-tenancy-go
A go SDK for accessing the pan-sase-tenancy API.
https://github.com/speakeasy-sdks/pan-sase-tenancy-go
Last synced: 1 day ago
JSON representation
A go SDK for accessing the pan-sase-tenancy API.
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/pan-sase-tenancy-go
- Owner: speakeasy-sdks
- License: mit
- Created: 2023-05-23T20:49:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:21:21.000Z (7 months ago)
- Last Synced: 2024-04-28T05:14:49.057Z (6 months ago)
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## SDK Installation
```bash
go get github.com/speakeasy-sdks/pan-sase-tenancy-go
```## SDK Example Usage
```go
package mainimport(
"context"
"log"
"sase-tenancy"
"sase-tenancy/pkg/models/shared"
"sase-tenancy/pkg/models/operations"
)func main() {
s := sasetenancy.New()ctx := context.Background()
res, err := s.TenancyGroup.Create(ctx, shared.TenantServiceGroupCreate{
DisplayName: "Example TSG",
ParentID: sasetenancy.String("1378242802"),
SupportContact: sasetenancy.String("[email protected]"),
Vertical: shared.TenantServiceGroupCreateVerticalHighTech.ToPointer(),
}, operations.PostTenancyV1TenantServiceGroupsSecurity{
Bearer: "YOUR_BEARER_TOKEN_HERE",
})
if err != nil {
log.Fatal(err)
}if res.TenantServiceGroup != nil {
// handle response
}
}
```## Available Resources and Operations
### [TenancyGroup](docs/tenancygroup/README.md)
* [Create](docs/tenancygroup/README.md#create) - Create a tenant service group
* [Delete](docs/tenancygroup/README.md#delete) - Delete a tenant service group
* [Get](docs/tenancygroup/README.md#get) - Get a tenant service group
* [List](docs/tenancygroup/README.md#list) - List all tenant service groups
* [ListAncestors](docs/tenancygroup/README.md#listancestors) - List tenant service group ancestors
* [ListChildren](docs/tenancygroup/README.md#listchildren) - List tenant service group children
* [Update](docs/tenancygroup/README.md#update) - Update a tenant service group### Maturity
This SDK is in beta and therefore, we recommend pinning usage to a specific package version.
This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.### Contributions
While we value open-source contributions to this SDK, this library is generated and maintained programmatically.
Feel 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 !### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)