Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        



SASE Tenancy Go SDK


Containers used to build your tenant hierachy.





## SDK Installation

```bash
go get github.com/speakeasy-sdks/pan-sase-tenancy-go
```

## SDK Example Usage

```go
package main

import(
"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)