Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GH definitions #37

Merged
merged 1 commit into from Sep 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
140 changes: 90 additions & 50 deletions src/mock/endpointpattern.go
Expand Up @@ -72,21 +72,6 @@ var DeleteAppInstallationsSuspendedByInstallationId EndpointPattern = EndpointPa
Method: "DELETE",
}

var GetApplicationsGrants EndpointPattern = EndpointPattern{
Pattern: "/applications/grants",
Method: "GET",
}

var GetApplicationsGrantsByGrantId EndpointPattern = EndpointPattern{
Pattern: "/applications/grants/{grant_id}",
Method: "GET",
}

var DeleteApplicationsGrantsByGrantId EndpointPattern = EndpointPattern{
Pattern: "/applications/grants/{grant_id}",
Method: "DELETE",
}

var DeleteApplicationsGrantByClientId EndpointPattern = EndpointPattern{
Pattern: "/applications/{client_id}/grant",
Method: "DELETE",
Expand Down Expand Up @@ -117,41 +102,6 @@ var GetAppsByAppSlug EndpointPattern = EndpointPattern{
Method: "GET",
}

var GetAuthorizations EndpointPattern = EndpointPattern{
Pattern: "/authorizations",
Method: "GET",
}

var PostAuthorizations EndpointPattern = EndpointPattern{
Pattern: "/authorizations",
Method: "POST",
}

var PutAuthorizationsClientsByClientId EndpointPattern = EndpointPattern{
Pattern: "/authorizations/clients/{client_id}",
Method: "PUT",
}

var PutAuthorizationsClientsByClientIdByFingerprint EndpointPattern = EndpointPattern{
Pattern: "/authorizations/clients/{client_id}/{fingerprint}",
Method: "PUT",
}

var GetAuthorizationsByAuthorizationId EndpointPattern = EndpointPattern{
Pattern: "/authorizations/{authorization_id}",
Method: "GET",
}

var PatchAuthorizationsByAuthorizationId EndpointPattern = EndpointPattern{
Pattern: "/authorizations/{authorization_id}",
Method: "PATCH",
}

var DeleteAuthorizationsByAuthorizationId EndpointPattern = EndpointPattern{
Pattern: "/authorizations/{authorization_id}",
Method: "DELETE",
}

var GetCodesOfConduct EndpointPattern = EndpointPattern{
Pattern: "/codes_of_conduct",
Method: "GET",
Expand Down Expand Up @@ -357,6 +307,21 @@ var GetEnterprisesAuditLogByEnterprise EndpointPattern = EndpointPattern{
Method: "GET",
}

var GetEnterprisesCodeScanningAlertsByEnterprise EndpointPattern = EndpointPattern{
Pattern: "/enterprises/{enterprise}/code-scanning/alerts",
Method: "GET",
}

var GetEnterprisesConsumedLicensesByEnterprise EndpointPattern = EndpointPattern{
Pattern: "/enterprises/{enterprise}/consumed-licenses",
Method: "GET",
}

var GetEnterprisesLicenseSyncStatusByEnterprise EndpointPattern = EndpointPattern{
Pattern: "/enterprises/{enterprise}/license-sync-status",
Method: "GET",
}

var GetEnterprisesSecretScanningAlertsByEnterprise EndpointPattern = EndpointPattern{
Pattern: "/enterprises/{enterprise}/secret-scanning/alerts",
Method: "GET",
Expand Down Expand Up @@ -1257,6 +1222,21 @@ var GetOrgsSecretScanningAlertsByOrg EndpointPattern = EndpointPattern{
Method: "GET",
}

var GetOrgsSecurityManagersByOrg EndpointPattern = EndpointPattern{
Pattern: "/orgs/{org}/security-managers",
Method: "GET",
}

var PutOrgsSecurityManagersTeamsByOrgByTeamSlug EndpointPattern = EndpointPattern{
Pattern: "/orgs/{org}/security-managers/teams/{team_slug}",
Method: "PUT",
}

var DeleteOrgsSecurityManagersTeamsByOrgByTeamSlug EndpointPattern = EndpointPattern{
Pattern: "/orgs/{org}/security-managers/teams/{team_slug}",
Method: "DELETE",
}

var GetOrgsSettingsBillingActionsByOrg EndpointPattern = EndpointPattern{
Pattern: "/orgs/{org}/settings/billing/actions",
Method: "GET",
Expand Down Expand Up @@ -1482,6 +1462,11 @@ var GetOrgsTeamsTeamsByOrgByTeamSlug EndpointPattern = EndpointPattern{
Method: "GET",
}

var PostOrgsByOrgBySecurityProductByEnablement EndpointPattern = EndpointPattern{
Pattern: "/orgs/{org}/{security_product}/{enablement}",
Method: "POST",
}

var GetProjectsColumnsCardsByCardId EndpointPattern = EndpointPattern{
Pattern: "/projects/columns/cards/{card_id}",
Method: "GET",
Expand Down Expand Up @@ -2512,6 +2497,31 @@ var DeleteReposEnvironmentsByOwnerByRepoByEnvironmentName EndpointPattern = Endp
Method: "DELETE",
}

var GetReposEnvironmentsDeploymentBranchPoliciesByOwnerByRepoByEnvironmentName EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
Method: "GET",
}

var PostReposEnvironmentsDeploymentBranchPoliciesByOwnerByRepoByEnvironmentName EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
Method: "POST",
}

var GetReposEnvironmentsDeploymentBranchPoliciesByOwnerByRepoByEnvironmentNameByBranchPolicyId EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
Method: "GET",
}

var PutReposEnvironmentsDeploymentBranchPoliciesByOwnerByRepoByEnvironmentNameByBranchPolicyId EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
Method: "PUT",
}

var DeleteReposEnvironmentsDeploymentBranchPoliciesByOwnerByRepoByEnvironmentNameByBranchPolicyId EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
Method: "DELETE",
}

var GetReposEventsByOwnerByRepo EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/events",
Method: "GET",
Expand Down Expand Up @@ -3027,6 +3037,11 @@ var GetReposPagesBuildsByOwnerByRepoByBuildId EndpointPattern = EndpointPattern{
Method: "GET",
}

var PostReposPagesDeploymentByOwnerByRepo EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/pages/deployment",
Method: "POST",
}

var GetReposPagesHealthByOwnerByRepo EndpointPattern = EndpointPattern{
Pattern: "/repos/{owner}/{repo}/pages/health",
Method: "GET",
Expand Down Expand Up @@ -4177,6 +4192,26 @@ var DeleteUserRepositoryInvitationsByInvitationId EndpointPattern = EndpointPatt
Method: "DELETE",
}

var GetUserSshSigningKeys EndpointPattern = EndpointPattern{
Pattern: "/user/ssh_signing_keys",
Method: "GET",
}

var PostUserSshSigningKeys EndpointPattern = EndpointPattern{
Pattern: "/user/ssh_signing_keys",
Method: "POST",
}

var GetUserSshSigningKeysBySshSigningKeyId EndpointPattern = EndpointPattern{
Pattern: "/user/ssh_signing_keys/{ssh_signing_key_id}",
Method: "GET",
}

var DeleteUserSshSigningKeysBySshSigningKeyId EndpointPattern = EndpointPattern{
Pattern: "/user/ssh_signing_keys/{ssh_signing_key_id}",
Method: "DELETE",
}

var GetUserStarred EndpointPattern = EndpointPattern{
Pattern: "/user/starred",
Method: "GET",
Expand Down Expand Up @@ -4352,6 +4387,11 @@ var GetUsersSettingsBillingSharedStorageByUsername EndpointPattern = EndpointPat
Method: "GET",
}

var GetUsersSshSigningKeysByUsername EndpointPattern = EndpointPattern{
Pattern: "/users/{username}/ssh_signing_keys",
Method: "GET",
}

var GetUsersStarredByUsername EndpointPattern = EndpointPattern{
Pattern: "/users/{username}/starred",
Method: "GET",
Expand Down