From 8dae6c25171f70b10bba5d43878dc12ef045616e Mon Sep 17 00:00:00 2001 From: Miguel Elias dos Santos Date: Thu, 22 Aug 2024 23:12:32 +1000 Subject: [PATCH] Update GH definitions --- src/mock/endpointpattern.go | 130 ++++++++++++++++++++++++++++++------ 1 file changed, 110 insertions(+), 20 deletions(-) diff --git a/src/mock/endpointpattern.go b/src/mock/endpointpattern.go index 5c99ded..19f155a 100644 --- a/src/mock/endpointpattern.go +++ b/src/mock/endpointpattern.go @@ -162,6 +162,11 @@ var GetEmojis EndpointPattern = EndpointPattern{ Method: "GET", } +var GetEnterprisesCopilotBillingSeatsByEnterprise EndpointPattern = EndpointPattern{ + Pattern: "/enterprises/{enterprise}/copilot/billing/seats", + Method: "GET", +} + var GetEnterprisesCopilotUsageByEnterprise EndpointPattern = EndpointPattern{ Pattern: "/enterprises/{enterprise}/copilot/usage", Method: "GET", @@ -177,6 +182,11 @@ var GetEnterprisesSecretScanningAlertsByEnterprise EndpointPattern = EndpointPat Method: "GET", } +var GetEnterprisesTeamCopilotUsageByEnterpriseByTeamSlug EndpointPattern = EndpointPattern{ + Pattern: "/enterprises/{enterprise}/team/{team_slug}/copilot/usage", + Method: "GET", +} + var GetEvents EndpointPattern = EndpointPattern{ Pattern: "/events", Method: "GET", @@ -652,6 +662,11 @@ var DeleteOrgsActionsVariablesRepositoriesByOrgByNameByRepositoryId EndpointPatt Method: "DELETE", } +var GetOrgsAttestationsByOrgBySubjectDigest EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/attestations/{subject_digest}", + Method: "GET", +} + var GetOrgsBlocksByOrg EndpointPattern = EndpointPattern{ Pattern: "/orgs/{org}/blocks", Method: "GET", @@ -677,6 +692,56 @@ var GetOrgsCodeScanningAlertsByOrg EndpointPattern = EndpointPattern{ Method: "GET", } +var GetOrgsCodeSecurityConfigurationsByOrg EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations", + Method: "GET", +} + +var PostOrgsCodeSecurityConfigurationsByOrg EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations", + Method: "POST", +} + +var GetOrgsCodeSecurityConfigurationsDefaultsByOrg EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/defaults", + Method: "GET", +} + +var DeleteOrgsCodeSecurityConfigurationsDetachByOrg EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/detach", + Method: "DELETE", +} + +var GetOrgsCodeSecurityConfigurationsByOrgByConfigurationId EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/{configuration_id}", + Method: "GET", +} + +var PatchOrgsCodeSecurityConfigurationsByOrgByConfigurationId EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/{configuration_id}", + Method: "PATCH", +} + +var DeleteOrgsCodeSecurityConfigurationsByOrgByConfigurationId EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/{configuration_id}", + Method: "DELETE", +} + +var PostOrgsCodeSecurityConfigurationsAttachByOrgByConfigurationId EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/{configuration_id}/attach", + Method: "POST", +} + +var PutOrgsCodeSecurityConfigurationsDefaultsByOrgByConfigurationId EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/{configuration_id}/defaults", + Method: "PUT", +} + +var GetOrgsCodeSecurityConfigurationsRepositoriesByOrgByConfigurationId EndpointPattern = EndpointPattern{ + Pattern: "/orgs/{org}/code-security/configurations/{configuration_id}/repositories", + Method: "GET", +} + var GetOrgsCodespacesByOrg EndpointPattern = EndpointPattern{ Pattern: "/orgs/{org}/codespaces", Method: "GET", @@ -1032,21 +1097,11 @@ var GetOrgsMigrationsRepositoriesByOrgByMigrationId EndpointPattern = EndpointPa Method: "GET", } -var GetOrgsOrganizationFineGrainedPermissionsByOrg EndpointPattern = EndpointPattern{ - Pattern: "/orgs/{org}/organization-fine-grained-permissions", - Method: "GET", -} - var GetOrgsOrganizationRolesByOrg EndpointPattern = EndpointPattern{ Pattern: "/orgs/{org}/organization-roles", Method: "GET", } -var PostOrgsOrganizationRolesByOrg EndpointPattern = EndpointPattern{ - Pattern: "/orgs/{org}/organization-roles", - Method: "POST", -} - var DeleteOrgsOrganizationRolesTeamsByOrgByTeamSlug EndpointPattern = EndpointPattern{ Pattern: "/orgs/{org}/organization-roles/teams/{team_slug}", Method: "DELETE", @@ -1082,16 +1137,6 @@ var GetOrgsOrganizationRolesByOrgByRoleId EndpointPattern = EndpointPattern{ Method: "GET", } -var PatchOrgsOrganizationRolesByOrgByRoleId EndpointPattern = EndpointPattern{ - Pattern: "/orgs/{org}/organization-roles/{role_id}", - Method: "PATCH", -} - -var DeleteOrgsOrganizationRolesByOrgByRoleId EndpointPattern = EndpointPattern{ - Pattern: "/orgs/{org}/organization-roles/{role_id}", - Method: "DELETE", -} - var GetOrgsOrganizationRolesTeamsByOrgByRoleId EndpointPattern = EndpointPattern{ Pattern: "/orgs/{org}/organization-roles/{role_id}/teams", Method: "GET", @@ -2022,6 +2067,16 @@ var GetReposAssigneesByOwnerByRepoByAssignee EndpointPattern = EndpointPattern{ Method: "GET", } +var PostReposAttestationsByOwnerByRepo EndpointPattern = EndpointPattern{ + Pattern: "/repos/{owner}/{repo}/attestations", + Method: "POST", +} + +var GetReposAttestationsByOwnerByRepoBySubjectDigest EndpointPattern = EndpointPattern{ + Pattern: "/repos/{owner}/{repo}/attestations/{subject_digest}", + Method: "GET", +} + var GetReposAutolinksByOwnerByRepo EndpointPattern = EndpointPattern{ Pattern: "/repos/{owner}/{repo}/autolinks", Method: "GET", @@ -2332,6 +2387,21 @@ var GetReposCodeScanningCodeqlDatabasesByOwnerByRepoByLanguage EndpointPattern = Method: "GET", } +var PostReposCodeScanningCodeqlVariantAnalysesByOwnerByRepo EndpointPattern = EndpointPattern{ + Pattern: "/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses", + Method: "POST", +} + +var GetReposCodeScanningCodeqlVariantAnalysesByOwnerByRepoByCodeqlVariantAnalysisId EndpointPattern = EndpointPattern{ + Pattern: "/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}", + Method: "GET", +} + +var GetReposCodeScanningCodeqlVariantAnalysesReposByOwnerByRepoByCodeqlVariantAnalysisIdByRepoOwnerByRepoName EndpointPattern = EndpointPattern{ + Pattern: "/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}", + Method: "GET", +} + var GetReposCodeScanningDefaultSetupByOwnerByRepo EndpointPattern = EndpointPattern{ Pattern: "/repos/{owner}/{repo}/code-scanning/default-setup", Method: "GET", @@ -2352,6 +2422,11 @@ var GetReposCodeScanningSarifsByOwnerByRepoBySarifId EndpointPattern = EndpointP Method: "GET", } +var GetReposCodeSecurityConfigurationByOwnerByRepo EndpointPattern = EndpointPattern{ + Pattern: "/repos/{owner}/{repo}/code-security-configuration", + Method: "GET", +} + var GetReposCodeownersErrorsByOwnerByRepo EndpointPattern = EndpointPattern{ Pattern: "/repos/{owner}/{repo}/codeowners/errors", Method: "GET", @@ -3637,6 +3712,11 @@ var GetReposSecretScanningAlertsLocationsByOwnerByRepoByAlertNumber EndpointPatt Method: "GET", } +var PostReposSecretScanningPushProtectionBypassesByOwnerByRepo EndpointPattern = EndpointPattern{ + Pattern: "/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses", + Method: "POST", +} + var GetReposSecurityAdvisoriesByOwnerByRepo EndpointPattern = EndpointPattern{ Pattern: "/repos/{owner}/{repo}/security-advisories", Method: "GET", @@ -4492,6 +4572,11 @@ var GetUserTeams EndpointPattern = EndpointPattern{ Method: "GET", } +var GetUserByAccountId EndpointPattern = EndpointPattern{ + Pattern: "/user/{account_id}", + Method: "GET", +} + var GetUsers EndpointPattern = EndpointPattern{ Pattern: "/users", Method: "GET", @@ -4502,6 +4587,11 @@ var GetUsersByUsername EndpointPattern = EndpointPattern{ Method: "GET", } +var GetUsersAttestationsByUsernameBySubjectDigest EndpointPattern = EndpointPattern{ + Pattern: "/users/{username}/attestations/{subject_digest}", + Method: "GET", +} + var GetUsersDockerConflictsByUsername EndpointPattern = EndpointPattern{ Pattern: "/users/{username}/docker/conflicts", Method: "GET",