(Github)
REST APIs for managing the github integration
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
CheckGithubAccessRequest req = new CheckGithubAccessRequest() {
Org = "<value>",
Repo = "<value>",
};
var res = await sdk.Github.CheckAccessAsync(req);
// handle response
CheckGithubAccessResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GithubCheckPublishingPRsRequest req = new GithubCheckPublishingPRsRequest() {
GenerateGenLockId = "<id>",
Org = "<value>",
Repo = "<value>",
};
var res = await sdk.Github.CheckPublishingPRsAsync(req);
// handle response
GithubCheckPublishingPRsResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GithubCheckPublishingSecretsRequest req = new GithubCheckPublishingSecretsRequest() {
GenerateGenLockId = "<id>",
};
var res = await sdk.Github.CheckPublishingSecretsAsync(req);
// handle response
GithubCheckPublishingSecretsResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GithubConfigureCodeSamplesRequest req = new GithubConfigureCodeSamplesRequest() {
Org = "<value>",
Repo = "<value>",
TargetName = "<value>",
};
var res = await sdk.Github.ConfigureCodeSamplesAsync(req);
// handle response
Models.Operations.GithubConfigureCodeSamplesResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GithubConfigureMintlifyRepoRequest req = new GithubConfigureMintlifyRepoRequest() {
Input = "<value>",
Org = "<value>",
Overlays = new List<string>() {
"<value>",
},
Repo = "<value>",
};
var res = await sdk.Github.ConfigureMintlifyRepoAsync(req);
// handle response
GithubConfigureMintlifyRepoResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GithubConfigureTargetRequest req = new GithubConfigureTargetRequest() {
Org = "<value>",
RepoName = "<value>",
};
var res = await sdk.Github.ConfigureTargetAsync(req);
// handle response
GithubConfigureTargetResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetGitHubActionRequest req = new GetGitHubActionRequest() {
Org = "<value>",
Repo = "<value>",
};
var res = await sdk.Github.GetActionAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
GetGitHubActionRequest |
✔️ |
The request object to use for the request. |
GetGitHubActionResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetGithubSetupStateRequest req = new GetGithubSetupStateRequest() {
GenerateGenLockId = "<id>",
Org = "<value>",
Repo = "<value>",
};
var res = await sdk.Github.GetSetupAsync(req);
// handle response
GetGithubSetupStateResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
LinkGithubAccessRequest req = new LinkGithubAccessRequest() {};
var res = await sdk.Github.LinkGithubAsync(req);
// handle response
LinkGithubAccessResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GithubStorePublishingSecretsRequest req = new GithubStorePublishingSecretsRequest() {
GenerateGenLockId = "<id>",
};
var res = await sdk.Github.StorePublishingSecretsAsync(req);
// handle response
GithubStorePublishingSecretsResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GithubTriggerActionRequest req = new GithubTriggerActionRequest() {
GenLockId = "<id>",
Org = "<value>",
RepoName = "<value>",
};
var res = await sdk.Github.TriggerActionAsync(req);
// handle response
GithubTriggerActionResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |