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,568 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional
|
|
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.secretscanning import OrganizationSecretScanningAlert
|
|
9
|
+
from ccai.restclient.github.public.schemas.secretscanning import SecretScanningAlert
|
|
10
|
+
from ccai.restclient.github.public.schemas.secretscanning import SecretScanningLocation
|
|
11
|
+
from ccai.restclient.github.public.schemas.secretscanning import SecretScanningPatternConfiguration
|
|
12
|
+
from ccai.restclient.github.public.schemas.secretscanning import SecretScanningPushProtectionBypass
|
|
13
|
+
from ccai.restclient.github.public.schemas.secretscanning import SecretScanningScanHistory
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class SecretScanningApiGroup(RestApiGroup):
|
|
17
|
+
"""
|
|
18
|
+
Retrieve secret scanning alerts from a repository.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
def create_push_protection_bypass(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> SecretScanningPushProtectionBypass:
|
|
22
|
+
"""
|
|
23
|
+
Create a push protection bypass
|
|
24
|
+
|
|
25
|
+
Creates a bypass for a previously push protected secret.
|
|
26
|
+
|
|
27
|
+
The authenticated user must be the original author of the committed secret.
|
|
28
|
+
|
|
29
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
|
|
30
|
+
"""
|
|
31
|
+
client = self.client
|
|
32
|
+
if aspects is None:
|
|
33
|
+
aspects = client.aspects
|
|
34
|
+
|
|
35
|
+
header_params = client.headers
|
|
36
|
+
if headers is not None:
|
|
37
|
+
header_params = headers
|
|
38
|
+
|
|
39
|
+
leaf_template = "/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"
|
|
40
|
+
path_params = {
|
|
41
|
+
'owner': owner,
|
|
42
|
+
'repo': repo,
|
|
43
|
+
}
|
|
44
|
+
call_leaf = leaf_template.format(**path_params)
|
|
45
|
+
|
|
46
|
+
query_params = None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if exp_status is None:
|
|
50
|
+
exp_status = [200]
|
|
51
|
+
|
|
52
|
+
resp = client.perform_call(
|
|
53
|
+
leaf=call_leaf,
|
|
54
|
+
method="POST",
|
|
55
|
+
params=query_params if query_params else None,
|
|
56
|
+
body=body,
|
|
57
|
+
exp_status=exp_status,
|
|
58
|
+
headers=header_params if header_params else None,
|
|
59
|
+
context_msg=None,
|
|
60
|
+
aspects=aspects,
|
|
61
|
+
)
|
|
62
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
63
|
+
rtnobj = None
|
|
64
|
+
else:
|
|
65
|
+
raw_data = resp.json()
|
|
66
|
+
rtnobj = SecretScanningPushProtectionBypass.from_dict(raw_data)
|
|
67
|
+
return rtnobj
|
|
68
|
+
|
|
69
|
+
def get_alert(self, owner: str, repo: str, alert_number: int, *, hide_secret: Optional[bool] = False, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> SecretScanningAlert:
|
|
70
|
+
"""
|
|
71
|
+
Get a secret scanning alert
|
|
72
|
+
|
|
73
|
+
Gets a single secret scanning alert detected in an eligible repository.
|
|
74
|
+
|
|
75
|
+
The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
|
|
76
|
+
|
|
77
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
|
|
78
|
+
"""
|
|
79
|
+
client = self.client
|
|
80
|
+
if aspects is None:
|
|
81
|
+
aspects = client.aspects
|
|
82
|
+
|
|
83
|
+
header_params = client.headers
|
|
84
|
+
if headers is not None:
|
|
85
|
+
header_params = headers
|
|
86
|
+
|
|
87
|
+
leaf_template = "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
88
|
+
path_params = {
|
|
89
|
+
'owner': owner,
|
|
90
|
+
'repo': repo,
|
|
91
|
+
'alert_number': alert_number,
|
|
92
|
+
}
|
|
93
|
+
call_leaf = leaf_template.format(**path_params)
|
|
94
|
+
|
|
95
|
+
query_params = {}
|
|
96
|
+
if hide_secret is not None:
|
|
97
|
+
query_params['hide_secret'] = hide_secret
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
if exp_status is None:
|
|
101
|
+
exp_status = [200]
|
|
102
|
+
|
|
103
|
+
resp = client.perform_call(
|
|
104
|
+
leaf=call_leaf,
|
|
105
|
+
method="GET",
|
|
106
|
+
params=query_params if query_params else None,
|
|
107
|
+
body=None,
|
|
108
|
+
exp_status=exp_status,
|
|
109
|
+
headers=header_params if header_params else None,
|
|
110
|
+
context_msg=None,
|
|
111
|
+
aspects=aspects,
|
|
112
|
+
)
|
|
113
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
114
|
+
rtnobj = None
|
|
115
|
+
else:
|
|
116
|
+
raw_data = resp.json()
|
|
117
|
+
rtnobj = SecretScanningAlert.from_dict(raw_data)
|
|
118
|
+
return rtnobj
|
|
119
|
+
|
|
120
|
+
def get_scan_history(self, owner: str, repo: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> SecretScanningScanHistory:
|
|
121
|
+
"""
|
|
122
|
+
Get secret scanning scan history for a repository
|
|
123
|
+
|
|
124
|
+
Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
|
|
125
|
+
|
|
126
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
|
|
127
|
+
"""
|
|
128
|
+
client = self.client
|
|
129
|
+
if aspects is None:
|
|
130
|
+
aspects = client.aspects
|
|
131
|
+
|
|
132
|
+
header_params = client.headers
|
|
133
|
+
if headers is not None:
|
|
134
|
+
header_params = headers
|
|
135
|
+
|
|
136
|
+
leaf_template = "/repos/{owner}/{repo}/secret-scanning/scan-history"
|
|
137
|
+
path_params = {
|
|
138
|
+
'owner': owner,
|
|
139
|
+
'repo': repo,
|
|
140
|
+
}
|
|
141
|
+
call_leaf = leaf_template.format(**path_params)
|
|
142
|
+
|
|
143
|
+
query_params = None
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
if exp_status is None:
|
|
147
|
+
exp_status = [200]
|
|
148
|
+
|
|
149
|
+
resp = client.perform_call(
|
|
150
|
+
leaf=call_leaf,
|
|
151
|
+
method="GET",
|
|
152
|
+
params=query_params if query_params else None,
|
|
153
|
+
body=None,
|
|
154
|
+
exp_status=exp_status,
|
|
155
|
+
headers=header_params if header_params else None,
|
|
156
|
+
context_msg=None,
|
|
157
|
+
aspects=aspects,
|
|
158
|
+
)
|
|
159
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
160
|
+
rtnobj = None
|
|
161
|
+
else:
|
|
162
|
+
raw_data = resp.json()
|
|
163
|
+
rtnobj = SecretScanningScanHistory.from_dict(raw_data)
|
|
164
|
+
return rtnobj
|
|
165
|
+
|
|
166
|
+
def list_alerts_for_enterprise(self, enterprise: str, *, state: Optional[str] = None, secret_type: Optional[str] = None, resolution: Optional[str] = None, sort: Optional[str] = "created", direction: Optional[str] = "desc", per_page: Optional[int] = 30, before: Optional[str] = None, after: Optional[str] = None, validity: Optional[str] = None, is_publicly_leaked: Optional[bool] = False, is_multi_repo: Optional[bool] = False, hide_secret: Optional[bool] = False, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[OrganizationSecretScanningAlert]:
|
|
167
|
+
"""
|
|
168
|
+
List secret scanning alerts for an enterprise
|
|
169
|
+
|
|
170
|
+
Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.
|
|
171
|
+
|
|
172
|
+
Alerts are only returned for organizations in the enterprise for which the authenticated user is an organization owner or a [security manager](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).
|
|
173
|
+
|
|
174
|
+
The authenticated user must be a member of the enterprise in order to use this endpoint.
|
|
175
|
+
|
|
176
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope or `security_events` scope to use this endpoint.
|
|
177
|
+
"""
|
|
178
|
+
client = self.client
|
|
179
|
+
if aspects is None:
|
|
180
|
+
aspects = client.aspects
|
|
181
|
+
|
|
182
|
+
header_params = client.headers
|
|
183
|
+
if headers is not None:
|
|
184
|
+
header_params = headers
|
|
185
|
+
|
|
186
|
+
leaf_template = "/enterprises/{enterprise}/secret-scanning/alerts"
|
|
187
|
+
path_params = {
|
|
188
|
+
'enterprise': enterprise,
|
|
189
|
+
}
|
|
190
|
+
call_leaf = leaf_template.format(**path_params)
|
|
191
|
+
|
|
192
|
+
query_params = {}
|
|
193
|
+
if state is not None:
|
|
194
|
+
query_params['state'] = state
|
|
195
|
+
if secret_type is not None:
|
|
196
|
+
query_params['secret_type'] = secret_type
|
|
197
|
+
if resolution is not None:
|
|
198
|
+
query_params['resolution'] = resolution
|
|
199
|
+
if sort is not None:
|
|
200
|
+
query_params['sort'] = sort
|
|
201
|
+
if direction is not None:
|
|
202
|
+
query_params['direction'] = direction
|
|
203
|
+
if per_page is not None:
|
|
204
|
+
query_params['per_page'] = per_page
|
|
205
|
+
if before is not None:
|
|
206
|
+
query_params['before'] = before
|
|
207
|
+
if after is not None:
|
|
208
|
+
query_params['after'] = after
|
|
209
|
+
if validity is not None:
|
|
210
|
+
query_params['validity'] = validity
|
|
211
|
+
if is_publicly_leaked is not None:
|
|
212
|
+
query_params['is_publicly_leaked'] = is_publicly_leaked
|
|
213
|
+
if is_multi_repo is not None:
|
|
214
|
+
query_params['is_multi_repo'] = is_multi_repo
|
|
215
|
+
if hide_secret is not None:
|
|
216
|
+
query_params['hide_secret'] = hide_secret
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
if exp_status is None:
|
|
220
|
+
exp_status = [200]
|
|
221
|
+
|
|
222
|
+
resp = client.perform_call(
|
|
223
|
+
leaf=call_leaf,
|
|
224
|
+
method="GET",
|
|
225
|
+
params=query_params if query_params else None,
|
|
226
|
+
body=None,
|
|
227
|
+
exp_status=exp_status,
|
|
228
|
+
headers=header_params if header_params else None,
|
|
229
|
+
context_msg=None,
|
|
230
|
+
aspects=aspects,
|
|
231
|
+
)
|
|
232
|
+
raw_data = resp.json()
|
|
233
|
+
items = [self._parse_item(item, OrganizationSecretScanningAlert) for item in raw_data]
|
|
234
|
+
rtnval = PagedList[OrganizationSecretScanningAlert](items, dict(resp.headers), raw_data)
|
|
235
|
+
return rtnval
|
|
236
|
+
|
|
237
|
+
def list_alerts_for_org(self, org: str, *, state: Optional[str] = None, secret_type: Optional[str] = None, resolution: Optional[str] = None, sort: Optional[str] = "created", direction: Optional[str] = "desc", page: Optional[int] = 1, per_page: Optional[int] = 30, before: Optional[str] = None, after: Optional[str] = None, validity: Optional[str] = None, is_publicly_leaked: Optional[bool] = False, is_multi_repo: Optional[bool] = False, hide_secret: Optional[bool] = False, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[OrganizationSecretScanningAlert]:
|
|
238
|
+
"""
|
|
239
|
+
List secret scanning alerts for an organization
|
|
240
|
+
|
|
241
|
+
Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.
|
|
242
|
+
|
|
243
|
+
The authenticated user must be an administrator or security manager for the organization to use this endpoint.
|
|
244
|
+
|
|
245
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
|
|
246
|
+
"""
|
|
247
|
+
client = self.client
|
|
248
|
+
if aspects is None:
|
|
249
|
+
aspects = client.aspects
|
|
250
|
+
|
|
251
|
+
header_params = client.headers
|
|
252
|
+
if headers is not None:
|
|
253
|
+
header_params = headers
|
|
254
|
+
|
|
255
|
+
leaf_template = "/orgs/{org}/secret-scanning/alerts"
|
|
256
|
+
path_params = {
|
|
257
|
+
'org': org,
|
|
258
|
+
}
|
|
259
|
+
call_leaf = leaf_template.format(**path_params)
|
|
260
|
+
|
|
261
|
+
query_params = {}
|
|
262
|
+
if state is not None:
|
|
263
|
+
query_params['state'] = state
|
|
264
|
+
if secret_type is not None:
|
|
265
|
+
query_params['secret_type'] = secret_type
|
|
266
|
+
if resolution is not None:
|
|
267
|
+
query_params['resolution'] = resolution
|
|
268
|
+
if sort is not None:
|
|
269
|
+
query_params['sort'] = sort
|
|
270
|
+
if direction is not None:
|
|
271
|
+
query_params['direction'] = direction
|
|
272
|
+
if page is not None:
|
|
273
|
+
query_params['page'] = page
|
|
274
|
+
if per_page is not None:
|
|
275
|
+
query_params['per_page'] = per_page
|
|
276
|
+
if before is not None:
|
|
277
|
+
query_params['before'] = before
|
|
278
|
+
if after is not None:
|
|
279
|
+
query_params['after'] = after
|
|
280
|
+
if validity is not None:
|
|
281
|
+
query_params['validity'] = validity
|
|
282
|
+
if is_publicly_leaked is not None:
|
|
283
|
+
query_params['is_publicly_leaked'] = is_publicly_leaked
|
|
284
|
+
if is_multi_repo is not None:
|
|
285
|
+
query_params['is_multi_repo'] = is_multi_repo
|
|
286
|
+
if hide_secret is not None:
|
|
287
|
+
query_params['hide_secret'] = hide_secret
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
if exp_status is None:
|
|
291
|
+
exp_status = [200]
|
|
292
|
+
|
|
293
|
+
resp = client.perform_call(
|
|
294
|
+
leaf=call_leaf,
|
|
295
|
+
method="GET",
|
|
296
|
+
params=query_params if query_params else None,
|
|
297
|
+
body=None,
|
|
298
|
+
exp_status=exp_status,
|
|
299
|
+
headers=header_params if header_params else None,
|
|
300
|
+
context_msg=None,
|
|
301
|
+
aspects=aspects,
|
|
302
|
+
)
|
|
303
|
+
raw_data = resp.json()
|
|
304
|
+
items = [self._parse_item(item, OrganizationSecretScanningAlert) for item in raw_data]
|
|
305
|
+
rtnval = PagedList[OrganizationSecretScanningAlert](items, dict(resp.headers), raw_data)
|
|
306
|
+
return rtnval
|
|
307
|
+
|
|
308
|
+
def list_alerts_for_repo(self, owner: str, repo: str, *, state: Optional[str] = None, secret_type: Optional[str] = None, resolution: Optional[str] = None, sort: Optional[str] = "created", direction: Optional[str] = "desc", page: Optional[int] = 1, per_page: Optional[int] = 30, before: Optional[str] = None, after: Optional[str] = None, validity: Optional[str] = None, is_publicly_leaked: Optional[bool] = False, is_multi_repo: Optional[bool] = False, hide_secret: Optional[bool] = False, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[SecretScanningAlert]:
|
|
309
|
+
"""
|
|
310
|
+
List secret scanning alerts for a repository
|
|
311
|
+
|
|
312
|
+
Lists secret scanning alerts for an eligible repository, from newest to oldest.
|
|
313
|
+
|
|
314
|
+
The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
|
|
315
|
+
|
|
316
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
|
|
317
|
+
"""
|
|
318
|
+
client = self.client
|
|
319
|
+
if aspects is None:
|
|
320
|
+
aspects = client.aspects
|
|
321
|
+
|
|
322
|
+
header_params = client.headers
|
|
323
|
+
if headers is not None:
|
|
324
|
+
header_params = headers
|
|
325
|
+
|
|
326
|
+
leaf_template = "/repos/{owner}/{repo}/secret-scanning/alerts"
|
|
327
|
+
path_params = {
|
|
328
|
+
'owner': owner,
|
|
329
|
+
'repo': repo,
|
|
330
|
+
}
|
|
331
|
+
call_leaf = leaf_template.format(**path_params)
|
|
332
|
+
|
|
333
|
+
query_params = {}
|
|
334
|
+
if state is not None:
|
|
335
|
+
query_params['state'] = state
|
|
336
|
+
if secret_type is not None:
|
|
337
|
+
query_params['secret_type'] = secret_type
|
|
338
|
+
if resolution is not None:
|
|
339
|
+
query_params['resolution'] = resolution
|
|
340
|
+
if sort is not None:
|
|
341
|
+
query_params['sort'] = sort
|
|
342
|
+
if direction is not None:
|
|
343
|
+
query_params['direction'] = direction
|
|
344
|
+
if page is not None:
|
|
345
|
+
query_params['page'] = page
|
|
346
|
+
if per_page is not None:
|
|
347
|
+
query_params['per_page'] = per_page
|
|
348
|
+
if before is not None:
|
|
349
|
+
query_params['before'] = before
|
|
350
|
+
if after is not None:
|
|
351
|
+
query_params['after'] = after
|
|
352
|
+
if validity is not None:
|
|
353
|
+
query_params['validity'] = validity
|
|
354
|
+
if is_publicly_leaked is not None:
|
|
355
|
+
query_params['is_publicly_leaked'] = is_publicly_leaked
|
|
356
|
+
if is_multi_repo is not None:
|
|
357
|
+
query_params['is_multi_repo'] = is_multi_repo
|
|
358
|
+
if hide_secret is not None:
|
|
359
|
+
query_params['hide_secret'] = hide_secret
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
if exp_status is None:
|
|
363
|
+
exp_status = [200]
|
|
364
|
+
|
|
365
|
+
resp = client.perform_call(
|
|
366
|
+
leaf=call_leaf,
|
|
367
|
+
method="GET",
|
|
368
|
+
params=query_params if query_params else None,
|
|
369
|
+
body=None,
|
|
370
|
+
exp_status=exp_status,
|
|
371
|
+
headers=header_params if header_params else None,
|
|
372
|
+
context_msg=None,
|
|
373
|
+
aspects=aspects,
|
|
374
|
+
)
|
|
375
|
+
raw_data = resp.json()
|
|
376
|
+
items = [self._parse_item(item, SecretScanningAlert) for item in raw_data]
|
|
377
|
+
rtnval = PagedList[SecretScanningAlert](items, dict(resp.headers), raw_data)
|
|
378
|
+
return rtnval
|
|
379
|
+
|
|
380
|
+
def list_locations_for_alert(self, owner: str, repo: str, alert_number: int, *, page: Optional[int] = 1, per_page: Optional[int] = 30, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[SecretScanningLocation]:
|
|
381
|
+
"""
|
|
382
|
+
List locations for a secret scanning alert
|
|
383
|
+
|
|
384
|
+
Lists all locations for a given secret scanning alert for an eligible repository.
|
|
385
|
+
|
|
386
|
+
The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
|
|
387
|
+
|
|
388
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
|
|
389
|
+
"""
|
|
390
|
+
client = self.client
|
|
391
|
+
if aspects is None:
|
|
392
|
+
aspects = client.aspects
|
|
393
|
+
|
|
394
|
+
header_params = client.headers
|
|
395
|
+
if headers is not None:
|
|
396
|
+
header_params = headers
|
|
397
|
+
|
|
398
|
+
leaf_template = "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
399
|
+
path_params = {
|
|
400
|
+
'owner': owner,
|
|
401
|
+
'repo': repo,
|
|
402
|
+
'alert_number': alert_number,
|
|
403
|
+
}
|
|
404
|
+
call_leaf = leaf_template.format(**path_params)
|
|
405
|
+
|
|
406
|
+
query_params = {}
|
|
407
|
+
if page is not None:
|
|
408
|
+
query_params['page'] = page
|
|
409
|
+
if per_page is not None:
|
|
410
|
+
query_params['per_page'] = per_page
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
if exp_status is None:
|
|
414
|
+
exp_status = [200]
|
|
415
|
+
|
|
416
|
+
resp = client.perform_call(
|
|
417
|
+
leaf=call_leaf,
|
|
418
|
+
method="GET",
|
|
419
|
+
params=query_params if query_params else None,
|
|
420
|
+
body=None,
|
|
421
|
+
exp_status=exp_status,
|
|
422
|
+
headers=header_params if header_params else None,
|
|
423
|
+
context_msg=None,
|
|
424
|
+
aspects=aspects,
|
|
425
|
+
)
|
|
426
|
+
raw_data = resp.json()
|
|
427
|
+
items = [self._parse_item(item, SecretScanningLocation) for item in raw_data]
|
|
428
|
+
rtnval = PagedList[SecretScanningLocation](items, dict(resp.headers), raw_data)
|
|
429
|
+
return rtnval
|
|
430
|
+
|
|
431
|
+
def list_org_pattern_configs(self, org: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> SecretScanningPatternConfiguration:
|
|
432
|
+
"""
|
|
433
|
+
List organization pattern configurations
|
|
434
|
+
|
|
435
|
+
Lists the secret scanning pattern configurations for an organization.
|
|
436
|
+
|
|
437
|
+
Personal access tokens (classic) need the `write:org` scope to use this endpoint.
|
|
438
|
+
"""
|
|
439
|
+
client = self.client
|
|
440
|
+
if aspects is None:
|
|
441
|
+
aspects = client.aspects
|
|
442
|
+
|
|
443
|
+
header_params = client.headers
|
|
444
|
+
if headers is not None:
|
|
445
|
+
header_params = headers
|
|
446
|
+
|
|
447
|
+
leaf_template = "/orgs/{org}/secret-scanning/pattern-configurations"
|
|
448
|
+
path_params = {
|
|
449
|
+
'org': org,
|
|
450
|
+
}
|
|
451
|
+
call_leaf = leaf_template.format(**path_params)
|
|
452
|
+
|
|
453
|
+
query_params = None
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
if exp_status is None:
|
|
457
|
+
exp_status = [200]
|
|
458
|
+
|
|
459
|
+
resp = client.perform_call(
|
|
460
|
+
leaf=call_leaf,
|
|
461
|
+
method="GET",
|
|
462
|
+
params=query_params if query_params else None,
|
|
463
|
+
body=None,
|
|
464
|
+
exp_status=exp_status,
|
|
465
|
+
headers=header_params if header_params else None,
|
|
466
|
+
context_msg=None,
|
|
467
|
+
aspects=aspects,
|
|
468
|
+
)
|
|
469
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
470
|
+
rtnobj = None
|
|
471
|
+
else:
|
|
472
|
+
raw_data = resp.json()
|
|
473
|
+
rtnobj = SecretScanningPatternConfiguration.from_dict(raw_data)
|
|
474
|
+
return rtnobj
|
|
475
|
+
|
|
476
|
+
def update_alert(self, owner: str, repo: str, alert_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> SecretScanningAlert:
|
|
477
|
+
"""
|
|
478
|
+
Update a secret scanning alert
|
|
479
|
+
|
|
480
|
+
Updates the status of a secret scanning alert in an eligible repository.
|
|
481
|
+
|
|
482
|
+
The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
|
|
483
|
+
|
|
484
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
|
|
485
|
+
"""
|
|
486
|
+
client = self.client
|
|
487
|
+
if aspects is None:
|
|
488
|
+
aspects = client.aspects
|
|
489
|
+
|
|
490
|
+
header_params = client.headers
|
|
491
|
+
if headers is not None:
|
|
492
|
+
header_params = headers
|
|
493
|
+
|
|
494
|
+
leaf_template = "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
495
|
+
path_params = {
|
|
496
|
+
'owner': owner,
|
|
497
|
+
'repo': repo,
|
|
498
|
+
'alert_number': alert_number,
|
|
499
|
+
}
|
|
500
|
+
call_leaf = leaf_template.format(**path_params)
|
|
501
|
+
|
|
502
|
+
query_params = None
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
if exp_status is None:
|
|
506
|
+
exp_status = [200]
|
|
507
|
+
|
|
508
|
+
resp = client.perform_call(
|
|
509
|
+
leaf=call_leaf,
|
|
510
|
+
method="PATCH",
|
|
511
|
+
params=query_params if query_params else None,
|
|
512
|
+
body=body,
|
|
513
|
+
exp_status=exp_status,
|
|
514
|
+
headers=header_params if header_params else None,
|
|
515
|
+
context_msg=None,
|
|
516
|
+
aspects=aspects,
|
|
517
|
+
)
|
|
518
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
519
|
+
rtnobj = None
|
|
520
|
+
else:
|
|
521
|
+
raw_data = resp.json()
|
|
522
|
+
rtnobj = SecretScanningAlert.from_dict(raw_data)
|
|
523
|
+
return rtnobj
|
|
524
|
+
|
|
525
|
+
def update_org_pattern_configs(self, org: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Dict[str, Any]:
|
|
526
|
+
"""
|
|
527
|
+
Update organization pattern configurations
|
|
528
|
+
|
|
529
|
+
Updates the secret scanning pattern configurations for an organization.
|
|
530
|
+
|
|
531
|
+
Personal access tokens (classic) need the `write:org` scope to use this endpoint.
|
|
532
|
+
"""
|
|
533
|
+
client = self.client
|
|
534
|
+
if aspects is None:
|
|
535
|
+
aspects = client.aspects
|
|
536
|
+
|
|
537
|
+
header_params = client.headers
|
|
538
|
+
if headers is not None:
|
|
539
|
+
header_params = headers
|
|
540
|
+
|
|
541
|
+
leaf_template = "/orgs/{org}/secret-scanning/pattern-configurations"
|
|
542
|
+
path_params = {
|
|
543
|
+
'org': org,
|
|
544
|
+
}
|
|
545
|
+
call_leaf = leaf_template.format(**path_params)
|
|
546
|
+
|
|
547
|
+
query_params = None
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
if exp_status is None:
|
|
551
|
+
exp_status = [200]
|
|
552
|
+
|
|
553
|
+
resp = client.perform_call(
|
|
554
|
+
leaf=call_leaf,
|
|
555
|
+
method="PATCH",
|
|
556
|
+
params=query_params if query_params else None,
|
|
557
|
+
body=body,
|
|
558
|
+
exp_status=exp_status,
|
|
559
|
+
headers=header_params if header_params else None,
|
|
560
|
+
context_msg=None,
|
|
561
|
+
aspects=aspects,
|
|
562
|
+
)
|
|
563
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
564
|
+
rtnval = None
|
|
565
|
+
else:
|
|
566
|
+
raw_data = resp.json()
|
|
567
|
+
rtnval = self._parse_item(raw_data, Dict[str, Any])
|
|
568
|
+
return rtnval
|