Skip to content

Commit

Permalink
Update GH definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
migueleliasweb committed Aug 22, 2024
1 parent 94a2a9b commit 65485f3
Showing 1 changed file with 110 additions and 20 deletions.
130 changes: 110 additions & 20 deletions src/mock/endpointpattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 65485f3

Please sign in to comment.