codecraftai-restclient-github-public 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccai/restclient/github/public/__init__.py +0 -0
- ccai/restclient/github/public/generation/githubrestclientgenerator.py +56 -0
- ccai/restclient/github/public/generation/specs/api-hints.json +172 -0
- ccai/restclient/github/public/generation/specs/api-public.json +306020 -0
- ccai/restclient/github/public/generation/specs/pagination-hints.json +31 -0
- ccai/restclient/github/public/githubpublicrestclient.py +262 -0
- ccai/restclient/github/public/githubrestclientbase.py +120 -0
- ccai/restclient/github/public/groups/__init__.py +0 -0
- ccai/restclient/github/public/groups/actions.py +8042 -0
- ccai/restclient/github/public/groups/activity.py +1488 -0
- ccai/restclient/github/public/groups/apiinsights.py +478 -0
- ccai/restclient/github/public/groups/apps.py +1662 -0
- ccai/restclient/github/public/groups/billing.py +401 -0
- ccai/restclient/github/public/groups/campaigns.py +262 -0
- ccai/restclient/github/public/groups/checks.py +632 -0
- ccai/restclient/github/public/groups/classroom.py +276 -0
- ccai/restclient/github/public/groups/codescanning.py +1203 -0
- ccai/restclient/github/public/groups/codesecurity.py +997 -0
- ccai/restclient/github/public/groups/codesofconduct.py +92 -0
- ccai/restclient/github/public/groups/codespaces.py +2271 -0
- ccai/restclient/github/public/groups/copilot.py +517 -0
- ccai/restclient/github/public/groups/credentials.py +62 -0
- ccai/restclient/github/public/groups/dependabot.py +1155 -0
- ccai/restclient/github/public/groups/dependencygraph.py +152 -0
- ccai/restclient/github/public/groups/emojis.py +51 -0
- ccai/restclient/github/public/groups/gists.py +909 -0
- ccai/restclient/github/public/groups/git.py +734 -0
- ccai/restclient/github/public/groups/gitignore.py +96 -0
- ccai/restclient/github/public/groups/hostedcompute.py +290 -0
- ccai/restclient/github/public/groups/interactions.py +389 -0
- ccai/restclient/github/public/groups/issues.py +2460 -0
- ccai/restclient/github/public/groups/licenses.py +153 -0
- ccai/restclient/github/public/groups/markdown.py +88 -0
- ccai/restclient/github/public/groups/meta.py +213 -0
- ccai/restclient/github/public/groups/migrations.py +1079 -0
- ccai/restclient/github/public/groups/oidc.py +102 -0
- ccai/restclient/github/public/groups/orgs.py +3958 -0
- ccai/restclient/github/public/groups/packages.py +1316 -0
- ccai/restclient/github/public/groups/privateregistries.py +294 -0
- ccai/restclient/github/public/groups/projectsclassic.py +1154 -0
- ccai/restclient/github/public/groups/pulls.py +1469 -0
- ccai/restclient/github/public/groups/ratelimit.py +68 -0
- ccai/restclient/github/public/groups/reactions.py +1247 -0
- ccai/restclient/github/public/groups/repos.py +9741 -0
- ccai/restclient/github/public/groups/search.py +417 -0
- ccai/restclient/github/public/groups/secretscanning.py +568 -0
- ccai/restclient/github/public/groups/securityadvisories.py +541 -0
- ccai/restclient/github/public/groups/teams.py +2985 -0
- ccai/restclient/github/public/groups/users.py +2054 -0
- ccai/restclient/github/public/py.typed +0 -0
- ccai/restclient/github/public/schemas/__init__.py +0 -0
- ccai/restclient/github/public/schemas/actions.py +418 -0
- ccai/restclient/github/public/schemas/activity.py +95 -0
- ccai/restclient/github/public/schemas/actor.py +20 -0
- ccai/restclient/github/public/schemas/addedtoprojectissueevent.py +24 -0
- ccai/restclient/github/public/schemas/apps.py +151 -0
- ccai/restclient/github/public/schemas/assignedissueevent.py +25 -0
- ccai/restclient/github/public/schemas/authenticationtoken.py +20 -0
- ccai/restclient/github/public/schemas/automerge.py +16 -0
- ccai/restclient/github/public/schemas/basicerror.py +16 -0
- ccai/restclient/github/public/schemas/billing.py +27 -0
- ccai/restclient/github/public/schemas/billingusagereport.py +12 -0
- ccai/restclient/github/public/schemas/billingusagereportuser.py +12 -0
- ccai/restclient/github/public/schemas/campaigns.py +27 -0
- ccai/restclient/github/public/schemas/checkrunwithsimplechecksuite.py +31 -0
- ccai/restclient/github/public/schemas/checks.py +80 -0
- ccai/restclient/github/public/schemas/classroom.py +109 -0
- ccai/restclient/github/public/schemas/codeofconductsimple.py +18 -0
- ccai/restclient/github/public/schemas/codescanning.py +197 -0
- ccai/restclient/github/public/schemas/codescanningalertlocation.py +17 -0
- ccai/restclient/github/public/schemas/codescanningalertrule.py +20 -0
- ccai/restclient/github/public/schemas/codescanningalertrulesummary.py +20 -0
- ccai/restclient/github/public/schemas/codescanninganalysistool.py +14 -0
- ccai/restclient/github/public/schemas/codescanningautofixcommitsresponse.py +11 -0
- ccai/restclient/github/public/schemas/codescanningdefaultsetupupdateresponse.py +15 -0
- ccai/restclient/github/public/schemas/codescanningsarifsreceipt.py +11 -0
- ccai/restclient/github/public/schemas/codescanningvariantanalysisrepository.py +20 -0
- ccai/restclient/github/public/schemas/codescanningvariantanalysisskippedrepogroup.py +13 -0
- ccai/restclient/github/public/schemas/codesecurity.py +73 -0
- ccai/restclient/github/public/schemas/codesofconduct.py +19 -0
- ccai/restclient/github/public/schemas/codespaces.py +130 -0
- ccai/restclient/github/public/schemas/codespacewithfullrepository.py +45 -0
- ccai/restclient/github/public/schemas/commit.py +25 -0
- ccai/restclient/github/public/schemas/contenttree.py +27 -0
- ccai/restclient/github/public/schemas/convertednotetoissueissueevent.py +24 -0
- ccai/restclient/github/public/schemas/copilot.py +50 -0
- ccai/restclient/github/public/schemas/copilotdotcomchat.py +16 -0
- ccai/restclient/github/public/schemas/copilotdotcompullrequests.py +16 -0
- ccai/restclient/github/public/schemas/copilotidechat.py +16 -0
- ccai/restclient/github/public/schemas/copilotidecodecompletions.py +17 -0
- ccai/restclient/github/public/schemas/copilotorganizationseatbreakdown.py +18 -0
- ccai/restclient/github/public/schemas/cvssseverities.py +13 -0
- ccai/restclient/github/public/schemas/demilestonedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/dependabot.py +87 -0
- ccai/restclient/github/public/schemas/dependabotalertpackage.py +14 -0
- ccai/restclient/github/public/schemas/dependabotalertsecurityadvisory.py +29 -0
- ccai/restclient/github/public/schemas/dependabotalertsecurityvulnerability.py +18 -0
- ccai/restclient/github/public/schemas/dependency.py +16 -0
- ccai/restclient/github/public/schemas/dependencygraph.py +29 -0
- ccai/restclient/github/public/schemas/deploymentsimple.py +28 -0
- ccai/restclient/github/public/schemas/discussion.py +37 -0
- ccai/restclient/github/public/schemas/enterprise.py +24 -0
- ccai/restclient/github/public/schemas/enterpriseteam.py +27 -0
- ccai/restclient/github/public/schemas/enterprisewebhooks.py +26 -0
- ccai/restclient/github/public/schemas/gisthistory.py +19 -0
- ccai/restclient/github/public/schemas/gists.py +88 -0
- ccai/restclient/github/public/schemas/git.py +71 -0
- ccai/restclient/github/public/schemas/gitignore.py +14 -0
- ccai/restclient/github/public/schemas/hookdelivery.py +29 -0
- ccai/restclient/github/public/schemas/hookdeliveryitem.py +26 -0
- ccai/restclient/github/public/schemas/hookresponse.py +14 -0
- ccai/restclient/github/public/schemas/hostedcompute.py +30 -0
- ccai/restclient/github/public/schemas/installation.py +35 -0
- ccai/restclient/github/public/schemas/installationtoken.py +22 -0
- ccai/restclient/github/public/schemas/interactions.py +23 -0
- ccai/restclient/github/public/schemas/issuedependenciessummary.py +13 -0
- ccai/restclient/github/public/schemas/issueeventdismissedreview.py +15 -0
- ccai/restclient/github/public/schemas/issueeventlabel.py +16 -0
- ccai/restclient/github/public/schemas/issueeventmilestone.py +13 -0
- ccai/restclient/github/public/schemas/issueeventprojectcard.py +18 -0
- ccai/restclient/github/public/schemas/issueeventrename.py +14 -0
- ccai/restclient/github/public/schemas/issuefieldvalue.py +19 -0
- ccai/restclient/github/public/schemas/issues.py +135 -0
- ccai/restclient/github/public/schemas/labeledissueevent.py +24 -0
- ccai/restclient/github/public/schemas/licenses.py +58 -0
- ccai/restclient/github/public/schemas/link.py +13 -0
- ccai/restclient/github/public/schemas/linkwithtype.py +14 -0
- ccai/restclient/github/public/schemas/lockedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/manifest.py +15 -0
- ccai/restclient/github/public/schemas/marketplaceaccount.py +18 -0
- ccai/restclient/github/public/schemas/mergegroup.py +17 -0
- ccai/restclient/github/public/schemas/meta.py +67 -0
- ccai/restclient/github/public/schemas/migrations.py +84 -0
- ccai/restclient/github/public/schemas/milestonedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/minimalrepository.py +102 -0
- ccai/restclient/github/public/schemas/movedcolumninprojectissueevent.py +24 -0
- ccai/restclient/github/public/schemas/nullableactionshostedrunnerpoolimage.py +16 -0
- ccai/restclient/github/public/schemas/nullablecodeofconductsimple.py +18 -0
- ccai/restclient/github/public/schemas/nullablecodespacemachine.py +21 -0
- ccai/restclient/github/public/schemas/nullablecollaborator.py +37 -0
- ccai/restclient/github/public/schemas/nullablecommunityhealthfile.py +11 -0
- ccai/restclient/github/public/schemas/nullablegituser.py +15 -0
- ccai/restclient/github/public/schemas/nullableintegration.py +28 -0
- ccai/restclient/github/public/schemas/nullableissue.py +52 -0
- ccai/restclient/github/public/schemas/nullablelicensesimple.py +20 -0
- ccai/restclient/github/public/schemas/nullablemilestone.py +30 -0
- ccai/restclient/github/public/schemas/nullableminimalrepository.py +102 -0
- ccai/restclient/github/public/schemas/nullableorganizationsimple.py +26 -0
- ccai/restclient/github/public/schemas/nullableprojectsv2statusupdate.py +24 -0
- ccai/restclient/github/public/schemas/nullablerepository.py +110 -0
- ccai/restclient/github/public/schemas/nullablerepositorywebhooks.py +115 -0
- ccai/restclient/github/public/schemas/nullablescopedinstallation.py +18 -0
- ccai/restclient/github/public/schemas/nullablesimplecommit.py +20 -0
- ccai/restclient/github/public/schemas/nullablesimplerepository.py +60 -0
- ccai/restclient/github/public/schemas/nullablesimpleuser.py +36 -0
- ccai/restclient/github/public/schemas/nullableteamsimple.py +27 -0
- ccai/restclient/github/public/schemas/oidc.py +15 -0
- ccai/restclient/github/public/schemas/organizationinvitation.py +26 -0
- ccai/restclient/github/public/schemas/organizationsimplewebhooks.py +27 -0
- ccai/restclient/github/public/schemas/orgprivateregistryconfigurationwithselectedrepositories.py +21 -0
- ccai/restclient/github/public/schemas/orgs.py +332 -0
- ccai/restclient/github/public/schemas/packages.py +42 -0
- ccai/restclient/github/public/schemas/pagebuildstatus.py +14 -0
- ccai/restclient/github/public/schemas/pageshttpscertificate.py +15 -0
- ccai/restclient/github/public/schemas/pagessourcehash.py +11 -0
- ccai/restclient/github/public/schemas/personalaccesstokenrequest.py +28 -0
- ccai/restclient/github/public/schemas/privateregistries.py +20 -0
- ccai/restclient/github/public/schemas/projectsclassic.py +70 -0
- ccai/restclient/github/public/schemas/projectsv2.py +31 -0
- ccai/restclient/github/public/schemas/projectsv2item.py +23 -0
- ccai/restclient/github/public/schemas/projectsv2iterationsetting.py +20 -0
- ccai/restclient/github/public/schemas/projectsv2singleselectoption.py +18 -0
- ccai/restclient/github/public/schemas/projectsv2statusupdate.py +24 -0
- ccai/restclient/github/public/schemas/protectedbranchrequiredstatuscheck.py +20 -0
- ccai/restclient/github/public/schemas/publicip.py +15 -0
- ccai/restclient/github/public/schemas/pullrequestminimal.py +16 -0
- ccai/restclient/github/public/schemas/pullrequestsimple.py +50 -0
- ccai/restclient/github/public/schemas/pulls.py +185 -0
- ccai/restclient/github/public/schemas/ratelimit.py +23 -0
- ccai/restclient/github/public/schemas/reactions.py +17 -0
- ccai/restclient/github/public/schemas/referencedworkflow.py +15 -0
- ccai/restclient/github/public/schemas/removedfromprojectissueevent.py +24 -0
- ccai/restclient/github/public/schemas/renamedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/repos.py +952 -0
- ccai/restclient/github/public/schemas/repository.py +110 -0
- ccai/restclient/github/public/schemas/repositoryadvisorycredit.py +15 -0
- ccai/restclient/github/public/schemas/repositoryadvisoryvulnerability.py +18 -0
- ccai/restclient/github/public/schemas/repositoryrulebranchnamepattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecodescanning.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecommitauthoremailpattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecommitmessagepattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecommitteremailpattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecreation.py +13 -0
- ccai/restclient/github/public/schemas/repositoryruledeletion.py +13 -0
- ccai/restclient/github/public/schemas/repositoryrulefileextensionrestriction.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulefilepathrestriction.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulemaxfilepathlength.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulemaxfilesize.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulemergequeue.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulenonfastforward.py +13 -0
- ccai/restclient/github/public/schemas/repositoryruleparamscodescanningtool.py +15 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsrequiredreviewerconfiguration.py +17 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsrestrictedcommits.py +14 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsreviewer.py +14 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsstatuscheckconfiguration.py +14 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsworkflowfilereference.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulepullrequest.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulerequireddeployments.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulerequiredlinearhistory.py +13 -0
- ccai/restclient/github/public/schemas/repositoryrulerequiredsignatures.py +13 -0
- ccai/restclient/github/public/schemas/repositoryrulerequiredstatuschecks.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulerulesetinfo.py +15 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositoryidtarget.py +15 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorynametarget.py +15 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertyspec.py +17 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertytarget.py +15 -0
- ccai/restclient/github/public/schemas/repositoryruletagnamepattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryruleupdate.py +16 -0
- ccai/restclient/github/public/schemas/repositoryruleviolationerror.py +18 -0
- ccai/restclient/github/public/schemas/repositoryruleworkflows.py +16 -0
- ccai/restclient/github/public/schemas/repositorywebhooks.py +115 -0
- ccai/restclient/github/public/schemas/reviewdismissedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/reviewrequestedissueevent.py +26 -0
- ccai/restclient/github/public/schemas/reviewrequestremovedissueevent.py +26 -0
- ccai/restclient/github/public/schemas/rulesetversion.py +17 -0
- ccai/restclient/github/public/schemas/runnerlabel.py +15 -0
- ccai/restclient/github/public/schemas/scimerror.py +20 -0
- ccai/restclient/github/public/schemas/search.py +263 -0
- ccai/restclient/github/public/schemas/secretscanning.py +96 -0
- ccai/restclient/github/public/schemas/secretscanningalertwebhook.py +33 -0
- ccai/restclient/github/public/schemas/secretscanninglocationcommit.py +21 -0
- ccai/restclient/github/public/schemas/secretscanninglocationdiscussionbody.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationdiscussioncomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationdiscussiontitle.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationissuebody.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationissuecomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationissuetitle.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestbody.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestcomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreview.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreviewcomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequesttitle.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationwikicommit.py +21 -0
- ccai/restclient/github/public/schemas/secretscanningpatternoverride.py +23 -0
- ccai/restclient/github/public/schemas/secretscanningscan.py +18 -0
- ccai/restclient/github/public/schemas/securityadvisories.py +106 -0
- ccai/restclient/github/public/schemas/securityadvisoryepss.py +14 -0
- ccai/restclient/github/public/schemas/securityandanalysis.py +18 -0
- ccai/restclient/github/public/schemas/shortblob.py +14 -0
- ccai/restclient/github/public/schemas/simplechecksuite.py +28 -0
- ccai/restclient/github/public/schemas/simpleclassroomorganization.py +20 -0
- ccai/restclient/github/public/schemas/simpleclassroomrepository.py +18 -0
- ccai/restclient/github/public/schemas/simpleclassroomuser.py +16 -0
- ccai/restclient/github/public/schemas/simplecommit.py +20 -0
- ccai/restclient/github/public/schemas/simplecommitstatus.py +22 -0
- ccai/restclient/github/public/schemas/simpleinstallation.py +16 -0
- ccai/restclient/github/public/schemas/simplerepository.py +60 -0
- ccai/restclient/github/public/schemas/statechangeissueevent.py +24 -0
- ccai/restclient/github/public/schemas/subissuessummary.py +12 -0
- ccai/restclient/github/public/schemas/teamorganization.py +63 -0
- ccai/restclient/github/public/schemas/teams.py +202 -0
- ccai/restclient/github/public/schemas/timelineassignedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/timelinecommentevent.py +30 -0
- ccai/restclient/github/public/schemas/timelinecommitcommentedevent.py +18 -0
- ccai/restclient/github/public/schemas/timelinecommittedevent.py +25 -0
- ccai/restclient/github/public/schemas/timelinecrossreferencedevent.py +19 -0
- ccai/restclient/github/public/schemas/timelinelinecommentedevent.py +17 -0
- ccai/restclient/github/public/schemas/timelinereviewedevent.py +29 -0
- ccai/restclient/github/public/schemas/timelineunassignedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/traffic.py +12 -0
- ccai/restclient/github/public/schemas/unassignedissueevent.py +25 -0
- ccai/restclient/github/public/schemas/unlabeledissueevent.py +24 -0
- ccai/restclient/github/public/schemas/users.py +183 -0
- ccai/restclient/github/public/schemas/validationerror.py +17 -0
- ccai/restclient/github/public/schemas/validationerrorsimple.py +17 -0
- ccai/restclient/github/public/schemas/verification.py +16 -0
- ccai/restclient/github/public/schemas/vulnerability.py +18 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationdisabled.py +15 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationenabled.py +15 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionrulecreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionruledeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionruleedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookcheckruncompleted.py +15 -0
- ccai/restclient/github/public/schemas/webhookcheckruncompletedformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookcheckruncreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookcheckruncreatedformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrequestedaction.py +18 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrequestedactionformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrerequested.py +15 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrerequestedformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookchecksuitecompleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookchecksuiterequested.py +18 -0
- ccai/restclient/github/public/schemas/webhookchecksuitererequested.py +18 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertappearedinbranch.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertclosedbyuser.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertcreated.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertfixed.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertreopened.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertreopenedbyuser.py +20 -0
- ccai/restclient/github/public/schemas/webhookcommitcommentcreated.py +18 -0
- ccai/restclient/github/public/schemas/webhookcreate.py +21 -0
- ccai/restclient/github/public/schemas/webhookcustompropertycreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookcustompropertydeleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookcustompropertypromotedtoenterprise.py +15 -0
- ccai/restclient/github/public/schemas/webhookcustompropertyupdated.py +15 -0
- ccai/restclient/github/public/schemas/webhookcustompropertyvaluesupdated.py +19 -0
- ccai/restclient/github/public/schemas/webhookdelete.py +17 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertautodismissed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertautoreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertdismissed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertfixed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertreintroduced.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookdeploykeycreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookdeploykeydeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookdeploymentcreated.py +20 -0
- ccai/restclient/github/public/schemas/webhookdeploymentprotectionrulerequested.py +21 -0
- ccai/restclient/github/public/schemas/webhookdeploymentreviewapproved.py +24 -0
- ccai/restclient/github/public/schemas/webhookdeploymentreviewrejected.py +24 -0
- ccai/restclient/github/public/schemas/webhookdeploymentreviewrequested.py +23 -0
- ccai/restclient/github/public/schemas/webhookdeploymentstatuscreated.py +22 -0
- ccai/restclient/github/public/schemas/webhookdiscussionanswered.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncategorychanged.py +19 -0
- ccai/restclient/github/public/schemas/webhookdiscussionclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncommentcreated.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncommentdeleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncommentedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussiondeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookdiscussionlabeled.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussionlocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionpinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussiontransferred.py +19 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunanswered.py +15 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunlabeled.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunlocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunpinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookfork.py +18 -0
- ccai/restclient/github/public/schemas/webhookgithubappauthorizationrevoked.py +11 -0
- ccai/restclient/github/public/schemas/webhookgollum.py +17 -0
- ccai/restclient/github/public/schemas/webhookinstallationcreated.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationdeleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationnewpermissionsaccepted.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationrepositoriesadded.py +21 -0
- ccai/restclient/github/public/schemas/webhookinstallationrepositoriesremoved.py +21 -0
- ccai/restclient/github/public/schemas/webhookinstallationsuspend.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationtargetrenamed.py +20 -0
- ccai/restclient/github/public/schemas/webhookinstallationunsuspend.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuecommentcreated.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuecommentdeleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuecommentedited.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyadded.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockingadded.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockingremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuesassigned.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookissuesdeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuesdemilestoned.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuesedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookissueslabeled.py +19 -0
- ccai/restclient/github/public/schemas/webhookissueslocked.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuesmilestoned.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuesopened.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuespinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookissuesreopened.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuestransferred.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuestyped.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesunassigned.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesunlabeled.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesunlocked.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuesunpinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookissuesuntyped.py +17 -0
- ccai/restclient/github/public/schemas/webhooklabelcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooklabeldeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhooklabeledited.py +19 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasecancelled.py +18 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasechanged.py +20 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchange.py +20 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchangecancelled.py +20 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasepurchased.py +18 -0
- ccai/restclient/github/public/schemas/webhookmemberadded.py +19 -0
- ccai/restclient/github/public/schemas/webhookmemberedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookmemberremoved.py +16 -0
- ccai/restclient/github/public/schemas/webhookmembershipadded.py +20 -0
- ccai/restclient/github/public/schemas/webhookmembershipremoved.py +20 -0
- ccai/restclient/github/public/schemas/webhookmergegroupchecksrequested.py +15 -0
- ccai/restclient/github/public/schemas/webhookmergegroupdestroyed.py +16 -0
- ccai/restclient/github/public/schemas/webhookmetadeleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookmilestoneclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookmilestonecreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookmilestonedeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookmilestoneedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookmilestoneopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationdeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationmemberadded.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationmemberinvited.py +19 -0
- ccai/restclient/github/public/schemas/webhookorganizationmemberremoved.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationrenamed.py +19 -0
- ccai/restclient/github/public/schemas/webhookorgblockblocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookorgblockunblocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookpackagepublished.py +18 -0
- ccai/restclient/github/public/schemas/webhookpackageupdated.py +18 -0
- ccai/restclient/github/public/schemas/webhookpagebuild.py +18 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestapproved.py +15 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcancelled.py +15 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestdenied.py +15 -0
- ccai/restclient/github/public/schemas/webhookping.py +17 -0
- ccai/restclient/github/public/schemas/webhookpingformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookprojectcardconverted.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectcardcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcarddeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookprojectcardedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectcardmoved.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumncreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumndeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumnedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumnmoved.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectdeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemarchived.py +15 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemconverted.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemcreated.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemdeleted.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemedited.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemreordered.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemrestored.py +15 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectclosed.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectcreated.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectdeleted.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectedited.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectreopened.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatecreated.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatedeleted.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2statusupdateedited.py +17 -0
- ccai/restclient/github/public/schemas/webhookpublic.py +14 -0
- ccai/restclient/github/public/schemas/webhookpullrequestassigned.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestautomergedisabled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestautomergeenabled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestclosed.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestconvertedtodraft.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestdemilestoned.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestdequeued.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestenqueued.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestlabeled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestlocked.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestmilestoned.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestopened.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreadyforreview.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreopened.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentcreated.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentdeleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewdismissed.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewsubmitted.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadresolved.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadunresolved.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestsynchronize.py +21 -0
- ccai/restclient/github/public/schemas/webhookpullrequestunassigned.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestunlabeled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestunlocked.py +19 -0
- ccai/restclient/github/public/schemas/webhookpush.py +27 -0
- ccai/restclient/github/public/schemas/webhookregistrypackagepublished.py +18 -0
- ccai/restclient/github/public/schemas/webhookregistrypackageupdated.py +18 -0
- ccai/restclient/github/public/schemas/webhookreleasecreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleasedeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleaseedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookreleaseprereleased.py +18 -0
- ccai/restclient/github/public/schemas/webhookreleasepublished.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleasereleased.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleaseunpublished.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryadvisorypublished.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryadvisoryreported.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryarchived.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorycreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorydeleted.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorydispatchsample.py +19 -0
- ccai/restclient/github/public/schemas/webhookrepositoryedited.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryimport.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositoryprivatized.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorypublicized.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrenamed.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrulesetcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrulesetdeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrulesetedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookrepositorytransferred.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryunarchived.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertcreate.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertdismiss.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertreopen.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertresolve.py +18 -0
- ccai/restclient/github/public/schemas/webhookrubygemsmetadata.py +21 -0
- ccai/restclient/github/public/schemas/webhooksalert.py +31 -0
- ccai/restclient/github/public/schemas/webhooksanswer.py +24 -0
- ccai/restclient/github/public/schemas/webhooksapprover.py +28 -0
- ccai/restclient/github/public/schemas/webhookschanges.py +15 -0
- ccai/restclient/github/public/schemas/webhookschanges8.py +12 -0
- ccai/restclient/github/public/schemas/webhookscomment.py +24 -0
- ccai/restclient/github/public/schemas/webhooksdeploykey.py +24 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreatedformencoded.py +10 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertpubliclyleaked.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertresolved.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertvalidated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningscancompleted.py +24 -0
- ccai/restclient/github/public/schemas/webhooksecurityadvisorypublished.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecurityadvisoryupdated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecurityadvisorywithdrawn.py +18 -0
- ccai/restclient/github/public/schemas/webhooksecurityandanalysis.py +17 -0
- ccai/restclient/github/public/schemas/webhooksissue.py +48 -0
- ccai/restclient/github/public/schemas/webhooksissue2.py +48 -0
- ccai/restclient/github/public/schemas/webhooksissuecomment.py +26 -0
- ccai/restclient/github/public/schemas/webhookslabel.py +18 -0
- ccai/restclient/github/public/schemas/webhooksmarketplacepurchase.py +18 -0
- ccai/restclient/github/public/schemas/webhooksmembership.py +21 -0
- ccai/restclient/github/public/schemas/webhooksmilestone.py +30 -0
- ccai/restclient/github/public/schemas/webhooksmilestone3.py +30 -0
- ccai/restclient/github/public/schemas/webhooksponsorshipcancelled.py +16 -0
- ccai/restclient/github/public/schemas/webhooksponsorshipcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksponsorshipedited.py +19 -0
- ccai/restclient/github/public/schemas/webhooksponsorshippendingcancellation.py +17 -0
- ccai/restclient/github/public/schemas/webhooksponsorshippendingtierchange.py +18 -0
- ccai/restclient/github/public/schemas/webhooksponsorshiptierchanged.py +17 -0
- ccai/restclient/github/public/schemas/webhookspreviousmarketplacepurchase.py +18 -0
- ccai/restclient/github/public/schemas/webhooksproject.py +24 -0
- ccai/restclient/github/public/schemas/webhooksprojectcard.py +24 -0
- ccai/restclient/github/public/schemas/webhooksprojectchanges.py +12 -0
- ccai/restclient/github/public/schemas/webhooksprojectcolumn.py +20 -0
- ccai/restclient/github/public/schemas/webhookspullrequest5.py +59 -0
- ccai/restclient/github/public/schemas/webhooksrelease.py +36 -0
- ccai/restclient/github/public/schemas/webhooksrelease1.py +36 -0
- ccai/restclient/github/public/schemas/webhooksreview.py +26 -0
- ccai/restclient/github/public/schemas/webhooksreviewcomment.py +41 -0
- ccai/restclient/github/public/schemas/webhooksrule.py +42 -0
- ccai/restclient/github/public/schemas/webhookssecurityadvisory.py +27 -0
- ccai/restclient/github/public/schemas/webhookssponsorship.py +18 -0
- ccai/restclient/github/public/schemas/webhookstarcreated.py +18 -0
- ccai/restclient/github/public/schemas/webhookstardeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookstatus.py +28 -0
- ccai/restclient/github/public/schemas/webhooksteam.py +28 -0
- ccai/restclient/github/public/schemas/webhooksteam1.py +28 -0
- ccai/restclient/github/public/schemas/webhooksubissuesparentissueadded.py +19 -0
- ccai/restclient/github/public/schemas/webhooksubissuesparentissueremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhooksubissuessubissueadded.py +19 -0
- ccai/restclient/github/public/schemas/webhooksubissuessubissueremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhooksuser.py +33 -0
- ccai/restclient/github/public/schemas/webhooksusermannequin.py +33 -0
- ccai/restclient/github/public/schemas/webhooksworkflow.py +19 -0
- ccai/restclient/github/public/schemas/webhooksworkflowjobrun.py +19 -0
- ccai/restclient/github/public/schemas/webhookteamadd.py +15 -0
- ccai/restclient/github/public/schemas/webhookteamaddedtorepository.py +18 -0
- ccai/restclient/github/public/schemas/webhookteamcreated.py +18 -0
- ccai/restclient/github/public/schemas/webhookteamdeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookteamedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookteamremovedfromrepository.py +18 -0
- ccai/restclient/github/public/schemas/webhookwatchstarted.py +15 -0
- ccai/restclient/github/public/schemas/webhookworkflowdispatch.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobcompleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobinprogress.py +17 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobqueued.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobwaiting.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowruncompleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowruninprogress.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowrunrequested.py +19 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/METADATA +87 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/RECORD +579 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/WHEEL +4 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/licenses/LICENSE.md +204 -0
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
|
|
5
|
+
from ccai.restclient.base.aspectsrest import AspectsRest
|
|
6
|
+
from ccai.restclient.base.pagedlist import PagedList
|
|
7
|
+
from ccai.restclient.base.restapigroup import RestApiGroup
|
|
8
|
+
from ccai.restclient.github.public.schemas.securityadvisories import GlobalAdvisory
|
|
9
|
+
from ccai.restclient.github.public.schemas.securityadvisories import PrivateVulnerabilityReportCreate
|
|
10
|
+
from ccai.restclient.github.public.schemas.securityadvisories import RepositoryAdvisory
|
|
11
|
+
from ccai.restclient.github.public.schemas.securityadvisories import RepositoryAdvisoryCreate
|
|
12
|
+
from ccai.restclient.github.public.schemas.securityadvisories import RepositoryAdvisoryUpdate
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class SecurityAdvisoriesApiGroup(RestApiGroup):
|
|
16
|
+
"""
|
|
17
|
+
Manage security advisories.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
def create_fork(self, owner: str, repo: str, ghsa_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
21
|
+
"""
|
|
22
|
+
Create a temporary private fork
|
|
23
|
+
|
|
24
|
+
Create a temporary private fork to collaborate on fixing a security vulnerability in your repository.
|
|
25
|
+
|
|
26
|
+
> [!NOTE]
|
|
27
|
+
> Forking a repository happens asynchronously. You may have to wait up to 5 minutes before you can access the fork.
|
|
28
|
+
"""
|
|
29
|
+
client = self.client
|
|
30
|
+
if aspects is None:
|
|
31
|
+
aspects = client.aspects
|
|
32
|
+
|
|
33
|
+
header_params = client.headers
|
|
34
|
+
if headers is not None:
|
|
35
|
+
header_params = headers
|
|
36
|
+
|
|
37
|
+
leaf_template = "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
|
|
38
|
+
path_params = {
|
|
39
|
+
'owner': owner,
|
|
40
|
+
'repo': repo,
|
|
41
|
+
'ghsa_id': ghsa_id,
|
|
42
|
+
}
|
|
43
|
+
call_leaf = leaf_template.format(**path_params)
|
|
44
|
+
|
|
45
|
+
query_params = None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
if exp_status is None:
|
|
49
|
+
exp_status = [202]
|
|
50
|
+
|
|
51
|
+
resp = client.perform_call(
|
|
52
|
+
leaf=call_leaf,
|
|
53
|
+
method="POST",
|
|
54
|
+
params=query_params if query_params else None,
|
|
55
|
+
body=None,
|
|
56
|
+
exp_status=exp_status,
|
|
57
|
+
headers=header_params if header_params else None,
|
|
58
|
+
context_msg=None,
|
|
59
|
+
aspects=aspects,
|
|
60
|
+
)
|
|
61
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
62
|
+
rtnval = None
|
|
63
|
+
else:
|
|
64
|
+
rtnval = resp.json()
|
|
65
|
+
return rtnval
|
|
66
|
+
|
|
67
|
+
def create_private_vulnerability_report(self, owner: str, repo: str, body: PrivateVulnerabilityReportCreate, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
68
|
+
"""
|
|
69
|
+
Privately report a security vulnerability
|
|
70
|
+
|
|
71
|
+
Report a security vulnerability to the maintainers of the repository.
|
|
72
|
+
See "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)" for more information about private vulnerability reporting.
|
|
73
|
+
"""
|
|
74
|
+
client = self.client
|
|
75
|
+
if aspects is None:
|
|
76
|
+
aspects = client.aspects
|
|
77
|
+
|
|
78
|
+
header_params = client.headers
|
|
79
|
+
if headers is not None:
|
|
80
|
+
header_params = headers
|
|
81
|
+
|
|
82
|
+
leaf_template = "/repos/{owner}/{repo}/security-advisories/reports"
|
|
83
|
+
path_params = {
|
|
84
|
+
'owner': owner,
|
|
85
|
+
'repo': repo,
|
|
86
|
+
}
|
|
87
|
+
call_leaf = leaf_template.format(**path_params)
|
|
88
|
+
|
|
89
|
+
query_params = None
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
if exp_status is None:
|
|
93
|
+
exp_status = [201]
|
|
94
|
+
|
|
95
|
+
resp = client.perform_call(
|
|
96
|
+
leaf=call_leaf,
|
|
97
|
+
method="POST",
|
|
98
|
+
params=query_params if query_params else None,
|
|
99
|
+
body=body,
|
|
100
|
+
exp_status=exp_status,
|
|
101
|
+
headers=header_params if header_params else None,
|
|
102
|
+
context_msg=None,
|
|
103
|
+
aspects=aspects,
|
|
104
|
+
)
|
|
105
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
106
|
+
rtnval = None
|
|
107
|
+
else:
|
|
108
|
+
rtnval = resp.json()
|
|
109
|
+
return rtnval
|
|
110
|
+
|
|
111
|
+
def create_repository_advisory(self, owner: str, repo: str, body: RepositoryAdvisoryCreate, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
112
|
+
"""
|
|
113
|
+
Create a repository security advisory
|
|
114
|
+
|
|
115
|
+
Creates a new repository security advisory.
|
|
116
|
+
|
|
117
|
+
In order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
|
|
118
|
+
|
|
119
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
|
|
120
|
+
"""
|
|
121
|
+
client = self.client
|
|
122
|
+
if aspects is None:
|
|
123
|
+
aspects = client.aspects
|
|
124
|
+
|
|
125
|
+
header_params = client.headers
|
|
126
|
+
if headers is not None:
|
|
127
|
+
header_params = headers
|
|
128
|
+
|
|
129
|
+
leaf_template = "/repos/{owner}/{repo}/security-advisories"
|
|
130
|
+
path_params = {
|
|
131
|
+
'owner': owner,
|
|
132
|
+
'repo': repo,
|
|
133
|
+
}
|
|
134
|
+
call_leaf = leaf_template.format(**path_params)
|
|
135
|
+
|
|
136
|
+
query_params = None
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
if exp_status is None:
|
|
140
|
+
exp_status = [201]
|
|
141
|
+
|
|
142
|
+
resp = client.perform_call(
|
|
143
|
+
leaf=call_leaf,
|
|
144
|
+
method="POST",
|
|
145
|
+
params=query_params if query_params else None,
|
|
146
|
+
body=body,
|
|
147
|
+
exp_status=exp_status,
|
|
148
|
+
headers=header_params if header_params else None,
|
|
149
|
+
context_msg=None,
|
|
150
|
+
aspects=aspects,
|
|
151
|
+
)
|
|
152
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
153
|
+
rtnval = None
|
|
154
|
+
else:
|
|
155
|
+
rtnval = resp.json()
|
|
156
|
+
return rtnval
|
|
157
|
+
|
|
158
|
+
def create_repository_advisory_cve_request(self, owner: str, repo: str, ghsa_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
159
|
+
"""
|
|
160
|
+
Request a CVE for a repository security advisory
|
|
161
|
+
|
|
162
|
+
If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see "[Requesting a CVE identification number](https://docs.github.com/code-security/security-advisories/repository-security-advisories/publishing-a-repository-security-advisory#requesting-a-cve-identification-number-optional)."
|
|
163
|
+
|
|
164
|
+
You may request a CVE for public repositories, but cannot do so for private repositories.
|
|
165
|
+
|
|
166
|
+
In order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
|
|
167
|
+
|
|
168
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
|
|
169
|
+
"""
|
|
170
|
+
client = self.client
|
|
171
|
+
if aspects is None:
|
|
172
|
+
aspects = client.aspects
|
|
173
|
+
|
|
174
|
+
header_params = client.headers
|
|
175
|
+
if headers is not None:
|
|
176
|
+
header_params = headers
|
|
177
|
+
|
|
178
|
+
leaf_template = "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
|
179
|
+
path_params = {
|
|
180
|
+
'owner': owner,
|
|
181
|
+
'repo': repo,
|
|
182
|
+
'ghsa_id': ghsa_id,
|
|
183
|
+
}
|
|
184
|
+
call_leaf = leaf_template.format(**path_params)
|
|
185
|
+
|
|
186
|
+
query_params = None
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
if exp_status is None:
|
|
190
|
+
exp_status = [202]
|
|
191
|
+
|
|
192
|
+
resp = client.perform_call(
|
|
193
|
+
leaf=call_leaf,
|
|
194
|
+
method="POST",
|
|
195
|
+
params=query_params if query_params else None,
|
|
196
|
+
body=None,
|
|
197
|
+
exp_status=exp_status,
|
|
198
|
+
headers=header_params if header_params else None,
|
|
199
|
+
context_msg=None,
|
|
200
|
+
aspects=aspects,
|
|
201
|
+
)
|
|
202
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
203
|
+
rtnval = None
|
|
204
|
+
else:
|
|
205
|
+
rtnval = resp.json()
|
|
206
|
+
return rtnval
|
|
207
|
+
|
|
208
|
+
def get_global_advisory(self, ghsa_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GlobalAdvisory:
|
|
209
|
+
"""
|
|
210
|
+
Get a global security advisory
|
|
211
|
+
|
|
212
|
+
Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
|
|
213
|
+
"""
|
|
214
|
+
client = self.client
|
|
215
|
+
if aspects is None:
|
|
216
|
+
aspects = client.aspects
|
|
217
|
+
|
|
218
|
+
header_params = client.headers
|
|
219
|
+
if headers is not None:
|
|
220
|
+
header_params = headers
|
|
221
|
+
|
|
222
|
+
leaf_template = "/advisories/{ghsa_id}"
|
|
223
|
+
path_params = {
|
|
224
|
+
'ghsa_id': ghsa_id,
|
|
225
|
+
}
|
|
226
|
+
call_leaf = leaf_template.format(**path_params)
|
|
227
|
+
|
|
228
|
+
query_params = None
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
if exp_status is None:
|
|
232
|
+
exp_status = [200]
|
|
233
|
+
|
|
234
|
+
resp = client.perform_call(
|
|
235
|
+
leaf=call_leaf,
|
|
236
|
+
method="GET",
|
|
237
|
+
params=query_params if query_params else None,
|
|
238
|
+
body=None,
|
|
239
|
+
exp_status=exp_status,
|
|
240
|
+
headers=header_params if header_params else None,
|
|
241
|
+
context_msg=None,
|
|
242
|
+
aspects=aspects,
|
|
243
|
+
)
|
|
244
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
245
|
+
rtnobj = None
|
|
246
|
+
else:
|
|
247
|
+
raw_data = resp.json()
|
|
248
|
+
rtnobj = GlobalAdvisory.from_dict(raw_data)
|
|
249
|
+
return rtnobj
|
|
250
|
+
|
|
251
|
+
def get_repository_advisory(self, owner: str, repo: str, ghsa_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> RepositoryAdvisory:
|
|
252
|
+
"""
|
|
253
|
+
Get a repository security advisory
|
|
254
|
+
|
|
255
|
+
Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
|
|
256
|
+
|
|
257
|
+
Anyone can access any published security advisory on a public repository.
|
|
258
|
+
|
|
259
|
+
The authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a
|
|
260
|
+
collaborator on the security advisory.
|
|
261
|
+
|
|
262
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:read` scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
|
|
263
|
+
"""
|
|
264
|
+
client = self.client
|
|
265
|
+
if aspects is None:
|
|
266
|
+
aspects = client.aspects
|
|
267
|
+
|
|
268
|
+
header_params = client.headers
|
|
269
|
+
if headers is not None:
|
|
270
|
+
header_params = headers
|
|
271
|
+
|
|
272
|
+
leaf_template = "/repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
273
|
+
path_params = {
|
|
274
|
+
'owner': owner,
|
|
275
|
+
'repo': repo,
|
|
276
|
+
'ghsa_id': ghsa_id,
|
|
277
|
+
}
|
|
278
|
+
call_leaf = leaf_template.format(**path_params)
|
|
279
|
+
|
|
280
|
+
query_params = None
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
if exp_status is None:
|
|
284
|
+
exp_status = [200]
|
|
285
|
+
|
|
286
|
+
resp = client.perform_call(
|
|
287
|
+
leaf=call_leaf,
|
|
288
|
+
method="GET",
|
|
289
|
+
params=query_params if query_params else None,
|
|
290
|
+
body=None,
|
|
291
|
+
exp_status=exp_status,
|
|
292
|
+
headers=header_params if header_params else None,
|
|
293
|
+
context_msg=None,
|
|
294
|
+
aspects=aspects,
|
|
295
|
+
)
|
|
296
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
297
|
+
rtnobj = None
|
|
298
|
+
else:
|
|
299
|
+
raw_data = resp.json()
|
|
300
|
+
rtnobj = RepositoryAdvisory.from_dict(raw_data)
|
|
301
|
+
return rtnobj
|
|
302
|
+
|
|
303
|
+
def list_global_advisories(self, *, ghsa_id: Optional[str] = None, type: Optional[str] = "reviewed", cve_id: Optional[str] = None, ecosystem: Optional[str] = None, severity: Optional[str] = None, cwes: Optional[Union[str, List[str]]] = None, is_withdrawn: Optional[bool] = None, affects: Optional[Union[str, List[str]]] = None, published: Optional[str] = None, updated: Optional[str] = None, modified: Optional[str] = None, epss_percentage: Optional[str] = None, epss_percentile: Optional[str] = None, before: Optional[str] = None, after: Optional[str] = None, direction: Optional[str] = "desc", per_page: Optional[int] = 30, sort: Optional[str] = "published", exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[GlobalAdvisory]:
|
|
304
|
+
"""
|
|
305
|
+
List global security advisories
|
|
306
|
+
|
|
307
|
+
Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
|
|
308
|
+
|
|
309
|
+
By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)."
|
|
310
|
+
"""
|
|
311
|
+
client = self.client
|
|
312
|
+
if aspects is None:
|
|
313
|
+
aspects = client.aspects
|
|
314
|
+
|
|
315
|
+
header_params = client.headers
|
|
316
|
+
if headers is not None:
|
|
317
|
+
header_params = headers
|
|
318
|
+
|
|
319
|
+
call_leaf = "/advisories"
|
|
320
|
+
|
|
321
|
+
query_params = {}
|
|
322
|
+
if ghsa_id is not None:
|
|
323
|
+
query_params['ghsa_id'] = ghsa_id
|
|
324
|
+
if type is not None:
|
|
325
|
+
query_params['type'] = type
|
|
326
|
+
if cve_id is not None:
|
|
327
|
+
query_params['cve_id'] = cve_id
|
|
328
|
+
if ecosystem is not None:
|
|
329
|
+
query_params['ecosystem'] = ecosystem
|
|
330
|
+
if severity is not None:
|
|
331
|
+
query_params['severity'] = severity
|
|
332
|
+
if cwes is not None:
|
|
333
|
+
query_params['cwes'] = cwes
|
|
334
|
+
if is_withdrawn is not None:
|
|
335
|
+
query_params['is_withdrawn'] = is_withdrawn
|
|
336
|
+
if affects is not None:
|
|
337
|
+
query_params['affects'] = affects
|
|
338
|
+
if published is not None:
|
|
339
|
+
query_params['published'] = published
|
|
340
|
+
if updated is not None:
|
|
341
|
+
query_params['updated'] = updated
|
|
342
|
+
if modified is not None:
|
|
343
|
+
query_params['modified'] = modified
|
|
344
|
+
if epss_percentage is not None:
|
|
345
|
+
query_params['epss_percentage'] = epss_percentage
|
|
346
|
+
if epss_percentile is not None:
|
|
347
|
+
query_params['epss_percentile'] = epss_percentile
|
|
348
|
+
if before is not None:
|
|
349
|
+
query_params['before'] = before
|
|
350
|
+
if after is not None:
|
|
351
|
+
query_params['after'] = after
|
|
352
|
+
if direction is not None:
|
|
353
|
+
query_params['direction'] = direction
|
|
354
|
+
if per_page is not None:
|
|
355
|
+
query_params['per_page'] = per_page
|
|
356
|
+
if sort is not None:
|
|
357
|
+
query_params['sort'] = sort
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
if exp_status is None:
|
|
361
|
+
exp_status = [200]
|
|
362
|
+
|
|
363
|
+
resp = client.perform_call(
|
|
364
|
+
leaf=call_leaf,
|
|
365
|
+
method="GET",
|
|
366
|
+
params=query_params if query_params else None,
|
|
367
|
+
body=None,
|
|
368
|
+
exp_status=exp_status,
|
|
369
|
+
headers=header_params if header_params else None,
|
|
370
|
+
context_msg=None,
|
|
371
|
+
aspects=aspects,
|
|
372
|
+
)
|
|
373
|
+
raw_data = resp.json()
|
|
374
|
+
items = [self._parse_item(item, GlobalAdvisory) for item in raw_data]
|
|
375
|
+
rtnval = PagedList[GlobalAdvisory](items, dict(resp.headers), raw_data)
|
|
376
|
+
return rtnval
|
|
377
|
+
|
|
378
|
+
def list_org_repository_advisories(self, org: str, *, direction: Optional[str] = "desc", sort: Optional[str] = "created", before: Optional[str] = None, after: Optional[str] = None, per_page: Optional[int] = 30, state: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[RepositoryAdvisory]:
|
|
379
|
+
"""
|
|
380
|
+
List repository security advisories for an organization
|
|
381
|
+
|
|
382
|
+
Lists repository security advisories for an organization.
|
|
383
|
+
|
|
384
|
+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
|
|
385
|
+
|
|
386
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
|
|
387
|
+
"""
|
|
388
|
+
client = self.client
|
|
389
|
+
if aspects is None:
|
|
390
|
+
aspects = client.aspects
|
|
391
|
+
|
|
392
|
+
header_params = client.headers
|
|
393
|
+
if headers is not None:
|
|
394
|
+
header_params = headers
|
|
395
|
+
|
|
396
|
+
leaf_template = "/orgs/{org}/security-advisories"
|
|
397
|
+
path_params = {
|
|
398
|
+
'org': org,
|
|
399
|
+
}
|
|
400
|
+
call_leaf = leaf_template.format(**path_params)
|
|
401
|
+
|
|
402
|
+
query_params = {}
|
|
403
|
+
if direction is not None:
|
|
404
|
+
query_params['direction'] = direction
|
|
405
|
+
if sort is not None:
|
|
406
|
+
query_params['sort'] = sort
|
|
407
|
+
if before is not None:
|
|
408
|
+
query_params['before'] = before
|
|
409
|
+
if after is not None:
|
|
410
|
+
query_params['after'] = after
|
|
411
|
+
if per_page is not None:
|
|
412
|
+
query_params['per_page'] = per_page
|
|
413
|
+
if state is not None:
|
|
414
|
+
query_params['state'] = state
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
if exp_status is None:
|
|
418
|
+
exp_status = [200]
|
|
419
|
+
|
|
420
|
+
resp = client.perform_call(
|
|
421
|
+
leaf=call_leaf,
|
|
422
|
+
method="GET",
|
|
423
|
+
params=query_params if query_params else None,
|
|
424
|
+
body=None,
|
|
425
|
+
exp_status=exp_status,
|
|
426
|
+
headers=header_params if header_params else None,
|
|
427
|
+
context_msg=None,
|
|
428
|
+
aspects=aspects,
|
|
429
|
+
)
|
|
430
|
+
raw_data = resp.json()
|
|
431
|
+
items = [self._parse_item(item, RepositoryAdvisory) for item in raw_data]
|
|
432
|
+
rtnval = PagedList[RepositoryAdvisory](items, dict(resp.headers), raw_data)
|
|
433
|
+
return rtnval
|
|
434
|
+
|
|
435
|
+
def list_repository_advisories(self, owner: str, repo: str, *, direction: Optional[str] = "desc", sort: Optional[str] = "created", before: Optional[str] = None, after: Optional[str] = None, per_page: Optional[int] = 30, state: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[RepositoryAdvisory]:
|
|
436
|
+
"""
|
|
437
|
+
List repository security advisories
|
|
438
|
+
|
|
439
|
+
Lists security advisories in a repository.
|
|
440
|
+
|
|
441
|
+
The authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
|
|
442
|
+
|
|
443
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:read` scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
|
|
444
|
+
"""
|
|
445
|
+
client = self.client
|
|
446
|
+
if aspects is None:
|
|
447
|
+
aspects = client.aspects
|
|
448
|
+
|
|
449
|
+
header_params = client.headers
|
|
450
|
+
if headers is not None:
|
|
451
|
+
header_params = headers
|
|
452
|
+
|
|
453
|
+
leaf_template = "/repos/{owner}/{repo}/security-advisories"
|
|
454
|
+
path_params = {
|
|
455
|
+
'owner': owner,
|
|
456
|
+
'repo': repo,
|
|
457
|
+
}
|
|
458
|
+
call_leaf = leaf_template.format(**path_params)
|
|
459
|
+
|
|
460
|
+
query_params = {}
|
|
461
|
+
if direction is not None:
|
|
462
|
+
query_params['direction'] = direction
|
|
463
|
+
if sort is not None:
|
|
464
|
+
query_params['sort'] = sort
|
|
465
|
+
if before is not None:
|
|
466
|
+
query_params['before'] = before
|
|
467
|
+
if after is not None:
|
|
468
|
+
query_params['after'] = after
|
|
469
|
+
if per_page is not None:
|
|
470
|
+
query_params['per_page'] = per_page
|
|
471
|
+
if state is not None:
|
|
472
|
+
query_params['state'] = state
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
if exp_status is None:
|
|
476
|
+
exp_status = [200]
|
|
477
|
+
|
|
478
|
+
resp = client.perform_call(
|
|
479
|
+
leaf=call_leaf,
|
|
480
|
+
method="GET",
|
|
481
|
+
params=query_params if query_params else None,
|
|
482
|
+
body=None,
|
|
483
|
+
exp_status=exp_status,
|
|
484
|
+
headers=header_params if header_params else None,
|
|
485
|
+
context_msg=None,
|
|
486
|
+
aspects=aspects,
|
|
487
|
+
)
|
|
488
|
+
raw_data = resp.json()
|
|
489
|
+
items = [self._parse_item(item, RepositoryAdvisory) for item in raw_data]
|
|
490
|
+
rtnval = PagedList[RepositoryAdvisory](items, dict(resp.headers), raw_data)
|
|
491
|
+
return rtnval
|
|
492
|
+
|
|
493
|
+
def update_repository_advisory(self, owner: str, repo: str, ghsa_id: str, body: RepositoryAdvisoryUpdate, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> RepositoryAdvisory:
|
|
494
|
+
"""
|
|
495
|
+
Update a repository security advisory
|
|
496
|
+
|
|
497
|
+
Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
|
|
498
|
+
|
|
499
|
+
In order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,
|
|
500
|
+
or a collaborator on the repository security advisory.
|
|
501
|
+
|
|
502
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
|
|
503
|
+
"""
|
|
504
|
+
client = self.client
|
|
505
|
+
if aspects is None:
|
|
506
|
+
aspects = client.aspects
|
|
507
|
+
|
|
508
|
+
header_params = client.headers
|
|
509
|
+
if headers is not None:
|
|
510
|
+
header_params = headers
|
|
511
|
+
|
|
512
|
+
leaf_template = "/repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
513
|
+
path_params = {
|
|
514
|
+
'owner': owner,
|
|
515
|
+
'repo': repo,
|
|
516
|
+
'ghsa_id': ghsa_id,
|
|
517
|
+
}
|
|
518
|
+
call_leaf = leaf_template.format(**path_params)
|
|
519
|
+
|
|
520
|
+
query_params = None
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
if exp_status is None:
|
|
524
|
+
exp_status = [200]
|
|
525
|
+
|
|
526
|
+
resp = client.perform_call(
|
|
527
|
+
leaf=call_leaf,
|
|
528
|
+
method="PATCH",
|
|
529
|
+
params=query_params if query_params else None,
|
|
530
|
+
body=body,
|
|
531
|
+
exp_status=exp_status,
|
|
532
|
+
headers=header_params if header_params else None,
|
|
533
|
+
context_msg=None,
|
|
534
|
+
aspects=aspects,
|
|
535
|
+
)
|
|
536
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
537
|
+
rtnobj = None
|
|
538
|
+
else:
|
|
539
|
+
raw_data = resp.json()
|
|
540
|
+
rtnobj = RepositoryAdvisory.from_dict(raw_data)
|
|
541
|
+
return rtnobj
|