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,909 @@
|
|
|
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.gists import BaseGist
|
|
9
|
+
from ccai.restclient.github.public.schemas.gists import GistComment
|
|
10
|
+
from ccai.restclient.github.public.schemas.gists import GistCommit
|
|
11
|
+
from ccai.restclient.github.public.schemas.gists import GistSimple
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GistsApiGroup(RestApiGroup):
|
|
15
|
+
"""
|
|
16
|
+
View, modify your gists.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def check_is_starred(self, gist_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
20
|
+
"""
|
|
21
|
+
Check if a gist is starred
|
|
22
|
+
"""
|
|
23
|
+
client = self.client
|
|
24
|
+
if aspects is None:
|
|
25
|
+
aspects = client.aspects
|
|
26
|
+
|
|
27
|
+
header_params = client.headers
|
|
28
|
+
if headers is not None:
|
|
29
|
+
header_params = headers
|
|
30
|
+
|
|
31
|
+
leaf_template = "/gists/{gist_id}/star"
|
|
32
|
+
path_params = {
|
|
33
|
+
'gist_id': gist_id,
|
|
34
|
+
}
|
|
35
|
+
call_leaf = leaf_template.format(**path_params)
|
|
36
|
+
|
|
37
|
+
query_params = None
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
if exp_status is None:
|
|
41
|
+
exp_status = [204]
|
|
42
|
+
|
|
43
|
+
resp = client.perform_call(
|
|
44
|
+
leaf=call_leaf,
|
|
45
|
+
method="GET",
|
|
46
|
+
params=query_params if query_params else None,
|
|
47
|
+
body=None,
|
|
48
|
+
exp_status=exp_status,
|
|
49
|
+
headers=header_params if header_params else None,
|
|
50
|
+
context_msg=None,
|
|
51
|
+
aspects=aspects,
|
|
52
|
+
)
|
|
53
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
54
|
+
rtnval = None
|
|
55
|
+
else:
|
|
56
|
+
rtnval = resp.json()
|
|
57
|
+
return rtnval
|
|
58
|
+
|
|
59
|
+
def create(self, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
60
|
+
"""
|
|
61
|
+
Create a gist
|
|
62
|
+
|
|
63
|
+
Allows you to add a new gist with one or more files.
|
|
64
|
+
|
|
65
|
+
> [!NOTE]
|
|
66
|
+
> Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.
|
|
67
|
+
"""
|
|
68
|
+
client = self.client
|
|
69
|
+
if aspects is None:
|
|
70
|
+
aspects = client.aspects
|
|
71
|
+
|
|
72
|
+
header_params = client.headers
|
|
73
|
+
if headers is not None:
|
|
74
|
+
header_params = headers
|
|
75
|
+
|
|
76
|
+
call_leaf = "/gists"
|
|
77
|
+
|
|
78
|
+
query_params = None
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
if exp_status is None:
|
|
82
|
+
exp_status = [201]
|
|
83
|
+
|
|
84
|
+
resp = client.perform_call(
|
|
85
|
+
leaf=call_leaf,
|
|
86
|
+
method="POST",
|
|
87
|
+
params=query_params if query_params else None,
|
|
88
|
+
body=body,
|
|
89
|
+
exp_status=exp_status,
|
|
90
|
+
headers=header_params if header_params else None,
|
|
91
|
+
context_msg=None,
|
|
92
|
+
aspects=aspects,
|
|
93
|
+
)
|
|
94
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
95
|
+
rtnval = None
|
|
96
|
+
else:
|
|
97
|
+
rtnval = resp.json()
|
|
98
|
+
return rtnval
|
|
99
|
+
|
|
100
|
+
def create_comment(self, gist_id: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
101
|
+
"""
|
|
102
|
+
Create a gist comment
|
|
103
|
+
|
|
104
|
+
Creates a comment on a gist.
|
|
105
|
+
|
|
106
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
107
|
+
|
|
108
|
+
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
|
|
109
|
+
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
|
|
110
|
+
"""
|
|
111
|
+
client = self.client
|
|
112
|
+
if aspects is None:
|
|
113
|
+
aspects = client.aspects
|
|
114
|
+
|
|
115
|
+
header_params = client.headers
|
|
116
|
+
if headers is not None:
|
|
117
|
+
header_params = headers
|
|
118
|
+
|
|
119
|
+
leaf_template = "/gists/{gist_id}/comments"
|
|
120
|
+
path_params = {
|
|
121
|
+
'gist_id': gist_id,
|
|
122
|
+
}
|
|
123
|
+
call_leaf = leaf_template.format(**path_params)
|
|
124
|
+
|
|
125
|
+
query_params = None
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
if exp_status is None:
|
|
129
|
+
exp_status = [201]
|
|
130
|
+
|
|
131
|
+
resp = client.perform_call(
|
|
132
|
+
leaf=call_leaf,
|
|
133
|
+
method="POST",
|
|
134
|
+
params=query_params if query_params else None,
|
|
135
|
+
body=body,
|
|
136
|
+
exp_status=exp_status,
|
|
137
|
+
headers=header_params if header_params else None,
|
|
138
|
+
context_msg=None,
|
|
139
|
+
aspects=aspects,
|
|
140
|
+
)
|
|
141
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
142
|
+
rtnval = None
|
|
143
|
+
else:
|
|
144
|
+
rtnval = resp.json()
|
|
145
|
+
return rtnval
|
|
146
|
+
|
|
147
|
+
def delete(self, gist_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
148
|
+
"""
|
|
149
|
+
Delete a gist
|
|
150
|
+
"""
|
|
151
|
+
client = self.client
|
|
152
|
+
if aspects is None:
|
|
153
|
+
aspects = client.aspects
|
|
154
|
+
|
|
155
|
+
header_params = client.headers
|
|
156
|
+
if headers is not None:
|
|
157
|
+
header_params = headers
|
|
158
|
+
|
|
159
|
+
leaf_template = "/gists/{gist_id}"
|
|
160
|
+
path_params = {
|
|
161
|
+
'gist_id': gist_id,
|
|
162
|
+
}
|
|
163
|
+
call_leaf = leaf_template.format(**path_params)
|
|
164
|
+
|
|
165
|
+
query_params = None
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
if exp_status is None:
|
|
169
|
+
exp_status = [204]
|
|
170
|
+
|
|
171
|
+
resp = client.perform_call(
|
|
172
|
+
leaf=call_leaf,
|
|
173
|
+
method="DELETE",
|
|
174
|
+
params=query_params if query_params else None,
|
|
175
|
+
body=None,
|
|
176
|
+
exp_status=exp_status,
|
|
177
|
+
headers=header_params if header_params else None,
|
|
178
|
+
context_msg=None,
|
|
179
|
+
aspects=aspects,
|
|
180
|
+
)
|
|
181
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
182
|
+
rtnval = None
|
|
183
|
+
else:
|
|
184
|
+
rtnval = resp.json()
|
|
185
|
+
return rtnval
|
|
186
|
+
|
|
187
|
+
def delete_comment(self, gist_id: str, comment_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
188
|
+
"""
|
|
189
|
+
Delete a gist comment
|
|
190
|
+
"""
|
|
191
|
+
client = self.client
|
|
192
|
+
if aspects is None:
|
|
193
|
+
aspects = client.aspects
|
|
194
|
+
|
|
195
|
+
header_params = client.headers
|
|
196
|
+
if headers is not None:
|
|
197
|
+
header_params = headers
|
|
198
|
+
|
|
199
|
+
leaf_template = "/gists/{gist_id}/comments/{comment_id}"
|
|
200
|
+
path_params = {
|
|
201
|
+
'gist_id': gist_id,
|
|
202
|
+
'comment_id': comment_id,
|
|
203
|
+
}
|
|
204
|
+
call_leaf = leaf_template.format(**path_params)
|
|
205
|
+
|
|
206
|
+
query_params = None
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
if exp_status is None:
|
|
210
|
+
exp_status = [204]
|
|
211
|
+
|
|
212
|
+
resp = client.perform_call(
|
|
213
|
+
leaf=call_leaf,
|
|
214
|
+
method="DELETE",
|
|
215
|
+
params=query_params if query_params else None,
|
|
216
|
+
body=None,
|
|
217
|
+
exp_status=exp_status,
|
|
218
|
+
headers=header_params if header_params else None,
|
|
219
|
+
context_msg=None,
|
|
220
|
+
aspects=aspects,
|
|
221
|
+
)
|
|
222
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
223
|
+
rtnval = None
|
|
224
|
+
else:
|
|
225
|
+
rtnval = resp.json()
|
|
226
|
+
return rtnval
|
|
227
|
+
|
|
228
|
+
def fork(self, gist_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
229
|
+
"""
|
|
230
|
+
Fork a gist
|
|
231
|
+
"""
|
|
232
|
+
client = self.client
|
|
233
|
+
if aspects is None:
|
|
234
|
+
aspects = client.aspects
|
|
235
|
+
|
|
236
|
+
header_params = client.headers
|
|
237
|
+
if headers is not None:
|
|
238
|
+
header_params = headers
|
|
239
|
+
|
|
240
|
+
leaf_template = "/gists/{gist_id}/forks"
|
|
241
|
+
path_params = {
|
|
242
|
+
'gist_id': gist_id,
|
|
243
|
+
}
|
|
244
|
+
call_leaf = leaf_template.format(**path_params)
|
|
245
|
+
|
|
246
|
+
query_params = None
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
if exp_status is None:
|
|
250
|
+
exp_status = [201]
|
|
251
|
+
|
|
252
|
+
resp = client.perform_call(
|
|
253
|
+
leaf=call_leaf,
|
|
254
|
+
method="POST",
|
|
255
|
+
params=query_params if query_params else None,
|
|
256
|
+
body=None,
|
|
257
|
+
exp_status=exp_status,
|
|
258
|
+
headers=header_params if header_params else None,
|
|
259
|
+
context_msg=None,
|
|
260
|
+
aspects=aspects,
|
|
261
|
+
)
|
|
262
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
263
|
+
rtnval = None
|
|
264
|
+
else:
|
|
265
|
+
rtnval = resp.json()
|
|
266
|
+
return rtnval
|
|
267
|
+
|
|
268
|
+
def get(self, gist_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GistSimple:
|
|
269
|
+
"""
|
|
270
|
+
Get a gist
|
|
271
|
+
|
|
272
|
+
Gets a specified gist.
|
|
273
|
+
|
|
274
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
275
|
+
|
|
276
|
+
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
|
|
277
|
+
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
|
|
278
|
+
"""
|
|
279
|
+
client = self.client
|
|
280
|
+
if aspects is None:
|
|
281
|
+
aspects = client.aspects
|
|
282
|
+
|
|
283
|
+
header_params = client.headers
|
|
284
|
+
if headers is not None:
|
|
285
|
+
header_params = headers
|
|
286
|
+
|
|
287
|
+
leaf_template = "/gists/{gist_id}"
|
|
288
|
+
path_params = {
|
|
289
|
+
'gist_id': gist_id,
|
|
290
|
+
}
|
|
291
|
+
call_leaf = leaf_template.format(**path_params)
|
|
292
|
+
|
|
293
|
+
query_params = None
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
if exp_status is None:
|
|
297
|
+
exp_status = [200]
|
|
298
|
+
|
|
299
|
+
resp = client.perform_call(
|
|
300
|
+
leaf=call_leaf,
|
|
301
|
+
method="GET",
|
|
302
|
+
params=query_params if query_params else None,
|
|
303
|
+
body=None,
|
|
304
|
+
exp_status=exp_status,
|
|
305
|
+
headers=header_params if header_params else None,
|
|
306
|
+
context_msg=None,
|
|
307
|
+
aspects=aspects,
|
|
308
|
+
)
|
|
309
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
310
|
+
rtnobj = None
|
|
311
|
+
else:
|
|
312
|
+
raw_data = resp.json()
|
|
313
|
+
rtnobj = GistSimple.from_dict(raw_data)
|
|
314
|
+
return rtnobj
|
|
315
|
+
|
|
316
|
+
def get_comment(self, gist_id: str, comment_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GistComment:
|
|
317
|
+
"""
|
|
318
|
+
Get a gist comment
|
|
319
|
+
|
|
320
|
+
Gets a comment on a gist.
|
|
321
|
+
|
|
322
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
323
|
+
|
|
324
|
+
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
|
|
325
|
+
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
|
|
326
|
+
"""
|
|
327
|
+
client = self.client
|
|
328
|
+
if aspects is None:
|
|
329
|
+
aspects = client.aspects
|
|
330
|
+
|
|
331
|
+
header_params = client.headers
|
|
332
|
+
if headers is not None:
|
|
333
|
+
header_params = headers
|
|
334
|
+
|
|
335
|
+
leaf_template = "/gists/{gist_id}/comments/{comment_id}"
|
|
336
|
+
path_params = {
|
|
337
|
+
'gist_id': gist_id,
|
|
338
|
+
'comment_id': comment_id,
|
|
339
|
+
}
|
|
340
|
+
call_leaf = leaf_template.format(**path_params)
|
|
341
|
+
|
|
342
|
+
query_params = None
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
if exp_status is None:
|
|
346
|
+
exp_status = [200]
|
|
347
|
+
|
|
348
|
+
resp = client.perform_call(
|
|
349
|
+
leaf=call_leaf,
|
|
350
|
+
method="GET",
|
|
351
|
+
params=query_params if query_params else None,
|
|
352
|
+
body=None,
|
|
353
|
+
exp_status=exp_status,
|
|
354
|
+
headers=header_params if header_params else None,
|
|
355
|
+
context_msg=None,
|
|
356
|
+
aspects=aspects,
|
|
357
|
+
)
|
|
358
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
359
|
+
rtnobj = None
|
|
360
|
+
else:
|
|
361
|
+
raw_data = resp.json()
|
|
362
|
+
rtnobj = GistComment.from_dict(raw_data)
|
|
363
|
+
return rtnobj
|
|
364
|
+
|
|
365
|
+
def get_revision(self, gist_id: str, sha: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GistSimple:
|
|
366
|
+
"""
|
|
367
|
+
Get a gist revision
|
|
368
|
+
|
|
369
|
+
Gets a specified gist revision.
|
|
370
|
+
|
|
371
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
372
|
+
|
|
373
|
+
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
|
|
374
|
+
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
|
|
375
|
+
"""
|
|
376
|
+
client = self.client
|
|
377
|
+
if aspects is None:
|
|
378
|
+
aspects = client.aspects
|
|
379
|
+
|
|
380
|
+
header_params = client.headers
|
|
381
|
+
if headers is not None:
|
|
382
|
+
header_params = headers
|
|
383
|
+
|
|
384
|
+
leaf_template = "/gists/{gist_id}/{sha}"
|
|
385
|
+
path_params = {
|
|
386
|
+
'gist_id': gist_id,
|
|
387
|
+
'sha': sha,
|
|
388
|
+
}
|
|
389
|
+
call_leaf = leaf_template.format(**path_params)
|
|
390
|
+
|
|
391
|
+
query_params = None
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
if exp_status is None:
|
|
395
|
+
exp_status = [200]
|
|
396
|
+
|
|
397
|
+
resp = client.perform_call(
|
|
398
|
+
leaf=call_leaf,
|
|
399
|
+
method="GET",
|
|
400
|
+
params=query_params if query_params else None,
|
|
401
|
+
body=None,
|
|
402
|
+
exp_status=exp_status,
|
|
403
|
+
headers=header_params if header_params else None,
|
|
404
|
+
context_msg=None,
|
|
405
|
+
aspects=aspects,
|
|
406
|
+
)
|
|
407
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
408
|
+
rtnobj = None
|
|
409
|
+
else:
|
|
410
|
+
raw_data = resp.json()
|
|
411
|
+
rtnobj = GistSimple.from_dict(raw_data)
|
|
412
|
+
return rtnobj
|
|
413
|
+
|
|
414
|
+
def list(self, *, since: Optional[str] = None, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[BaseGist]:
|
|
415
|
+
"""
|
|
416
|
+
List gists for the authenticated user
|
|
417
|
+
|
|
418
|
+
Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists:
|
|
419
|
+
"""
|
|
420
|
+
client = self.client
|
|
421
|
+
if aspects is None:
|
|
422
|
+
aspects = client.aspects
|
|
423
|
+
|
|
424
|
+
header_params = client.headers
|
|
425
|
+
if headers is not None:
|
|
426
|
+
header_params = headers
|
|
427
|
+
|
|
428
|
+
call_leaf = "/gists"
|
|
429
|
+
|
|
430
|
+
query_params = {}
|
|
431
|
+
if since is not None:
|
|
432
|
+
query_params['since'] = since
|
|
433
|
+
if per_page is not None:
|
|
434
|
+
query_params['per_page'] = per_page
|
|
435
|
+
if page is not None:
|
|
436
|
+
query_params['page'] = page
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
if exp_status is None:
|
|
440
|
+
exp_status = [200]
|
|
441
|
+
|
|
442
|
+
resp = client.perform_call(
|
|
443
|
+
leaf=call_leaf,
|
|
444
|
+
method="GET",
|
|
445
|
+
params=query_params if query_params else None,
|
|
446
|
+
body=None,
|
|
447
|
+
exp_status=exp_status,
|
|
448
|
+
headers=header_params if header_params else None,
|
|
449
|
+
context_msg=None,
|
|
450
|
+
aspects=aspects,
|
|
451
|
+
)
|
|
452
|
+
raw_data = resp.json()
|
|
453
|
+
items = [self._parse_item(item, BaseGist) for item in raw_data]
|
|
454
|
+
rtnval = PagedList[BaseGist](items, dict(resp.headers), raw_data)
|
|
455
|
+
return rtnval
|
|
456
|
+
|
|
457
|
+
def list_comments(self, gist_id: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[GistComment]:
|
|
458
|
+
"""
|
|
459
|
+
List gist comments
|
|
460
|
+
|
|
461
|
+
Lists the comments on a gist.
|
|
462
|
+
|
|
463
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
464
|
+
|
|
465
|
+
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
|
|
466
|
+
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
|
|
467
|
+
"""
|
|
468
|
+
client = self.client
|
|
469
|
+
if aspects is None:
|
|
470
|
+
aspects = client.aspects
|
|
471
|
+
|
|
472
|
+
header_params = client.headers
|
|
473
|
+
if headers is not None:
|
|
474
|
+
header_params = headers
|
|
475
|
+
|
|
476
|
+
leaf_template = "/gists/{gist_id}/comments"
|
|
477
|
+
path_params = {
|
|
478
|
+
'gist_id': gist_id,
|
|
479
|
+
}
|
|
480
|
+
call_leaf = leaf_template.format(**path_params)
|
|
481
|
+
|
|
482
|
+
query_params = {}
|
|
483
|
+
if per_page is not None:
|
|
484
|
+
query_params['per_page'] = per_page
|
|
485
|
+
if page is not None:
|
|
486
|
+
query_params['page'] = page
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
if exp_status is None:
|
|
490
|
+
exp_status = [200]
|
|
491
|
+
|
|
492
|
+
resp = client.perform_call(
|
|
493
|
+
leaf=call_leaf,
|
|
494
|
+
method="GET",
|
|
495
|
+
params=query_params if query_params else None,
|
|
496
|
+
body=None,
|
|
497
|
+
exp_status=exp_status,
|
|
498
|
+
headers=header_params if header_params else None,
|
|
499
|
+
context_msg=None,
|
|
500
|
+
aspects=aspects,
|
|
501
|
+
)
|
|
502
|
+
raw_data = resp.json()
|
|
503
|
+
items = [self._parse_item(item, GistComment) for item in raw_data]
|
|
504
|
+
rtnval = PagedList[GistComment](items, dict(resp.headers), raw_data)
|
|
505
|
+
return rtnval
|
|
506
|
+
|
|
507
|
+
def list_commits(self, gist_id: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[GistCommit]:
|
|
508
|
+
"""
|
|
509
|
+
List gist commits
|
|
510
|
+
"""
|
|
511
|
+
client = self.client
|
|
512
|
+
if aspects is None:
|
|
513
|
+
aspects = client.aspects
|
|
514
|
+
|
|
515
|
+
header_params = client.headers
|
|
516
|
+
if headers is not None:
|
|
517
|
+
header_params = headers
|
|
518
|
+
|
|
519
|
+
leaf_template = "/gists/{gist_id}/commits"
|
|
520
|
+
path_params = {
|
|
521
|
+
'gist_id': gist_id,
|
|
522
|
+
}
|
|
523
|
+
call_leaf = leaf_template.format(**path_params)
|
|
524
|
+
|
|
525
|
+
query_params = {}
|
|
526
|
+
if per_page is not None:
|
|
527
|
+
query_params['per_page'] = per_page
|
|
528
|
+
if page is not None:
|
|
529
|
+
query_params['page'] = page
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
if exp_status is None:
|
|
533
|
+
exp_status = [200]
|
|
534
|
+
|
|
535
|
+
resp = client.perform_call(
|
|
536
|
+
leaf=call_leaf,
|
|
537
|
+
method="GET",
|
|
538
|
+
params=query_params if query_params else None,
|
|
539
|
+
body=None,
|
|
540
|
+
exp_status=exp_status,
|
|
541
|
+
headers=header_params if header_params else None,
|
|
542
|
+
context_msg=None,
|
|
543
|
+
aspects=aspects,
|
|
544
|
+
)
|
|
545
|
+
raw_data = resp.json()
|
|
546
|
+
items = [self._parse_item(item, GistCommit) for item in raw_data]
|
|
547
|
+
rtnval = PagedList[GistCommit](items, dict(resp.headers), raw_data)
|
|
548
|
+
return rtnval
|
|
549
|
+
|
|
550
|
+
def list_for_user(self, username: str, *, since: Optional[str] = None, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[BaseGist]:
|
|
551
|
+
"""
|
|
552
|
+
List gists for a user
|
|
553
|
+
|
|
554
|
+
Lists public gists for the specified user:
|
|
555
|
+
"""
|
|
556
|
+
client = self.client
|
|
557
|
+
if aspects is None:
|
|
558
|
+
aspects = client.aspects
|
|
559
|
+
|
|
560
|
+
header_params = client.headers
|
|
561
|
+
if headers is not None:
|
|
562
|
+
header_params = headers
|
|
563
|
+
|
|
564
|
+
leaf_template = "/users/{username}/gists"
|
|
565
|
+
path_params = {
|
|
566
|
+
'username': username,
|
|
567
|
+
}
|
|
568
|
+
call_leaf = leaf_template.format(**path_params)
|
|
569
|
+
|
|
570
|
+
query_params = {}
|
|
571
|
+
if since is not None:
|
|
572
|
+
query_params['since'] = since
|
|
573
|
+
if per_page is not None:
|
|
574
|
+
query_params['per_page'] = per_page
|
|
575
|
+
if page is not None:
|
|
576
|
+
query_params['page'] = page
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
if exp_status is None:
|
|
580
|
+
exp_status = [200]
|
|
581
|
+
|
|
582
|
+
resp = client.perform_call(
|
|
583
|
+
leaf=call_leaf,
|
|
584
|
+
method="GET",
|
|
585
|
+
params=query_params if query_params else None,
|
|
586
|
+
body=None,
|
|
587
|
+
exp_status=exp_status,
|
|
588
|
+
headers=header_params if header_params else None,
|
|
589
|
+
context_msg=None,
|
|
590
|
+
aspects=aspects,
|
|
591
|
+
)
|
|
592
|
+
raw_data = resp.json()
|
|
593
|
+
items = [self._parse_item(item, BaseGist) for item in raw_data]
|
|
594
|
+
rtnval = PagedList[BaseGist](items, dict(resp.headers), raw_data)
|
|
595
|
+
return rtnval
|
|
596
|
+
|
|
597
|
+
def list_forks(self, gist_id: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[GistSimple]:
|
|
598
|
+
"""
|
|
599
|
+
List gist forks
|
|
600
|
+
"""
|
|
601
|
+
client = self.client
|
|
602
|
+
if aspects is None:
|
|
603
|
+
aspects = client.aspects
|
|
604
|
+
|
|
605
|
+
header_params = client.headers
|
|
606
|
+
if headers is not None:
|
|
607
|
+
header_params = headers
|
|
608
|
+
|
|
609
|
+
leaf_template = "/gists/{gist_id}/forks"
|
|
610
|
+
path_params = {
|
|
611
|
+
'gist_id': gist_id,
|
|
612
|
+
}
|
|
613
|
+
call_leaf = leaf_template.format(**path_params)
|
|
614
|
+
|
|
615
|
+
query_params = {}
|
|
616
|
+
if per_page is not None:
|
|
617
|
+
query_params['per_page'] = per_page
|
|
618
|
+
if page is not None:
|
|
619
|
+
query_params['page'] = page
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
if exp_status is None:
|
|
623
|
+
exp_status = [200]
|
|
624
|
+
|
|
625
|
+
resp = client.perform_call(
|
|
626
|
+
leaf=call_leaf,
|
|
627
|
+
method="GET",
|
|
628
|
+
params=query_params if query_params else None,
|
|
629
|
+
body=None,
|
|
630
|
+
exp_status=exp_status,
|
|
631
|
+
headers=header_params if header_params else None,
|
|
632
|
+
context_msg=None,
|
|
633
|
+
aspects=aspects,
|
|
634
|
+
)
|
|
635
|
+
raw_data = resp.json()
|
|
636
|
+
items = [self._parse_item(item, GistSimple) for item in raw_data]
|
|
637
|
+
rtnval = PagedList[GistSimple](items, dict(resp.headers), raw_data)
|
|
638
|
+
return rtnval
|
|
639
|
+
|
|
640
|
+
def list_public(self, *, since: Optional[str] = None, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[BaseGist]:
|
|
641
|
+
"""
|
|
642
|
+
List public gists
|
|
643
|
+
|
|
644
|
+
List public gists sorted by most recently updated to least recently updated.
|
|
645
|
+
|
|
646
|
+
Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
|
|
647
|
+
"""
|
|
648
|
+
client = self.client
|
|
649
|
+
if aspects is None:
|
|
650
|
+
aspects = client.aspects
|
|
651
|
+
|
|
652
|
+
header_params = client.headers
|
|
653
|
+
if headers is not None:
|
|
654
|
+
header_params = headers
|
|
655
|
+
|
|
656
|
+
call_leaf = "/gists/public"
|
|
657
|
+
|
|
658
|
+
query_params = {}
|
|
659
|
+
if since is not None:
|
|
660
|
+
query_params['since'] = since
|
|
661
|
+
if per_page is not None:
|
|
662
|
+
query_params['per_page'] = per_page
|
|
663
|
+
if page is not None:
|
|
664
|
+
query_params['page'] = page
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
if exp_status is None:
|
|
668
|
+
exp_status = [200]
|
|
669
|
+
|
|
670
|
+
resp = client.perform_call(
|
|
671
|
+
leaf=call_leaf,
|
|
672
|
+
method="GET",
|
|
673
|
+
params=query_params if query_params else None,
|
|
674
|
+
body=None,
|
|
675
|
+
exp_status=exp_status,
|
|
676
|
+
headers=header_params if header_params else None,
|
|
677
|
+
context_msg=None,
|
|
678
|
+
aspects=aspects,
|
|
679
|
+
)
|
|
680
|
+
raw_data = resp.json()
|
|
681
|
+
items = [self._parse_item(item, BaseGist) for item in raw_data]
|
|
682
|
+
rtnval = PagedList[BaseGist](items, dict(resp.headers), raw_data)
|
|
683
|
+
return rtnval
|
|
684
|
+
|
|
685
|
+
def list_starred(self, *, since: Optional[str] = None, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[BaseGist]:
|
|
686
|
+
"""
|
|
687
|
+
List starred gists
|
|
688
|
+
|
|
689
|
+
List the authenticated user's starred gists:
|
|
690
|
+
"""
|
|
691
|
+
client = self.client
|
|
692
|
+
if aspects is None:
|
|
693
|
+
aspects = client.aspects
|
|
694
|
+
|
|
695
|
+
header_params = client.headers
|
|
696
|
+
if headers is not None:
|
|
697
|
+
header_params = headers
|
|
698
|
+
|
|
699
|
+
call_leaf = "/gists/starred"
|
|
700
|
+
|
|
701
|
+
query_params = {}
|
|
702
|
+
if since is not None:
|
|
703
|
+
query_params['since'] = since
|
|
704
|
+
if per_page is not None:
|
|
705
|
+
query_params['per_page'] = per_page
|
|
706
|
+
if page is not None:
|
|
707
|
+
query_params['page'] = page
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
if exp_status is None:
|
|
711
|
+
exp_status = [200]
|
|
712
|
+
|
|
713
|
+
resp = client.perform_call(
|
|
714
|
+
leaf=call_leaf,
|
|
715
|
+
method="GET",
|
|
716
|
+
params=query_params if query_params else None,
|
|
717
|
+
body=None,
|
|
718
|
+
exp_status=exp_status,
|
|
719
|
+
headers=header_params if header_params else None,
|
|
720
|
+
context_msg=None,
|
|
721
|
+
aspects=aspects,
|
|
722
|
+
)
|
|
723
|
+
raw_data = resp.json()
|
|
724
|
+
items = [self._parse_item(item, BaseGist) for item in raw_data]
|
|
725
|
+
rtnval = PagedList[BaseGist](items, dict(resp.headers), raw_data)
|
|
726
|
+
return rtnval
|
|
727
|
+
|
|
728
|
+
def star(self, gist_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
729
|
+
"""
|
|
730
|
+
Star a gist
|
|
731
|
+
|
|
732
|
+
Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
|
|
733
|
+
"""
|
|
734
|
+
client = self.client
|
|
735
|
+
if aspects is None:
|
|
736
|
+
aspects = client.aspects
|
|
737
|
+
|
|
738
|
+
header_params = client.headers
|
|
739
|
+
if headers is not None:
|
|
740
|
+
header_params = headers
|
|
741
|
+
|
|
742
|
+
leaf_template = "/gists/{gist_id}/star"
|
|
743
|
+
path_params = {
|
|
744
|
+
'gist_id': gist_id,
|
|
745
|
+
}
|
|
746
|
+
call_leaf = leaf_template.format(**path_params)
|
|
747
|
+
|
|
748
|
+
query_params = None
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
if exp_status is None:
|
|
752
|
+
exp_status = [204]
|
|
753
|
+
|
|
754
|
+
resp = client.perform_call(
|
|
755
|
+
leaf=call_leaf,
|
|
756
|
+
method="PUT",
|
|
757
|
+
params=query_params if query_params else None,
|
|
758
|
+
body=None,
|
|
759
|
+
exp_status=exp_status,
|
|
760
|
+
headers=header_params if header_params else None,
|
|
761
|
+
context_msg=None,
|
|
762
|
+
aspects=aspects,
|
|
763
|
+
)
|
|
764
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
765
|
+
rtnval = None
|
|
766
|
+
else:
|
|
767
|
+
rtnval = resp.json()
|
|
768
|
+
return rtnval
|
|
769
|
+
|
|
770
|
+
def unstar(self, gist_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
771
|
+
"""
|
|
772
|
+
Unstar a gist
|
|
773
|
+
"""
|
|
774
|
+
client = self.client
|
|
775
|
+
if aspects is None:
|
|
776
|
+
aspects = client.aspects
|
|
777
|
+
|
|
778
|
+
header_params = client.headers
|
|
779
|
+
if headers is not None:
|
|
780
|
+
header_params = headers
|
|
781
|
+
|
|
782
|
+
leaf_template = "/gists/{gist_id}/star"
|
|
783
|
+
path_params = {
|
|
784
|
+
'gist_id': gist_id,
|
|
785
|
+
}
|
|
786
|
+
call_leaf = leaf_template.format(**path_params)
|
|
787
|
+
|
|
788
|
+
query_params = None
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
if exp_status is None:
|
|
792
|
+
exp_status = [204]
|
|
793
|
+
|
|
794
|
+
resp = client.perform_call(
|
|
795
|
+
leaf=call_leaf,
|
|
796
|
+
method="DELETE",
|
|
797
|
+
params=query_params if query_params else None,
|
|
798
|
+
body=None,
|
|
799
|
+
exp_status=exp_status,
|
|
800
|
+
headers=header_params if header_params else None,
|
|
801
|
+
context_msg=None,
|
|
802
|
+
aspects=aspects,
|
|
803
|
+
)
|
|
804
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
805
|
+
rtnval = None
|
|
806
|
+
else:
|
|
807
|
+
rtnval = resp.json()
|
|
808
|
+
return rtnval
|
|
809
|
+
|
|
810
|
+
def update(self, gist_id: str, body: Optional[Dict[str, Any]], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GistSimple:
|
|
811
|
+
"""
|
|
812
|
+
Update a gist
|
|
813
|
+
|
|
814
|
+
Allows you to update a gist's description and to update, delete, or rename gist files. Files
|
|
815
|
+
from the previous version of the gist that aren't explicitly changed during an edit
|
|
816
|
+
are unchanged.
|
|
817
|
+
|
|
818
|
+
At least one of `description` or `files` is required.
|
|
819
|
+
|
|
820
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
821
|
+
|
|
822
|
+
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
|
|
823
|
+
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
|
|
824
|
+
"""
|
|
825
|
+
client = self.client
|
|
826
|
+
if aspects is None:
|
|
827
|
+
aspects = client.aspects
|
|
828
|
+
|
|
829
|
+
header_params = client.headers
|
|
830
|
+
if headers is not None:
|
|
831
|
+
header_params = headers
|
|
832
|
+
|
|
833
|
+
leaf_template = "/gists/{gist_id}"
|
|
834
|
+
path_params = {
|
|
835
|
+
'gist_id': gist_id,
|
|
836
|
+
}
|
|
837
|
+
call_leaf = leaf_template.format(**path_params)
|
|
838
|
+
|
|
839
|
+
query_params = None
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
if exp_status is None:
|
|
843
|
+
exp_status = [200]
|
|
844
|
+
|
|
845
|
+
resp = client.perform_call(
|
|
846
|
+
leaf=call_leaf,
|
|
847
|
+
method="PATCH",
|
|
848
|
+
params=query_params if query_params else None,
|
|
849
|
+
body=body,
|
|
850
|
+
exp_status=exp_status,
|
|
851
|
+
headers=header_params if header_params else None,
|
|
852
|
+
context_msg=None,
|
|
853
|
+
aspects=aspects,
|
|
854
|
+
)
|
|
855
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
856
|
+
rtnobj = None
|
|
857
|
+
else:
|
|
858
|
+
raw_data = resp.json()
|
|
859
|
+
rtnobj = GistSimple.from_dict(raw_data)
|
|
860
|
+
return rtnobj
|
|
861
|
+
|
|
862
|
+
def update_comment(self, gist_id: str, comment_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GistComment:
|
|
863
|
+
"""
|
|
864
|
+
Update a gist comment
|
|
865
|
+
|
|
866
|
+
Updates a comment on a gist.
|
|
867
|
+
|
|
868
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
869
|
+
|
|
870
|
+
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
|
|
871
|
+
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
|
|
872
|
+
"""
|
|
873
|
+
client = self.client
|
|
874
|
+
if aspects is None:
|
|
875
|
+
aspects = client.aspects
|
|
876
|
+
|
|
877
|
+
header_params = client.headers
|
|
878
|
+
if headers is not None:
|
|
879
|
+
header_params = headers
|
|
880
|
+
|
|
881
|
+
leaf_template = "/gists/{gist_id}/comments/{comment_id}"
|
|
882
|
+
path_params = {
|
|
883
|
+
'gist_id': gist_id,
|
|
884
|
+
'comment_id': comment_id,
|
|
885
|
+
}
|
|
886
|
+
call_leaf = leaf_template.format(**path_params)
|
|
887
|
+
|
|
888
|
+
query_params = None
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
if exp_status is None:
|
|
892
|
+
exp_status = [200]
|
|
893
|
+
|
|
894
|
+
resp = client.perform_call(
|
|
895
|
+
leaf=call_leaf,
|
|
896
|
+
method="PATCH",
|
|
897
|
+
params=query_params if query_params else None,
|
|
898
|
+
body=body,
|
|
899
|
+
exp_status=exp_status,
|
|
900
|
+
headers=header_params if header_params else None,
|
|
901
|
+
context_msg=None,
|
|
902
|
+
aspects=aspects,
|
|
903
|
+
)
|
|
904
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
905
|
+
rtnobj = None
|
|
906
|
+
else:
|
|
907
|
+
raw_data = resp.json()
|
|
908
|
+
rtnobj = GistComment.from_dict(raw_data)
|
|
909
|
+
return rtnobj
|