conductorone-sdk-go

module
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT

README

conductorone-api

SDK Installation

go get github.com/conductorone/conductorone-sdk-go

SDK Example Usage

package main

import(
	"context"
	"log"
	"github.com/conductorone/conductorone-sdk-go"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/operations"
)

func main() {
    s := conductoroneapi.New(
        conductoroneapi.WithSecurity(shared.Security{
            BearerAuth: "",
            Oauth: "",
        }),
    )

    ctx := context.Background()
    res, err := s.AppEntitlementOwners.Add(ctx, operations.C1APIAppV1AppEntitlementOwnersAddRequest{
        AddAppEntitlementOwnerRequest: &shared.AddAppEntitlementOwnerRequest{
            UserID: conductoroneapi.String("corrupti"),
        },
        AppID: "provident",
        EntitlementID: "distinctio",
    })
    if err != nil {
        log.Fatal(err)
    }

    if res.AddAppEntitlementOwnerResponse != nil {
        // handle response
    }
}

Available Resources and Operations

AppEntitlementOwners
AppEntitlementSearch
AppEntitlementUserBinding
AppEntitlements
AppOwners
AppReport
AppReportAction
AppResource
AppResourceOwners
AppResourceSearch
AppResourceType
AppSearch
AppUsageControls
AppUser
Apps
AttributeSearch
Attributes
Auth
Connector
Directory
PersonalClient
Policies
PolicySearch
RequestCatalogManagement
RequestCatalogSearch
Roles
Task
TaskActions
TaskSearch
User
UserSearch
Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. 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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL