Categorygithub.com/speakeasy-sdks/logicgate-dev-sample-sdk
repositorypackage
0.3.0
Repository: https://github.com/speakeasy-sdks/logicgate-dev-sample-sdk.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

github.com/speakeasy-sdks/logicgate-dev-sample-sdk

SDK Installation

go get github.com/speakeasy-sdks/logicgate-dev-sample-sdk

SDK Example Usage

package main

import (
	"context"
	logicgatedevsamplesdk "github.com/speakeasy-sdks/logicgate-dev-sample-sdk"
	"github.com/speakeasy-sdks/logicgate-dev-sample-sdk/pkg/models/shared"
	"log"
)

func main() {
	s := logicgatedevsamplesdk.New(
		logicgatedevsamplesdk.WithSecurity(shared.Security{
			Basic: &shared.SchemeBasic{
				Password: "",
				Username: "",
			},
		}),
	)

	applicationAPICreateIn := shared.ApplicationAPICreateIn{
		Color: logicgatedevsamplesdk.String("#00a3de"),
		Icon:  shared.ApplicationAPICreateInIconCubes.ToPointer(),
		Name:  "Cyber Risk Management Application",
		Type:  shared.ApplicationAPICreateInTypeControlsCompliance.ToPointer(),
	}

	ctx := context.Background()
	res, err := s.Application.Create(ctx, applicationAPICreateIn)
	if err != nil {
		log.Fatal(err)
	}

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

Available Resources and Operations

Application

  • Create - Create an application
  • Delete - Delete an application
  • Read - Retrieve an application
  • ReadAll - Retrieve applications
  • Update - Update an application

Authentication

Field

Record

Step

Workflow

WorkflowMap

  • Create - Create a workflow map
  • Delete - Delete a workflow map
  • Read - Retrieve a workflow map
  • ReadAll - Retrieve workflow maps
  • Update - Update a workflow map

Development

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