(Github)
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.CheckAccess(ctx, operations.CheckGithubAccessRequest{
Org: "<value>",
Repo: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
*operations.CheckGithubAccessResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.CheckPublishingPRs(ctx, operations.GithubCheckPublishingPRsRequest{
GenerateGenLockID: "<id>",
Org: "<value>",
Repo: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.GithubPublishingPRResponse != nil {
// handle response
}
}
*operations.GithubCheckPublishingPRsResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.CheckPublishingSecrets(ctx, operations.GithubCheckPublishingSecretsRequest{
GenerateGenLockID: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.GithubMissingPublishingSecretsResponse != nil {
// handle response
}
}
*operations.GithubCheckPublishingSecretsResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.ConfigureCodeSamples(ctx, shared.GithubConfigureCodeSamplesRequest{
Org: "<value>",
Repo: "<value>",
TargetName: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.GithubConfigureCodeSamplesResponse != nil {
// handle response
}
}
*operations.GithubConfigureCodeSamplesResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.ConfigureMintlifyRepo(ctx, shared.GithubConfigureMintlifyRepoRequest{
Input: "<value>",
Org: "<value>",
Overlays: []string{
"<value>",
},
Repo: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
*operations.GithubConfigureMintlifyRepoResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.ConfigureTarget(ctx, shared.GithubConfigureTargetRequest{
Org: "<value>",
RepoName: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
*operations.GithubConfigureTargetResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.GetAction(ctx, operations.GetGitHubActionRequest{
Org: "<value>",
Repo: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.GithubGetActionResponse != nil {
// handle response
}
}
*operations.GetGitHubActionResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.GetSetup(ctx, operations.GetGithubSetupStateRequest{
GenerateGenLockID: "<id>",
Org: "<value>",
Repo: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.GithubSetupStateResponse != nil {
// handle response
}
}
*operations.GetGithubSetupStateResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.LinkGithub(ctx, operations.LinkGithubAccessRequest{})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
*operations.LinkGithubAccessResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.StorePublishingSecrets(ctx, shared.GithubStorePublishingSecretsRequest{
GenerateGenLockID: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
*operations.GithubStorePublishingSecretsResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |
package main
import(
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
"context"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.TriggerAction(ctx, shared.GithubTriggerActionRequest{
GenLockID: "<id>",
Org: "<value>",
RepoName: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
*operations.GithubTriggerActionResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.Error |
4XX |
application/json |
sdkerrors.SDKError |
5XX |
*/* |