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,401 @@
|
|
|
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.restapigroup import RestApiGroup
|
|
7
|
+
from ccai.restclient.github.public.schemas.billing import ActionsBillingUsage
|
|
8
|
+
from ccai.restclient.github.public.schemas.billing import CombinedBillingUsage
|
|
9
|
+
from ccai.restclient.github.public.schemas.billing import PackagesBillingUsage
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BillingApiGroup(RestApiGroup):
|
|
13
|
+
"""
|
|
14
|
+
Monitor charges and usage from Actions and Packages.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def get_github_actions_billing_org(self, org: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> ActionsBillingUsage:
|
|
18
|
+
"""
|
|
19
|
+
Get GitHub Actions billing for an organization
|
|
20
|
+
|
|
21
|
+
Gets the summary of the free and paid GitHub Actions minutes used.
|
|
22
|
+
|
|
23
|
+
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".
|
|
24
|
+
|
|
25
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint.
|
|
26
|
+
"""
|
|
27
|
+
client = self.client
|
|
28
|
+
if aspects is None:
|
|
29
|
+
aspects = client.aspects
|
|
30
|
+
|
|
31
|
+
header_params = client.headers
|
|
32
|
+
if headers is not None:
|
|
33
|
+
header_params = headers
|
|
34
|
+
|
|
35
|
+
leaf_template = "/orgs/{org}/settings/billing/actions"
|
|
36
|
+
path_params = {
|
|
37
|
+
'org': org,
|
|
38
|
+
}
|
|
39
|
+
call_leaf = leaf_template.format(**path_params)
|
|
40
|
+
|
|
41
|
+
query_params = None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
if exp_status is None:
|
|
45
|
+
exp_status = [200]
|
|
46
|
+
|
|
47
|
+
resp = client.perform_call(
|
|
48
|
+
leaf=call_leaf,
|
|
49
|
+
method="GET",
|
|
50
|
+
params=query_params if query_params else None,
|
|
51
|
+
body=None,
|
|
52
|
+
exp_status=exp_status,
|
|
53
|
+
headers=header_params if header_params else None,
|
|
54
|
+
context_msg=None,
|
|
55
|
+
aspects=aspects,
|
|
56
|
+
)
|
|
57
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
58
|
+
rtnobj = None
|
|
59
|
+
else:
|
|
60
|
+
raw_data = resp.json()
|
|
61
|
+
rtnobj = ActionsBillingUsage.from_dict(raw_data)
|
|
62
|
+
return rtnobj
|
|
63
|
+
|
|
64
|
+
def get_github_actions_billing_user(self, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> ActionsBillingUsage:
|
|
65
|
+
"""
|
|
66
|
+
Get GitHub Actions billing for a user
|
|
67
|
+
|
|
68
|
+
Gets the summary of the free and paid GitHub Actions minutes used.
|
|
69
|
+
|
|
70
|
+
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".
|
|
71
|
+
|
|
72
|
+
OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
|
|
73
|
+
"""
|
|
74
|
+
client = self.client
|
|
75
|
+
if aspects is None:
|
|
76
|
+
aspects = client.aspects
|
|
77
|
+
|
|
78
|
+
header_params = client.headers
|
|
79
|
+
if headers is not None:
|
|
80
|
+
header_params = headers
|
|
81
|
+
|
|
82
|
+
leaf_template = "/users/{username}/settings/billing/actions"
|
|
83
|
+
path_params = {
|
|
84
|
+
'username': username,
|
|
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 = [200]
|
|
93
|
+
|
|
94
|
+
resp = client.perform_call(
|
|
95
|
+
leaf=call_leaf,
|
|
96
|
+
method="GET",
|
|
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
|
+
rtnobj = None
|
|
106
|
+
else:
|
|
107
|
+
raw_data = resp.json()
|
|
108
|
+
rtnobj = ActionsBillingUsage.from_dict(raw_data)
|
|
109
|
+
return rtnobj
|
|
110
|
+
|
|
111
|
+
def get_github_billing_usage_report_org(self, org: str, *, year: Optional[int] = None, month: Optional[int] = None, day: Optional[int] = None, hour: Optional[int] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
112
|
+
"""
|
|
113
|
+
Get billing usage report for an organization
|
|
114
|
+
|
|
115
|
+
Gets a report of the total usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.
|
|
116
|
+
|
|
117
|
+
**Note:** This endpoint is only available to organizations with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform](https://docs.github.com/billing/using-the-new-billing-platform)."
|
|
118
|
+
"""
|
|
119
|
+
client = self.client
|
|
120
|
+
if aspects is None:
|
|
121
|
+
aspects = client.aspects
|
|
122
|
+
|
|
123
|
+
header_params = client.headers
|
|
124
|
+
if headers is not None:
|
|
125
|
+
header_params = headers
|
|
126
|
+
|
|
127
|
+
leaf_template = "/organizations/{org}/settings/billing/usage"
|
|
128
|
+
path_params = {
|
|
129
|
+
'org': org,
|
|
130
|
+
}
|
|
131
|
+
call_leaf = leaf_template.format(**path_params)
|
|
132
|
+
|
|
133
|
+
query_params = {}
|
|
134
|
+
if year is not None:
|
|
135
|
+
query_params['year'] = year
|
|
136
|
+
if month is not None:
|
|
137
|
+
query_params['month'] = month
|
|
138
|
+
if day is not None:
|
|
139
|
+
query_params['day'] = day
|
|
140
|
+
if hour is not None:
|
|
141
|
+
query_params['hour'] = hour
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
if exp_status is None:
|
|
145
|
+
exp_status = [200]
|
|
146
|
+
|
|
147
|
+
resp = client.perform_call(
|
|
148
|
+
leaf=call_leaf,
|
|
149
|
+
method="GET",
|
|
150
|
+
params=query_params if query_params else None,
|
|
151
|
+
body=None,
|
|
152
|
+
exp_status=exp_status,
|
|
153
|
+
headers=header_params if header_params else None,
|
|
154
|
+
context_msg=None,
|
|
155
|
+
aspects=aspects,
|
|
156
|
+
)
|
|
157
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
158
|
+
rtnval = None
|
|
159
|
+
else:
|
|
160
|
+
rtnval = resp.json()
|
|
161
|
+
return rtnval
|
|
162
|
+
|
|
163
|
+
def get_github_billing_usage_report_user(self, username: str, *, year: Optional[int] = None, month: Optional[int] = None, day: Optional[int] = None, hour: Optional[int] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
164
|
+
"""
|
|
165
|
+
Get billing usage report for a user
|
|
166
|
+
|
|
167
|
+
Gets a report of the total usage for a user.
|
|
168
|
+
|
|
169
|
+
**Note:** This endpoint is only available to users with access to the enhanced billing platform.
|
|
170
|
+
"""
|
|
171
|
+
client = self.client
|
|
172
|
+
if aspects is None:
|
|
173
|
+
aspects = client.aspects
|
|
174
|
+
|
|
175
|
+
header_params = client.headers
|
|
176
|
+
if headers is not None:
|
|
177
|
+
header_params = headers
|
|
178
|
+
|
|
179
|
+
leaf_template = "/users/{username}/settings/billing/usage"
|
|
180
|
+
path_params = {
|
|
181
|
+
'username': username,
|
|
182
|
+
}
|
|
183
|
+
call_leaf = leaf_template.format(**path_params)
|
|
184
|
+
|
|
185
|
+
query_params = {}
|
|
186
|
+
if year is not None:
|
|
187
|
+
query_params['year'] = year
|
|
188
|
+
if month is not None:
|
|
189
|
+
query_params['month'] = month
|
|
190
|
+
if day is not None:
|
|
191
|
+
query_params['day'] = day
|
|
192
|
+
if hour is not None:
|
|
193
|
+
query_params['hour'] = hour
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
if exp_status is None:
|
|
197
|
+
exp_status = [200]
|
|
198
|
+
|
|
199
|
+
resp = client.perform_call(
|
|
200
|
+
leaf=call_leaf,
|
|
201
|
+
method="GET",
|
|
202
|
+
params=query_params if query_params else None,
|
|
203
|
+
body=None,
|
|
204
|
+
exp_status=exp_status,
|
|
205
|
+
headers=header_params if header_params else None,
|
|
206
|
+
context_msg=None,
|
|
207
|
+
aspects=aspects,
|
|
208
|
+
)
|
|
209
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
210
|
+
rtnval = None
|
|
211
|
+
else:
|
|
212
|
+
rtnval = resp.json()
|
|
213
|
+
return rtnval
|
|
214
|
+
|
|
215
|
+
def get_github_packages_billing_org(self, org: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PackagesBillingUsage:
|
|
216
|
+
"""
|
|
217
|
+
Get GitHub Packages billing for an organization
|
|
218
|
+
|
|
219
|
+
Gets the free and paid storage used for GitHub Packages in gigabytes.
|
|
220
|
+
|
|
221
|
+
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
|
|
222
|
+
|
|
223
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint.
|
|
224
|
+
"""
|
|
225
|
+
client = self.client
|
|
226
|
+
if aspects is None:
|
|
227
|
+
aspects = client.aspects
|
|
228
|
+
|
|
229
|
+
header_params = client.headers
|
|
230
|
+
if headers is not None:
|
|
231
|
+
header_params = headers
|
|
232
|
+
|
|
233
|
+
leaf_template = "/orgs/{org}/settings/billing/packages"
|
|
234
|
+
path_params = {
|
|
235
|
+
'org': org,
|
|
236
|
+
}
|
|
237
|
+
call_leaf = leaf_template.format(**path_params)
|
|
238
|
+
|
|
239
|
+
query_params = None
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
if exp_status is None:
|
|
243
|
+
exp_status = [200]
|
|
244
|
+
|
|
245
|
+
resp = client.perform_call(
|
|
246
|
+
leaf=call_leaf,
|
|
247
|
+
method="GET",
|
|
248
|
+
params=query_params if query_params else None,
|
|
249
|
+
body=None,
|
|
250
|
+
exp_status=exp_status,
|
|
251
|
+
headers=header_params if header_params else None,
|
|
252
|
+
context_msg=None,
|
|
253
|
+
aspects=aspects,
|
|
254
|
+
)
|
|
255
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
256
|
+
rtnobj = None
|
|
257
|
+
else:
|
|
258
|
+
raw_data = resp.json()
|
|
259
|
+
rtnobj = PackagesBillingUsage.from_dict(raw_data)
|
|
260
|
+
return rtnobj
|
|
261
|
+
|
|
262
|
+
def get_github_packages_billing_user(self, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PackagesBillingUsage:
|
|
263
|
+
"""
|
|
264
|
+
Get GitHub Packages billing for a user
|
|
265
|
+
|
|
266
|
+
Gets the free and paid storage used for GitHub Packages in gigabytes.
|
|
267
|
+
|
|
268
|
+
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
|
|
269
|
+
|
|
270
|
+
OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
|
|
271
|
+
"""
|
|
272
|
+
client = self.client
|
|
273
|
+
if aspects is None:
|
|
274
|
+
aspects = client.aspects
|
|
275
|
+
|
|
276
|
+
header_params = client.headers
|
|
277
|
+
if headers is not None:
|
|
278
|
+
header_params = headers
|
|
279
|
+
|
|
280
|
+
leaf_template = "/users/{username}/settings/billing/packages"
|
|
281
|
+
path_params = {
|
|
282
|
+
'username': username,
|
|
283
|
+
}
|
|
284
|
+
call_leaf = leaf_template.format(**path_params)
|
|
285
|
+
|
|
286
|
+
query_params = None
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
if exp_status is None:
|
|
290
|
+
exp_status = [200]
|
|
291
|
+
|
|
292
|
+
resp = client.perform_call(
|
|
293
|
+
leaf=call_leaf,
|
|
294
|
+
method="GET",
|
|
295
|
+
params=query_params if query_params else None,
|
|
296
|
+
body=None,
|
|
297
|
+
exp_status=exp_status,
|
|
298
|
+
headers=header_params if header_params else None,
|
|
299
|
+
context_msg=None,
|
|
300
|
+
aspects=aspects,
|
|
301
|
+
)
|
|
302
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
303
|
+
rtnobj = None
|
|
304
|
+
else:
|
|
305
|
+
raw_data = resp.json()
|
|
306
|
+
rtnobj = PackagesBillingUsage.from_dict(raw_data)
|
|
307
|
+
return rtnobj
|
|
308
|
+
|
|
309
|
+
def get_shared_storage_billing_org(self, org: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CombinedBillingUsage:
|
|
310
|
+
"""
|
|
311
|
+
Get shared storage billing for an organization
|
|
312
|
+
|
|
313
|
+
Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages.
|
|
314
|
+
|
|
315
|
+
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
|
|
316
|
+
|
|
317
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint.
|
|
318
|
+
"""
|
|
319
|
+
client = self.client
|
|
320
|
+
if aspects is None:
|
|
321
|
+
aspects = client.aspects
|
|
322
|
+
|
|
323
|
+
header_params = client.headers
|
|
324
|
+
if headers is not None:
|
|
325
|
+
header_params = headers
|
|
326
|
+
|
|
327
|
+
leaf_template = "/orgs/{org}/settings/billing/shared-storage"
|
|
328
|
+
path_params = {
|
|
329
|
+
'org': org,
|
|
330
|
+
}
|
|
331
|
+
call_leaf = leaf_template.format(**path_params)
|
|
332
|
+
|
|
333
|
+
query_params = None
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
if exp_status is None:
|
|
337
|
+
exp_status = [200]
|
|
338
|
+
|
|
339
|
+
resp = client.perform_call(
|
|
340
|
+
leaf=call_leaf,
|
|
341
|
+
method="GET",
|
|
342
|
+
params=query_params if query_params else None,
|
|
343
|
+
body=None,
|
|
344
|
+
exp_status=exp_status,
|
|
345
|
+
headers=header_params if header_params else None,
|
|
346
|
+
context_msg=None,
|
|
347
|
+
aspects=aspects,
|
|
348
|
+
)
|
|
349
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
350
|
+
rtnobj = None
|
|
351
|
+
else:
|
|
352
|
+
raw_data = resp.json()
|
|
353
|
+
rtnobj = CombinedBillingUsage.from_dict(raw_data)
|
|
354
|
+
return rtnobj
|
|
355
|
+
|
|
356
|
+
def get_shared_storage_billing_user(self, username: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CombinedBillingUsage:
|
|
357
|
+
"""
|
|
358
|
+
Get shared storage billing for a user
|
|
359
|
+
|
|
360
|
+
Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages.
|
|
361
|
+
|
|
362
|
+
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
|
|
363
|
+
|
|
364
|
+
OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
|
|
365
|
+
"""
|
|
366
|
+
client = self.client
|
|
367
|
+
if aspects is None:
|
|
368
|
+
aspects = client.aspects
|
|
369
|
+
|
|
370
|
+
header_params = client.headers
|
|
371
|
+
if headers is not None:
|
|
372
|
+
header_params = headers
|
|
373
|
+
|
|
374
|
+
leaf_template = "/users/{username}/settings/billing/shared-storage"
|
|
375
|
+
path_params = {
|
|
376
|
+
'username': username,
|
|
377
|
+
}
|
|
378
|
+
call_leaf = leaf_template.format(**path_params)
|
|
379
|
+
|
|
380
|
+
query_params = None
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
if exp_status is None:
|
|
384
|
+
exp_status = [200]
|
|
385
|
+
|
|
386
|
+
resp = client.perform_call(
|
|
387
|
+
leaf=call_leaf,
|
|
388
|
+
method="GET",
|
|
389
|
+
params=query_params if query_params else None,
|
|
390
|
+
body=None,
|
|
391
|
+
exp_status=exp_status,
|
|
392
|
+
headers=header_params if header_params else None,
|
|
393
|
+
context_msg=None,
|
|
394
|
+
aspects=aspects,
|
|
395
|
+
)
|
|
396
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
397
|
+
rtnobj = None
|
|
398
|
+
else:
|
|
399
|
+
raw_data = resp.json()
|
|
400
|
+
rtnobj = CombinedBillingUsage.from_dict(raw_data)
|
|
401
|
+
return rtnobj
|
|
@@ -0,0 +1,262 @@
|
|
|
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.campaigns import CampaignSummary
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CampaignsApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Endpoints to manage campaigns via the REST API.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def create_campaign(self, org: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CampaignSummary:
|
|
17
|
+
"""
|
|
18
|
+
Create a campaign for an organization
|
|
19
|
+
|
|
20
|
+
Create a campaign for an organization.
|
|
21
|
+
|
|
22
|
+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
|
|
23
|
+
|
|
24
|
+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
|
|
25
|
+
|
|
26
|
+
Fine-grained tokens must have the "Code scanning alerts" repository permissions (read) on all repositories included
|
|
27
|
+
in the campaign.
|
|
28
|
+
"""
|
|
29
|
+
client = self.client
|
|
30
|
+
if aspects is None:
|
|
31
|
+
aspects = client.aspects
|
|
32
|
+
|
|
33
|
+
header_params = client.headers
|
|
34
|
+
if headers is not None:
|
|
35
|
+
header_params = headers
|
|
36
|
+
|
|
37
|
+
leaf_template = "/orgs/{org}/campaigns"
|
|
38
|
+
path_params = {
|
|
39
|
+
'org': org,
|
|
40
|
+
}
|
|
41
|
+
call_leaf = leaf_template.format(**path_params)
|
|
42
|
+
|
|
43
|
+
query_params = None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
if exp_status is None:
|
|
47
|
+
exp_status = [200]
|
|
48
|
+
|
|
49
|
+
resp = client.perform_call(
|
|
50
|
+
leaf=call_leaf,
|
|
51
|
+
method="POST",
|
|
52
|
+
params=query_params if query_params else None,
|
|
53
|
+
body=body,
|
|
54
|
+
exp_status=exp_status,
|
|
55
|
+
headers=header_params if header_params else None,
|
|
56
|
+
context_msg=None,
|
|
57
|
+
aspects=aspects,
|
|
58
|
+
)
|
|
59
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
60
|
+
rtnobj = None
|
|
61
|
+
else:
|
|
62
|
+
raw_data = resp.json()
|
|
63
|
+
rtnobj = CampaignSummary.from_dict(raw_data)
|
|
64
|
+
return rtnobj
|
|
65
|
+
|
|
66
|
+
def delete_campaign(self, org: str, campaign_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
67
|
+
"""
|
|
68
|
+
Delete a campaign for an organization
|
|
69
|
+
|
|
70
|
+
Deletes a campaign in an organization.
|
|
71
|
+
|
|
72
|
+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
|
|
73
|
+
|
|
74
|
+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
|
|
75
|
+
"""
|
|
76
|
+
client = self.client
|
|
77
|
+
if aspects is None:
|
|
78
|
+
aspects = client.aspects
|
|
79
|
+
|
|
80
|
+
header_params = client.headers
|
|
81
|
+
if headers is not None:
|
|
82
|
+
header_params = headers
|
|
83
|
+
|
|
84
|
+
leaf_template = "/orgs/{org}/campaigns/{campaign_number}"
|
|
85
|
+
path_params = {
|
|
86
|
+
'org': org,
|
|
87
|
+
'campaign_number': campaign_number,
|
|
88
|
+
}
|
|
89
|
+
call_leaf = leaf_template.format(**path_params)
|
|
90
|
+
|
|
91
|
+
query_params = None
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
if exp_status is None:
|
|
95
|
+
exp_status = [204]
|
|
96
|
+
|
|
97
|
+
resp = client.perform_call(
|
|
98
|
+
leaf=call_leaf,
|
|
99
|
+
method="DELETE",
|
|
100
|
+
params=query_params if query_params else None,
|
|
101
|
+
body=None,
|
|
102
|
+
exp_status=exp_status,
|
|
103
|
+
headers=header_params if header_params else None,
|
|
104
|
+
context_msg=None,
|
|
105
|
+
aspects=aspects,
|
|
106
|
+
)
|
|
107
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
108
|
+
rtnval = None
|
|
109
|
+
else:
|
|
110
|
+
rtnval = resp.json()
|
|
111
|
+
return rtnval
|
|
112
|
+
|
|
113
|
+
def get_campaign_summary(self, org: str, campaign_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CampaignSummary:
|
|
114
|
+
"""
|
|
115
|
+
Get a campaign for an organization
|
|
116
|
+
|
|
117
|
+
Gets a campaign for an organization.
|
|
118
|
+
|
|
119
|
+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
|
|
120
|
+
|
|
121
|
+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
|
|
122
|
+
"""
|
|
123
|
+
client = self.client
|
|
124
|
+
if aspects is None:
|
|
125
|
+
aspects = client.aspects
|
|
126
|
+
|
|
127
|
+
header_params = client.headers
|
|
128
|
+
if headers is not None:
|
|
129
|
+
header_params = headers
|
|
130
|
+
|
|
131
|
+
leaf_template = "/orgs/{org}/campaigns/{campaign_number}"
|
|
132
|
+
path_params = {
|
|
133
|
+
'org': org,
|
|
134
|
+
'campaign_number': campaign_number,
|
|
135
|
+
}
|
|
136
|
+
call_leaf = leaf_template.format(**path_params)
|
|
137
|
+
|
|
138
|
+
query_params = None
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
if exp_status is None:
|
|
142
|
+
exp_status = [200]
|
|
143
|
+
|
|
144
|
+
resp = client.perform_call(
|
|
145
|
+
leaf=call_leaf,
|
|
146
|
+
method="GET",
|
|
147
|
+
params=query_params if query_params else None,
|
|
148
|
+
body=None,
|
|
149
|
+
exp_status=exp_status,
|
|
150
|
+
headers=header_params if header_params else None,
|
|
151
|
+
context_msg=None,
|
|
152
|
+
aspects=aspects,
|
|
153
|
+
)
|
|
154
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
155
|
+
rtnobj = None
|
|
156
|
+
else:
|
|
157
|
+
raw_data = resp.json()
|
|
158
|
+
rtnobj = CampaignSummary.from_dict(raw_data)
|
|
159
|
+
return rtnobj
|
|
160
|
+
|
|
161
|
+
def list_org_campaigns(self, org: str, *, page: Optional[int] = 1, per_page: Optional[int] = 30, direction: Optional[str] = "desc", state: Optional[str] = None, sort: Optional[str] = "created", exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[CampaignSummary]:
|
|
162
|
+
"""
|
|
163
|
+
List campaigns for an organization
|
|
164
|
+
|
|
165
|
+
Lists campaigns in an organization.
|
|
166
|
+
|
|
167
|
+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
|
|
168
|
+
|
|
169
|
+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
|
|
170
|
+
"""
|
|
171
|
+
client = self.client
|
|
172
|
+
if aspects is None:
|
|
173
|
+
aspects = client.aspects
|
|
174
|
+
|
|
175
|
+
header_params = client.headers
|
|
176
|
+
if headers is not None:
|
|
177
|
+
header_params = headers
|
|
178
|
+
|
|
179
|
+
leaf_template = "/orgs/{org}/campaigns"
|
|
180
|
+
path_params = {
|
|
181
|
+
'org': org,
|
|
182
|
+
}
|
|
183
|
+
call_leaf = leaf_template.format(**path_params)
|
|
184
|
+
|
|
185
|
+
query_params = {}
|
|
186
|
+
if page is not None:
|
|
187
|
+
query_params['page'] = page
|
|
188
|
+
if per_page is not None:
|
|
189
|
+
query_params['per_page'] = per_page
|
|
190
|
+
if direction is not None:
|
|
191
|
+
query_params['direction'] = direction
|
|
192
|
+
if state is not None:
|
|
193
|
+
query_params['state'] = state
|
|
194
|
+
if sort is not None:
|
|
195
|
+
query_params['sort'] = sort
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
if exp_status is None:
|
|
199
|
+
exp_status = [200]
|
|
200
|
+
|
|
201
|
+
resp = client.perform_call(
|
|
202
|
+
leaf=call_leaf,
|
|
203
|
+
method="GET",
|
|
204
|
+
params=query_params if query_params else None,
|
|
205
|
+
body=None,
|
|
206
|
+
exp_status=exp_status,
|
|
207
|
+
headers=header_params if header_params else None,
|
|
208
|
+
context_msg=None,
|
|
209
|
+
aspects=aspects,
|
|
210
|
+
)
|
|
211
|
+
raw_data = resp.json()
|
|
212
|
+
items = [self._parse_item(item, CampaignSummary) for item in raw_data]
|
|
213
|
+
rtnval = PagedList[CampaignSummary](items, dict(resp.headers), raw_data)
|
|
214
|
+
return rtnval
|
|
215
|
+
|
|
216
|
+
def update_campaign(self, org: str, campaign_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CampaignSummary:
|
|
217
|
+
"""
|
|
218
|
+
Update a campaign
|
|
219
|
+
|
|
220
|
+
Updates a campaign in an organization.
|
|
221
|
+
|
|
222
|
+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
|
|
223
|
+
|
|
224
|
+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
|
|
225
|
+
"""
|
|
226
|
+
client = self.client
|
|
227
|
+
if aspects is None:
|
|
228
|
+
aspects = client.aspects
|
|
229
|
+
|
|
230
|
+
header_params = client.headers
|
|
231
|
+
if headers is not None:
|
|
232
|
+
header_params = headers
|
|
233
|
+
|
|
234
|
+
leaf_template = "/orgs/{org}/campaigns/{campaign_number}"
|
|
235
|
+
path_params = {
|
|
236
|
+
'org': org,
|
|
237
|
+
'campaign_number': campaign_number,
|
|
238
|
+
}
|
|
239
|
+
call_leaf = leaf_template.format(**path_params)
|
|
240
|
+
|
|
241
|
+
query_params = None
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
if exp_status is None:
|
|
245
|
+
exp_status = [200]
|
|
246
|
+
|
|
247
|
+
resp = client.perform_call(
|
|
248
|
+
leaf=call_leaf,
|
|
249
|
+
method="PATCH",
|
|
250
|
+
params=query_params if query_params else None,
|
|
251
|
+
body=body,
|
|
252
|
+
exp_status=exp_status,
|
|
253
|
+
headers=header_params if header_params else None,
|
|
254
|
+
context_msg=None,
|
|
255
|
+
aspects=aspects,
|
|
256
|
+
)
|
|
257
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
258
|
+
rtnobj = None
|
|
259
|
+
else:
|
|
260
|
+
raw_data = resp.json()
|
|
261
|
+
rtnobj = CampaignSummary.from_dict(raw_data)
|
|
262
|
+
return rtnobj
|