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,1316 @@
|
|
|
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.packages import Package
|
|
9
|
+
from ccai.restclient.github.public.schemas.packages import PackageVersion
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PackagesApiGroup(RestApiGroup):
|
|
13
|
+
"""
|
|
14
|
+
Manage packages for authenticated users and organizations.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def delete_package_for_authenticated_user(self, package_type: str, package_name: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
18
|
+
"""
|
|
19
|
+
Delete a package for the authenticated user
|
|
20
|
+
|
|
21
|
+
Deletes a package owned by the authenticated user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
|
|
22
|
+
|
|
23
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
24
|
+
"""
|
|
25
|
+
client = self.client
|
|
26
|
+
if aspects is None:
|
|
27
|
+
aspects = client.aspects
|
|
28
|
+
|
|
29
|
+
header_params = client.headers
|
|
30
|
+
if headers is not None:
|
|
31
|
+
header_params = headers
|
|
32
|
+
|
|
33
|
+
leaf_template = "/user/packages/{package_type}/{package_name}"
|
|
34
|
+
path_params = {
|
|
35
|
+
'package_type': package_type,
|
|
36
|
+
'package_name': package_name,
|
|
37
|
+
}
|
|
38
|
+
call_leaf = leaf_template.format(**path_params)
|
|
39
|
+
|
|
40
|
+
query_params = None
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
if exp_status is None:
|
|
44
|
+
exp_status = [204]
|
|
45
|
+
|
|
46
|
+
resp = client.perform_call(
|
|
47
|
+
leaf=call_leaf,
|
|
48
|
+
method="DELETE",
|
|
49
|
+
params=query_params if query_params else None,
|
|
50
|
+
body=None,
|
|
51
|
+
exp_status=exp_status,
|
|
52
|
+
headers=header_params if header_params else None,
|
|
53
|
+
context_msg=None,
|
|
54
|
+
aspects=aspects,
|
|
55
|
+
)
|
|
56
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
57
|
+
rtnval = None
|
|
58
|
+
else:
|
|
59
|
+
rtnval = resp.json()
|
|
60
|
+
return rtnval
|
|
61
|
+
|
|
62
|
+
def delete_package_for_org(self, package_type: str, package_name: str, org: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
63
|
+
"""
|
|
64
|
+
Delete a package for an organization
|
|
65
|
+
|
|
66
|
+
Deletes an entire package in an organization. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
|
|
67
|
+
|
|
68
|
+
The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
69
|
+
|
|
70
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
71
|
+
"""
|
|
72
|
+
client = self.client
|
|
73
|
+
if aspects is None:
|
|
74
|
+
aspects = client.aspects
|
|
75
|
+
|
|
76
|
+
header_params = client.headers
|
|
77
|
+
if headers is not None:
|
|
78
|
+
header_params = headers
|
|
79
|
+
|
|
80
|
+
leaf_template = "/orgs/{org}/packages/{package_type}/{package_name}"
|
|
81
|
+
path_params = {
|
|
82
|
+
'package_type': package_type,
|
|
83
|
+
'package_name': package_name,
|
|
84
|
+
'org': org,
|
|
85
|
+
}
|
|
86
|
+
call_leaf = leaf_template.format(**path_params)
|
|
87
|
+
|
|
88
|
+
query_params = None
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
if exp_status is None:
|
|
92
|
+
exp_status = [204]
|
|
93
|
+
|
|
94
|
+
resp = client.perform_call(
|
|
95
|
+
leaf=call_leaf,
|
|
96
|
+
method="DELETE",
|
|
97
|
+
params=query_params if query_params else None,
|
|
98
|
+
body=None,
|
|
99
|
+
exp_status=exp_status,
|
|
100
|
+
headers=header_params if header_params else None,
|
|
101
|
+
context_msg=None,
|
|
102
|
+
aspects=aspects,
|
|
103
|
+
)
|
|
104
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
105
|
+
rtnval = None
|
|
106
|
+
else:
|
|
107
|
+
rtnval = resp.json()
|
|
108
|
+
return rtnval
|
|
109
|
+
|
|
110
|
+
def delete_package_for_user(self, package_type: str, package_name: str, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
111
|
+
"""
|
|
112
|
+
Delete a package for a user
|
|
113
|
+
|
|
114
|
+
Deletes an entire package for a user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
|
|
115
|
+
|
|
116
|
+
If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
117
|
+
|
|
118
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
119
|
+
"""
|
|
120
|
+
client = self.client
|
|
121
|
+
if aspects is None:
|
|
122
|
+
aspects = client.aspects
|
|
123
|
+
|
|
124
|
+
header_params = client.headers
|
|
125
|
+
if headers is not None:
|
|
126
|
+
header_params = headers
|
|
127
|
+
|
|
128
|
+
leaf_template = "/users/{username}/packages/{package_type}/{package_name}"
|
|
129
|
+
path_params = {
|
|
130
|
+
'package_type': package_type,
|
|
131
|
+
'package_name': package_name,
|
|
132
|
+
'username': username,
|
|
133
|
+
}
|
|
134
|
+
call_leaf = leaf_template.format(**path_params)
|
|
135
|
+
|
|
136
|
+
query_params = None
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
if exp_status is None:
|
|
140
|
+
exp_status = [204]
|
|
141
|
+
|
|
142
|
+
resp = client.perform_call(
|
|
143
|
+
leaf=call_leaf,
|
|
144
|
+
method="DELETE",
|
|
145
|
+
params=query_params if query_params else None,
|
|
146
|
+
body=None,
|
|
147
|
+
exp_status=exp_status,
|
|
148
|
+
headers=header_params if header_params else None,
|
|
149
|
+
context_msg=None,
|
|
150
|
+
aspects=aspects,
|
|
151
|
+
)
|
|
152
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
153
|
+
rtnval = None
|
|
154
|
+
else:
|
|
155
|
+
rtnval = resp.json()
|
|
156
|
+
return rtnval
|
|
157
|
+
|
|
158
|
+
def delete_package_version_for_authenticated_user(self, package_type: str, package_name: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
159
|
+
"""
|
|
160
|
+
Delete a package version for the authenticated user
|
|
161
|
+
|
|
162
|
+
Deletes a specific package version for a package owned by the authenticated user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.
|
|
163
|
+
|
|
164
|
+
The authenticated user must have admin permissions in the organization to use this endpoint.
|
|
165
|
+
|
|
166
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
167
|
+
"""
|
|
168
|
+
client = self.client
|
|
169
|
+
if aspects is None:
|
|
170
|
+
aspects = client.aspects
|
|
171
|
+
|
|
172
|
+
header_params = client.headers
|
|
173
|
+
if headers is not None:
|
|
174
|
+
header_params = headers
|
|
175
|
+
|
|
176
|
+
leaf_template = "/user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
177
|
+
path_params = {
|
|
178
|
+
'package_type': package_type,
|
|
179
|
+
'package_name': package_name,
|
|
180
|
+
'package_version_id': package_version_id,
|
|
181
|
+
}
|
|
182
|
+
call_leaf = leaf_template.format(**path_params)
|
|
183
|
+
|
|
184
|
+
query_params = None
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
if exp_status is None:
|
|
188
|
+
exp_status = [204]
|
|
189
|
+
|
|
190
|
+
resp = client.perform_call(
|
|
191
|
+
leaf=call_leaf,
|
|
192
|
+
method="DELETE",
|
|
193
|
+
params=query_params if query_params else None,
|
|
194
|
+
body=None,
|
|
195
|
+
exp_status=exp_status,
|
|
196
|
+
headers=header_params if header_params else None,
|
|
197
|
+
context_msg=None,
|
|
198
|
+
aspects=aspects,
|
|
199
|
+
)
|
|
200
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
201
|
+
rtnval = None
|
|
202
|
+
else:
|
|
203
|
+
rtnval = resp.json()
|
|
204
|
+
return rtnval
|
|
205
|
+
|
|
206
|
+
def delete_package_version_for_org(self, package_type: str, package_name: str, org: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
207
|
+
"""
|
|
208
|
+
Delete package version for an organization
|
|
209
|
+
|
|
210
|
+
Deletes a specific package version in an organization. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.
|
|
211
|
+
|
|
212
|
+
The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
213
|
+
|
|
214
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
215
|
+
"""
|
|
216
|
+
client = self.client
|
|
217
|
+
if aspects is None:
|
|
218
|
+
aspects = client.aspects
|
|
219
|
+
|
|
220
|
+
header_params = client.headers
|
|
221
|
+
if headers is not None:
|
|
222
|
+
header_params = headers
|
|
223
|
+
|
|
224
|
+
leaf_template = "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
225
|
+
path_params = {
|
|
226
|
+
'package_type': package_type,
|
|
227
|
+
'package_name': package_name,
|
|
228
|
+
'org': org,
|
|
229
|
+
'package_version_id': package_version_id,
|
|
230
|
+
}
|
|
231
|
+
call_leaf = leaf_template.format(**path_params)
|
|
232
|
+
|
|
233
|
+
query_params = None
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
if exp_status is None:
|
|
237
|
+
exp_status = [204]
|
|
238
|
+
|
|
239
|
+
resp = client.perform_call(
|
|
240
|
+
leaf=call_leaf,
|
|
241
|
+
method="DELETE",
|
|
242
|
+
params=query_params if query_params else None,
|
|
243
|
+
body=None,
|
|
244
|
+
exp_status=exp_status,
|
|
245
|
+
headers=header_params if header_params else None,
|
|
246
|
+
context_msg=None,
|
|
247
|
+
aspects=aspects,
|
|
248
|
+
)
|
|
249
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
250
|
+
rtnval = None
|
|
251
|
+
else:
|
|
252
|
+
rtnval = resp.json()
|
|
253
|
+
return rtnval
|
|
254
|
+
|
|
255
|
+
def delete_package_version_for_user(self, package_type: str, package_name: str, username: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
256
|
+
"""
|
|
257
|
+
Delete package version for a user
|
|
258
|
+
|
|
259
|
+
Deletes a specific package version for a user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.
|
|
260
|
+
|
|
261
|
+
If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
262
|
+
|
|
263
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
264
|
+
"""
|
|
265
|
+
client = self.client
|
|
266
|
+
if aspects is None:
|
|
267
|
+
aspects = client.aspects
|
|
268
|
+
|
|
269
|
+
header_params = client.headers
|
|
270
|
+
if headers is not None:
|
|
271
|
+
header_params = headers
|
|
272
|
+
|
|
273
|
+
leaf_template = "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
274
|
+
path_params = {
|
|
275
|
+
'package_type': package_type,
|
|
276
|
+
'package_name': package_name,
|
|
277
|
+
'username': username,
|
|
278
|
+
'package_version_id': package_version_id,
|
|
279
|
+
}
|
|
280
|
+
call_leaf = leaf_template.format(**path_params)
|
|
281
|
+
|
|
282
|
+
query_params = None
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
if exp_status is None:
|
|
286
|
+
exp_status = [204]
|
|
287
|
+
|
|
288
|
+
resp = client.perform_call(
|
|
289
|
+
leaf=call_leaf,
|
|
290
|
+
method="DELETE",
|
|
291
|
+
params=query_params if query_params else None,
|
|
292
|
+
body=None,
|
|
293
|
+
exp_status=exp_status,
|
|
294
|
+
headers=header_params if header_params else None,
|
|
295
|
+
context_msg=None,
|
|
296
|
+
aspects=aspects,
|
|
297
|
+
)
|
|
298
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
299
|
+
rtnval = None
|
|
300
|
+
else:
|
|
301
|
+
rtnval = resp.json()
|
|
302
|
+
return rtnval
|
|
303
|
+
|
|
304
|
+
def get_package_for_authenticated_user(self, package_type: str, package_name: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Package:
|
|
305
|
+
"""
|
|
306
|
+
Get a package for the authenticated user
|
|
307
|
+
|
|
308
|
+
Gets a specific package for a package owned by the authenticated user.
|
|
309
|
+
|
|
310
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
311
|
+
"""
|
|
312
|
+
client = self.client
|
|
313
|
+
if aspects is None:
|
|
314
|
+
aspects = client.aspects
|
|
315
|
+
|
|
316
|
+
header_params = client.headers
|
|
317
|
+
if headers is not None:
|
|
318
|
+
header_params = headers
|
|
319
|
+
|
|
320
|
+
leaf_template = "/user/packages/{package_type}/{package_name}"
|
|
321
|
+
path_params = {
|
|
322
|
+
'package_type': package_type,
|
|
323
|
+
'package_name': package_name,
|
|
324
|
+
}
|
|
325
|
+
call_leaf = leaf_template.format(**path_params)
|
|
326
|
+
|
|
327
|
+
query_params = None
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
if exp_status is None:
|
|
331
|
+
exp_status = [200]
|
|
332
|
+
|
|
333
|
+
resp = client.perform_call(
|
|
334
|
+
leaf=call_leaf,
|
|
335
|
+
method="GET",
|
|
336
|
+
params=query_params if query_params else None,
|
|
337
|
+
body=None,
|
|
338
|
+
exp_status=exp_status,
|
|
339
|
+
headers=header_params if header_params else None,
|
|
340
|
+
context_msg=None,
|
|
341
|
+
aspects=aspects,
|
|
342
|
+
)
|
|
343
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
344
|
+
rtnobj = None
|
|
345
|
+
else:
|
|
346
|
+
raw_data = resp.json()
|
|
347
|
+
rtnobj = Package.from_dict(raw_data)
|
|
348
|
+
return rtnobj
|
|
349
|
+
|
|
350
|
+
def get_package_for_organization(self, package_type: str, package_name: str, org: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Package:
|
|
351
|
+
"""
|
|
352
|
+
Get a package for an organization
|
|
353
|
+
|
|
354
|
+
Gets a specific package in an organization.
|
|
355
|
+
|
|
356
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
357
|
+
"""
|
|
358
|
+
client = self.client
|
|
359
|
+
if aspects is None:
|
|
360
|
+
aspects = client.aspects
|
|
361
|
+
|
|
362
|
+
header_params = client.headers
|
|
363
|
+
if headers is not None:
|
|
364
|
+
header_params = headers
|
|
365
|
+
|
|
366
|
+
leaf_template = "/orgs/{org}/packages/{package_type}/{package_name}"
|
|
367
|
+
path_params = {
|
|
368
|
+
'package_type': package_type,
|
|
369
|
+
'package_name': package_name,
|
|
370
|
+
'org': org,
|
|
371
|
+
}
|
|
372
|
+
call_leaf = leaf_template.format(**path_params)
|
|
373
|
+
|
|
374
|
+
query_params = None
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
if exp_status is None:
|
|
378
|
+
exp_status = [200]
|
|
379
|
+
|
|
380
|
+
resp = client.perform_call(
|
|
381
|
+
leaf=call_leaf,
|
|
382
|
+
method="GET",
|
|
383
|
+
params=query_params if query_params else None,
|
|
384
|
+
body=None,
|
|
385
|
+
exp_status=exp_status,
|
|
386
|
+
headers=header_params if header_params else None,
|
|
387
|
+
context_msg=None,
|
|
388
|
+
aspects=aspects,
|
|
389
|
+
)
|
|
390
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
391
|
+
rtnobj = None
|
|
392
|
+
else:
|
|
393
|
+
raw_data = resp.json()
|
|
394
|
+
rtnobj = Package.from_dict(raw_data)
|
|
395
|
+
return rtnobj
|
|
396
|
+
|
|
397
|
+
def get_package_for_user(self, package_type: str, package_name: str, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Package:
|
|
398
|
+
"""
|
|
399
|
+
Get a package for a user
|
|
400
|
+
|
|
401
|
+
Gets a specific package metadata for a public package owned by a user.
|
|
402
|
+
|
|
403
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
404
|
+
"""
|
|
405
|
+
client = self.client
|
|
406
|
+
if aspects is None:
|
|
407
|
+
aspects = client.aspects
|
|
408
|
+
|
|
409
|
+
header_params = client.headers
|
|
410
|
+
if headers is not None:
|
|
411
|
+
header_params = headers
|
|
412
|
+
|
|
413
|
+
leaf_template = "/users/{username}/packages/{package_type}/{package_name}"
|
|
414
|
+
path_params = {
|
|
415
|
+
'package_type': package_type,
|
|
416
|
+
'package_name': package_name,
|
|
417
|
+
'username': username,
|
|
418
|
+
}
|
|
419
|
+
call_leaf = leaf_template.format(**path_params)
|
|
420
|
+
|
|
421
|
+
query_params = None
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
if exp_status is None:
|
|
425
|
+
exp_status = [200]
|
|
426
|
+
|
|
427
|
+
resp = client.perform_call(
|
|
428
|
+
leaf=call_leaf,
|
|
429
|
+
method="GET",
|
|
430
|
+
params=query_params if query_params else None,
|
|
431
|
+
body=None,
|
|
432
|
+
exp_status=exp_status,
|
|
433
|
+
headers=header_params if header_params else None,
|
|
434
|
+
context_msg=None,
|
|
435
|
+
aspects=aspects,
|
|
436
|
+
)
|
|
437
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
438
|
+
rtnobj = None
|
|
439
|
+
else:
|
|
440
|
+
raw_data = resp.json()
|
|
441
|
+
rtnobj = Package.from_dict(raw_data)
|
|
442
|
+
return rtnobj
|
|
443
|
+
|
|
444
|
+
def get_package_version_for_authenticated_user(self, package_type: str, package_name: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PackageVersion:
|
|
445
|
+
"""
|
|
446
|
+
Get a package version for the authenticated user
|
|
447
|
+
|
|
448
|
+
Gets a specific package version for a package owned by the authenticated user.
|
|
449
|
+
|
|
450
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
451
|
+
"""
|
|
452
|
+
client = self.client
|
|
453
|
+
if aspects is None:
|
|
454
|
+
aspects = client.aspects
|
|
455
|
+
|
|
456
|
+
header_params = client.headers
|
|
457
|
+
if headers is not None:
|
|
458
|
+
header_params = headers
|
|
459
|
+
|
|
460
|
+
leaf_template = "/user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
461
|
+
path_params = {
|
|
462
|
+
'package_type': package_type,
|
|
463
|
+
'package_name': package_name,
|
|
464
|
+
'package_version_id': package_version_id,
|
|
465
|
+
}
|
|
466
|
+
call_leaf = leaf_template.format(**path_params)
|
|
467
|
+
|
|
468
|
+
query_params = None
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
if exp_status is None:
|
|
472
|
+
exp_status = [200]
|
|
473
|
+
|
|
474
|
+
resp = client.perform_call(
|
|
475
|
+
leaf=call_leaf,
|
|
476
|
+
method="GET",
|
|
477
|
+
params=query_params if query_params else None,
|
|
478
|
+
body=None,
|
|
479
|
+
exp_status=exp_status,
|
|
480
|
+
headers=header_params if header_params else None,
|
|
481
|
+
context_msg=None,
|
|
482
|
+
aspects=aspects,
|
|
483
|
+
)
|
|
484
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
485
|
+
rtnobj = None
|
|
486
|
+
else:
|
|
487
|
+
raw_data = resp.json()
|
|
488
|
+
rtnobj = PackageVersion.from_dict(raw_data)
|
|
489
|
+
return rtnobj
|
|
490
|
+
|
|
491
|
+
def get_package_version_for_organization(self, package_type: str, package_name: str, org: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PackageVersion:
|
|
492
|
+
"""
|
|
493
|
+
Get a package version for an organization
|
|
494
|
+
|
|
495
|
+
Gets a specific package version in an organization.
|
|
496
|
+
|
|
497
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
498
|
+
"""
|
|
499
|
+
client = self.client
|
|
500
|
+
if aspects is None:
|
|
501
|
+
aspects = client.aspects
|
|
502
|
+
|
|
503
|
+
header_params = client.headers
|
|
504
|
+
if headers is not None:
|
|
505
|
+
header_params = headers
|
|
506
|
+
|
|
507
|
+
leaf_template = "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
508
|
+
path_params = {
|
|
509
|
+
'package_type': package_type,
|
|
510
|
+
'package_name': package_name,
|
|
511
|
+
'org': org,
|
|
512
|
+
'package_version_id': package_version_id,
|
|
513
|
+
}
|
|
514
|
+
call_leaf = leaf_template.format(**path_params)
|
|
515
|
+
|
|
516
|
+
query_params = None
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
if exp_status is None:
|
|
520
|
+
exp_status = [200]
|
|
521
|
+
|
|
522
|
+
resp = client.perform_call(
|
|
523
|
+
leaf=call_leaf,
|
|
524
|
+
method="GET",
|
|
525
|
+
params=query_params if query_params else None,
|
|
526
|
+
body=None,
|
|
527
|
+
exp_status=exp_status,
|
|
528
|
+
headers=header_params if header_params else None,
|
|
529
|
+
context_msg=None,
|
|
530
|
+
aspects=aspects,
|
|
531
|
+
)
|
|
532
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
533
|
+
rtnobj = None
|
|
534
|
+
else:
|
|
535
|
+
raw_data = resp.json()
|
|
536
|
+
rtnobj = PackageVersion.from_dict(raw_data)
|
|
537
|
+
return rtnobj
|
|
538
|
+
|
|
539
|
+
def get_package_version_for_user(self, package_type: str, package_name: str, package_version_id: int, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PackageVersion:
|
|
540
|
+
"""
|
|
541
|
+
Get a package version for a user
|
|
542
|
+
|
|
543
|
+
Gets a specific package version for a public package owned by a specified user.
|
|
544
|
+
|
|
545
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
546
|
+
"""
|
|
547
|
+
client = self.client
|
|
548
|
+
if aspects is None:
|
|
549
|
+
aspects = client.aspects
|
|
550
|
+
|
|
551
|
+
header_params = client.headers
|
|
552
|
+
if headers is not None:
|
|
553
|
+
header_params = headers
|
|
554
|
+
|
|
555
|
+
leaf_template = "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
556
|
+
path_params = {
|
|
557
|
+
'package_type': package_type,
|
|
558
|
+
'package_name': package_name,
|
|
559
|
+
'package_version_id': package_version_id,
|
|
560
|
+
'username': username,
|
|
561
|
+
}
|
|
562
|
+
call_leaf = leaf_template.format(**path_params)
|
|
563
|
+
|
|
564
|
+
query_params = None
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
if exp_status is None:
|
|
568
|
+
exp_status = [200]
|
|
569
|
+
|
|
570
|
+
resp = client.perform_call(
|
|
571
|
+
leaf=call_leaf,
|
|
572
|
+
method="GET",
|
|
573
|
+
params=query_params if query_params else None,
|
|
574
|
+
body=None,
|
|
575
|
+
exp_status=exp_status,
|
|
576
|
+
headers=header_params if header_params else None,
|
|
577
|
+
context_msg=None,
|
|
578
|
+
aspects=aspects,
|
|
579
|
+
)
|
|
580
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
581
|
+
rtnobj = None
|
|
582
|
+
else:
|
|
583
|
+
raw_data = resp.json()
|
|
584
|
+
rtnobj = PackageVersion.from_dict(raw_data)
|
|
585
|
+
return rtnobj
|
|
586
|
+
|
|
587
|
+
def list_docker_migration_conflicting_packages_for_authenticated_user(self, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[Package]:
|
|
588
|
+
"""
|
|
589
|
+
Get list of conflicting packages during Docker migration for authenticated-user
|
|
590
|
+
|
|
591
|
+
Lists all packages that are owned by the authenticated user within the user's namespace, and that encountered a conflict during a Docker migration.
|
|
592
|
+
|
|
593
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
|
|
594
|
+
"""
|
|
595
|
+
client = self.client
|
|
596
|
+
if aspects is None:
|
|
597
|
+
aspects = client.aspects
|
|
598
|
+
|
|
599
|
+
header_params = client.headers
|
|
600
|
+
if headers is not None:
|
|
601
|
+
header_params = headers
|
|
602
|
+
|
|
603
|
+
call_leaf = "/user/docker/conflicts"
|
|
604
|
+
|
|
605
|
+
query_params = None
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
if exp_status is None:
|
|
609
|
+
exp_status = [200]
|
|
610
|
+
|
|
611
|
+
resp = client.perform_call(
|
|
612
|
+
leaf=call_leaf,
|
|
613
|
+
method="GET",
|
|
614
|
+
params=query_params if query_params else None,
|
|
615
|
+
body=None,
|
|
616
|
+
exp_status=exp_status,
|
|
617
|
+
headers=header_params if header_params else None,
|
|
618
|
+
context_msg=None,
|
|
619
|
+
aspects=aspects,
|
|
620
|
+
)
|
|
621
|
+
raw_data = resp.json()
|
|
622
|
+
items = [self._parse_item(item, Package) for item in raw_data]
|
|
623
|
+
return items
|
|
624
|
+
|
|
625
|
+
def list_docker_migration_conflicting_packages_for_organization(self, org: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[Package]:
|
|
626
|
+
"""
|
|
627
|
+
Get list of conflicting packages during Docker migration for organization
|
|
628
|
+
|
|
629
|
+
Lists all packages that are in a specific organization, are readable by the requesting user, and that encountered a conflict during a Docker migration.
|
|
630
|
+
|
|
631
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
|
|
632
|
+
"""
|
|
633
|
+
client = self.client
|
|
634
|
+
if aspects is None:
|
|
635
|
+
aspects = client.aspects
|
|
636
|
+
|
|
637
|
+
header_params = client.headers
|
|
638
|
+
if headers is not None:
|
|
639
|
+
header_params = headers
|
|
640
|
+
|
|
641
|
+
leaf_template = "/orgs/{org}/docker/conflicts"
|
|
642
|
+
path_params = {
|
|
643
|
+
'org': org,
|
|
644
|
+
}
|
|
645
|
+
call_leaf = leaf_template.format(**path_params)
|
|
646
|
+
|
|
647
|
+
query_params = None
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
if exp_status is None:
|
|
651
|
+
exp_status = [200]
|
|
652
|
+
|
|
653
|
+
resp = client.perform_call(
|
|
654
|
+
leaf=call_leaf,
|
|
655
|
+
method="GET",
|
|
656
|
+
params=query_params if query_params else None,
|
|
657
|
+
body=None,
|
|
658
|
+
exp_status=exp_status,
|
|
659
|
+
headers=header_params if header_params else None,
|
|
660
|
+
context_msg=None,
|
|
661
|
+
aspects=aspects,
|
|
662
|
+
)
|
|
663
|
+
raw_data = resp.json()
|
|
664
|
+
items = [self._parse_item(item, Package) for item in raw_data]
|
|
665
|
+
return items
|
|
666
|
+
|
|
667
|
+
def list_docker_migration_conflicting_packages_for_user(self, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[Package]:
|
|
668
|
+
"""
|
|
669
|
+
Get list of conflicting packages during Docker migration for user
|
|
670
|
+
|
|
671
|
+
Lists all packages that are in a specific user's namespace, that the requesting user has access to, and that encountered a conflict during Docker migration.
|
|
672
|
+
|
|
673
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
|
|
674
|
+
"""
|
|
675
|
+
client = self.client
|
|
676
|
+
if aspects is None:
|
|
677
|
+
aspects = client.aspects
|
|
678
|
+
|
|
679
|
+
header_params = client.headers
|
|
680
|
+
if headers is not None:
|
|
681
|
+
header_params = headers
|
|
682
|
+
|
|
683
|
+
leaf_template = "/users/{username}/docker/conflicts"
|
|
684
|
+
path_params = {
|
|
685
|
+
'username': username,
|
|
686
|
+
}
|
|
687
|
+
call_leaf = leaf_template.format(**path_params)
|
|
688
|
+
|
|
689
|
+
query_params = None
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
if exp_status is None:
|
|
693
|
+
exp_status = [200]
|
|
694
|
+
|
|
695
|
+
resp = client.perform_call(
|
|
696
|
+
leaf=call_leaf,
|
|
697
|
+
method="GET",
|
|
698
|
+
params=query_params if query_params else None,
|
|
699
|
+
body=None,
|
|
700
|
+
exp_status=exp_status,
|
|
701
|
+
headers=header_params if header_params else None,
|
|
702
|
+
context_msg=None,
|
|
703
|
+
aspects=aspects,
|
|
704
|
+
)
|
|
705
|
+
raw_data = resp.json()
|
|
706
|
+
items = [self._parse_item(item, Package) for item in raw_data]
|
|
707
|
+
return items
|
|
708
|
+
|
|
709
|
+
def list_package_versions_for_package_owned_by_authenticated_user(self, package_type: str, package_name: str, *, page: Optional[int] = 1, per_page: Optional[int] = 30, state: Optional[str] = "active", exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[PackageVersion]:
|
|
710
|
+
"""
|
|
711
|
+
List package versions for a package owned by the authenticated user
|
|
712
|
+
|
|
713
|
+
Lists package versions for a package owned by the authenticated user.
|
|
714
|
+
|
|
715
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
716
|
+
"""
|
|
717
|
+
client = self.client
|
|
718
|
+
if aspects is None:
|
|
719
|
+
aspects = client.aspects
|
|
720
|
+
|
|
721
|
+
header_params = client.headers
|
|
722
|
+
if headers is not None:
|
|
723
|
+
header_params = headers
|
|
724
|
+
|
|
725
|
+
leaf_template = "/user/packages/{package_type}/{package_name}/versions"
|
|
726
|
+
path_params = {
|
|
727
|
+
'package_type': package_type,
|
|
728
|
+
'package_name': package_name,
|
|
729
|
+
}
|
|
730
|
+
call_leaf = leaf_template.format(**path_params)
|
|
731
|
+
|
|
732
|
+
query_params = {}
|
|
733
|
+
if page is not None:
|
|
734
|
+
query_params['page'] = page
|
|
735
|
+
if per_page is not None:
|
|
736
|
+
query_params['per_page'] = per_page
|
|
737
|
+
if state is not None:
|
|
738
|
+
query_params['state'] = state
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
if exp_status is None:
|
|
742
|
+
exp_status = [200]
|
|
743
|
+
|
|
744
|
+
resp = client.perform_call(
|
|
745
|
+
leaf=call_leaf,
|
|
746
|
+
method="GET",
|
|
747
|
+
params=query_params if query_params else None,
|
|
748
|
+
body=None,
|
|
749
|
+
exp_status=exp_status,
|
|
750
|
+
headers=header_params if header_params else None,
|
|
751
|
+
context_msg=None,
|
|
752
|
+
aspects=aspects,
|
|
753
|
+
)
|
|
754
|
+
raw_data = resp.json()
|
|
755
|
+
items = [self._parse_item(item, PackageVersion) for item in raw_data]
|
|
756
|
+
rtnval = PagedList[PackageVersion](items, dict(resp.headers), raw_data)
|
|
757
|
+
return rtnval
|
|
758
|
+
|
|
759
|
+
def list_package_versions_for_package_owned_by_org(self, package_type: str, package_name: str, org: str, *, page: Optional[int] = 1, per_page: Optional[int] = 30, state: Optional[str] = "active", exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[PackageVersion]:
|
|
760
|
+
"""
|
|
761
|
+
List package versions for a package owned by an organization
|
|
762
|
+
|
|
763
|
+
Lists package versions for a package owned by an organization.
|
|
764
|
+
|
|
765
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
766
|
+
"""
|
|
767
|
+
client = self.client
|
|
768
|
+
if aspects is None:
|
|
769
|
+
aspects = client.aspects
|
|
770
|
+
|
|
771
|
+
header_params = client.headers
|
|
772
|
+
if headers is not None:
|
|
773
|
+
header_params = headers
|
|
774
|
+
|
|
775
|
+
leaf_template = "/orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
776
|
+
path_params = {
|
|
777
|
+
'package_type': package_type,
|
|
778
|
+
'package_name': package_name,
|
|
779
|
+
'org': org,
|
|
780
|
+
}
|
|
781
|
+
call_leaf = leaf_template.format(**path_params)
|
|
782
|
+
|
|
783
|
+
query_params = {}
|
|
784
|
+
if page is not None:
|
|
785
|
+
query_params['page'] = page
|
|
786
|
+
if per_page is not None:
|
|
787
|
+
query_params['per_page'] = per_page
|
|
788
|
+
if state is not None:
|
|
789
|
+
query_params['state'] = state
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
if exp_status is None:
|
|
793
|
+
exp_status = [200]
|
|
794
|
+
|
|
795
|
+
resp = client.perform_call(
|
|
796
|
+
leaf=call_leaf,
|
|
797
|
+
method="GET",
|
|
798
|
+
params=query_params if query_params else None,
|
|
799
|
+
body=None,
|
|
800
|
+
exp_status=exp_status,
|
|
801
|
+
headers=header_params if header_params else None,
|
|
802
|
+
context_msg=None,
|
|
803
|
+
aspects=aspects,
|
|
804
|
+
)
|
|
805
|
+
raw_data = resp.json()
|
|
806
|
+
items = [self._parse_item(item, PackageVersion) for item in raw_data]
|
|
807
|
+
rtnval = PagedList[PackageVersion](items, dict(resp.headers), raw_data)
|
|
808
|
+
return rtnval
|
|
809
|
+
|
|
810
|
+
def list_package_versions_for_package_owned_by_user(self, package_type: str, package_name: str, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[PackageVersion]:
|
|
811
|
+
"""
|
|
812
|
+
List package versions for a package owned by a user
|
|
813
|
+
|
|
814
|
+
Lists package versions for a public package owned by a specified user.
|
|
815
|
+
|
|
816
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
817
|
+
"""
|
|
818
|
+
client = self.client
|
|
819
|
+
if aspects is None:
|
|
820
|
+
aspects = client.aspects
|
|
821
|
+
|
|
822
|
+
header_params = client.headers
|
|
823
|
+
if headers is not None:
|
|
824
|
+
header_params = headers
|
|
825
|
+
|
|
826
|
+
leaf_template = "/users/{username}/packages/{package_type}/{package_name}/versions"
|
|
827
|
+
path_params = {
|
|
828
|
+
'package_type': package_type,
|
|
829
|
+
'package_name': package_name,
|
|
830
|
+
'username': username,
|
|
831
|
+
}
|
|
832
|
+
call_leaf = leaf_template.format(**path_params)
|
|
833
|
+
|
|
834
|
+
query_params = None
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
if exp_status is None:
|
|
838
|
+
exp_status = [200]
|
|
839
|
+
|
|
840
|
+
resp = client.perform_call(
|
|
841
|
+
leaf=call_leaf,
|
|
842
|
+
method="GET",
|
|
843
|
+
params=query_params if query_params else None,
|
|
844
|
+
body=None,
|
|
845
|
+
exp_status=exp_status,
|
|
846
|
+
headers=header_params if header_params else None,
|
|
847
|
+
context_msg=None,
|
|
848
|
+
aspects=aspects,
|
|
849
|
+
)
|
|
850
|
+
raw_data = resp.json()
|
|
851
|
+
items = [self._parse_item(item, PackageVersion) for item in raw_data]
|
|
852
|
+
return items
|
|
853
|
+
|
|
854
|
+
def list_packages_for_authenticated_user(self, package_type: str, *, visibility: Optional[str] = None, 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[Package]:
|
|
855
|
+
"""
|
|
856
|
+
List packages for the authenticated user's namespace
|
|
857
|
+
|
|
858
|
+
Lists packages owned by the authenticated user within the user's namespace.
|
|
859
|
+
|
|
860
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
861
|
+
"""
|
|
862
|
+
client = self.client
|
|
863
|
+
if aspects is None:
|
|
864
|
+
aspects = client.aspects
|
|
865
|
+
|
|
866
|
+
header_params = client.headers
|
|
867
|
+
if headers is not None:
|
|
868
|
+
header_params = headers
|
|
869
|
+
|
|
870
|
+
call_leaf = "/user/packages"
|
|
871
|
+
|
|
872
|
+
query_params = {}
|
|
873
|
+
if package_type is not None:
|
|
874
|
+
query_params['package_type'] = package_type
|
|
875
|
+
if visibility is not None:
|
|
876
|
+
query_params['visibility'] = visibility
|
|
877
|
+
if page is not None:
|
|
878
|
+
query_params['page'] = page
|
|
879
|
+
if per_page is not None:
|
|
880
|
+
query_params['per_page'] = per_page
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
if exp_status is None:
|
|
884
|
+
exp_status = [200]
|
|
885
|
+
|
|
886
|
+
resp = client.perform_call(
|
|
887
|
+
leaf=call_leaf,
|
|
888
|
+
method="GET",
|
|
889
|
+
params=query_params if query_params else None,
|
|
890
|
+
body=None,
|
|
891
|
+
exp_status=exp_status,
|
|
892
|
+
headers=header_params if header_params else None,
|
|
893
|
+
context_msg=None,
|
|
894
|
+
aspects=aspects,
|
|
895
|
+
)
|
|
896
|
+
raw_data = resp.json()
|
|
897
|
+
items = [self._parse_item(item, Package) for item in raw_data]
|
|
898
|
+
rtnval = PagedList[Package](items, dict(resp.headers), raw_data)
|
|
899
|
+
return rtnval
|
|
900
|
+
|
|
901
|
+
def list_packages_for_organization(self, org: str, package_type: str, *, visibility: Optional[str] = None, 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[Package]:
|
|
902
|
+
"""
|
|
903
|
+
List packages for an organization
|
|
904
|
+
|
|
905
|
+
Lists packages in an organization readable by the user.
|
|
906
|
+
|
|
907
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
908
|
+
"""
|
|
909
|
+
client = self.client
|
|
910
|
+
if aspects is None:
|
|
911
|
+
aspects = client.aspects
|
|
912
|
+
|
|
913
|
+
header_params = client.headers
|
|
914
|
+
if headers is not None:
|
|
915
|
+
header_params = headers
|
|
916
|
+
|
|
917
|
+
leaf_template = "/orgs/{org}/packages"
|
|
918
|
+
path_params = {
|
|
919
|
+
'org': org,
|
|
920
|
+
}
|
|
921
|
+
call_leaf = leaf_template.format(**path_params)
|
|
922
|
+
|
|
923
|
+
query_params = {}
|
|
924
|
+
if package_type is not None:
|
|
925
|
+
query_params['package_type'] = package_type
|
|
926
|
+
if visibility is not None:
|
|
927
|
+
query_params['visibility'] = visibility
|
|
928
|
+
if page is not None:
|
|
929
|
+
query_params['page'] = page
|
|
930
|
+
if per_page is not None:
|
|
931
|
+
query_params['per_page'] = per_page
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
if exp_status is None:
|
|
935
|
+
exp_status = [200]
|
|
936
|
+
|
|
937
|
+
resp = client.perform_call(
|
|
938
|
+
leaf=call_leaf,
|
|
939
|
+
method="GET",
|
|
940
|
+
params=query_params if query_params else None,
|
|
941
|
+
body=None,
|
|
942
|
+
exp_status=exp_status,
|
|
943
|
+
headers=header_params if header_params else None,
|
|
944
|
+
context_msg=None,
|
|
945
|
+
aspects=aspects,
|
|
946
|
+
)
|
|
947
|
+
raw_data = resp.json()
|
|
948
|
+
items = [self._parse_item(item, Package) for item in raw_data]
|
|
949
|
+
rtnval = PagedList[Package](items, dict(resp.headers), raw_data)
|
|
950
|
+
return rtnval
|
|
951
|
+
|
|
952
|
+
def list_packages_for_user(self, username: str, package_type: str, *, visibility: Optional[str] = None, 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[Package]:
|
|
953
|
+
"""
|
|
954
|
+
List packages for a user
|
|
955
|
+
|
|
956
|
+
Lists all packages in a user's namespace for which the requesting user has access.
|
|
957
|
+
|
|
958
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
959
|
+
"""
|
|
960
|
+
client = self.client
|
|
961
|
+
if aspects is None:
|
|
962
|
+
aspects = client.aspects
|
|
963
|
+
|
|
964
|
+
header_params = client.headers
|
|
965
|
+
if headers is not None:
|
|
966
|
+
header_params = headers
|
|
967
|
+
|
|
968
|
+
leaf_template = "/users/{username}/packages"
|
|
969
|
+
path_params = {
|
|
970
|
+
'username': username,
|
|
971
|
+
}
|
|
972
|
+
call_leaf = leaf_template.format(**path_params)
|
|
973
|
+
|
|
974
|
+
query_params = {}
|
|
975
|
+
if package_type is not None:
|
|
976
|
+
query_params['package_type'] = package_type
|
|
977
|
+
if visibility is not None:
|
|
978
|
+
query_params['visibility'] = visibility
|
|
979
|
+
if page is not None:
|
|
980
|
+
query_params['page'] = page
|
|
981
|
+
if per_page is not None:
|
|
982
|
+
query_params['per_page'] = per_page
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
if exp_status is None:
|
|
986
|
+
exp_status = [200]
|
|
987
|
+
|
|
988
|
+
resp = client.perform_call(
|
|
989
|
+
leaf=call_leaf,
|
|
990
|
+
method="GET",
|
|
991
|
+
params=query_params if query_params else None,
|
|
992
|
+
body=None,
|
|
993
|
+
exp_status=exp_status,
|
|
994
|
+
headers=header_params if header_params else None,
|
|
995
|
+
context_msg=None,
|
|
996
|
+
aspects=aspects,
|
|
997
|
+
)
|
|
998
|
+
raw_data = resp.json()
|
|
999
|
+
items = [self._parse_item(item, Package) for item in raw_data]
|
|
1000
|
+
rtnval = PagedList[Package](items, dict(resp.headers), raw_data)
|
|
1001
|
+
return rtnval
|
|
1002
|
+
|
|
1003
|
+
def restore_package_for_authenticated_user(self, package_type: str, package_name: str, *, token: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
1004
|
+
"""
|
|
1005
|
+
Restore a package for the authenticated user
|
|
1006
|
+
|
|
1007
|
+
Restores a package owned by the authenticated user.
|
|
1008
|
+
|
|
1009
|
+
You can restore a deleted package under the following conditions:
|
|
1010
|
+
- The package was deleted within the last 30 days.
|
|
1011
|
+
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
|
|
1012
|
+
|
|
1013
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
1014
|
+
"""
|
|
1015
|
+
client = self.client
|
|
1016
|
+
if aspects is None:
|
|
1017
|
+
aspects = client.aspects
|
|
1018
|
+
|
|
1019
|
+
header_params = client.headers
|
|
1020
|
+
if headers is not None:
|
|
1021
|
+
header_params = headers
|
|
1022
|
+
|
|
1023
|
+
leaf_template = "/user/packages/{package_type}/{package_name}/restore"
|
|
1024
|
+
path_params = {
|
|
1025
|
+
'package_type': package_type,
|
|
1026
|
+
'package_name': package_name,
|
|
1027
|
+
}
|
|
1028
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1029
|
+
|
|
1030
|
+
query_params = {}
|
|
1031
|
+
if token is not None:
|
|
1032
|
+
query_params['token'] = token
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
if exp_status is None:
|
|
1036
|
+
exp_status = [204]
|
|
1037
|
+
|
|
1038
|
+
resp = client.perform_call(
|
|
1039
|
+
leaf=call_leaf,
|
|
1040
|
+
method="POST",
|
|
1041
|
+
params=query_params if query_params else None,
|
|
1042
|
+
body=None,
|
|
1043
|
+
exp_status=exp_status,
|
|
1044
|
+
headers=header_params if header_params else None,
|
|
1045
|
+
context_msg=None,
|
|
1046
|
+
aspects=aspects,
|
|
1047
|
+
)
|
|
1048
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
1049
|
+
rtnval = None
|
|
1050
|
+
else:
|
|
1051
|
+
rtnval = resp.json()
|
|
1052
|
+
return rtnval
|
|
1053
|
+
|
|
1054
|
+
def restore_package_for_org(self, package_type: str, package_name: str, org: str, *, token: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
1055
|
+
"""
|
|
1056
|
+
Restore a package for an organization
|
|
1057
|
+
|
|
1058
|
+
Restores an entire package in an organization.
|
|
1059
|
+
|
|
1060
|
+
You can restore a deleted package under the following conditions:
|
|
1061
|
+
- The package was deleted within the last 30 days.
|
|
1062
|
+
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
|
|
1063
|
+
|
|
1064
|
+
The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
1065
|
+
|
|
1066
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
1067
|
+
"""
|
|
1068
|
+
client = self.client
|
|
1069
|
+
if aspects is None:
|
|
1070
|
+
aspects = client.aspects
|
|
1071
|
+
|
|
1072
|
+
header_params = client.headers
|
|
1073
|
+
if headers is not None:
|
|
1074
|
+
header_params = headers
|
|
1075
|
+
|
|
1076
|
+
leaf_template = "/orgs/{org}/packages/{package_type}/{package_name}/restore"
|
|
1077
|
+
path_params = {
|
|
1078
|
+
'package_type': package_type,
|
|
1079
|
+
'package_name': package_name,
|
|
1080
|
+
'org': org,
|
|
1081
|
+
}
|
|
1082
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1083
|
+
|
|
1084
|
+
query_params = {}
|
|
1085
|
+
if token is not None:
|
|
1086
|
+
query_params['token'] = token
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
if exp_status is None:
|
|
1090
|
+
exp_status = [204]
|
|
1091
|
+
|
|
1092
|
+
resp = client.perform_call(
|
|
1093
|
+
leaf=call_leaf,
|
|
1094
|
+
method="POST",
|
|
1095
|
+
params=query_params if query_params else None,
|
|
1096
|
+
body=None,
|
|
1097
|
+
exp_status=exp_status,
|
|
1098
|
+
headers=header_params if header_params else None,
|
|
1099
|
+
context_msg=None,
|
|
1100
|
+
aspects=aspects,
|
|
1101
|
+
)
|
|
1102
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
1103
|
+
rtnval = None
|
|
1104
|
+
else:
|
|
1105
|
+
rtnval = resp.json()
|
|
1106
|
+
return rtnval
|
|
1107
|
+
|
|
1108
|
+
def restore_package_for_user(self, package_type: str, package_name: str, username: str, *, token: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
1109
|
+
"""
|
|
1110
|
+
Restore a package for a user
|
|
1111
|
+
|
|
1112
|
+
Restores an entire package for a user.
|
|
1113
|
+
|
|
1114
|
+
You can restore a deleted package under the following conditions:
|
|
1115
|
+
- The package was deleted within the last 30 days.
|
|
1116
|
+
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
|
|
1117
|
+
|
|
1118
|
+
If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
1119
|
+
|
|
1120
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
1121
|
+
"""
|
|
1122
|
+
client = self.client
|
|
1123
|
+
if aspects is None:
|
|
1124
|
+
aspects = client.aspects
|
|
1125
|
+
|
|
1126
|
+
header_params = client.headers
|
|
1127
|
+
if headers is not None:
|
|
1128
|
+
header_params = headers
|
|
1129
|
+
|
|
1130
|
+
leaf_template = "/users/{username}/packages/{package_type}/{package_name}/restore"
|
|
1131
|
+
path_params = {
|
|
1132
|
+
'package_type': package_type,
|
|
1133
|
+
'package_name': package_name,
|
|
1134
|
+
'username': username,
|
|
1135
|
+
}
|
|
1136
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1137
|
+
|
|
1138
|
+
query_params = {}
|
|
1139
|
+
if token is not None:
|
|
1140
|
+
query_params['token'] = token
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
if exp_status is None:
|
|
1144
|
+
exp_status = [204]
|
|
1145
|
+
|
|
1146
|
+
resp = client.perform_call(
|
|
1147
|
+
leaf=call_leaf,
|
|
1148
|
+
method="POST",
|
|
1149
|
+
params=query_params if query_params else None,
|
|
1150
|
+
body=None,
|
|
1151
|
+
exp_status=exp_status,
|
|
1152
|
+
headers=header_params if header_params else None,
|
|
1153
|
+
context_msg=None,
|
|
1154
|
+
aspects=aspects,
|
|
1155
|
+
)
|
|
1156
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
1157
|
+
rtnval = None
|
|
1158
|
+
else:
|
|
1159
|
+
rtnval = resp.json()
|
|
1160
|
+
return rtnval
|
|
1161
|
+
|
|
1162
|
+
def restore_package_version_for_authenticated_user(self, package_type: str, package_name: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
1163
|
+
"""
|
|
1164
|
+
Restore a package version for the authenticated user
|
|
1165
|
+
|
|
1166
|
+
Restores a package version owned by the authenticated user.
|
|
1167
|
+
|
|
1168
|
+
You can restore a deleted package version under the following conditions:
|
|
1169
|
+
- The package was deleted within the last 30 days.
|
|
1170
|
+
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
|
|
1171
|
+
|
|
1172
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
1173
|
+
"""
|
|
1174
|
+
client = self.client
|
|
1175
|
+
if aspects is None:
|
|
1176
|
+
aspects = client.aspects
|
|
1177
|
+
|
|
1178
|
+
header_params = client.headers
|
|
1179
|
+
if headers is not None:
|
|
1180
|
+
header_params = headers
|
|
1181
|
+
|
|
1182
|
+
leaf_template = "/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
1183
|
+
path_params = {
|
|
1184
|
+
'package_type': package_type,
|
|
1185
|
+
'package_name': package_name,
|
|
1186
|
+
'package_version_id': package_version_id,
|
|
1187
|
+
}
|
|
1188
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1189
|
+
|
|
1190
|
+
query_params = None
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
if exp_status is None:
|
|
1194
|
+
exp_status = [204]
|
|
1195
|
+
|
|
1196
|
+
resp = client.perform_call(
|
|
1197
|
+
leaf=call_leaf,
|
|
1198
|
+
method="POST",
|
|
1199
|
+
params=query_params if query_params else None,
|
|
1200
|
+
body=None,
|
|
1201
|
+
exp_status=exp_status,
|
|
1202
|
+
headers=header_params if header_params else None,
|
|
1203
|
+
context_msg=None,
|
|
1204
|
+
aspects=aspects,
|
|
1205
|
+
)
|
|
1206
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
1207
|
+
rtnval = None
|
|
1208
|
+
else:
|
|
1209
|
+
rtnval = resp.json()
|
|
1210
|
+
return rtnval
|
|
1211
|
+
|
|
1212
|
+
def restore_package_version_for_org(self, package_type: str, package_name: str, org: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
1213
|
+
"""
|
|
1214
|
+
Restore package version for an organization
|
|
1215
|
+
|
|
1216
|
+
Restores a specific package version in an organization.
|
|
1217
|
+
|
|
1218
|
+
You can restore a deleted package under the following conditions:
|
|
1219
|
+
- The package was deleted within the last 30 days.
|
|
1220
|
+
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
|
|
1221
|
+
|
|
1222
|
+
The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
1223
|
+
|
|
1224
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
1225
|
+
"""
|
|
1226
|
+
client = self.client
|
|
1227
|
+
if aspects is None:
|
|
1228
|
+
aspects = client.aspects
|
|
1229
|
+
|
|
1230
|
+
header_params = client.headers
|
|
1231
|
+
if headers is not None:
|
|
1232
|
+
header_params = headers
|
|
1233
|
+
|
|
1234
|
+
leaf_template = "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
1235
|
+
path_params = {
|
|
1236
|
+
'package_type': package_type,
|
|
1237
|
+
'package_name': package_name,
|
|
1238
|
+
'org': org,
|
|
1239
|
+
'package_version_id': package_version_id,
|
|
1240
|
+
}
|
|
1241
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1242
|
+
|
|
1243
|
+
query_params = None
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
if exp_status is None:
|
|
1247
|
+
exp_status = [204]
|
|
1248
|
+
|
|
1249
|
+
resp = client.perform_call(
|
|
1250
|
+
leaf=call_leaf,
|
|
1251
|
+
method="POST",
|
|
1252
|
+
params=query_params if query_params else None,
|
|
1253
|
+
body=None,
|
|
1254
|
+
exp_status=exp_status,
|
|
1255
|
+
headers=header_params if header_params else None,
|
|
1256
|
+
context_msg=None,
|
|
1257
|
+
aspects=aspects,
|
|
1258
|
+
)
|
|
1259
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
1260
|
+
rtnval = None
|
|
1261
|
+
else:
|
|
1262
|
+
rtnval = resp.json()
|
|
1263
|
+
return rtnval
|
|
1264
|
+
|
|
1265
|
+
def restore_package_version_for_user(self, package_type: str, package_name: str, username: str, package_version_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
1266
|
+
"""
|
|
1267
|
+
Restore package version for a user
|
|
1268
|
+
|
|
1269
|
+
Restores a specific package version for a user.
|
|
1270
|
+
|
|
1271
|
+
You can restore a deleted package under the following conditions:
|
|
1272
|
+
- The package was deleted within the last 30 days.
|
|
1273
|
+
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
|
|
1274
|
+
|
|
1275
|
+
If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
|
|
1276
|
+
|
|
1277
|
+
OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. For more information, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
|
|
1278
|
+
"""
|
|
1279
|
+
client = self.client
|
|
1280
|
+
if aspects is None:
|
|
1281
|
+
aspects = client.aspects
|
|
1282
|
+
|
|
1283
|
+
header_params = client.headers
|
|
1284
|
+
if headers is not None:
|
|
1285
|
+
header_params = headers
|
|
1286
|
+
|
|
1287
|
+
leaf_template = "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
1288
|
+
path_params = {
|
|
1289
|
+
'package_type': package_type,
|
|
1290
|
+
'package_name': package_name,
|
|
1291
|
+
'username': username,
|
|
1292
|
+
'package_version_id': package_version_id,
|
|
1293
|
+
}
|
|
1294
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1295
|
+
|
|
1296
|
+
query_params = None
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
if exp_status is None:
|
|
1300
|
+
exp_status = [204]
|
|
1301
|
+
|
|
1302
|
+
resp = client.perform_call(
|
|
1303
|
+
leaf=call_leaf,
|
|
1304
|
+
method="POST",
|
|
1305
|
+
params=query_params if query_params else None,
|
|
1306
|
+
body=None,
|
|
1307
|
+
exp_status=exp_status,
|
|
1308
|
+
headers=header_params if header_params else None,
|
|
1309
|
+
context_msg=None,
|
|
1310
|
+
aspects=aspects,
|
|
1311
|
+
)
|
|
1312
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
1313
|
+
rtnval = None
|
|
1314
|
+
else:
|
|
1315
|
+
rtnval = resp.json()
|
|
1316
|
+
return rtnval
|