1use super::structs::*;
2use crate::generated::endpoints;
3use crate::Endpoint;
4use crate::Request;
5use bytes::Bytes;
6use std::collections::BTreeMap;
7
8impl crate::Forgejo {
9 pub fn get_actions_run(&self) -> Request<'_, endpoints::GetActionsRun, ActionRun> {
11 endpoints::GetActionsRun {}
12 .make_request()
13 .wrap::<_, _>(self)
14 }
15
16 pub fn activitypub_instance_actor(
18 &self,
19 ) -> Request<'_, endpoints::ActivitypubInstanceActor, ActivityPub> {
20 endpoints::ActivitypubInstanceActor {}
21 .make_request()
22 .wrap::<_, _>(self)
23 }
24
25 pub fn activitypub_instance_actor_inbox(
27 &self,
28 ) -> Request<'_, endpoints::ActivitypubInstanceActorInbox, ()> {
29 endpoints::ActivitypubInstanceActorInbox {}
30 .make_request()
31 .wrap::<_, _>(self)
32 }
33
34 pub fn activitypub_instance_actor_outbox(
36 &self,
37 ) -> Request<'_, endpoints::ActivitypubInstanceActorOutbox, Bytes> {
38 endpoints::ActivitypubInstanceActorOutbox {}
39 .make_request()
40 .wrap::<_, _>(self)
41 }
42
43 pub fn activitypub_repository(
47 &self,
48 repository_id: i64,
49 ) -> Request<'_, endpoints::ActivitypubRepository, ActivityPub> {
50 endpoints::ActivitypubRepository { repository_id }
51 .make_request()
52 .wrap::<_, _>(self)
53 }
54
55 pub fn activitypub_repository_inbox(
60 &self,
61 repository_id: i64,
62 body: ForgeLike,
63 ) -> Request<'_, endpoints::ActivitypubRepositoryInbox, ()> {
64 endpoints::ActivitypubRepositoryInbox {
65 repository_id,
66 body: body,
67 }
68 .make_request()
69 .wrap::<_, _>(self)
70 }
71
72 pub fn activitypub_repository_outbox(
76 &self,
77 repository_id: i64,
78 ) -> Request<'_, endpoints::ActivitypubRepositoryOutbox, Bytes> {
79 endpoints::ActivitypubRepositoryOutbox { repository_id }
80 .make_request()
81 .wrap::<_, _>(self)
82 }
83
84 pub fn activitypub_person(
88 &self,
89 user_id: i64,
90 ) -> Request<'_, endpoints::ActivitypubPerson, ActivityPub> {
91 endpoints::ActivitypubPerson { user_id }
92 .make_request()
93 .wrap::<_, _>(self)
94 }
95
96 pub fn activitypub_person_activity_note(
101 &self,
102 user_id: u32,
103 activity_id: u32,
104 ) -> Request<'_, endpoints::ActivitypubPersonActivityNote, ActivityPub> {
105 endpoints::ActivitypubPersonActivityNote {
106 user_id,
107 activity_id,
108 }
109 .make_request()
110 .wrap::<_, _>(self)
111 }
112
113 pub fn activitypub_person_activity(
118 &self,
119 user_id: u32,
120 activity_id: u32,
121 ) -> Request<'_, endpoints::ActivitypubPersonActivity, ActivityPub> {
122 endpoints::ActivitypubPersonActivity {
123 user_id,
124 activity_id,
125 }
126 .make_request()
127 .wrap::<_, _>(self)
128 }
129
130 pub fn activitypub_person_inbox(
134 &self,
135 user_id: i64,
136 ) -> Request<'_, endpoints::ActivitypubPersonInbox, ()> {
137 endpoints::ActivitypubPersonInbox { user_id }
138 .make_request()
139 .wrap::<_, _>(self)
140 }
141
142 pub fn activitypub_person_feed(
146 &self,
147 user_id: u32,
148 ) -> Request<'_, endpoints::ActivitypubPersonFeed, ForgeOutbox> {
149 endpoints::ActivitypubPersonFeed { user_id }
150 .make_request()
151 .wrap::<_, _>(self)
152 }
153
154 pub fn get_admin_runners(
157 &self,
158 query: GetAdminRunnersQuery,
159 ) -> Request<'_, endpoints::GetAdminRunners, (ActionRunnerListHeaders, Vec<ActionRunner>)> {
160 endpoints::GetAdminRunners { query }
161 .make_request()
162 .wrap::<_, _>(self)
163 }
164
165 pub fn register_admin_runner(
169 &self,
170 body: RegisterRunnerOptions,
171 ) -> Request<'_, endpoints::RegisterAdminRunner, RegisterRunnerResponse> {
172 endpoints::RegisterAdminRunner { body: body }
173 .make_request()
174 .wrap::<_, _>(self)
175 }
176
177 pub fn admin_get_action_run_jobs(
180 &self,
181 query: AdminGetActionRunJobsQuery,
182 ) -> Request<'_, endpoints::AdminGetActionRunJobs, Vec<ActionRunJob>> {
183 endpoints::AdminGetActionRunJobs { query }
184 .make_request()
185 .wrap::<_, _>(self)
186 }
187
188 pub fn admin_get_runner_registration_token(
190 &self,
191 ) -> Request<'_, endpoints::AdminGetRunnerRegistrationToken, RegistrationToken> {
192 endpoints::AdminGetRunnerRegistrationToken {}
193 .make_request()
194 .wrap::<_, _>(self)
195 }
196
197 pub fn get_admin_runner(
201 &self,
202 runner_id: &str,
203 ) -> Request<'_, endpoints::GetAdminRunner<'_>, ActionRunner> {
204 endpoints::GetAdminRunner { runner_id }
205 .make_request()
206 .wrap::<_, _>(self)
207 }
208
209 pub fn delete_admin_runner(
213 &self,
214 runner_id: &str,
215 ) -> Request<'_, endpoints::DeleteAdminRunner<'_>, ()> {
216 endpoints::DeleteAdminRunner { runner_id }
217 .make_request()
218 .wrap::<_, _>(self)
219 }
220
221 pub fn admin_cron_list(
224 &self,
225 ) -> Request<'_, endpoints::AdminCronList, (CronListHeaders, Vec<Cron>)> {
226 endpoints::AdminCronList {}
227 .make_request()
228 .wrap::<_, _>(self)
229 }
230
231 pub fn admin_cron_run(&self, task: &str) -> Request<'_, endpoints::AdminCronRun<'_>, ()> {
235 endpoints::AdminCronRun { task }
236 .make_request()
237 .wrap::<_, _>(self)
238 }
239
240 pub fn admin_get_all_emails(&self) -> Request<'_, endpoints::AdminGetAllEmails, Vec<Email>> {
243 endpoints::AdminGetAllEmails {}
244 .make_request()
245 .wrap::<_, _>(self)
246 }
247
248 pub fn admin_search_emails(
251 &self,
252 query: AdminSearchEmailsQuery,
253 ) -> Request<'_, endpoints::AdminSearchEmails, Vec<Email>> {
254 endpoints::AdminSearchEmails { query }
255 .make_request()
256 .wrap::<_, _>(self)
257 }
258
259 pub fn admin_list_hooks(&self) -> Request<'_, endpoints::AdminListHooks, Vec<Hook>> {
262 endpoints::AdminListHooks {}
263 .make_request()
264 .wrap::<_, _>(self)
265 }
266
267 pub fn admin_create_hook(
271 &self,
272 body: CreateHookOption,
273 ) -> Request<'_, endpoints::AdminCreateHook, Hook> {
274 endpoints::AdminCreateHook { body: body }
275 .make_request()
276 .wrap::<_, _>(self)
277 }
278
279 pub fn admin_get_hook(&self, id: i64) -> Request<'_, endpoints::AdminGetHook, Hook> {
283 endpoints::AdminGetHook { id }
284 .make_request()
285 .wrap::<_, _>(self)
286 }
287
288 pub fn admin_delete_hook(&self, id: i64) -> Request<'_, endpoints::AdminDeleteHook, ()> {
292 endpoints::AdminDeleteHook { id }
293 .make_request()
294 .wrap::<_, _>(self)
295 }
296
297 pub fn admin_edit_hook(
302 &self,
303 id: i64,
304 body: EditHookOption,
305 ) -> Request<'_, endpoints::AdminEditHook, Hook> {
306 endpoints::AdminEditHook { id, body: body }
307 .make_request()
308 .wrap::<_, _>(self)
309 }
310
311 pub fn admin_get_all_orgs(
314 &self,
315 ) -> Request<'_, endpoints::AdminGetAllOrgs, (OrganizationListHeaders, Vec<Organization>)> {
316 endpoints::AdminGetAllOrgs {}
317 .make_request()
318 .wrap::<_, _>(self)
319 }
320
321 pub fn admin_list_quota_groups(
323 &self,
324 ) -> Request<'_, endpoints::AdminListQuotaGroups, Vec<QuotaGroup>> {
325 endpoints::AdminListQuotaGroups {}
326 .make_request()
327 .wrap::<_, _>(self)
328 }
329
330 pub fn admin_create_quota_group(
336 &self,
337 group: CreateQuotaGroupOptions,
338 ) -> Request<'_, endpoints::AdminCreateQuotaGroup, QuotaGroup> {
339 endpoints::AdminCreateQuotaGroup { body: group }
340 .make_request()
341 .wrap::<_, _>(self)
342 }
343
344 pub fn admin_get_quota_group(
348 &self,
349 quotagroup: &str,
350 ) -> Request<'_, endpoints::AdminGetQuotaGroup<'_>, QuotaGroup> {
351 endpoints::AdminGetQuotaGroup { quotagroup }
352 .make_request()
353 .wrap::<_, _>(self)
354 }
355
356 pub fn admin_delete_quota_group(
360 &self,
361 quotagroup: &str,
362 ) -> Request<'_, endpoints::AdminDeleteQuotaGroup<'_>, ()> {
363 endpoints::AdminDeleteQuotaGroup { quotagroup }
364 .make_request()
365 .wrap::<_, _>(self)
366 }
367
368 pub fn admin_add_rule_to_quota_group(
373 &self,
374 quotagroup: &str,
375 quotarule: &str,
376 ) -> Request<'_, endpoints::AdminAddRuleToQuotaGroup<'_>, ()> {
377 endpoints::AdminAddRuleToQuotaGroup {
378 quotagroup,
379 quotarule,
380 }
381 .make_request()
382 .wrap::<_, _>(self)
383 }
384
385 pub fn admin_remove_rule_from_quota_group(
390 &self,
391 quotagroup: &str,
392 quotarule: &str,
393 ) -> Request<'_, endpoints::AdminRemoveRuleFromQuotaGroup<'_>, ()> {
394 endpoints::AdminRemoveRuleFromQuotaGroup {
395 quotagroup,
396 quotarule,
397 }
398 .make_request()
399 .wrap::<_, _>(self)
400 }
401
402 pub fn admin_list_users_in_quota_group(
406 &self,
407 quotagroup: &str,
408 ) -> Request<'_, endpoints::AdminListUsersInQuotaGroup<'_>, (UserListHeaders, Vec<User>)> {
409 endpoints::AdminListUsersInQuotaGroup { quotagroup }
410 .make_request()
411 .wrap::<_, _>(self)
412 }
413
414 pub fn admin_add_user_to_quota_group(
419 &self,
420 quotagroup: &str,
421 username: &str,
422 ) -> Request<'_, endpoints::AdminAddUserToQuotaGroup<'_>, ()> {
423 endpoints::AdminAddUserToQuotaGroup {
424 quotagroup,
425 username,
426 }
427 .make_request()
428 .wrap::<_, _>(self)
429 }
430
431 pub fn admin_remove_user_from_quota_group(
436 &self,
437 quotagroup: &str,
438 username: &str,
439 ) -> Request<'_, endpoints::AdminRemoveUserFromQuotaGroup<'_>, ()> {
440 endpoints::AdminRemoveUserFromQuotaGroup {
441 quotagroup,
442 username,
443 }
444 .make_request()
445 .wrap::<_, _>(self)
446 }
447
448 pub fn admin_list_quota_rules(
450 &self,
451 ) -> Request<'_, endpoints::AdminListQuotaRules, Vec<QuotaRuleInfo>> {
452 endpoints::AdminListQuotaRules {}
453 .make_request()
454 .wrap::<_, _>(self)
455 }
456
457 pub fn admin_create_quota_rule(
463 &self,
464 rule: CreateQuotaRuleOptions,
465 ) -> Request<'_, endpoints::AdminCreateQuotaRule, QuotaRuleInfo> {
466 endpoints::AdminCreateQuotaRule { body: rule }
467 .make_request()
468 .wrap::<_, _>(self)
469 }
470
471 pub fn admin_get_quota_rule(
475 &self,
476 quotarule: &str,
477 ) -> Request<'_, endpoints::AdminGetQuotaRule<'_>, QuotaRuleInfo> {
478 endpoints::AdminGetQuotaRule { quotarule }
479 .make_request()
480 .wrap::<_, _>(self)
481 }
482
483 pub fn admin_delete_quota_rule(
487 &self,
488 quotarule: &str,
489 ) -> Request<'_, endpoints::AdminDeleteQuotaRule<'_>, ()> {
490 endpoints::AdminDeleteQuotaRule { quotarule }
491 .make_request()
492 .wrap::<_, _>(self)
493 }
494
495 pub fn admin_edit_quota_rule(
500 &self,
501 quotarule: &str,
502 rule: EditQuotaRuleOptions,
503 ) -> Request<'_, endpoints::AdminEditQuotaRule<'_>, QuotaRuleInfo> {
504 endpoints::AdminEditQuotaRule {
505 quotarule,
506 body: rule,
507 }
508 .make_request()
509 .wrap::<_, _>(self)
510 }
511
512 pub fn admin_search_run_jobs(
515 &self,
516 query: AdminSearchRunJobsQuery,
517 ) -> Request<'_, endpoints::AdminSearchRunJobs, Vec<ActionRunJob>> {
518 endpoints::AdminSearchRunJobs { query }
519 .make_request()
520 .wrap::<_, _>(self)
521 }
522
523 pub fn admin_get_registration_token(
525 &self,
526 ) -> Request<'_, endpoints::AdminGetRegistrationToken, RegistrationToken> {
527 endpoints::AdminGetRegistrationToken {}
528 .make_request()
529 .wrap::<_, _>(self)
530 }
531
532 pub fn admin_unadopted_list(
535 &self,
536 query: AdminUnadoptedListQuery,
537 ) -> Request<'_, endpoints::AdminUnadoptedList, Vec<String>> {
538 endpoints::AdminUnadoptedList { query }
539 .make_request()
540 .wrap::<_, _>(self)
541 }
542
543 pub fn admin_adopt_repository(
548 &self,
549 owner: &str,
550 repo: &str,
551 ) -> Request<'_, endpoints::AdminAdoptRepository<'_>, ()> {
552 endpoints::AdminAdoptRepository { owner, repo }
553 .make_request()
554 .wrap::<_, _>(self)
555 }
556
557 pub fn admin_delete_unadopted_repository(
562 &self,
563 owner: &str,
564 repo: &str,
565 ) -> Request<'_, endpoints::AdminDeleteUnadoptedRepository<'_>, ()> {
566 endpoints::AdminDeleteUnadoptedRepository { owner, repo }
567 .make_request()
568 .wrap::<_, _>(self)
569 }
570
571 pub fn admin_search_users(
574 &self,
575 query: AdminSearchUsersQuery,
576 ) -> Request<'_, endpoints::AdminSearchUsers, (UserListHeaders, Vec<User>)> {
577 endpoints::AdminSearchUsers { query }
578 .make_request()
579 .wrap::<_, _>(self)
580 }
581
582 pub fn admin_create_user(
586 &self,
587 body: CreateUserOption,
588 ) -> Request<'_, endpoints::AdminCreateUser, User> {
589 endpoints::AdminCreateUser { body: body }
590 .make_request()
591 .wrap::<_, _>(self)
592 }
593
594 pub fn admin_delete_user(
598 &self,
599 username: &str,
600 query: AdminDeleteUserQuery,
601 ) -> Request<'_, endpoints::AdminDeleteUser<'_>, ()> {
602 endpoints::AdminDeleteUser { username, query }
603 .make_request()
604 .wrap::<_, _>(self)
605 }
606
607 pub fn admin_edit_user(
612 &self,
613 username: &str,
614 body: EditUserOption,
615 ) -> Request<'_, endpoints::AdminEditUser<'_>, User> {
616 endpoints::AdminEditUser {
617 username,
618 body: body,
619 }
620 .make_request()
621 .wrap::<_, _>(self)
622 }
623
624 pub fn admin_list_user_emails(
628 &self,
629 username: &str,
630 ) -> Request<'_, endpoints::AdminListUserEmails<'_>, Vec<Email>> {
631 endpoints::AdminListUserEmails { username }
632 .make_request()
633 .wrap::<_, _>(self)
634 }
635
636 pub fn admin_delete_user_emails(
641 &self,
642 username: &str,
643 body: DeleteEmailOption,
644 ) -> Request<'_, endpoints::AdminDeleteUserEmails<'_>, ()> {
645 endpoints::AdminDeleteUserEmails {
646 username,
647 body: body,
648 }
649 .make_request()
650 .wrap::<_, _>(self)
651 }
652
653 pub fn admin_create_public_key(
658 &self,
659 username: &str,
660 key: CreateKeyOption,
661 ) -> Request<'_, endpoints::AdminCreatePublicKey<'_>, PublicKey> {
662 endpoints::AdminCreatePublicKey {
663 username,
664 body: key,
665 }
666 .make_request()
667 .wrap::<_, _>(self)
668 }
669
670 pub fn admin_delete_user_public_key(
675 &self,
676 username: &str,
677 id: i64,
678 ) -> Request<'_, endpoints::AdminDeleteUserPublicKey<'_>, ()> {
679 endpoints::AdminDeleteUserPublicKey { username, id }
680 .make_request()
681 .wrap::<_, _>(self)
682 }
683
684 pub fn admin_create_org(
689 &self,
690 username: &str,
691 organization: CreateOrgOption,
692 ) -> Request<'_, endpoints::AdminCreateOrg<'_>, Organization> {
693 endpoints::AdminCreateOrg {
694 username,
695 body: organization,
696 }
697 .make_request()
698 .wrap::<_, _>(self)
699 }
700
701 pub fn admin_get_user_quota(
705 &self,
706 username: &str,
707 ) -> Request<'_, endpoints::AdminGetUserQuota<'_>, QuotaInfo> {
708 endpoints::AdminGetUserQuota { username }
709 .make_request()
710 .wrap::<_, _>(self)
711 }
712
713 pub fn admin_set_user_quota_groups(
720 &self,
721 username: &str,
722 groups: SetUserQuotaGroupsOptions,
723 ) -> Request<'_, endpoints::AdminSetUserQuotaGroups<'_>, ()> {
724 endpoints::AdminSetUserQuotaGroups {
725 username,
726 body: groups,
727 }
728 .make_request()
729 .wrap::<_, _>(self)
730 }
731
732 pub fn admin_rename_user(
737 &self,
738 username: &str,
739 body: RenameUserOption,
740 ) -> Request<'_, endpoints::AdminRenameUser<'_>, ()> {
741 endpoints::AdminRenameUser {
742 username,
743 body: body,
744 }
745 .make_request()
746 .wrap::<_, _>(self)
747 }
748
749 pub fn admin_create_repo(
754 &self,
755 username: &str,
756 repository: CreateRepoOption,
757 ) -> Request<'_, endpoints::AdminCreateRepo<'_>, Repository> {
758 endpoints::AdminCreateRepo {
759 username,
760 body: repository,
761 }
762 .make_request()
763 .wrap::<_, _>(self)
764 }
765
766 pub fn admin_list_user_access_tokens(
770 &self,
771 username: &str,
772 ) -> Request<
773 '_,
774 endpoints::AdminListUserAccessTokens<'_>,
775 (AccessTokenListHeaders, Vec<AccessToken>),
776 > {
777 endpoints::AdminListUserAccessTokens { username }
778 .make_request()
779 .wrap::<_, _>(self)
780 }
781
782 pub fn admin_create_user_access_token(
787 &self,
788 username: &str,
789 body: CreateAccessTokenOption,
790 ) -> Request<'_, endpoints::AdminCreateUserAccessToken<'_>, AccessToken> {
791 endpoints::AdminCreateUserAccessToken {
792 username,
793 body: body,
794 }
795 .make_request()
796 .wrap::<_, _>(self)
797 }
798
799 pub fn admin_delete_user_access_token(
804 &self,
805 username: &str,
806 token: &str,
807 ) -> Request<'_, endpoints::AdminDeleteUserAccessToken<'_>, ()> {
808 endpoints::AdminDeleteUserAccessToken { username, token }
809 .make_request()
810 .wrap::<_, _>(self)
811 }
812
813 pub fn list_gitignores_templates(
815 &self,
816 ) -> Request<'_, endpoints::ListGitignoresTemplates, Vec<String>> {
817 endpoints::ListGitignoresTemplates {}
818 .make_request()
819 .wrap::<_, _>(self)
820 }
821
822 pub fn get_gitignore_template_info(
826 &self,
827 name: &str,
828 ) -> Request<'_, endpoints::GetGitignoreTemplateInfo<'_>, GitignoreTemplateInfo> {
829 endpoints::GetGitignoreTemplateInfo { name }
830 .make_request()
831 .wrap::<_, _>(self)
832 }
833
834 pub fn list_label_templates(&self) -> Request<'_, endpoints::ListLabelTemplates, Vec<String>> {
836 endpoints::ListLabelTemplates {}
837 .make_request()
838 .wrap::<_, _>(self)
839 }
840
841 pub fn get_label_template_info(
845 &self,
846 name: &str,
847 ) -> Request<'_, endpoints::GetLabelTemplateInfo<'_>, Vec<LabelTemplate>> {
848 endpoints::GetLabelTemplateInfo { name }
849 .make_request()
850 .wrap::<_, _>(self)
851 }
852
853 pub fn list_license_templates(
855 &self,
856 ) -> Request<'_, endpoints::ListLicenseTemplates, Vec<LicensesTemplateListEntry>> {
857 endpoints::ListLicenseTemplates {}
858 .make_request()
859 .wrap::<_, _>(self)
860 }
861
862 pub fn get_license_template_info(
866 &self,
867 name: &str,
868 ) -> Request<'_, endpoints::GetLicenseTemplateInfo<'_>, LicenseTemplateInfo> {
869 endpoints::GetLicenseTemplateInfo { name }
870 .make_request()
871 .wrap::<_, _>(self)
872 }
873
874 pub fn render_markdown(
878 &self,
879 body: MarkdownOption,
880 ) -> Request<'_, endpoints::RenderMarkdown, String> {
881 endpoints::RenderMarkdown { body: body }
882 .make_request()
883 .wrap::<_, _>(self)
884 }
885
886 pub fn render_markdown_raw(
892 &self,
893 body: String,
894 ) -> Request<'_, endpoints::RenderMarkdownRaw, String> {
895 endpoints::RenderMarkdownRaw { body: body }
896 .make_request()
897 .wrap::<_, _>(self)
898 }
899
900 pub fn render_markup(
904 &self,
905 body: MarkupOption,
906 ) -> Request<'_, endpoints::RenderMarkup, String> {
907 endpoints::RenderMarkup { body: body }
908 .make_request()
909 .wrap::<_, _>(self)
910 }
911
912 pub fn get_node_info(&self) -> Request<'_, endpoints::GetNodeInfo, NodeInfo> {
914 endpoints::GetNodeInfo {}.make_request().wrap::<_, _>(self)
915 }
916
917 pub fn notify_get_list(
920 &self,
921 query: NotifyGetListQuery,
922 ) -> Request<
923 '_,
924 endpoints::NotifyGetList,
925 (NotificationThreadListHeaders, Vec<NotificationThread>),
926 > {
927 endpoints::NotifyGetList { query }
928 .make_request()
929 .wrap::<_, _>(self)
930 }
931
932 pub fn notify_read_list(
935 &self,
936 query: NotifyReadListQuery,
937 ) -> Request<'_, endpoints::NotifyReadList, Vec<NotificationThread>> {
938 endpoints::NotifyReadList { query }
939 .make_request()
940 .wrap::<_, _>(self)
941 }
942
943 pub fn notify_new_available(
945 &self,
946 ) -> Request<'_, endpoints::NotifyNewAvailable, NotificationCount> {
947 endpoints::NotifyNewAvailable {}
948 .make_request()
949 .wrap::<_, _>(self)
950 }
951
952 pub fn notify_get_thread(
956 &self,
957 id: i64,
958 ) -> Request<'_, endpoints::NotifyGetThread, NotificationThread> {
959 endpoints::NotifyGetThread { id }
960 .make_request()
961 .wrap::<_, _>(self)
962 }
963
964 pub fn notify_read_thread(
968 &self,
969 id: i64,
970 query: NotifyReadThreadQuery,
971 ) -> Request<'_, endpoints::NotifyReadThread, NotificationThread> {
972 endpoints::NotifyReadThread { id, query }
973 .make_request()
974 .wrap::<_, _>(self)
975 }
976
977 pub fn create_org_repo_deprecated(
982 &self,
983 org: &str,
984 body: CreateRepoOption,
985 ) -> Request<'_, endpoints::CreateOrgRepoDeprecated<'_>, Repository> {
986 endpoints::CreateOrgRepoDeprecated { org, body: body }
987 .make_request()
988 .wrap::<_, _>(self)
989 }
990
991 pub fn org_get_all(
994 &self,
995 ) -> Request<'_, endpoints::OrgGetAll, (OrganizationListHeaders, Vec<Organization>)> {
996 endpoints::OrgGetAll {}.make_request().wrap::<_, _>(self)
997 }
998
999 pub fn org_create(
1003 &self,
1004 organization: CreateOrgOption,
1005 ) -> Request<'_, endpoints::OrgCreate, Organization> {
1006 endpoints::OrgCreate { body: organization }
1007 .make_request()
1008 .wrap::<_, _>(self)
1009 }
1010
1011 pub fn org_get(&self, org: &str) -> Request<'_, endpoints::OrgGet<'_>, Organization> {
1015 endpoints::OrgGet { org }.make_request().wrap::<_, _>(self)
1016 }
1017
1018 pub fn org_delete(&self, org: &str) -> Request<'_, endpoints::OrgDelete<'_>, ()> {
1022 endpoints::OrgDelete { org }
1023 .make_request()
1024 .wrap::<_, _>(self)
1025 }
1026
1027 pub fn org_edit(
1032 &self,
1033 org: &str,
1034 body: EditOrgOption,
1035 ) -> Request<'_, endpoints::OrgEdit<'_>, Organization> {
1036 endpoints::OrgEdit { org, body: body }
1037 .make_request()
1038 .wrap::<_, _>(self)
1039 }
1040
1041 pub fn get_org_runners(
1045 &self,
1046 org: &str,
1047 query: GetOrgRunnersQuery,
1048 ) -> Request<'_, endpoints::GetOrgRunners<'_>, (ActionRunnerListHeaders, Vec<ActionRunner>)>
1049 {
1050 endpoints::GetOrgRunners { org, query }
1051 .make_request()
1052 .wrap::<_, _>(self)
1053 }
1054
1055 pub fn register_org_runner(
1060 &self,
1061 org: &str,
1062 body: RegisterRunnerOptions,
1063 ) -> Request<'_, endpoints::RegisterOrgRunner<'_>, RegisterRunnerResponse> {
1064 endpoints::RegisterOrgRunner { org, body: body }
1065 .make_request()
1066 .wrap::<_, _>(self)
1067 }
1068
1069 pub fn org_search_run_jobs(
1073 &self,
1074 org: &str,
1075 query: OrgSearchRunJobsQuery,
1076 ) -> Request<'_, endpoints::OrgSearchRunJobs<'_>, Vec<ActionRunJob>> {
1077 endpoints::OrgSearchRunJobs { org, query }
1078 .make_request()
1079 .wrap::<_, _>(self)
1080 }
1081
1082 pub fn org_get_runner_registration_token(
1086 &self,
1087 org: &str,
1088 ) -> Request<'_, endpoints::OrgGetRunnerRegistrationToken<'_>, RegistrationToken> {
1089 endpoints::OrgGetRunnerRegistrationToken { org }
1090 .make_request()
1091 .wrap::<_, _>(self)
1092 }
1093
1094 pub fn get_org_runner(
1099 &self,
1100 org: &str,
1101 runner_id: &str,
1102 ) -> Request<'_, endpoints::GetOrgRunner<'_>, ActionRunner> {
1103 endpoints::GetOrgRunner { org, runner_id }
1104 .make_request()
1105 .wrap::<_, _>(self)
1106 }
1107
1108 pub fn delete_org_runner(
1113 &self,
1114 org: &str,
1115 runner_id: &str,
1116 ) -> Request<'_, endpoints::DeleteOrgRunner<'_>, ()> {
1117 endpoints::DeleteOrgRunner { org, runner_id }
1118 .make_request()
1119 .wrap::<_, _>(self)
1120 }
1121
1122 pub fn org_list_actions_secrets(
1126 &self,
1127 org: &str,
1128 ) -> Request<'_, endpoints::OrgListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)> {
1129 endpoints::OrgListActionsSecrets { org }
1130 .make_request()
1131 .wrap::<_, _>(self)
1132 }
1133
1134 pub fn update_org_secret(
1140 &self,
1141 org: &str,
1142 secretname: &str,
1143 body: CreateOrUpdateSecretOption,
1144 ) -> Request<'_, endpoints::UpdateOrgSecret<'_>, ()> {
1145 endpoints::UpdateOrgSecret {
1146 org,
1147 secretname,
1148 body: body,
1149 }
1150 .make_request()
1151 .wrap::<_, _>(self)
1152 }
1153
1154 pub fn delete_org_secret(
1159 &self,
1160 org: &str,
1161 secretname: &str,
1162 ) -> Request<'_, endpoints::DeleteOrgSecret<'_>, ()> {
1163 endpoints::DeleteOrgSecret { org, secretname }
1164 .make_request()
1165 .wrap::<_, _>(self)
1166 }
1167
1168 pub fn get_org_variables_list(
1172 &self,
1173 org: &str,
1174 ) -> Request<'_, endpoints::GetOrgVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
1175 {
1176 endpoints::GetOrgVariablesList { org }
1177 .make_request()
1178 .wrap::<_, _>(self)
1179 }
1180
1181 pub fn get_org_variable(
1186 &self,
1187 org: &str,
1188 variablename: &str,
1189 ) -> Request<'_, endpoints::GetOrgVariable<'_>, ActionVariable> {
1190 endpoints::GetOrgVariable { org, variablename }
1191 .make_request()
1192 .wrap::<_, _>(self)
1193 }
1194
1195 pub fn update_org_variable(
1201 &self,
1202 org: &str,
1203 variablename: &str,
1204 body: UpdateVariableOption,
1205 ) -> Request<'_, endpoints::UpdateOrgVariable<'_>, ()> {
1206 endpoints::UpdateOrgVariable {
1207 org,
1208 variablename,
1209 body: body,
1210 }
1211 .make_request()
1212 .wrap::<_, _>(self)
1213 }
1214
1215 pub fn create_org_variable(
1221 &self,
1222 org: &str,
1223 variablename: &str,
1224 body: CreateVariableOption,
1225 ) -> Request<'_, endpoints::CreateOrgVariable<'_>, ()> {
1226 endpoints::CreateOrgVariable {
1227 org,
1228 variablename,
1229 body: body,
1230 }
1231 .make_request()
1232 .wrap::<_, _>(self)
1233 }
1234
1235 pub fn delete_org_variable(
1240 &self,
1241 org: &str,
1242 variablename: &str,
1243 ) -> Request<'_, endpoints::DeleteOrgVariable<'_>, ()> {
1244 endpoints::DeleteOrgVariable { org, variablename }
1245 .make_request()
1246 .wrap::<_, _>(self)
1247 }
1248
1249 pub fn org_list_activity_feeds(
1253 &self,
1254 org: &str,
1255 query: OrgListActivityFeedsQuery,
1256 ) -> Request<'_, endpoints::OrgListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
1257 {
1258 endpoints::OrgListActivityFeeds { org, query }
1259 .make_request()
1260 .wrap::<_, _>(self)
1261 }
1262
1263 pub fn org_update_avatar(
1268 &self,
1269 org: &str,
1270 body: UpdateUserAvatarOption,
1271 ) -> Request<'_, endpoints::OrgUpdateAvatar<'_>, ()> {
1272 endpoints::OrgUpdateAvatar { org, body: body }
1273 .make_request()
1274 .wrap::<_, _>(self)
1275 }
1276
1277 pub fn org_delete_avatar(&self, org: &str) -> Request<'_, endpoints::OrgDeleteAvatar<'_>, ()> {
1281 endpoints::OrgDeleteAvatar { org }
1282 .make_request()
1283 .wrap::<_, _>(self)
1284 }
1285
1286 pub fn org_block_user(
1291 &self,
1292 org: &str,
1293 username: &str,
1294 ) -> Request<'_, endpoints::OrgBlockUser<'_>, ()> {
1295 endpoints::OrgBlockUser { org, username }
1296 .make_request()
1297 .wrap::<_, _>(self)
1298 }
1299
1300 pub fn org_list_hooks(&self, org: &str) -> Request<'_, endpoints::OrgListHooks<'_>, Vec<Hook>> {
1304 endpoints::OrgListHooks { org }
1305 .make_request()
1306 .wrap::<_, _>(self)
1307 }
1308
1309 pub fn org_create_hook(
1314 &self,
1315 org: &str,
1316 body: CreateHookOption,
1317 ) -> Request<'_, endpoints::OrgCreateHook<'_>, Hook> {
1318 endpoints::OrgCreateHook { org, body: body }
1319 .make_request()
1320 .wrap::<_, _>(self)
1321 }
1322
1323 pub fn org_get_hook(&self, org: &str, id: i64) -> Request<'_, endpoints::OrgGetHook<'_>, Hook> {
1328 endpoints::OrgGetHook { org, id }
1329 .make_request()
1330 .wrap::<_, _>(self)
1331 }
1332
1333 pub fn org_delete_hook(
1338 &self,
1339 org: &str,
1340 id: i64,
1341 ) -> Request<'_, endpoints::OrgDeleteHook<'_>, ()> {
1342 endpoints::OrgDeleteHook { org, id }
1343 .make_request()
1344 .wrap::<_, _>(self)
1345 }
1346
1347 pub fn org_edit_hook(
1353 &self,
1354 org: &str,
1355 id: i64,
1356 body: EditHookOption,
1357 ) -> Request<'_, endpoints::OrgEditHook<'_>, Hook> {
1358 endpoints::OrgEditHook {
1359 org,
1360 id,
1361 body: body,
1362 }
1363 .make_request()
1364 .wrap::<_, _>(self)
1365 }
1366
1367 pub fn org_list_labels(
1371 &self,
1372 org: &str,
1373 query: OrgListLabelsQuery,
1374 ) -> Request<'_, endpoints::OrgListLabels<'_>, (LabelListHeaders, Vec<Label>)> {
1375 endpoints::OrgListLabels { org, query }
1376 .make_request()
1377 .wrap::<_, _>(self)
1378 }
1379
1380 pub fn org_create_label(
1385 &self,
1386 org: &str,
1387 body: CreateLabelOption,
1388 ) -> Request<'_, endpoints::OrgCreateLabel<'_>, Label> {
1389 endpoints::OrgCreateLabel { org, body: body }
1390 .make_request()
1391 .wrap::<_, _>(self)
1392 }
1393
1394 pub fn org_get_label(
1399 &self,
1400 org: &str,
1401 id: i64,
1402 ) -> Request<'_, endpoints::OrgGetLabel<'_>, Label> {
1403 endpoints::OrgGetLabel { org, id }
1404 .make_request()
1405 .wrap::<_, _>(self)
1406 }
1407
1408 pub fn org_delete_label(
1413 &self,
1414 org: &str,
1415 id: i64,
1416 ) -> Request<'_, endpoints::OrgDeleteLabel<'_>, ()> {
1417 endpoints::OrgDeleteLabel { org, id }
1418 .make_request()
1419 .wrap::<_, _>(self)
1420 }
1421
1422 pub fn org_edit_label(
1428 &self,
1429 org: &str,
1430 id: i64,
1431 body: EditLabelOption,
1432 ) -> Request<'_, endpoints::OrgEditLabel<'_>, Label> {
1433 endpoints::OrgEditLabel {
1434 org,
1435 id,
1436 body: body,
1437 }
1438 .make_request()
1439 .wrap::<_, _>(self)
1440 }
1441
1442 pub fn org_list_blocked_users(
1446 &self,
1447 org: &str,
1448 ) -> Request<'_, endpoints::OrgListBlockedUsers<'_>, (BlockedUserListHeaders, Vec<BlockedUser>)>
1449 {
1450 endpoints::OrgListBlockedUsers { org }
1451 .make_request()
1452 .wrap::<_, _>(self)
1453 }
1454
1455 pub fn org_list_members(
1459 &self,
1460 org: &str,
1461 ) -> Request<'_, endpoints::OrgListMembers<'_>, (UserListHeaders, Vec<User>)> {
1462 endpoints::OrgListMembers { org }
1463 .make_request()
1464 .wrap::<_, _>(self)
1465 }
1466
1467 pub fn org_is_member(
1472 &self,
1473 org: &str,
1474 username: &str,
1475 ) -> Request<'_, endpoints::OrgIsMember<'_>, ()> {
1476 endpoints::OrgIsMember { org, username }
1477 .make_request()
1478 .wrap::<_, _>(self)
1479 }
1480
1481 pub fn org_delete_member(
1486 &self,
1487 org: &str,
1488 username: &str,
1489 ) -> Request<'_, endpoints::OrgDeleteMember<'_>, ()> {
1490 endpoints::OrgDeleteMember { org, username }
1491 .make_request()
1492 .wrap::<_, _>(self)
1493 }
1494
1495 pub fn org_list_public_members(
1499 &self,
1500 org: &str,
1501 ) -> Request<'_, endpoints::OrgListPublicMembers<'_>, (UserListHeaders, Vec<User>)> {
1502 endpoints::OrgListPublicMembers { org }
1503 .make_request()
1504 .wrap::<_, _>(self)
1505 }
1506
1507 pub fn org_is_public_member(
1512 &self,
1513 org: &str,
1514 username: &str,
1515 ) -> Request<'_, endpoints::OrgIsPublicMember<'_>, ()> {
1516 endpoints::OrgIsPublicMember { org, username }
1517 .make_request()
1518 .wrap::<_, _>(self)
1519 }
1520
1521 pub fn org_publicize_member(
1526 &self,
1527 org: &str,
1528 username: &str,
1529 ) -> Request<'_, endpoints::OrgPublicizeMember<'_>, ()> {
1530 endpoints::OrgPublicizeMember { org, username }
1531 .make_request()
1532 .wrap::<_, _>(self)
1533 }
1534
1535 pub fn org_conceal_member(
1540 &self,
1541 org: &str,
1542 username: &str,
1543 ) -> Request<'_, endpoints::OrgConcealMember<'_>, ()> {
1544 endpoints::OrgConcealMember { org, username }
1545 .make_request()
1546 .wrap::<_, _>(self)
1547 }
1548
1549 pub fn org_get_quota(&self, org: &str) -> Request<'_, endpoints::OrgGetQuota<'_>, QuotaInfo> {
1553 endpoints::OrgGetQuota { org }
1554 .make_request()
1555 .wrap::<_, _>(self)
1556 }
1557
1558 pub fn org_list_quota_artifacts(
1562 &self,
1563 org: &str,
1564 ) -> Request<
1565 '_,
1566 endpoints::OrgListQuotaArtifacts<'_>,
1567 (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>),
1568 > {
1569 endpoints::OrgListQuotaArtifacts { org }
1570 .make_request()
1571 .wrap::<_, _>(self)
1572 }
1573
1574 pub fn org_list_quota_attachments(
1578 &self,
1579 org: &str,
1580 ) -> Request<
1581 '_,
1582 endpoints::OrgListQuotaAttachments<'_>,
1583 (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>),
1584 > {
1585 endpoints::OrgListQuotaAttachments { org }
1586 .make_request()
1587 .wrap::<_, _>(self)
1588 }
1589
1590 pub fn org_check_quota(
1594 &self,
1595 org: &str,
1596 query: OrgCheckQuotaQuery,
1597 ) -> Request<'_, endpoints::OrgCheckQuota<'_>, bool> {
1598 endpoints::OrgCheckQuota { org, query }
1599 .make_request()
1600 .wrap::<_, _>(self)
1601 }
1602
1603 pub fn org_list_quota_packages(
1607 &self,
1608 org: &str,
1609 ) -> Request<
1610 '_,
1611 endpoints::OrgListQuotaPackages<'_>,
1612 (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>),
1613 > {
1614 endpoints::OrgListQuotaPackages { org }
1615 .make_request()
1616 .wrap::<_, _>(self)
1617 }
1618
1619 pub fn rename_org(
1624 &self,
1625 org: &str,
1626 body: RenameOrgOption,
1627 ) -> Request<'_, endpoints::RenameOrg<'_>, ()> {
1628 endpoints::RenameOrg { org, body: body }
1629 .make_request()
1630 .wrap::<_, _>(self)
1631 }
1632
1633 pub fn org_list_repos(
1637 &self,
1638 org: &str,
1639 ) -> Request<'_, endpoints::OrgListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)> {
1640 endpoints::OrgListRepos { org }
1641 .make_request()
1642 .wrap::<_, _>(self)
1643 }
1644
1645 pub fn create_org_repo(
1650 &self,
1651 org: &str,
1652 body: CreateRepoOption,
1653 ) -> Request<'_, endpoints::CreateOrgRepo<'_>, Repository> {
1654 endpoints::CreateOrgRepo { org, body: body }
1655 .make_request()
1656 .wrap::<_, _>(self)
1657 }
1658
1659 pub fn org_list_teams(
1663 &self,
1664 org: &str,
1665 ) -> Request<'_, endpoints::OrgListTeams<'_>, (TeamListHeaders, Vec<Team>)> {
1666 endpoints::OrgListTeams { org }
1667 .make_request()
1668 .wrap::<_, _>(self)
1669 }
1670
1671 pub fn org_create_team(
1676 &self,
1677 org: &str,
1678 body: CreateTeamOption,
1679 ) -> Request<'_, endpoints::OrgCreateTeam<'_>, Team> {
1680 endpoints::OrgCreateTeam { org, body: body }
1681 .make_request()
1682 .wrap::<_, _>(self)
1683 }
1684
1685 pub fn team_search(
1689 &self,
1690 org: &str,
1691 query: TeamSearchQuery,
1692 ) -> Request<'_, endpoints::TeamSearch<'_>, TeamSearchResults> {
1693 endpoints::TeamSearch { org, query }
1694 .make_request()
1695 .wrap::<_, _>(self)
1696 }
1697
1698 pub fn org_unblock_user(
1703 &self,
1704 org: &str,
1705 username: &str,
1706 ) -> Request<'_, endpoints::OrgUnblockUser<'_>, ()> {
1707 endpoints::OrgUnblockUser { org, username }
1708 .make_request()
1709 .wrap::<_, _>(self)
1710 }
1711
1712 pub fn list_packages(
1716 &self,
1717 owner: &str,
1718 query: ListPackagesQuery,
1719 ) -> Request<'_, endpoints::ListPackages<'_>, (PackageListHeaders, Vec<Package>)> {
1720 endpoints::ListPackages { owner, query }
1721 .make_request()
1722 .wrap::<_, _>(self)
1723 }
1724
1725 pub fn link_package(
1732 &self,
1733 owner: &str,
1734 r#type: &str,
1735 name: &str,
1736 repo_name: &str,
1737 ) -> Request<'_, endpoints::LinkPackage<'_>, ()> {
1738 endpoints::LinkPackage {
1739 owner,
1740 r#type,
1741 name,
1742 repo_name,
1743 }
1744 .make_request()
1745 .wrap::<_, _>(self)
1746 }
1747
1748 pub fn unlink_package(
1754 &self,
1755 owner: &str,
1756 r#type: &str,
1757 name: &str,
1758 ) -> Request<'_, endpoints::UnlinkPackage<'_>, ()> {
1759 endpoints::UnlinkPackage {
1760 owner,
1761 r#type,
1762 name,
1763 }
1764 .make_request()
1765 .wrap::<_, _>(self)
1766 }
1767
1768 pub fn get_package(
1775 &self,
1776 owner: &str,
1777 r#type: &str,
1778 name: &str,
1779 version: &str,
1780 ) -> Request<'_, endpoints::GetPackage<'_>, Package> {
1781 endpoints::GetPackage {
1782 owner,
1783 r#type,
1784 name,
1785 version,
1786 }
1787 .make_request()
1788 .wrap::<_, _>(self)
1789 }
1790
1791 pub fn delete_package(
1798 &self,
1799 owner: &str,
1800 r#type: &str,
1801 name: &str,
1802 version: &str,
1803 ) -> Request<'_, endpoints::DeletePackage<'_>, ()> {
1804 endpoints::DeletePackage {
1805 owner,
1806 r#type,
1807 name,
1808 version,
1809 }
1810 .make_request()
1811 .wrap::<_, _>(self)
1812 }
1813
1814 pub fn list_package_files(
1821 &self,
1822 owner: &str,
1823 r#type: &str,
1824 name: &str,
1825 version: &str,
1826 ) -> Request<'_, endpoints::ListPackageFiles<'_>, Vec<PackageFile>> {
1827 endpoints::ListPackageFiles {
1828 owner,
1829 r#type,
1830 name,
1831 version,
1832 }
1833 .make_request()
1834 .wrap::<_, _>(self)
1835 }
1836
1837 pub fn issue_search_issues(
1840 &self,
1841 query: IssueSearchIssuesQuery,
1842 ) -> Request<'_, endpoints::IssueSearchIssues, (IssueListHeaders, Vec<Issue>)> {
1843 endpoints::IssueSearchIssues { query }
1844 .make_request()
1845 .wrap::<_, _>(self)
1846 }
1847
1848 pub fn repo_migrate(
1852 &self,
1853 body: MigrateRepoOptions,
1854 ) -> Request<'_, endpoints::RepoMigrate, Repository> {
1855 endpoints::RepoMigrate { body: body }
1856 .make_request()
1857 .wrap::<_, _>(self)
1858 }
1859
1860 pub fn repo_search(
1863 &self,
1864 query: RepoSearchQuery,
1865 ) -> Request<'_, endpoints::RepoSearch, SearchResults> {
1866 endpoints::RepoSearch { query }
1867 .make_request()
1868 .wrap::<_, _>(self)
1869 }
1870
1871 pub fn repo_get(
1876 &self,
1877 owner: &str,
1878 repo: &str,
1879 ) -> Request<'_, endpoints::RepoGet<'_>, Repository> {
1880 endpoints::RepoGet { owner, repo }
1881 .make_request()
1882 .wrap::<_, _>(self)
1883 }
1884
1885 pub fn repo_delete(
1890 &self,
1891 owner: &str,
1892 repo: &str,
1893 ) -> Request<'_, endpoints::RepoDelete<'_>, ()> {
1894 endpoints::RepoDelete { owner, repo }
1895 .make_request()
1896 .wrap::<_, _>(self)
1897 }
1898
1899 pub fn repo_edit(
1907 &self,
1908 owner: &str,
1909 repo: &str,
1910 body: EditRepoOption,
1911 ) -> Request<'_, endpoints::RepoEdit<'_>, Repository> {
1912 endpoints::RepoEdit {
1913 owner,
1914 repo,
1915 body: body,
1916 }
1917 .make_request()
1918 .wrap::<_, _>(self)
1919 }
1920
1921 pub fn list_action_artifacts(
1926 &self,
1927 owner: &str,
1928 repo: &str,
1929 query: ListActionArtifactsQuery,
1930 ) -> Request<'_, endpoints::ListActionArtifacts<'_>, Vec<ActionArtifact>> {
1931 endpoints::ListActionArtifacts { owner, repo, query }
1932 .make_request()
1933 .wrap::<_, _>(self)
1934 }
1935
1936 pub fn get_action_artifact(
1942 &self,
1943 owner: &str,
1944 repo: &str,
1945 artifact_id: i64,
1946 ) -> Request<'_, endpoints::GetActionArtifact<'_>, ActionArtifact> {
1947 endpoints::GetActionArtifact {
1948 owner,
1949 repo,
1950 artifact_id,
1951 }
1952 .make_request()
1953 .wrap::<_, _>(self)
1954 }
1955
1956 pub fn delete_action_artifact(
1962 &self,
1963 owner: &str,
1964 repo: &str,
1965 artifact_id: i64,
1966 ) -> Request<'_, endpoints::DeleteActionArtifact<'_>, ()> {
1967 endpoints::DeleteActionArtifact {
1968 owner,
1969 repo,
1970 artifact_id,
1971 }
1972 .make_request()
1973 .wrap::<_, _>(self)
1974 }
1975
1976 pub fn download_action_artifact(
1982 &self,
1983 owner: &str,
1984 repo: &str,
1985 artifact_id: i64,
1986 ) -> Request<'_, endpoints::DownloadActionArtifact<'_>, Bytes> {
1987 endpoints::DownloadActionArtifact {
1988 owner,
1989 repo,
1990 artifact_id,
1991 }
1992 .make_request()
1993 .wrap::<_, _>(self)
1994 }
1995
1996 pub fn repo_get_action_job_logs(
2002 &self,
2003 owner: &str,
2004 repo: &str,
2005 job_id: i64,
2006 query: RepoGetActionJobLogsQuery,
2007 ) -> Request<'_, endpoints::RepoGetActionJobLogs<'_>, String> {
2008 endpoints::RepoGetActionJobLogs {
2009 owner,
2010 repo,
2011 job_id,
2012 query,
2013 }
2014 .make_request()
2015 .wrap::<_, _>(self)
2016 }
2017
2018 pub fn get_repo_runners(
2023 &self,
2024 owner: &str,
2025 repo: &str,
2026 query: GetRepoRunnersQuery,
2027 ) -> Request<'_, endpoints::GetRepoRunners<'_>, (ActionRunnerListHeaders, Vec<ActionRunner>)>
2028 {
2029 endpoints::GetRepoRunners { owner, repo, query }
2030 .make_request()
2031 .wrap::<_, _>(self)
2032 }
2033
2034 pub fn register_repo_runner(
2040 &self,
2041 owner: &str,
2042 repo: &str,
2043 body: RegisterRunnerOptions,
2044 ) -> Request<'_, endpoints::RegisterRepoRunner<'_>, RegisterRunnerResponse> {
2045 endpoints::RegisterRepoRunner {
2046 owner,
2047 repo,
2048 body: body,
2049 }
2050 .make_request()
2051 .wrap::<_, _>(self)
2052 }
2053
2054 pub fn repo_search_run_jobs(
2059 &self,
2060 owner: &str,
2061 repo: &str,
2062 query: RepoSearchRunJobsQuery,
2063 ) -> Request<'_, endpoints::RepoSearchRunJobs<'_>, Vec<ActionRunJob>> {
2064 endpoints::RepoSearchRunJobs { owner, repo, query }
2065 .make_request()
2066 .wrap::<_, _>(self)
2067 }
2068
2069 pub fn repo_get_runner_registration_token(
2074 &self,
2075 owner: &str,
2076 repo: &str,
2077 ) -> Request<'_, endpoints::RepoGetRunnerRegistrationToken<'_>, RegistrationToken> {
2078 endpoints::RepoGetRunnerRegistrationToken { owner, repo }
2079 .make_request()
2080 .wrap::<_, _>(self)
2081 }
2082
2083 pub fn get_repo_runner(
2089 &self,
2090 owner: &str,
2091 repo: &str,
2092 runner_id: &str,
2093 ) -> Request<'_, endpoints::GetRepoRunner<'_>, ActionRunner> {
2094 endpoints::GetRepoRunner {
2095 owner,
2096 repo,
2097 runner_id,
2098 }
2099 .make_request()
2100 .wrap::<_, _>(self)
2101 }
2102
2103 pub fn delete_repo_runner(
2109 &self,
2110 owner: &str,
2111 repo: &str,
2112 runner_id: &str,
2113 ) -> Request<'_, endpoints::DeleteRepoRunner<'_>, ()> {
2114 endpoints::DeleteRepoRunner {
2115 owner,
2116 repo,
2117 runner_id,
2118 }
2119 .make_request()
2120 .wrap::<_, _>(self)
2121 }
2122
2123 pub fn list_action_runs(
2128 &self,
2129 owner: &str,
2130 repo: &str,
2131 query: ListActionRunsQuery,
2132 ) -> Request<'_, endpoints::ListActionRuns<'_>, ListActionRunResponse> {
2133 endpoints::ListActionRuns { owner, repo, query }
2134 .make_request()
2135 .wrap::<_, _>(self)
2136 }
2137
2138 pub fn get_action_run(
2144 &self,
2145 owner: &str,
2146 repo: &str,
2147 run_id: i64,
2148 ) -> Request<'_, endpoints::GetActionRun<'_>, ActionRun> {
2149 endpoints::GetActionRun {
2150 owner,
2151 repo,
2152 run_id,
2153 }
2154 .make_request()
2155 .wrap::<_, _>(self)
2156 }
2157
2158 pub fn delete_action_run(
2164 &self,
2165 owner: &str,
2166 repo: &str,
2167 run_id: i64,
2168 ) -> Request<'_, endpoints::DeleteActionRun<'_>, ()> {
2169 endpoints::DeleteActionRun {
2170 owner,
2171 repo,
2172 run_id,
2173 }
2174 .make_request()
2175 .wrap::<_, _>(self)
2176 }
2177
2178 pub fn list_action_run_artifacts(
2184 &self,
2185 owner: &str,
2186 repo: &str,
2187 run_id: i64,
2188 query: ListActionRunArtifactsQuery,
2189 ) -> Request<'_, endpoints::ListActionRunArtifacts<'_>, Vec<ActionArtifact>> {
2190 endpoints::ListActionRunArtifacts {
2191 owner,
2192 repo,
2193 run_id,
2194 query,
2195 }
2196 .make_request()
2197 .wrap::<_, _>(self)
2198 }
2199
2200 pub fn cancel_action_run(
2206 &self,
2207 owner: &str,
2208 repo: &str,
2209 run_id: i64,
2210 ) -> Request<'_, endpoints::CancelActionRun<'_>, ()> {
2211 endpoints::CancelActionRun {
2212 owner,
2213 repo,
2214 run_id,
2215 }
2216 .make_request()
2217 .wrap::<_, _>(self)
2218 }
2219
2220 pub fn list_action_run_jobs(
2226 &self,
2227 owner: &str,
2228 repo: &str,
2229 run_id: i64,
2230 ) -> Request<'_, endpoints::ListActionRunJobs<'_>, Vec<ActionRunJob>> {
2231 endpoints::ListActionRunJobs {
2232 owner,
2233 repo,
2234 run_id,
2235 }
2236 .make_request()
2237 .wrap::<_, _>(self)
2238 }
2239
2240 pub fn repo_get_action_run_logs(
2247 &self,
2248 owner: &str,
2249 repo: &str,
2250 run_id: i64,
2251 ) -> Request<'_, endpoints::RepoGetActionRunLogs<'_>, Bytes> {
2252 endpoints::RepoGetActionRunLogs {
2253 owner,
2254 repo,
2255 run_id,
2256 }
2257 .make_request()
2258 .wrap::<_, _>(self)
2259 }
2260
2261 pub fn repo_list_actions_secrets(
2266 &self,
2267 owner: &str,
2268 repo: &str,
2269 ) -> Request<'_, endpoints::RepoListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)> {
2270 endpoints::RepoListActionsSecrets { owner, repo }
2271 .make_request()
2272 .wrap::<_, _>(self)
2273 }
2274
2275 pub fn update_repo_secret(
2282 &self,
2283 owner: &str,
2284 repo: &str,
2285 secretname: &str,
2286 body: CreateOrUpdateSecretOption,
2287 ) -> Request<'_, endpoints::UpdateRepoSecret<'_>, ()> {
2288 endpoints::UpdateRepoSecret {
2289 owner,
2290 repo,
2291 secretname,
2292 body: body,
2293 }
2294 .make_request()
2295 .wrap::<_, _>(self)
2296 }
2297
2298 pub fn delete_repo_secret(
2304 &self,
2305 owner: &str,
2306 repo: &str,
2307 secretname: &str,
2308 ) -> Request<'_, endpoints::DeleteRepoSecret<'_>, ()> {
2309 endpoints::DeleteRepoSecret {
2310 owner,
2311 repo,
2312 secretname,
2313 }
2314 .make_request()
2315 .wrap::<_, _>(self)
2316 }
2317
2318 pub fn list_action_tasks(
2323 &self,
2324 owner: &str,
2325 repo: &str,
2326 query: ListActionTasksQuery,
2327 ) -> Request<'_, endpoints::ListActionTasks<'_>, ActionTaskResponse> {
2328 endpoints::ListActionTasks { owner, repo, query }
2329 .make_request()
2330 .wrap::<_, _>(self)
2331 }
2332
2333 pub fn get_repo_variables_list(
2338 &self,
2339 owner: &str,
2340 repo: &str,
2341 ) -> Request<'_, endpoints::GetRepoVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
2342 {
2343 endpoints::GetRepoVariablesList { owner, repo }
2344 .make_request()
2345 .wrap::<_, _>(self)
2346 }
2347
2348 pub fn get_repo_variable(
2354 &self,
2355 owner: &str,
2356 repo: &str,
2357 variablename: &str,
2358 ) -> Request<'_, endpoints::GetRepoVariable<'_>, ActionVariable> {
2359 endpoints::GetRepoVariable {
2360 owner,
2361 repo,
2362 variablename,
2363 }
2364 .make_request()
2365 .wrap::<_, _>(self)
2366 }
2367
2368 pub fn update_repo_variable(
2375 &self,
2376 owner: &str,
2377 repo: &str,
2378 variablename: &str,
2379 body: UpdateVariableOption,
2380 ) -> Request<'_, endpoints::UpdateRepoVariable<'_>, ()> {
2381 endpoints::UpdateRepoVariable {
2382 owner,
2383 repo,
2384 variablename,
2385 body: body,
2386 }
2387 .make_request()
2388 .wrap::<_, _>(self)
2389 }
2390
2391 pub fn create_repo_variable(
2398 &self,
2399 owner: &str,
2400 repo: &str,
2401 variablename: &str,
2402 body: CreateVariableOption,
2403 ) -> Request<'_, endpoints::CreateRepoVariable<'_>, ()> {
2404 endpoints::CreateRepoVariable {
2405 owner,
2406 repo,
2407 variablename,
2408 body: body,
2409 }
2410 .make_request()
2411 .wrap::<_, _>(self)
2412 }
2413
2414 pub fn delete_repo_variable(
2420 &self,
2421 owner: &str,
2422 repo: &str,
2423 variablename: &str,
2424 ) -> Request<'_, endpoints::DeleteRepoVariable<'_>, ()> {
2425 endpoints::DeleteRepoVariable {
2426 owner,
2427 repo,
2428 variablename,
2429 }
2430 .make_request()
2431 .wrap::<_, _>(self)
2432 }
2433
2434 pub fn dispatch_workflow(
2441 &self,
2442 owner: &str,
2443 repo: &str,
2444 workflowfilename: &str,
2445 body: DispatchWorkflowOption,
2446 ) -> Request<'_, endpoints::DispatchWorkflow<'_>, Option<DispatchWorkflowRun>> {
2447 endpoints::DispatchWorkflow {
2448 owner,
2449 repo,
2450 workflowfilename,
2451 body: body,
2452 }
2453 .make_request()
2454 .wrap::<_, _>(self)
2455 }
2456
2457 pub fn repo_list_activity_feeds(
2462 &self,
2463 owner: &str,
2464 repo: &str,
2465 query: RepoListActivityFeedsQuery,
2466 ) -> Request<'_, endpoints::RepoListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
2467 {
2468 endpoints::RepoListActivityFeeds { owner, repo, query }
2469 .make_request()
2470 .wrap::<_, _>(self)
2471 }
2472
2473 pub fn repo_get_archive(
2479 &self,
2480 owner: &str,
2481 repo: &str,
2482 archive: &str,
2483 ) -> Request<'_, endpoints::RepoGetArchive<'_>, Bytes> {
2484 endpoints::RepoGetArchive {
2485 owner,
2486 repo,
2487 archive,
2488 }
2489 .make_request()
2490 .wrap::<_, _>(self)
2491 }
2492
2493 pub fn repo_get_assignees(
2498 &self,
2499 owner: &str,
2500 repo: &str,
2501 ) -> Request<'_, endpoints::RepoGetAssignees<'_>, (UserListHeaders, Vec<User>)> {
2502 endpoints::RepoGetAssignees { owner, repo }
2503 .make_request()
2504 .wrap::<_, _>(self)
2505 }
2506
2507 pub fn repo_update_avatar(
2513 &self,
2514 owner: &str,
2515 repo: &str,
2516 body: UpdateRepoAvatarOption,
2517 ) -> Request<'_, endpoints::RepoUpdateAvatar<'_>, ()> {
2518 endpoints::RepoUpdateAvatar {
2519 owner,
2520 repo,
2521 body: body,
2522 }
2523 .make_request()
2524 .wrap::<_, _>(self)
2525 }
2526
2527 pub fn repo_delete_avatar(
2532 &self,
2533 owner: &str,
2534 repo: &str,
2535 ) -> Request<'_, endpoints::RepoDeleteAvatar<'_>, ()> {
2536 endpoints::RepoDeleteAvatar { owner, repo }
2537 .make_request()
2538 .wrap::<_, _>(self)
2539 }
2540
2541 pub fn repo_list_branch_protection(
2546 &self,
2547 owner: &str,
2548 repo: &str,
2549 ) -> Request<'_, endpoints::RepoListBranchProtection<'_>, Vec<BranchProtection>> {
2550 endpoints::RepoListBranchProtection { owner, repo }
2551 .make_request()
2552 .wrap::<_, _>(self)
2553 }
2554
2555 pub fn repo_create_branch_protection(
2561 &self,
2562 owner: &str,
2563 repo: &str,
2564 body: CreateBranchProtectionOption,
2565 ) -> Request<'_, endpoints::RepoCreateBranchProtection<'_>, BranchProtection> {
2566 endpoints::RepoCreateBranchProtection {
2567 owner,
2568 repo,
2569 body: body,
2570 }
2571 .make_request()
2572 .wrap::<_, _>(self)
2573 }
2574
2575 pub fn repo_get_branch_protection(
2581 &self,
2582 owner: &str,
2583 repo: &str,
2584 name: &str,
2585 ) -> Request<'_, endpoints::RepoGetBranchProtection<'_>, BranchProtection> {
2586 endpoints::RepoGetBranchProtection { owner, repo, name }
2587 .make_request()
2588 .wrap::<_, _>(self)
2589 }
2590
2591 pub fn repo_delete_branch_protection(
2597 &self,
2598 owner: &str,
2599 repo: &str,
2600 name: &str,
2601 ) -> Request<'_, endpoints::RepoDeleteBranchProtection<'_>, ()> {
2602 endpoints::RepoDeleteBranchProtection { owner, repo, name }
2603 .make_request()
2604 .wrap::<_, _>(self)
2605 }
2606
2607 pub fn repo_edit_branch_protection(
2614 &self,
2615 owner: &str,
2616 repo: &str,
2617 name: &str,
2618 body: EditBranchProtectionOption,
2619 ) -> Request<'_, endpoints::RepoEditBranchProtection<'_>, BranchProtection> {
2620 endpoints::RepoEditBranchProtection {
2621 owner,
2622 repo,
2623 name,
2624 body: body,
2625 }
2626 .make_request()
2627 .wrap::<_, _>(self)
2628 }
2629
2630 pub fn repo_list_branches(
2635 &self,
2636 owner: &str,
2637 repo: &str,
2638 ) -> Request<'_, endpoints::RepoListBranches<'_>, (BranchListHeaders, Vec<Branch>)> {
2639 endpoints::RepoListBranches { owner, repo }
2640 .make_request()
2641 .wrap::<_, _>(self)
2642 }
2643
2644 pub fn repo_create_branch(
2650 &self,
2651 owner: &str,
2652 repo: &str,
2653 body: CreateBranchRepoOption,
2654 ) -> Request<'_, endpoints::RepoCreateBranch<'_>, Branch> {
2655 endpoints::RepoCreateBranch {
2656 owner,
2657 repo,
2658 body: body,
2659 }
2660 .make_request()
2661 .wrap::<_, _>(self)
2662 }
2663
2664 pub fn repo_get_branch(
2670 &self,
2671 owner: &str,
2672 repo: &str,
2673 branch: &str,
2674 ) -> Request<'_, endpoints::RepoGetBranch<'_>, Branch> {
2675 endpoints::RepoGetBranch {
2676 owner,
2677 repo,
2678 branch,
2679 }
2680 .make_request()
2681 .wrap::<_, _>(self)
2682 }
2683
2684 pub fn repo_delete_branch(
2690 &self,
2691 owner: &str,
2692 repo: &str,
2693 branch: &str,
2694 ) -> Request<'_, endpoints::RepoDeleteBranch<'_>, ()> {
2695 endpoints::RepoDeleteBranch {
2696 owner,
2697 repo,
2698 branch,
2699 }
2700 .make_request()
2701 .wrap::<_, _>(self)
2702 }
2703
2704 pub fn repo_update_branch(
2711 &self,
2712 owner: &str,
2713 repo: &str,
2714 branch: &str,
2715 body: UpdateBranchRepoOption,
2716 ) -> Request<'_, endpoints::RepoUpdateBranch<'_>, ()> {
2717 endpoints::RepoUpdateBranch {
2718 owner,
2719 repo,
2720 branch,
2721 body: body,
2722 }
2723 .make_request()
2724 .wrap::<_, _>(self)
2725 }
2726
2727 pub fn repo_list_collaborators(
2732 &self,
2733 owner: &str,
2734 repo: &str,
2735 ) -> Request<'_, endpoints::RepoListCollaborators<'_>, (UserListHeaders, Vec<User>)> {
2736 endpoints::RepoListCollaborators { owner, repo }
2737 .make_request()
2738 .wrap::<_, _>(self)
2739 }
2740
2741 pub fn repo_check_collaborator(
2747 &self,
2748 owner: &str,
2749 repo: &str,
2750 collaborator: &str,
2751 ) -> Request<'_, endpoints::RepoCheckCollaborator<'_>, ()> {
2752 endpoints::RepoCheckCollaborator {
2753 owner,
2754 repo,
2755 collaborator,
2756 }
2757 .make_request()
2758 .wrap::<_, _>(self)
2759 }
2760
2761 pub fn repo_add_collaborator(
2768 &self,
2769 owner: &str,
2770 repo: &str,
2771 collaborator: &str,
2772 body: AddCollaboratorOption,
2773 ) -> Request<'_, endpoints::RepoAddCollaborator<'_>, ()> {
2774 endpoints::RepoAddCollaborator {
2775 owner,
2776 repo,
2777 collaborator,
2778 body: body,
2779 }
2780 .make_request()
2781 .wrap::<_, _>(self)
2782 }
2783
2784 pub fn repo_delete_collaborator(
2790 &self,
2791 owner: &str,
2792 repo: &str,
2793 collaborator: &str,
2794 ) -> Request<'_, endpoints::RepoDeleteCollaborator<'_>, ()> {
2795 endpoints::RepoDeleteCollaborator {
2796 owner,
2797 repo,
2798 collaborator,
2799 }
2800 .make_request()
2801 .wrap::<_, _>(self)
2802 }
2803
2804 pub fn repo_get_repo_permissions(
2810 &self,
2811 owner: &str,
2812 repo: &str,
2813 collaborator: &str,
2814 ) -> Request<'_, endpoints::RepoGetRepoPermissions<'_>, RepoCollaboratorPermission> {
2815 endpoints::RepoGetRepoPermissions {
2816 owner,
2817 repo,
2818 collaborator,
2819 }
2820 .make_request()
2821 .wrap::<_, _>(self)
2822 }
2823
2824 pub fn repo_get_all_commits(
2829 &self,
2830 owner: &str,
2831 repo: &str,
2832 query: RepoGetAllCommitsQuery,
2833 ) -> Request<'_, endpoints::RepoGetAllCommits<'_>, (CommitListHeaders, Vec<Commit>)> {
2834 endpoints::RepoGetAllCommits { owner, repo, query }
2835 .make_request()
2836 .wrap::<_, _>(self)
2837 }
2838
2839 pub fn repo_get_combined_status_by_ref(
2845 &self,
2846 owner: &str,
2847 repo: &str,
2848 r#ref: &str,
2849 ) -> Request<
2850 '_,
2851 endpoints::RepoGetCombinedStatusByRef<'_>,
2852 (CombinedStatusHeaders, CombinedStatus),
2853 > {
2854 endpoints::RepoGetCombinedStatusByRef { owner, repo, r#ref }
2855 .make_request()
2856 .wrap::<_, _>(self)
2857 }
2858
2859 pub fn repo_list_statuses_by_ref(
2865 &self,
2866 owner: &str,
2867 repo: &str,
2868 r#ref: &str,
2869 query: RepoListStatusesByRefQuery,
2870 ) -> Request<
2871 '_,
2872 endpoints::RepoListStatusesByRef<'_>,
2873 (CommitStatusListHeaders, Vec<CommitStatus>),
2874 > {
2875 endpoints::RepoListStatusesByRef {
2876 owner,
2877 repo,
2878 r#ref,
2879 query,
2880 }
2881 .make_request()
2882 .wrap::<_, _>(self)
2883 }
2884
2885 pub fn repo_get_commit_pull_request(
2891 &self,
2892 owner: &str,
2893 repo: &str,
2894 sha: &str,
2895 ) -> Request<'_, endpoints::RepoGetCommitPullRequest<'_>, PullRequest> {
2896 endpoints::RepoGetCommitPullRequest { owner, repo, sha }
2897 .make_request()
2898 .wrap::<_, _>(self)
2899 }
2900
2901 pub fn repo_compare_diff(
2907 &self,
2908 owner: &str,
2909 repo: &str,
2910 basehead: &str,
2911 ) -> Request<'_, endpoints::RepoCompareDiff<'_>, Compare> {
2912 endpoints::RepoCompareDiff {
2913 owner,
2914 repo,
2915 basehead,
2916 }
2917 .make_request()
2918 .wrap::<_, _>(self)
2919 }
2920
2921 pub fn repo_get_contents_list(
2926 &self,
2927 owner: &str,
2928 repo: &str,
2929 query: RepoGetContentsListQuery,
2930 ) -> Request<'_, endpoints::RepoGetContentsList<'_>, Vec<ContentsResponse>> {
2931 endpoints::RepoGetContentsList { owner, repo, query }
2932 .make_request()
2933 .wrap::<_, _>(self)
2934 }
2935
2936 pub fn repo_change_files(
2942 &self,
2943 owner: &str,
2944 repo: &str,
2945 body: ChangeFilesOptions,
2946 ) -> Request<'_, endpoints::RepoChangeFiles<'_>, FilesResponse> {
2947 endpoints::RepoChangeFiles {
2948 owner,
2949 repo,
2950 body: body,
2951 }
2952 .make_request()
2953 .wrap::<_, _>(self)
2954 }
2955
2956 pub fn repo_get_contents(
2962 &self,
2963 owner: &str,
2964 repo: &str,
2965 filepath: &str,
2966 query: RepoGetContentsQuery,
2967 ) -> Request<'_, endpoints::RepoGetContents<'_>, ContentsResponse> {
2968 endpoints::RepoGetContents {
2969 owner,
2970 repo,
2971 filepath,
2972 query,
2973 }
2974 .make_request()
2975 .wrap::<_, _>(self)
2976 }
2977
2978 pub fn repo_update_file(
2985 &self,
2986 owner: &str,
2987 repo: &str,
2988 filepath: &str,
2989 body: UpdateFileOptions,
2990 ) -> Request<'_, endpoints::RepoUpdateFile<'_>, FileResponse> {
2991 endpoints::RepoUpdateFile {
2992 owner,
2993 repo,
2994 filepath,
2995 body: body,
2996 }
2997 .make_request()
2998 .wrap::<_, _>(self)
2999 }
3000
3001 pub fn repo_create_file(
3008 &self,
3009 owner: &str,
3010 repo: &str,
3011 filepath: &str,
3012 body: CreateFileOptions,
3013 ) -> Request<'_, endpoints::RepoCreateFile<'_>, FileResponse> {
3014 endpoints::RepoCreateFile {
3015 owner,
3016 repo,
3017 filepath,
3018 body: body,
3019 }
3020 .make_request()
3021 .wrap::<_, _>(self)
3022 }
3023
3024 pub fn repo_delete_file(
3031 &self,
3032 owner: &str,
3033 repo: &str,
3034 filepath: &str,
3035 body: DeleteFileOptions,
3036 ) -> Request<'_, endpoints::RepoDeleteFile<'_>, FileDeleteResponse> {
3037 endpoints::RepoDeleteFile {
3038 owner,
3039 repo,
3040 filepath,
3041 body: body,
3042 }
3043 .make_request()
3044 .wrap::<_, _>(self)
3045 }
3046
3047 pub fn repo_convert(
3052 &self,
3053 owner: &str,
3054 repo: &str,
3055 ) -> Request<'_, endpoints::RepoConvert<'_>, Repository> {
3056 endpoints::RepoConvert { owner, repo }
3057 .make_request()
3058 .wrap::<_, _>(self)
3059 }
3060
3061 pub fn repo_apply_diff_patch(
3067 &self,
3068 owner: &str,
3069 repo: &str,
3070 body: UpdateFileOptions,
3071 ) -> Request<'_, endpoints::RepoApplyDiffPatch<'_>, FileResponse> {
3072 endpoints::RepoApplyDiffPatch {
3073 owner,
3074 repo,
3075 body: body,
3076 }
3077 .make_request()
3078 .wrap::<_, _>(self)
3079 }
3080
3081 pub fn repo_get_editor_config(
3087 &self,
3088 owner: &str,
3089 repo: &str,
3090 filepath: &str,
3091 query: RepoGetEditorConfigQuery,
3092 ) -> Request<'_, endpoints::RepoGetEditorConfig<'_>, BTreeMap<String, String>> {
3093 endpoints::RepoGetEditorConfig {
3094 owner,
3095 repo,
3096 filepath,
3097 query,
3098 }
3099 .make_request()
3100 .wrap::<_, _>(self)
3101 }
3102
3103 pub fn repo_list_flags(
3108 &self,
3109 owner: &str,
3110 repo: &str,
3111 ) -> Request<'_, endpoints::RepoListFlags<'_>, Vec<String>> {
3112 endpoints::RepoListFlags { owner, repo }
3113 .make_request()
3114 .wrap::<_, _>(self)
3115 }
3116
3117 pub fn repo_replace_all_flags(
3123 &self,
3124 owner: &str,
3125 repo: &str,
3126 body: ReplaceFlagsOption,
3127 ) -> Request<'_, endpoints::RepoReplaceAllFlags<'_>, ()> {
3128 endpoints::RepoReplaceAllFlags {
3129 owner,
3130 repo,
3131 body: body,
3132 }
3133 .make_request()
3134 .wrap::<_, _>(self)
3135 }
3136
3137 pub fn repo_delete_all_flags(
3142 &self,
3143 owner: &str,
3144 repo: &str,
3145 ) -> Request<'_, endpoints::RepoDeleteAllFlags<'_>, ()> {
3146 endpoints::RepoDeleteAllFlags { owner, repo }
3147 .make_request()
3148 .wrap::<_, _>(self)
3149 }
3150
3151 pub fn repo_check_flag(
3157 &self,
3158 owner: &str,
3159 repo: &str,
3160 flag: &str,
3161 ) -> Request<'_, endpoints::RepoCheckFlag<'_>, ()> {
3162 endpoints::RepoCheckFlag { owner, repo, flag }
3163 .make_request()
3164 .wrap::<_, _>(self)
3165 }
3166
3167 pub fn repo_add_flag(
3173 &self,
3174 owner: &str,
3175 repo: &str,
3176 flag: &str,
3177 ) -> Request<'_, endpoints::RepoAddFlag<'_>, ()> {
3178 endpoints::RepoAddFlag { owner, repo, flag }
3179 .make_request()
3180 .wrap::<_, _>(self)
3181 }
3182
3183 pub fn repo_delete_flag(
3189 &self,
3190 owner: &str,
3191 repo: &str,
3192 flag: &str,
3193 ) -> Request<'_, endpoints::RepoDeleteFlag<'_>, ()> {
3194 endpoints::RepoDeleteFlag { owner, repo, flag }
3195 .make_request()
3196 .wrap::<_, _>(self)
3197 }
3198
3199 pub fn list_forks(
3204 &self,
3205 owner: &str,
3206 repo: &str,
3207 ) -> Request<'_, endpoints::ListForks<'_>, (RepositoryListHeaders, Vec<Repository>)> {
3208 endpoints::ListForks { owner, repo }
3209 .make_request()
3210 .wrap::<_, _>(self)
3211 }
3212
3213 pub fn create_fork(
3219 &self,
3220 owner: &str,
3221 repo: &str,
3222 body: CreateForkOption,
3223 ) -> Request<'_, endpoints::CreateFork<'_>, Repository> {
3224 endpoints::CreateFork {
3225 owner,
3226 repo,
3227 body: body,
3228 }
3229 .make_request()
3230 .wrap::<_, _>(self)
3231 }
3232
3233 pub fn get_blobs(
3238 &self,
3239 owner: &str,
3240 repo: &str,
3241 query: GetBlobsQuery,
3242 ) -> Request<'_, endpoints::GetBlobs<'_>, Vec<GitBlob>> {
3243 endpoints::GetBlobs { owner, repo, query }
3244 .make_request()
3245 .wrap::<_, _>(self)
3246 }
3247
3248 pub fn get_blob(
3254 &self,
3255 owner: &str,
3256 repo: &str,
3257 sha: &str,
3258 ) -> Request<'_, endpoints::GetBlob<'_>, GitBlob> {
3259 endpoints::GetBlob { owner, repo, sha }
3260 .make_request()
3261 .wrap::<_, _>(self)
3262 }
3263
3264 pub fn repo_get_single_commit(
3270 &self,
3271 owner: &str,
3272 repo: &str,
3273 sha: &str,
3274 query: RepoGetSingleCommitQuery,
3275 ) -> Request<'_, endpoints::RepoGetSingleCommit<'_>, Commit> {
3276 endpoints::RepoGetSingleCommit {
3277 owner,
3278 repo,
3279 sha,
3280 query,
3281 }
3282 .make_request()
3283 .wrap::<_, _>(self)
3284 }
3285
3286 pub fn repo_download_commit_diff_or_patch(
3293 &self,
3294 owner: &str,
3295 repo: &str,
3296 sha: &str,
3297 diff_type: &str,
3298 ) -> Request<'_, endpoints::RepoDownloadCommitDiffOrPatch<'_>, String> {
3299 endpoints::RepoDownloadCommitDiffOrPatch {
3300 owner,
3301 repo,
3302 sha,
3303 diff_type,
3304 }
3305 .make_request()
3306 .wrap::<_, _>(self)
3307 }
3308
3309 pub fn repo_get_note(
3315 &self,
3316 owner: &str,
3317 repo: &str,
3318 sha: &str,
3319 query: RepoGetNoteQuery,
3320 ) -> Request<'_, endpoints::RepoGetNote<'_>, Note> {
3321 endpoints::RepoGetNote {
3322 owner,
3323 repo,
3324 sha,
3325 query,
3326 }
3327 .make_request()
3328 .wrap::<_, _>(self)
3329 }
3330
3331 pub fn repo_set_note(
3338 &self,
3339 owner: &str,
3340 repo: &str,
3341 sha: &str,
3342 body: NoteOptions,
3343 ) -> Request<'_, endpoints::RepoSetNote<'_>, Note> {
3344 endpoints::RepoSetNote {
3345 owner,
3346 repo,
3347 sha,
3348 body: body,
3349 }
3350 .make_request()
3351 .wrap::<_, _>(self)
3352 }
3353
3354 pub fn repo_remove_note(
3360 &self,
3361 owner: &str,
3362 repo: &str,
3363 sha: &str,
3364 ) -> Request<'_, endpoints::RepoRemoveNote<'_>, ()> {
3365 endpoints::RepoRemoveNote { owner, repo, sha }
3366 .make_request()
3367 .wrap::<_, _>(self)
3368 }
3369
3370 pub fn repo_list_all_git_refs(
3375 &self,
3376 owner: &str,
3377 repo: &str,
3378 ) -> Request<'_, endpoints::RepoListAllGitRefs<'_>, Vec<Reference>> {
3379 endpoints::RepoListAllGitRefs { owner, repo }
3380 .make_request()
3381 .wrap::<_, _>(self)
3382 }
3383
3384 pub fn repo_list_git_refs(
3390 &self,
3391 owner: &str,
3392 repo: &str,
3393 r#ref: &str,
3394 ) -> Request<'_, endpoints::RepoListGitRefs<'_>, Vec<Reference>> {
3395 endpoints::RepoListGitRefs { owner, repo, r#ref }
3396 .make_request()
3397 .wrap::<_, _>(self)
3398 }
3399
3400 pub fn get_annotated_tag(
3406 &self,
3407 owner: &str,
3408 repo: &str,
3409 sha: &str,
3410 ) -> Request<'_, endpoints::GetAnnotatedTag<'_>, AnnotatedTag> {
3411 endpoints::GetAnnotatedTag { owner, repo, sha }
3412 .make_request()
3413 .wrap::<_, _>(self)
3414 }
3415
3416 pub fn get_tree(
3422 &self,
3423 owner: &str,
3424 repo: &str,
3425 sha: &str,
3426 query: GetTreeQuery,
3427 ) -> Request<'_, endpoints::GetTree<'_>, GitTreeResponse> {
3428 endpoints::GetTree {
3429 owner,
3430 repo,
3431 sha,
3432 query,
3433 }
3434 .make_request()
3435 .wrap::<_, _>(self)
3436 }
3437
3438 pub fn repo_list_hooks(
3443 &self,
3444 owner: &str,
3445 repo: &str,
3446 ) -> Request<'_, endpoints::RepoListHooks<'_>, (HookListHeaders, Vec<Hook>)> {
3447 endpoints::RepoListHooks { owner, repo }
3448 .make_request()
3449 .wrap::<_, _>(self)
3450 }
3451
3452 pub fn repo_create_hook(
3458 &self,
3459 owner: &str,
3460 repo: &str,
3461 body: CreateHookOption,
3462 ) -> Request<'_, endpoints::RepoCreateHook<'_>, Hook> {
3463 endpoints::RepoCreateHook {
3464 owner,
3465 repo,
3466 body: body,
3467 }
3468 .make_request()
3469 .wrap::<_, _>(self)
3470 }
3471
3472 pub fn repo_list_git_hooks(
3477 &self,
3478 owner: &str,
3479 repo: &str,
3480 ) -> Request<'_, endpoints::RepoListGitHooks<'_>, Vec<GitHook>> {
3481 endpoints::RepoListGitHooks { owner, repo }
3482 .make_request()
3483 .wrap::<_, _>(self)
3484 }
3485
3486 pub fn repo_get_git_hook(
3492 &self,
3493 owner: &str,
3494 repo: &str,
3495 id: &str,
3496 ) -> Request<'_, endpoints::RepoGetGitHook<'_>, GitHook> {
3497 endpoints::RepoGetGitHook { owner, repo, id }
3498 .make_request()
3499 .wrap::<_, _>(self)
3500 }
3501
3502 pub fn repo_delete_git_hook(
3508 &self,
3509 owner: &str,
3510 repo: &str,
3511 id: &str,
3512 ) -> Request<'_, endpoints::RepoDeleteGitHook<'_>, ()> {
3513 endpoints::RepoDeleteGitHook { owner, repo, id }
3514 .make_request()
3515 .wrap::<_, _>(self)
3516 }
3517
3518 pub fn repo_edit_git_hook(
3525 &self,
3526 owner: &str,
3527 repo: &str,
3528 id: &str,
3529 body: EditGitHookOption,
3530 ) -> Request<'_, endpoints::RepoEditGitHook<'_>, GitHook> {
3531 endpoints::RepoEditGitHook {
3532 owner,
3533 repo,
3534 id,
3535 body: body,
3536 }
3537 .make_request()
3538 .wrap::<_, _>(self)
3539 }
3540
3541 pub fn repo_get_hook(
3547 &self,
3548 owner: &str,
3549 repo: &str,
3550 id: i64,
3551 ) -> Request<'_, endpoints::RepoGetHook<'_>, Hook> {
3552 endpoints::RepoGetHook { owner, repo, id }
3553 .make_request()
3554 .wrap::<_, _>(self)
3555 }
3556
3557 pub fn repo_delete_hook(
3563 &self,
3564 owner: &str,
3565 repo: &str,
3566 id: i64,
3567 ) -> Request<'_, endpoints::RepoDeleteHook<'_>, ()> {
3568 endpoints::RepoDeleteHook { owner, repo, id }
3569 .make_request()
3570 .wrap::<_, _>(self)
3571 }
3572
3573 pub fn repo_edit_hook(
3580 &self,
3581 owner: &str,
3582 repo: &str,
3583 id: i64,
3584 body: EditHookOption,
3585 ) -> Request<'_, endpoints::RepoEditHook<'_>, Hook> {
3586 endpoints::RepoEditHook {
3587 owner,
3588 repo,
3589 id,
3590 body: body,
3591 }
3592 .make_request()
3593 .wrap::<_, _>(self)
3594 }
3595
3596 pub fn repo_test_hook(
3602 &self,
3603 owner: &str,
3604 repo: &str,
3605 id: i64,
3606 query: RepoTestHookQuery,
3607 ) -> Request<'_, endpoints::RepoTestHook<'_>, ()> {
3608 endpoints::RepoTestHook {
3609 owner,
3610 repo,
3611 id,
3612 query,
3613 }
3614 .make_request()
3615 .wrap::<_, _>(self)
3616 }
3617
3618 pub fn repo_get_issue_config(
3623 &self,
3624 owner: &str,
3625 repo: &str,
3626 ) -> Request<'_, endpoints::RepoGetIssueConfig<'_>, IssueConfig> {
3627 endpoints::RepoGetIssueConfig { owner, repo }
3628 .make_request()
3629 .wrap::<_, _>(self)
3630 }
3631
3632 pub fn repo_validate_issue_config(
3637 &self,
3638 owner: &str,
3639 repo: &str,
3640 ) -> Request<'_, endpoints::RepoValidateIssueConfig<'_>, IssueConfigValidation> {
3641 endpoints::RepoValidateIssueConfig { owner, repo }
3642 .make_request()
3643 .wrap::<_, _>(self)
3644 }
3645
3646 pub fn repo_get_issue_templates(
3651 &self,
3652 owner: &str,
3653 repo: &str,
3654 ) -> Request<'_, endpoints::RepoGetIssueTemplates<'_>, Vec<IssueTemplate>> {
3655 endpoints::RepoGetIssueTemplates { owner, repo }
3656 .make_request()
3657 .wrap::<_, _>(self)
3658 }
3659
3660 pub fn issue_list_issues(
3665 &self,
3666 owner: &str,
3667 repo: &str,
3668 query: IssueListIssuesQuery,
3669 ) -> Request<'_, endpoints::IssueListIssues<'_>, (IssueListHeaders, Vec<Issue>)> {
3670 endpoints::IssueListIssues { owner, repo, query }
3671 .make_request()
3672 .wrap::<_, _>(self)
3673 }
3674
3675 pub fn issue_create_issue(
3681 &self,
3682 owner: &str,
3683 repo: &str,
3684 body: CreateIssueOption,
3685 ) -> Request<'_, endpoints::IssueCreateIssue<'_>, Issue> {
3686 endpoints::IssueCreateIssue {
3687 owner,
3688 repo,
3689 body: body,
3690 }
3691 .make_request()
3692 .wrap::<_, _>(self)
3693 }
3694
3695 pub fn issue_get_repo_comments(
3700 &self,
3701 owner: &str,
3702 repo: &str,
3703 query: IssueGetRepoCommentsQuery,
3704 ) -> Request<'_, endpoints::IssueGetRepoComments<'_>, (CommentListHeaders, Vec<Comment>)> {
3705 endpoints::IssueGetRepoComments { owner, repo, query }
3706 .make_request()
3707 .wrap::<_, _>(self)
3708 }
3709
3710 pub fn issue_get_comment(
3716 &self,
3717 owner: &str,
3718 repo: &str,
3719 id: i64,
3720 ) -> Request<'_, endpoints::IssueGetComment<'_>, Option<Comment>> {
3721 endpoints::IssueGetComment { owner, repo, id }
3722 .make_request()
3723 .wrap::<_, _>(self)
3724 }
3725
3726 pub fn issue_delete_comment(
3732 &self,
3733 owner: &str,
3734 repo: &str,
3735 id: i64,
3736 ) -> Request<'_, endpoints::IssueDeleteComment<'_>, ()> {
3737 endpoints::IssueDeleteComment { owner, repo, id }
3738 .make_request()
3739 .wrap::<_, _>(self)
3740 }
3741
3742 pub fn issue_edit_comment(
3749 &self,
3750 owner: &str,
3751 repo: &str,
3752 id: i64,
3753 body: EditIssueCommentOption,
3754 ) -> Request<'_, endpoints::IssueEditComment<'_>, Option<Comment>> {
3755 endpoints::IssueEditComment {
3756 owner,
3757 repo,
3758 id,
3759 body: body,
3760 }
3761 .make_request()
3762 .wrap::<_, _>(self)
3763 }
3764
3765 pub fn issue_list_issue_comment_attachments(
3771 &self,
3772 owner: &str,
3773 repo: &str,
3774 id: i64,
3775 ) -> Request<'_, endpoints::IssueListIssueCommentAttachments<'_>, Vec<Attachment>> {
3776 endpoints::IssueListIssueCommentAttachments { owner, repo, id }
3777 .make_request()
3778 .wrap::<_, _>(self)
3779 }
3780
3781 pub fn issue_create_issue_comment_attachment(
3788 &self,
3789 owner: &str,
3790 repo: &str,
3791 id: i64,
3792 attachment: &[u8],
3793 query: IssueCreateIssueCommentAttachmentQuery,
3794 ) -> Request<'_, endpoints::IssueCreateIssueCommentAttachment<'_>, Attachment> {
3795 endpoints::IssueCreateIssueCommentAttachment {
3796 owner,
3797 repo,
3798 id,
3799 attachment: &attachment,
3800 query,
3801 }
3802 .make_request()
3803 .wrap::<_, _>(self)
3804 }
3805
3806 pub fn issue_get_issue_comment_attachment(
3813 &self,
3814 owner: &str,
3815 repo: &str,
3816 id: i64,
3817 attachment_id: i64,
3818 ) -> Request<'_, endpoints::IssueGetIssueCommentAttachment<'_>, Attachment> {
3819 endpoints::IssueGetIssueCommentAttachment {
3820 owner,
3821 repo,
3822 id,
3823 attachment_id,
3824 }
3825 .make_request()
3826 .wrap::<_, _>(self)
3827 }
3828
3829 pub fn issue_delete_issue_comment_attachment(
3836 &self,
3837 owner: &str,
3838 repo: &str,
3839 id: i64,
3840 attachment_id: i64,
3841 ) -> Request<'_, endpoints::IssueDeleteIssueCommentAttachment<'_>, ()> {
3842 endpoints::IssueDeleteIssueCommentAttachment {
3843 owner,
3844 repo,
3845 id,
3846 attachment_id,
3847 }
3848 .make_request()
3849 .wrap::<_, _>(self)
3850 }
3851
3852 pub fn issue_edit_issue_comment_attachment(
3860 &self,
3861 owner: &str,
3862 repo: &str,
3863 id: i64,
3864 attachment_id: i64,
3865 body: EditAttachmentOptions,
3866 ) -> Request<'_, endpoints::IssueEditIssueCommentAttachment<'_>, Attachment> {
3867 endpoints::IssueEditIssueCommentAttachment {
3868 owner,
3869 repo,
3870 id,
3871 attachment_id,
3872 body: body,
3873 }
3874 .make_request()
3875 .wrap::<_, _>(self)
3876 }
3877
3878 pub fn issue_get_comment_reactions(
3884 &self,
3885 owner: &str,
3886 repo: &str,
3887 id: i64,
3888 ) -> Request<'_, endpoints::IssueGetCommentReactions<'_>, Vec<Reaction>> {
3889 endpoints::IssueGetCommentReactions { owner, repo, id }
3890 .make_request()
3891 .wrap::<_, _>(self)
3892 }
3893
3894 pub fn issue_post_comment_reaction(
3901 &self,
3902 owner: &str,
3903 repo: &str,
3904 id: i64,
3905 content: EditReactionOption,
3906 ) -> Request<'_, endpoints::IssuePostCommentReaction<'_>, Reaction> {
3907 endpoints::IssuePostCommentReaction {
3908 owner,
3909 repo,
3910 id,
3911 body: content,
3912 }
3913 .make_request()
3914 .wrap::<_, _>(self)
3915 }
3916
3917 pub fn issue_delete_comment_reaction(
3924 &self,
3925 owner: &str,
3926 repo: &str,
3927 id: i64,
3928 content: EditReactionOption,
3929 ) -> Request<'_, endpoints::IssueDeleteCommentReaction<'_>, ()> {
3930 endpoints::IssueDeleteCommentReaction {
3931 owner,
3932 repo,
3933 id,
3934 body: content,
3935 }
3936 .make_request()
3937 .wrap::<_, _>(self)
3938 }
3939
3940 pub fn repo_list_pinned_issues(
3945 &self,
3946 owner: &str,
3947 repo: &str,
3948 ) -> Request<'_, endpoints::RepoListPinnedIssues<'_>, Vec<Issue>> {
3949 endpoints::RepoListPinnedIssues { owner, repo }
3950 .make_request()
3951 .wrap::<_, _>(self)
3952 }
3953
3954 pub fn issue_get_issue(
3960 &self,
3961 owner: &str,
3962 repo: &str,
3963 index: i64,
3964 ) -> Request<'_, endpoints::IssueGetIssue<'_>, Issue> {
3965 endpoints::IssueGetIssue { owner, repo, index }
3966 .make_request()
3967 .wrap::<_, _>(self)
3968 }
3969
3970 pub fn issue_delete(
3976 &self,
3977 owner: &str,
3978 repo: &str,
3979 index: i64,
3980 ) -> Request<'_, endpoints::IssueDelete<'_>, ()> {
3981 endpoints::IssueDelete { owner, repo, index }
3982 .make_request()
3983 .wrap::<_, _>(self)
3984 }
3985
3986 pub fn issue_edit_issue(
3993 &self,
3994 owner: &str,
3995 repo: &str,
3996 index: i64,
3997 body: EditIssueOption,
3998 ) -> Request<'_, endpoints::IssueEditIssue<'_>, Issue> {
3999 endpoints::IssueEditIssue {
4000 owner,
4001 repo,
4002 index,
4003 body: body,
4004 }
4005 .make_request()
4006 .wrap::<_, _>(self)
4007 }
4008
4009 pub fn issue_list_issue_attachments(
4015 &self,
4016 owner: &str,
4017 repo: &str,
4018 index: i64,
4019 ) -> Request<'_, endpoints::IssueListIssueAttachments<'_>, Vec<Attachment>> {
4020 endpoints::IssueListIssueAttachments { owner, repo, index }
4021 .make_request()
4022 .wrap::<_, _>(self)
4023 }
4024
4025 pub fn issue_create_issue_attachment(
4032 &self,
4033 owner: &str,
4034 repo: &str,
4035 index: i64,
4036 attachment: &[u8],
4037 query: IssueCreateIssueAttachmentQuery,
4038 ) -> Request<'_, endpoints::IssueCreateIssueAttachment<'_>, Attachment> {
4039 endpoints::IssueCreateIssueAttachment {
4040 owner,
4041 repo,
4042 index,
4043 attachment: &attachment,
4044 query,
4045 }
4046 .make_request()
4047 .wrap::<_, _>(self)
4048 }
4049
4050 pub fn issue_get_issue_attachment(
4057 &self,
4058 owner: &str,
4059 repo: &str,
4060 index: i64,
4061 attachment_id: i64,
4062 ) -> Request<'_, endpoints::IssueGetIssueAttachment<'_>, Attachment> {
4063 endpoints::IssueGetIssueAttachment {
4064 owner,
4065 repo,
4066 index,
4067 attachment_id,
4068 }
4069 .make_request()
4070 .wrap::<_, _>(self)
4071 }
4072
4073 pub fn issue_delete_issue_attachment(
4080 &self,
4081 owner: &str,
4082 repo: &str,
4083 index: i64,
4084 attachment_id: i64,
4085 ) -> Request<'_, endpoints::IssueDeleteIssueAttachment<'_>, ()> {
4086 endpoints::IssueDeleteIssueAttachment {
4087 owner,
4088 repo,
4089 index,
4090 attachment_id,
4091 }
4092 .make_request()
4093 .wrap::<_, _>(self)
4094 }
4095
4096 pub fn issue_edit_issue_attachment(
4104 &self,
4105 owner: &str,
4106 repo: &str,
4107 index: i64,
4108 attachment_id: i64,
4109 body: EditAttachmentOptions,
4110 ) -> Request<'_, endpoints::IssueEditIssueAttachment<'_>, Attachment> {
4111 endpoints::IssueEditIssueAttachment {
4112 owner,
4113 repo,
4114 index,
4115 attachment_id,
4116 body: body,
4117 }
4118 .make_request()
4119 .wrap::<_, _>(self)
4120 }
4121
4122 pub fn issue_list_blocks(
4128 &self,
4129 owner: &str,
4130 repo: &str,
4131 index: i64,
4132 ) -> Request<'_, endpoints::IssueListBlocks<'_>, Vec<Issue>> {
4133 endpoints::IssueListBlocks { owner, repo, index }
4134 .make_request()
4135 .wrap::<_, _>(self)
4136 }
4137
4138 pub fn issue_create_issue_blocking(
4145 &self,
4146 owner: &str,
4147 repo: &str,
4148 index: i64,
4149 body: IssueMeta,
4150 ) -> Request<'_, endpoints::IssueCreateIssueBlocking<'_>, Issue> {
4151 endpoints::IssueCreateIssueBlocking {
4152 owner,
4153 repo,
4154 index,
4155 body: body,
4156 }
4157 .make_request()
4158 .wrap::<_, _>(self)
4159 }
4160
4161 pub fn issue_remove_issue_blocking(
4168 &self,
4169 owner: &str,
4170 repo: &str,
4171 index: i64,
4172 body: IssueMeta,
4173 ) -> Request<'_, endpoints::IssueRemoveIssueBlocking<'_>, Issue> {
4174 endpoints::IssueRemoveIssueBlocking {
4175 owner,
4176 repo,
4177 index,
4178 body: body,
4179 }
4180 .make_request()
4181 .wrap::<_, _>(self)
4182 }
4183
4184 pub fn issue_get_comments(
4190 &self,
4191 owner: &str,
4192 repo: &str,
4193 index: i64,
4194 query: IssueGetCommentsQuery,
4195 ) -> Request<'_, endpoints::IssueGetComments<'_>, (CommentListHeaders, Vec<Comment>)> {
4196 endpoints::IssueGetComments {
4197 owner,
4198 repo,
4199 index,
4200 query,
4201 }
4202 .make_request()
4203 .wrap::<_, _>(self)
4204 }
4205
4206 pub fn issue_create_comment(
4213 &self,
4214 owner: &str,
4215 repo: &str,
4216 index: i64,
4217 body: CreateIssueCommentOption,
4218 ) -> Request<'_, endpoints::IssueCreateComment<'_>, Comment> {
4219 endpoints::IssueCreateComment {
4220 owner,
4221 repo,
4222 index,
4223 body: body,
4224 }
4225 .make_request()
4226 .wrap::<_, _>(self)
4227 }
4228
4229 pub fn issue_delete_comment_deprecated(
4236 &self,
4237 owner: &str,
4238 repo: &str,
4239 index: u32,
4240 id: i64,
4241 ) -> Request<'_, endpoints::IssueDeleteCommentDeprecated<'_>, ()> {
4242 endpoints::IssueDeleteCommentDeprecated {
4243 owner,
4244 repo,
4245 index,
4246 id,
4247 }
4248 .make_request()
4249 .wrap::<_, _>(self)
4250 }
4251
4252 pub fn issue_edit_comment_deprecated(
4260 &self,
4261 owner: &str,
4262 repo: &str,
4263 index: u32,
4264 id: i64,
4265 body: EditIssueCommentOption,
4266 ) -> Request<'_, endpoints::IssueEditCommentDeprecated<'_>, Option<Comment>> {
4267 endpoints::IssueEditCommentDeprecated {
4268 owner,
4269 repo,
4270 index,
4271 id,
4272 body: body,
4273 }
4274 .make_request()
4275 .wrap::<_, _>(self)
4276 }
4277
4278 pub fn issue_edit_issue_deadline(
4285 &self,
4286 owner: &str,
4287 repo: &str,
4288 index: i64,
4289 body: EditDeadlineOption,
4290 ) -> Request<'_, endpoints::IssueEditIssueDeadline<'_>, IssueDeadline> {
4291 endpoints::IssueEditIssueDeadline {
4292 owner,
4293 repo,
4294 index,
4295 body: body,
4296 }
4297 .make_request()
4298 .wrap::<_, _>(self)
4299 }
4300
4301 pub fn issue_list_issue_dependencies(
4307 &self,
4308 owner: &str,
4309 repo: &str,
4310 index: i64,
4311 ) -> Request<'_, endpoints::IssueListIssueDependencies<'_>, Vec<Issue>> {
4312 endpoints::IssueListIssueDependencies { owner, repo, index }
4313 .make_request()
4314 .wrap::<_, _>(self)
4315 }
4316
4317 pub fn issue_create_issue_dependencies(
4324 &self,
4325 owner: &str,
4326 repo: &str,
4327 index: i64,
4328 body: IssueMeta,
4329 ) -> Request<'_, endpoints::IssueCreateIssueDependencies<'_>, Issue> {
4330 endpoints::IssueCreateIssueDependencies {
4331 owner,
4332 repo,
4333 index,
4334 body: body,
4335 }
4336 .make_request()
4337 .wrap::<_, _>(self)
4338 }
4339
4340 pub fn issue_remove_issue_dependencies(
4347 &self,
4348 owner: &str,
4349 repo: &str,
4350 index: i64,
4351 body: IssueMeta,
4352 ) -> Request<'_, endpoints::IssueRemoveIssueDependencies<'_>, Issue> {
4353 endpoints::IssueRemoveIssueDependencies {
4354 owner,
4355 repo,
4356 index,
4357 body: body,
4358 }
4359 .make_request()
4360 .wrap::<_, _>(self)
4361 }
4362
4363 pub fn issue_get_labels(
4369 &self,
4370 owner: &str,
4371 repo: &str,
4372 index: i64,
4373 ) -> Request<'_, endpoints::IssueGetLabels<'_>, Vec<Label>> {
4374 endpoints::IssueGetLabels { owner, repo, index }
4375 .make_request()
4376 .wrap::<_, _>(self)
4377 }
4378
4379 pub fn issue_replace_labels(
4386 &self,
4387 owner: &str,
4388 repo: &str,
4389 index: i64,
4390 body: IssueLabelsOption,
4391 ) -> Request<'_, endpoints::IssueReplaceLabels<'_>, Vec<Label>> {
4392 endpoints::IssueReplaceLabels {
4393 owner,
4394 repo,
4395 index,
4396 body: body,
4397 }
4398 .make_request()
4399 .wrap::<_, _>(self)
4400 }
4401
4402 pub fn issue_add_label(
4409 &self,
4410 owner: &str,
4411 repo: &str,
4412 index: i64,
4413 body: IssueLabelsOption,
4414 ) -> Request<'_, endpoints::IssueAddLabel<'_>, Vec<Label>> {
4415 endpoints::IssueAddLabel {
4416 owner,
4417 repo,
4418 index,
4419 body: body,
4420 }
4421 .make_request()
4422 .wrap::<_, _>(self)
4423 }
4424
4425 pub fn issue_clear_labels(
4432 &self,
4433 owner: &str,
4434 repo: &str,
4435 index: i64,
4436 body: DeleteLabelsOption,
4437 ) -> Request<'_, endpoints::IssueClearLabels<'_>, ()> {
4438 endpoints::IssueClearLabels {
4439 owner,
4440 repo,
4441 index,
4442 body: body,
4443 }
4444 .make_request()
4445 .wrap::<_, _>(self)
4446 }
4447
4448 pub fn issue_remove_label(
4456 &self,
4457 owner: &str,
4458 repo: &str,
4459 index: i64,
4460 identifier: &str,
4461 body: DeleteLabelsOption,
4462 ) -> Request<'_, endpoints::IssueRemoveLabel<'_>, ()> {
4463 endpoints::IssueRemoveLabel {
4464 owner,
4465 repo,
4466 index,
4467 identifier,
4468 body: body,
4469 }
4470 .make_request()
4471 .wrap::<_, _>(self)
4472 }
4473
4474 pub fn pin_issue(
4480 &self,
4481 owner: &str,
4482 repo: &str,
4483 index: i64,
4484 ) -> Request<'_, endpoints::PinIssue<'_>, ()> {
4485 endpoints::PinIssue { owner, repo, index }
4486 .make_request()
4487 .wrap::<_, _>(self)
4488 }
4489
4490 pub fn unpin_issue(
4496 &self,
4497 owner: &str,
4498 repo: &str,
4499 index: i64,
4500 ) -> Request<'_, endpoints::UnpinIssue<'_>, ()> {
4501 endpoints::UnpinIssue { owner, repo, index }
4502 .make_request()
4503 .wrap::<_, _>(self)
4504 }
4505
4506 pub fn move_issue_pin(
4513 &self,
4514 owner: &str,
4515 repo: &str,
4516 index: i64,
4517 position: i64,
4518 ) -> Request<'_, endpoints::MoveIssuePin<'_>, ()> {
4519 endpoints::MoveIssuePin {
4520 owner,
4521 repo,
4522 index,
4523 position,
4524 }
4525 .make_request()
4526 .wrap::<_, _>(self)
4527 }
4528
4529 pub fn issue_get_issue_reactions(
4535 &self,
4536 owner: &str,
4537 repo: &str,
4538 index: i64,
4539 ) -> Request<'_, endpoints::IssueGetIssueReactions<'_>, (ReactionListHeaders, Vec<Reaction>)>
4540 {
4541 endpoints::IssueGetIssueReactions { owner, repo, index }
4542 .make_request()
4543 .wrap::<_, _>(self)
4544 }
4545
4546 pub fn issue_post_issue_reaction(
4553 &self,
4554 owner: &str,
4555 repo: &str,
4556 index: i64,
4557 content: EditReactionOption,
4558 ) -> Request<'_, endpoints::IssuePostIssueReaction<'_>, Reaction> {
4559 endpoints::IssuePostIssueReaction {
4560 owner,
4561 repo,
4562 index,
4563 body: content,
4564 }
4565 .make_request()
4566 .wrap::<_, _>(self)
4567 }
4568
4569 pub fn issue_delete_issue_reaction(
4576 &self,
4577 owner: &str,
4578 repo: &str,
4579 index: i64,
4580 content: EditReactionOption,
4581 ) -> Request<'_, endpoints::IssueDeleteIssueReaction<'_>, ()> {
4582 endpoints::IssueDeleteIssueReaction {
4583 owner,
4584 repo,
4585 index,
4586 body: content,
4587 }
4588 .make_request()
4589 .wrap::<_, _>(self)
4590 }
4591
4592 pub fn issue_delete_stop_watch(
4598 &self,
4599 owner: &str,
4600 repo: &str,
4601 index: i64,
4602 ) -> Request<'_, endpoints::IssueDeleteStopWatch<'_>, ()> {
4603 endpoints::IssueDeleteStopWatch { owner, repo, index }
4604 .make_request()
4605 .wrap::<_, _>(self)
4606 }
4607
4608 pub fn issue_start_stop_watch(
4614 &self,
4615 owner: &str,
4616 repo: &str,
4617 index: i64,
4618 ) -> Request<'_, endpoints::IssueStartStopWatch<'_>, ()> {
4619 endpoints::IssueStartStopWatch { owner, repo, index }
4620 .make_request()
4621 .wrap::<_, _>(self)
4622 }
4623
4624 pub fn issue_stop_stop_watch(
4630 &self,
4631 owner: &str,
4632 repo: &str,
4633 index: i64,
4634 ) -> Request<'_, endpoints::IssueStopStopWatch<'_>, ()> {
4635 endpoints::IssueStopStopWatch { owner, repo, index }
4636 .make_request()
4637 .wrap::<_, _>(self)
4638 }
4639
4640 pub fn issue_subscriptions(
4646 &self,
4647 owner: &str,
4648 repo: &str,
4649 index: i64,
4650 ) -> Request<'_, endpoints::IssueSubscriptions<'_>, (UserListHeaders, Vec<User>)> {
4651 endpoints::IssueSubscriptions { owner, repo, index }
4652 .make_request()
4653 .wrap::<_, _>(self)
4654 }
4655
4656 pub fn issue_check_subscription(
4662 &self,
4663 owner: &str,
4664 repo: &str,
4665 index: i64,
4666 ) -> Request<'_, endpoints::IssueCheckSubscription<'_>, WatchInfo> {
4667 endpoints::IssueCheckSubscription { owner, repo, index }
4668 .make_request()
4669 .wrap::<_, _>(self)
4670 }
4671
4672 pub fn issue_add_subscription(
4679 &self,
4680 owner: &str,
4681 repo: &str,
4682 index: i64,
4683 user: &str,
4684 ) -> Request<'_, endpoints::IssueAddSubscription<'_>, ()> {
4685 endpoints::IssueAddSubscription {
4686 owner,
4687 repo,
4688 index,
4689 user,
4690 }
4691 .make_request()
4692 .wrap::<_, _>(self)
4693 }
4694
4695 pub fn issue_delete_subscription(
4702 &self,
4703 owner: &str,
4704 repo: &str,
4705 index: i64,
4706 user: &str,
4707 ) -> Request<'_, endpoints::IssueDeleteSubscription<'_>, ()> {
4708 endpoints::IssueDeleteSubscription {
4709 owner,
4710 repo,
4711 index,
4712 user,
4713 }
4714 .make_request()
4715 .wrap::<_, _>(self)
4716 }
4717
4718 pub fn issue_get_comments_and_timeline(
4724 &self,
4725 owner: &str,
4726 repo: &str,
4727 index: i64,
4728 query: IssueGetCommentsAndTimelineQuery,
4729 ) -> Request<
4730 '_,
4731 endpoints::IssueGetCommentsAndTimeline<'_>,
4732 (TimelineListHeaders, Vec<TimelineComment>),
4733 > {
4734 endpoints::IssueGetCommentsAndTimeline {
4735 owner,
4736 repo,
4737 index,
4738 query,
4739 }
4740 .make_request()
4741 .wrap::<_, _>(self)
4742 }
4743
4744 pub fn issue_tracked_times(
4750 &self,
4751 owner: &str,
4752 repo: &str,
4753 index: i64,
4754 query: IssueTrackedTimesQuery,
4755 ) -> Request<'_, endpoints::IssueTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
4756 {
4757 endpoints::IssueTrackedTimes {
4758 owner,
4759 repo,
4760 index,
4761 query,
4762 }
4763 .make_request()
4764 .wrap::<_, _>(self)
4765 }
4766
4767 pub fn issue_add_time(
4774 &self,
4775 owner: &str,
4776 repo: &str,
4777 index: i64,
4778 body: AddTimeOption,
4779 ) -> Request<'_, endpoints::IssueAddTime<'_>, TrackedTime> {
4780 endpoints::IssueAddTime {
4781 owner,
4782 repo,
4783 index,
4784 body: body,
4785 }
4786 .make_request()
4787 .wrap::<_, _>(self)
4788 }
4789
4790 pub fn issue_reset_time(
4796 &self,
4797 owner: &str,
4798 repo: &str,
4799 index: i64,
4800 ) -> Request<'_, endpoints::IssueResetTime<'_>, ()> {
4801 endpoints::IssueResetTime { owner, repo, index }
4802 .make_request()
4803 .wrap::<_, _>(self)
4804 }
4805
4806 pub fn issue_delete_time(
4813 &self,
4814 owner: &str,
4815 repo: &str,
4816 index: i64,
4817 id: i64,
4818 ) -> Request<'_, endpoints::IssueDeleteTime<'_>, ()> {
4819 endpoints::IssueDeleteTime {
4820 owner,
4821 repo,
4822 index,
4823 id,
4824 }
4825 .make_request()
4826 .wrap::<_, _>(self)
4827 }
4828
4829 pub fn repo_list_keys(
4834 &self,
4835 owner: &str,
4836 repo: &str,
4837 query: RepoListKeysQuery,
4838 ) -> Request<'_, endpoints::RepoListKeys<'_>, (DeployKeyListHeaders, Vec<DeployKey>)> {
4839 endpoints::RepoListKeys { owner, repo, query }
4840 .make_request()
4841 .wrap::<_, _>(self)
4842 }
4843
4844 pub fn repo_create_key(
4850 &self,
4851 owner: &str,
4852 repo: &str,
4853 body: CreateKeyOption,
4854 ) -> Request<'_, endpoints::RepoCreateKey<'_>, DeployKey> {
4855 endpoints::RepoCreateKey {
4856 owner,
4857 repo,
4858 body: body,
4859 }
4860 .make_request()
4861 .wrap::<_, _>(self)
4862 }
4863
4864 pub fn repo_get_key(
4870 &self,
4871 owner: &str,
4872 repo: &str,
4873 id: i64,
4874 ) -> Request<'_, endpoints::RepoGetKey<'_>, DeployKey> {
4875 endpoints::RepoGetKey { owner, repo, id }
4876 .make_request()
4877 .wrap::<_, _>(self)
4878 }
4879
4880 pub fn repo_delete_key(
4886 &self,
4887 owner: &str,
4888 repo: &str,
4889 id: i64,
4890 ) -> Request<'_, endpoints::RepoDeleteKey<'_>, ()> {
4891 endpoints::RepoDeleteKey { owner, repo, id }
4892 .make_request()
4893 .wrap::<_, _>(self)
4894 }
4895
4896 pub fn issue_list_labels(
4901 &self,
4902 owner: &str,
4903 repo: &str,
4904 query: IssueListLabelsQuery,
4905 ) -> Request<'_, endpoints::IssueListLabels<'_>, (LabelListHeaders, Vec<Label>)> {
4906 endpoints::IssueListLabels { owner, repo, query }
4907 .make_request()
4908 .wrap::<_, _>(self)
4909 }
4910
4911 pub fn issue_create_label(
4917 &self,
4918 owner: &str,
4919 repo: &str,
4920 body: CreateLabelOption,
4921 ) -> Request<'_, endpoints::IssueCreateLabel<'_>, Label> {
4922 endpoints::IssueCreateLabel {
4923 owner,
4924 repo,
4925 body: body,
4926 }
4927 .make_request()
4928 .wrap::<_, _>(self)
4929 }
4930
4931 pub fn issue_get_label(
4937 &self,
4938 owner: &str,
4939 repo: &str,
4940 id: i64,
4941 ) -> Request<'_, endpoints::IssueGetLabel<'_>, Label> {
4942 endpoints::IssueGetLabel { owner, repo, id }
4943 .make_request()
4944 .wrap::<_, _>(self)
4945 }
4946
4947 pub fn issue_delete_label(
4953 &self,
4954 owner: &str,
4955 repo: &str,
4956 id: i64,
4957 ) -> Request<'_, endpoints::IssueDeleteLabel<'_>, ()> {
4958 endpoints::IssueDeleteLabel { owner, repo, id }
4959 .make_request()
4960 .wrap::<_, _>(self)
4961 }
4962
4963 pub fn issue_edit_label(
4970 &self,
4971 owner: &str,
4972 repo: &str,
4973 id: i64,
4974 body: EditLabelOption,
4975 ) -> Request<'_, endpoints::IssueEditLabel<'_>, Label> {
4976 endpoints::IssueEditLabel {
4977 owner,
4978 repo,
4979 id,
4980 body: body,
4981 }
4982 .make_request()
4983 .wrap::<_, _>(self)
4984 }
4985
4986 pub fn repo_get_languages(
4991 &self,
4992 owner: &str,
4993 repo: &str,
4994 ) -> Request<'_, endpoints::RepoGetLanguages<'_>, BTreeMap<String, i64>> {
4995 endpoints::RepoGetLanguages { owner, repo }
4996 .make_request()
4997 .wrap::<_, _>(self)
4998 }
4999
5000 pub fn repo_get_raw_file_or_lfs(
5006 &self,
5007 owner: &str,
5008 repo: &str,
5009 filepath: &str,
5010 query: RepoGetRawFileOrLfsQuery,
5011 ) -> Request<'_, endpoints::RepoGetRawFileOrLfs<'_>, Bytes> {
5012 endpoints::RepoGetRawFileOrLfs {
5013 owner,
5014 repo,
5015 filepath,
5016 query,
5017 }
5018 .make_request()
5019 .wrap::<_, _>(self)
5020 }
5021
5022 pub fn issue_get_milestones_list(
5027 &self,
5028 owner: &str,
5029 repo: &str,
5030 query: IssueGetMilestonesListQuery,
5031 ) -> Request<'_, endpoints::IssueGetMilestonesList<'_>, (MilestoneListHeaders, Vec<Milestone>)>
5032 {
5033 endpoints::IssueGetMilestonesList { owner, repo, query }
5034 .make_request()
5035 .wrap::<_, _>(self)
5036 }
5037
5038 pub fn issue_create_milestone(
5044 &self,
5045 owner: &str,
5046 repo: &str,
5047 body: CreateMilestoneOption,
5048 ) -> Request<'_, endpoints::IssueCreateMilestone<'_>, Milestone> {
5049 endpoints::IssueCreateMilestone {
5050 owner,
5051 repo,
5052 body: body,
5053 }
5054 .make_request()
5055 .wrap::<_, _>(self)
5056 }
5057
5058 pub fn issue_get_milestone(
5064 &self,
5065 owner: &str,
5066 repo: &str,
5067 id: i64,
5068 ) -> Request<'_, endpoints::IssueGetMilestone<'_>, Milestone> {
5069 endpoints::IssueGetMilestone { owner, repo, id }
5070 .make_request()
5071 .wrap::<_, _>(self)
5072 }
5073
5074 pub fn issue_delete_milestone(
5080 &self,
5081 owner: &str,
5082 repo: &str,
5083 id: i64,
5084 ) -> Request<'_, endpoints::IssueDeleteMilestone<'_>, ()> {
5085 endpoints::IssueDeleteMilestone { owner, repo, id }
5086 .make_request()
5087 .wrap::<_, _>(self)
5088 }
5089
5090 pub fn issue_edit_milestone(
5097 &self,
5098 owner: &str,
5099 repo: &str,
5100 id: i64,
5101 body: EditMilestoneOption,
5102 ) -> Request<'_, endpoints::IssueEditMilestone<'_>, Milestone> {
5103 endpoints::IssueEditMilestone {
5104 owner,
5105 repo,
5106 id,
5107 body: body,
5108 }
5109 .make_request()
5110 .wrap::<_, _>(self)
5111 }
5112
5113 pub fn repo_mirror_sync(
5118 &self,
5119 owner: &str,
5120 repo: &str,
5121 ) -> Request<'_, endpoints::RepoMirrorSync<'_>, ()> {
5122 endpoints::RepoMirrorSync { owner, repo }
5123 .make_request()
5124 .wrap::<_, _>(self)
5125 }
5126
5127 pub fn repo_new_pin_allowed(
5132 &self,
5133 owner: &str,
5134 repo: &str,
5135 ) -> Request<'_, endpoints::RepoNewPinAllowed<'_>, NewIssuePinsAllowed> {
5136 endpoints::RepoNewPinAllowed { owner, repo }
5137 .make_request()
5138 .wrap::<_, _>(self)
5139 }
5140
5141 pub fn notify_get_repo_list(
5146 &self,
5147 owner: &str,
5148 repo: &str,
5149 query: NotifyGetRepoListQuery,
5150 ) -> Request<
5151 '_,
5152 endpoints::NotifyGetRepoList<'_>,
5153 (NotificationThreadListHeaders, Vec<NotificationThread>),
5154 > {
5155 endpoints::NotifyGetRepoList { owner, repo, query }
5156 .make_request()
5157 .wrap::<_, _>(self)
5158 }
5159
5160 pub fn notify_read_repo_list(
5165 &self,
5166 owner: &str,
5167 repo: &str,
5168 query: NotifyReadRepoListQuery,
5169 ) -> Request<'_, endpoints::NotifyReadRepoList<'_>, Vec<NotificationThread>> {
5170 endpoints::NotifyReadRepoList { owner, repo, query }
5171 .make_request()
5172 .wrap::<_, _>(self)
5173 }
5174
5175 pub fn repo_list_pull_requests(
5180 &self,
5181 owner: &str,
5182 repo: &str,
5183 query: RepoListPullRequestsQuery,
5184 ) -> Request<'_, endpoints::RepoListPullRequests<'_>, (PullRequestListHeaders, Vec<PullRequest>)>
5185 {
5186 endpoints::RepoListPullRequests { owner, repo, query }
5187 .make_request()
5188 .wrap::<_, _>(self)
5189 }
5190
5191 pub fn repo_create_pull_request(
5197 &self,
5198 owner: &str,
5199 repo: &str,
5200 body: CreatePullRequestOption,
5201 ) -> Request<'_, endpoints::RepoCreatePullRequest<'_>, PullRequest> {
5202 endpoints::RepoCreatePullRequest {
5203 owner,
5204 repo,
5205 body: body,
5206 }
5207 .make_request()
5208 .wrap::<_, _>(self)
5209 }
5210
5211 pub fn repo_list_pinned_pull_requests(
5216 &self,
5217 owner: &str,
5218 repo: &str,
5219 ) -> Request<
5220 '_,
5221 endpoints::RepoListPinnedPullRequests<'_>,
5222 (PullRequestListHeaders, Vec<PullRequest>),
5223 > {
5224 endpoints::RepoListPinnedPullRequests { owner, repo }
5225 .make_request()
5226 .wrap::<_, _>(self)
5227 }
5228
5229 pub fn repo_get_pull_request_by_base_head(
5236 &self,
5237 owner: &str,
5238 repo: &str,
5239 base: &str,
5240 head: &str,
5241 ) -> Request<'_, endpoints::RepoGetPullRequestByBaseHead<'_>, PullRequest> {
5242 endpoints::RepoGetPullRequestByBaseHead {
5243 owner,
5244 repo,
5245 base,
5246 head,
5247 }
5248 .make_request()
5249 .wrap::<_, _>(self)
5250 }
5251
5252 pub fn repo_get_pull_request(
5258 &self,
5259 owner: &str,
5260 repo: &str,
5261 index: i64,
5262 ) -> Request<'_, endpoints::RepoGetPullRequest<'_>, PullRequest> {
5263 endpoints::RepoGetPullRequest { owner, repo, index }
5264 .make_request()
5265 .wrap::<_, _>(self)
5266 }
5267
5268 pub fn repo_edit_pull_request(
5275 &self,
5276 owner: &str,
5277 repo: &str,
5278 index: i64,
5279 body: EditPullRequestOption,
5280 ) -> Request<'_, endpoints::RepoEditPullRequest<'_>, PullRequest> {
5281 endpoints::RepoEditPullRequest {
5282 owner,
5283 repo,
5284 index,
5285 body: body,
5286 }
5287 .make_request()
5288 .wrap::<_, _>(self)
5289 }
5290
5291 pub fn repo_download_pull_diff_or_patch(
5298 &self,
5299 owner: &str,
5300 repo: &str,
5301 index: i64,
5302 diff_type: &str,
5303 query: RepoDownloadPullDiffOrPatchQuery,
5304 ) -> Request<'_, endpoints::RepoDownloadPullDiffOrPatch<'_>, String> {
5305 endpoints::RepoDownloadPullDiffOrPatch {
5306 owner,
5307 repo,
5308 index,
5309 diff_type,
5310 query,
5311 }
5312 .make_request()
5313 .wrap::<_, _>(self)
5314 }
5315
5316 pub fn repo_get_pull_request_commits(
5322 &self,
5323 owner: &str,
5324 repo: &str,
5325 index: i64,
5326 query: RepoGetPullRequestCommitsQuery,
5327 ) -> Request<'_, endpoints::RepoGetPullRequestCommits<'_>, (CommitListHeaders, Vec<Commit>)>
5328 {
5329 endpoints::RepoGetPullRequestCommits {
5330 owner,
5331 repo,
5332 index,
5333 query,
5334 }
5335 .make_request()
5336 .wrap::<_, _>(self)
5337 }
5338
5339 pub fn repo_get_pull_request_files(
5345 &self,
5346 owner: &str,
5347 repo: &str,
5348 index: i64,
5349 query: RepoGetPullRequestFilesQuery,
5350 ) -> Request<
5351 '_,
5352 endpoints::RepoGetPullRequestFiles<'_>,
5353 (ChangedFileListWithPaginationHeaders, Vec<ChangedFile>),
5354 > {
5355 endpoints::RepoGetPullRequestFiles {
5356 owner,
5357 repo,
5358 index,
5359 query,
5360 }
5361 .make_request()
5362 .wrap::<_, _>(self)
5363 }
5364
5365 pub fn repo_pull_request_is_merged(
5371 &self,
5372 owner: &str,
5373 repo: &str,
5374 index: i64,
5375 ) -> Request<'_, endpoints::RepoPullRequestIsMerged<'_>, ()> {
5376 endpoints::RepoPullRequestIsMerged { owner, repo, index }
5377 .make_request()
5378 .wrap::<_, _>(self)
5379 }
5380
5381 pub fn repo_merge_pull_request(
5388 &self,
5389 owner: &str,
5390 repo: &str,
5391 index: i64,
5392 body: MergePullRequestOption,
5393 ) -> Request<'_, endpoints::RepoMergePullRequest<'_>, ()> {
5394 endpoints::RepoMergePullRequest {
5395 owner,
5396 repo,
5397 index,
5398 body: body,
5399 }
5400 .make_request()
5401 .wrap::<_, _>(self)
5402 }
5403
5404 pub fn repo_cancel_scheduled_auto_merge(
5410 &self,
5411 owner: &str,
5412 repo: &str,
5413 index: i64,
5414 ) -> Request<'_, endpoints::RepoCancelScheduledAutoMerge<'_>, ()> {
5415 endpoints::RepoCancelScheduledAutoMerge { owner, repo, index }
5416 .make_request()
5417 .wrap::<_, _>(self)
5418 }
5419
5420 pub fn repo_create_pull_review_requests(
5427 &self,
5428 owner: &str,
5429 repo: &str,
5430 index: i64,
5431 body: PullReviewRequestOptions,
5432 ) -> Request<'_, endpoints::RepoCreatePullReviewRequests<'_>, Vec<PullReview>> {
5433 endpoints::RepoCreatePullReviewRequests {
5434 owner,
5435 repo,
5436 index,
5437 body: body,
5438 }
5439 .make_request()
5440 .wrap::<_, _>(self)
5441 }
5442
5443 pub fn repo_delete_pull_review_requests(
5450 &self,
5451 owner: &str,
5452 repo: &str,
5453 index: i64,
5454 body: PullReviewRequestOptions,
5455 ) -> Request<'_, endpoints::RepoDeletePullReviewRequests<'_>, ()> {
5456 endpoints::RepoDeletePullReviewRequests {
5457 owner,
5458 repo,
5459 index,
5460 body: body,
5461 }
5462 .make_request()
5463 .wrap::<_, _>(self)
5464 }
5465
5466 pub fn repo_list_pull_reviews(
5472 &self,
5473 owner: &str,
5474 repo: &str,
5475 index: i64,
5476 ) -> Request<'_, endpoints::RepoListPullReviews<'_>, (PullReviewListHeaders, Vec<PullReview>)>
5477 {
5478 endpoints::RepoListPullReviews { owner, repo, index }
5479 .make_request()
5480 .wrap::<_, _>(self)
5481 }
5482
5483 pub fn repo_create_pull_review(
5490 &self,
5491 owner: &str,
5492 repo: &str,
5493 index: i64,
5494 body: CreatePullReviewOptions,
5495 ) -> Request<'_, endpoints::RepoCreatePullReview<'_>, PullReview> {
5496 endpoints::RepoCreatePullReview {
5497 owner,
5498 repo,
5499 index,
5500 body: body,
5501 }
5502 .make_request()
5503 .wrap::<_, _>(self)
5504 }
5505
5506 pub fn repo_get_pull_review(
5513 &self,
5514 owner: &str,
5515 repo: &str,
5516 index: i64,
5517 id: i64,
5518 ) -> Request<'_, endpoints::RepoGetPullReview<'_>, PullReview> {
5519 endpoints::RepoGetPullReview {
5520 owner,
5521 repo,
5522 index,
5523 id,
5524 }
5525 .make_request()
5526 .wrap::<_, _>(self)
5527 }
5528
5529 pub fn repo_submit_pull_review(
5537 &self,
5538 owner: &str,
5539 repo: &str,
5540 index: i64,
5541 id: i64,
5542 body: SubmitPullReviewOptions,
5543 ) -> Request<'_, endpoints::RepoSubmitPullReview<'_>, PullReview> {
5544 endpoints::RepoSubmitPullReview {
5545 owner,
5546 repo,
5547 index,
5548 id,
5549 body: body,
5550 }
5551 .make_request()
5552 .wrap::<_, _>(self)
5553 }
5554
5555 pub fn repo_delete_pull_review(
5562 &self,
5563 owner: &str,
5564 repo: &str,
5565 index: i64,
5566 id: i64,
5567 ) -> Request<'_, endpoints::RepoDeletePullReview<'_>, ()> {
5568 endpoints::RepoDeletePullReview {
5569 owner,
5570 repo,
5571 index,
5572 id,
5573 }
5574 .make_request()
5575 .wrap::<_, _>(self)
5576 }
5577
5578 pub fn repo_get_pull_review_comments(
5585 &self,
5586 owner: &str,
5587 repo: &str,
5588 index: i64,
5589 id: i64,
5590 ) -> Request<'_, endpoints::RepoGetPullReviewComments<'_>, Vec<PullReviewComment>> {
5591 endpoints::RepoGetPullReviewComments {
5592 owner,
5593 repo,
5594 index,
5595 id,
5596 }
5597 .make_request()
5598 .wrap::<_, _>(self)
5599 }
5600
5601 pub fn repo_create_pull_review_comment(
5609 &self,
5610 owner: &str,
5611 repo: &str,
5612 index: i64,
5613 id: i64,
5614 body: serde_json::Value,
5615 ) -> Request<'_, endpoints::RepoCreatePullReviewComment<'_>, PullReviewComment> {
5616 endpoints::RepoCreatePullReviewComment {
5617 owner,
5618 repo,
5619 index,
5620 id,
5621 body: body,
5622 }
5623 .make_request()
5624 .wrap::<_, _>(self)
5625 }
5626
5627 pub fn repo_get_pull_review_comment(
5635 &self,
5636 owner: &str,
5637 repo: &str,
5638 index: i64,
5639 id: i64,
5640 comment: i64,
5641 ) -> Request<'_, endpoints::RepoGetPullReviewComment<'_>, PullReviewComment> {
5642 endpoints::RepoGetPullReviewComment {
5643 owner,
5644 repo,
5645 index,
5646 id,
5647 comment,
5648 }
5649 .make_request()
5650 .wrap::<_, _>(self)
5651 }
5652
5653 pub fn repo_delete_pull_review_comment(
5661 &self,
5662 owner: &str,
5663 repo: &str,
5664 index: i64,
5665 id: i64,
5666 comment: i64,
5667 ) -> Request<'_, endpoints::RepoDeletePullReviewComment<'_>, ()> {
5668 endpoints::RepoDeletePullReviewComment {
5669 owner,
5670 repo,
5671 index,
5672 id,
5673 comment,
5674 }
5675 .make_request()
5676 .wrap::<_, _>(self)
5677 }
5678
5679 pub fn repo_dismiss_pull_review(
5687 &self,
5688 owner: &str,
5689 repo: &str,
5690 index: i64,
5691 id: i64,
5692 body: DismissPullReviewOptions,
5693 ) -> Request<'_, endpoints::RepoDismissPullReview<'_>, PullReview> {
5694 endpoints::RepoDismissPullReview {
5695 owner,
5696 repo,
5697 index,
5698 id,
5699 body: body,
5700 }
5701 .make_request()
5702 .wrap::<_, _>(self)
5703 }
5704
5705 pub fn repo_un_dismiss_pull_review(
5712 &self,
5713 owner: &str,
5714 repo: &str,
5715 index: i64,
5716 id: i64,
5717 ) -> Request<'_, endpoints::RepoUnDismissPullReview<'_>, PullReview> {
5718 endpoints::RepoUnDismissPullReview {
5719 owner,
5720 repo,
5721 index,
5722 id,
5723 }
5724 .make_request()
5725 .wrap::<_, _>(self)
5726 }
5727
5728 pub fn repo_update_pull_request(
5734 &self,
5735 owner: &str,
5736 repo: &str,
5737 index: i64,
5738 query: RepoUpdatePullRequestQuery,
5739 ) -> Request<'_, endpoints::RepoUpdatePullRequest<'_>, ()> {
5740 endpoints::RepoUpdatePullRequest {
5741 owner,
5742 repo,
5743 index,
5744 query,
5745 }
5746 .make_request()
5747 .wrap::<_, _>(self)
5748 }
5749
5750 pub fn repo_list_push_mirrors(
5755 &self,
5756 owner: &str,
5757 repo: &str,
5758 ) -> Request<'_, endpoints::RepoListPushMirrors<'_>, (PushMirrorListHeaders, Vec<PushMirror>)>
5759 {
5760 endpoints::RepoListPushMirrors { owner, repo }
5761 .make_request()
5762 .wrap::<_, _>(self)
5763 }
5764
5765 pub fn repo_add_push_mirror(
5771 &self,
5772 owner: &str,
5773 repo: &str,
5774 body: CreatePushMirrorOption,
5775 ) -> Request<'_, endpoints::RepoAddPushMirror<'_>, PushMirror> {
5776 endpoints::RepoAddPushMirror {
5777 owner,
5778 repo,
5779 body: body,
5780 }
5781 .make_request()
5782 .wrap::<_, _>(self)
5783 }
5784
5785 pub fn repo_push_mirror_sync(
5790 &self,
5791 owner: &str,
5792 repo: &str,
5793 ) -> Request<'_, endpoints::RepoPushMirrorSync<'_>, ()> {
5794 endpoints::RepoPushMirrorSync { owner, repo }
5795 .make_request()
5796 .wrap::<_, _>(self)
5797 }
5798
5799 pub fn repo_get_push_mirror_by_remote_name(
5805 &self,
5806 owner: &str,
5807 repo: &str,
5808 name: &str,
5809 ) -> Request<'_, endpoints::RepoGetPushMirrorByRemoteName<'_>, PushMirror> {
5810 endpoints::RepoGetPushMirrorByRemoteName { owner, repo, name }
5811 .make_request()
5812 .wrap::<_, _>(self)
5813 }
5814
5815 pub fn repo_delete_push_mirror(
5821 &self,
5822 owner: &str,
5823 repo: &str,
5824 name: &str,
5825 ) -> Request<'_, endpoints::RepoDeletePushMirror<'_>, ()> {
5826 endpoints::RepoDeletePushMirror { owner, repo, name }
5827 .make_request()
5828 .wrap::<_, _>(self)
5829 }
5830
5831 pub fn repo_get_raw_file(
5837 &self,
5838 owner: &str,
5839 repo: &str,
5840 filepath: &str,
5841 query: RepoGetRawFileQuery,
5842 ) -> Request<'_, endpoints::RepoGetRawFile<'_>, Bytes> {
5843 endpoints::RepoGetRawFile {
5844 owner,
5845 repo,
5846 filepath,
5847 query,
5848 }
5849 .make_request()
5850 .wrap::<_, _>(self)
5851 }
5852
5853 pub fn repo_list_releases(
5858 &self,
5859 owner: &str,
5860 repo: &str,
5861 query: RepoListReleasesQuery,
5862 ) -> Request<'_, endpoints::RepoListReleases<'_>, (ReleaseListHeaders, Vec<Release>)> {
5863 endpoints::RepoListReleases { owner, repo, query }
5864 .make_request()
5865 .wrap::<_, _>(self)
5866 }
5867
5868 pub fn repo_create_release(
5874 &self,
5875 owner: &str,
5876 repo: &str,
5877 body: CreateReleaseOption,
5878 ) -> Request<'_, endpoints::RepoCreateRelease<'_>, Release> {
5879 endpoints::RepoCreateRelease {
5880 owner,
5881 repo,
5882 body: body,
5883 }
5884 .make_request()
5885 .wrap::<_, _>(self)
5886 }
5887
5888 pub fn repo_get_latest_release(
5893 &self,
5894 owner: &str,
5895 repo: &str,
5896 ) -> Request<'_, endpoints::RepoGetLatestRelease<'_>, Release> {
5897 endpoints::RepoGetLatestRelease { owner, repo }
5898 .make_request()
5899 .wrap::<_, _>(self)
5900 }
5901
5902 pub fn repo_get_release_by_tag(
5908 &self,
5909 owner: &str,
5910 repo: &str,
5911 tag: &str,
5912 ) -> Request<'_, endpoints::RepoGetReleaseByTag<'_>, Release> {
5913 endpoints::RepoGetReleaseByTag { owner, repo, tag }
5914 .make_request()
5915 .wrap::<_, _>(self)
5916 }
5917
5918 pub fn repo_delete_release_by_tag(
5924 &self,
5925 owner: &str,
5926 repo: &str,
5927 tag: &str,
5928 ) -> Request<'_, endpoints::RepoDeleteReleaseByTag<'_>, ()> {
5929 endpoints::RepoDeleteReleaseByTag { owner, repo, tag }
5930 .make_request()
5931 .wrap::<_, _>(self)
5932 }
5933
5934 pub fn repo_get_release(
5940 &self,
5941 owner: &str,
5942 repo: &str,
5943 id: i64,
5944 ) -> Request<'_, endpoints::RepoGetRelease<'_>, Release> {
5945 endpoints::RepoGetRelease { owner, repo, id }
5946 .make_request()
5947 .wrap::<_, _>(self)
5948 }
5949
5950 pub fn repo_delete_release(
5956 &self,
5957 owner: &str,
5958 repo: &str,
5959 id: i64,
5960 ) -> Request<'_, endpoints::RepoDeleteRelease<'_>, ()> {
5961 endpoints::RepoDeleteRelease { owner, repo, id }
5962 .make_request()
5963 .wrap::<_, _>(self)
5964 }
5965
5966 pub fn repo_edit_release(
5973 &self,
5974 owner: &str,
5975 repo: &str,
5976 id: i64,
5977 body: EditReleaseOption,
5978 ) -> Request<'_, endpoints::RepoEditRelease<'_>, Release> {
5979 endpoints::RepoEditRelease {
5980 owner,
5981 repo,
5982 id,
5983 body: body,
5984 }
5985 .make_request()
5986 .wrap::<_, _>(self)
5987 }
5988
5989 pub fn repo_list_release_attachments(
5995 &self,
5996 owner: &str,
5997 repo: &str,
5998 id: i64,
5999 ) -> Request<'_, endpoints::RepoListReleaseAttachments<'_>, Vec<Attachment>> {
6000 endpoints::RepoListReleaseAttachments { owner, repo, id }
6001 .make_request()
6002 .wrap::<_, _>(self)
6003 }
6004
6005 pub fn repo_create_release_attachment(
6013 &self,
6014 owner: &str,
6015 repo: &str,
6016 id: i64,
6017 attachment: Option<&[u8]>,
6018 external_url: Option<&str>,
6019 query: RepoCreateReleaseAttachmentQuery,
6020 ) -> Request<'_, endpoints::RepoCreateReleaseAttachment<'_>, Attachment> {
6021 endpoints::RepoCreateReleaseAttachment {
6022 owner,
6023 repo,
6024 id,
6025 attachment: attachment.as_deref(),
6026 external_url: external_url.as_deref(),
6027 query,
6028 }
6029 .make_request()
6030 .wrap::<_, _>(self)
6031 }
6032
6033 pub fn repo_get_release_attachment(
6040 &self,
6041 owner: &str,
6042 repo: &str,
6043 id: i64,
6044 attachment_id: i64,
6045 ) -> Request<'_, endpoints::RepoGetReleaseAttachment<'_>, Attachment> {
6046 endpoints::RepoGetReleaseAttachment {
6047 owner,
6048 repo,
6049 id,
6050 attachment_id,
6051 }
6052 .make_request()
6053 .wrap::<_, _>(self)
6054 }
6055
6056 pub fn repo_delete_release_attachment(
6063 &self,
6064 owner: &str,
6065 repo: &str,
6066 id: i64,
6067 attachment_id: i64,
6068 ) -> Request<'_, endpoints::RepoDeleteReleaseAttachment<'_>, ()> {
6069 endpoints::RepoDeleteReleaseAttachment {
6070 owner,
6071 repo,
6072 id,
6073 attachment_id,
6074 }
6075 .make_request()
6076 .wrap::<_, _>(self)
6077 }
6078
6079 pub fn repo_edit_release_attachment(
6087 &self,
6088 owner: &str,
6089 repo: &str,
6090 id: i64,
6091 attachment_id: i64,
6092 body: EditAttachmentOptions,
6093 ) -> Request<'_, endpoints::RepoEditReleaseAttachment<'_>, Attachment> {
6094 endpoints::RepoEditReleaseAttachment {
6095 owner,
6096 repo,
6097 id,
6098 attachment_id,
6099 body: body,
6100 }
6101 .make_request()
6102 .wrap::<_, _>(self)
6103 }
6104
6105 pub fn repo_get_reviewers(
6110 &self,
6111 owner: &str,
6112 repo: &str,
6113 ) -> Request<'_, endpoints::RepoGetReviewers<'_>, (UserListHeaders, Vec<User>)> {
6114 endpoints::RepoGetReviewers { owner, repo }
6115 .make_request()
6116 .wrap::<_, _>(self)
6117 }
6118
6119 pub fn repo_signing_key(
6124 &self,
6125 owner: &str,
6126 repo: &str,
6127 ) -> Request<'_, endpoints::RepoSigningKey<'_>, String> {
6128 endpoints::RepoSigningKey { owner, repo }
6129 .make_request()
6130 .wrap::<_, _>(self)
6131 }
6132
6133 pub fn repo_list_stargazers(
6138 &self,
6139 owner: &str,
6140 repo: &str,
6141 ) -> Request<'_, endpoints::RepoListStargazers<'_>, (UserListHeaders, Vec<User>)> {
6142 endpoints::RepoListStargazers { owner, repo }
6143 .make_request()
6144 .wrap::<_, _>(self)
6145 }
6146
6147 pub fn repo_list_statuses(
6153 &self,
6154 owner: &str,
6155 repo: &str,
6156 sha: &str,
6157 query: RepoListStatusesQuery,
6158 ) -> Request<'_, endpoints::RepoListStatuses<'_>, (CommitStatusListHeaders, Vec<CommitStatus>)>
6159 {
6160 endpoints::RepoListStatuses {
6161 owner,
6162 repo,
6163 sha,
6164 query,
6165 }
6166 .make_request()
6167 .wrap::<_, _>(self)
6168 }
6169
6170 pub fn repo_create_status(
6177 &self,
6178 owner: &str,
6179 repo: &str,
6180 sha: &str,
6181 body: CreateStatusOption,
6182 ) -> Request<'_, endpoints::RepoCreateStatus<'_>, CommitStatus> {
6183 endpoints::RepoCreateStatus {
6184 owner,
6185 repo,
6186 sha,
6187 body: body,
6188 }
6189 .make_request()
6190 .wrap::<_, _>(self)
6191 }
6192
6193 pub fn repo_list_subscribers(
6198 &self,
6199 owner: &str,
6200 repo: &str,
6201 ) -> Request<'_, endpoints::RepoListSubscribers<'_>, (UserListHeaders, Vec<User>)> {
6202 endpoints::RepoListSubscribers { owner, repo }
6203 .make_request()
6204 .wrap::<_, _>(self)
6205 }
6206
6207 pub fn user_current_check_subscription(
6212 &self,
6213 owner: &str,
6214 repo: &str,
6215 ) -> Request<'_, endpoints::UserCurrentCheckSubscription<'_>, WatchInfo> {
6216 endpoints::UserCurrentCheckSubscription { owner, repo }
6217 .make_request()
6218 .wrap::<_, _>(self)
6219 }
6220
6221 pub fn user_current_put_subscription(
6226 &self,
6227 owner: &str,
6228 repo: &str,
6229 ) -> Request<'_, endpoints::UserCurrentPutSubscription<'_>, WatchInfo> {
6230 endpoints::UserCurrentPutSubscription { owner, repo }
6231 .make_request()
6232 .wrap::<_, _>(self)
6233 }
6234
6235 pub fn user_current_delete_subscription(
6240 &self,
6241 owner: &str,
6242 repo: &str,
6243 ) -> Request<'_, endpoints::UserCurrentDeleteSubscription<'_>, ()> {
6244 endpoints::UserCurrentDeleteSubscription { owner, repo }
6245 .make_request()
6246 .wrap::<_, _>(self)
6247 }
6248
6249 pub fn repo_sync_fork_default_info(
6254 &self,
6255 owner: &str,
6256 repo: &str,
6257 ) -> Request<'_, endpoints::RepoSyncForkDefaultInfo<'_>, SyncForkInfo> {
6258 endpoints::RepoSyncForkDefaultInfo { owner, repo }
6259 .make_request()
6260 .wrap::<_, _>(self)
6261 }
6262
6263 pub fn repo_sync_fork_default(
6268 &self,
6269 owner: &str,
6270 repo: &str,
6271 ) -> Request<'_, endpoints::RepoSyncForkDefault<'_>, ()> {
6272 endpoints::RepoSyncForkDefault { owner, repo }
6273 .make_request()
6274 .wrap::<_, _>(self)
6275 }
6276
6277 pub fn repo_sync_fork_branch_info(
6283 &self,
6284 owner: &str,
6285 repo: &str,
6286 branch: &str,
6287 ) -> Request<'_, endpoints::RepoSyncForkBranchInfo<'_>, SyncForkInfo> {
6288 endpoints::RepoSyncForkBranchInfo {
6289 owner,
6290 repo,
6291 branch,
6292 }
6293 .make_request()
6294 .wrap::<_, _>(self)
6295 }
6296
6297 pub fn repo_sync_fork_branch(
6303 &self,
6304 owner: &str,
6305 repo: &str,
6306 branch: &str,
6307 ) -> Request<'_, endpoints::RepoSyncForkBranch<'_>, ()> {
6308 endpoints::RepoSyncForkBranch {
6309 owner,
6310 repo,
6311 branch,
6312 }
6313 .make_request()
6314 .wrap::<_, _>(self)
6315 }
6316
6317 pub fn repo_list_tag_protection(
6322 &self,
6323 owner: &str,
6324 repo: &str,
6325 ) -> Request<'_, endpoints::RepoListTagProtection<'_>, Vec<TagProtection>> {
6326 endpoints::RepoListTagProtection { owner, repo }
6327 .make_request()
6328 .wrap::<_, _>(self)
6329 }
6330
6331 pub fn repo_create_tag_protection(
6337 &self,
6338 owner: &str,
6339 repo: &str,
6340 body: CreateTagProtectionOption,
6341 ) -> Request<'_, endpoints::RepoCreateTagProtection<'_>, TagProtection> {
6342 endpoints::RepoCreateTagProtection {
6343 owner,
6344 repo,
6345 body: body,
6346 }
6347 .make_request()
6348 .wrap::<_, _>(self)
6349 }
6350
6351 pub fn repo_get_tag_protection(
6357 &self,
6358 owner: &str,
6359 repo: &str,
6360 id: i64,
6361 ) -> Request<'_, endpoints::RepoGetTagProtection<'_>, TagProtection> {
6362 endpoints::RepoGetTagProtection { owner, repo, id }
6363 .make_request()
6364 .wrap::<_, _>(self)
6365 }
6366
6367 pub fn repo_delete_tag_protection(
6373 &self,
6374 owner: &str,
6375 repo: &str,
6376 id: i64,
6377 ) -> Request<'_, endpoints::RepoDeleteTagProtection<'_>, ()> {
6378 endpoints::RepoDeleteTagProtection { owner, repo, id }
6379 .make_request()
6380 .wrap::<_, _>(self)
6381 }
6382
6383 pub fn repo_edit_tag_protection(
6390 &self,
6391 owner: &str,
6392 repo: &str,
6393 id: i64,
6394 body: EditTagProtectionOption,
6395 ) -> Request<'_, endpoints::RepoEditTagProtection<'_>, TagProtection> {
6396 endpoints::RepoEditTagProtection {
6397 owner,
6398 repo,
6399 id,
6400 body: body,
6401 }
6402 .make_request()
6403 .wrap::<_, _>(self)
6404 }
6405
6406 pub fn repo_list_tags(
6411 &self,
6412 owner: &str,
6413 repo: &str,
6414 ) -> Request<'_, endpoints::RepoListTags<'_>, (TagListHeaders, Vec<Tag>)> {
6415 endpoints::RepoListTags { owner, repo }
6416 .make_request()
6417 .wrap::<_, _>(self)
6418 }
6419
6420 pub fn repo_create_tag(
6426 &self,
6427 owner: &str,
6428 repo: &str,
6429 body: CreateTagOption,
6430 ) -> Request<'_, endpoints::RepoCreateTag<'_>, Tag> {
6431 endpoints::RepoCreateTag {
6432 owner,
6433 repo,
6434 body: body,
6435 }
6436 .make_request()
6437 .wrap::<_, _>(self)
6438 }
6439
6440 pub fn repo_get_tag(
6446 &self,
6447 owner: &str,
6448 repo: &str,
6449 tag: &str,
6450 ) -> Request<'_, endpoints::RepoGetTag<'_>, Tag> {
6451 endpoints::RepoGetTag { owner, repo, tag }
6452 .make_request()
6453 .wrap::<_, _>(self)
6454 }
6455
6456 pub fn repo_delete_tag(
6462 &self,
6463 owner: &str,
6464 repo: &str,
6465 tag: &str,
6466 ) -> Request<'_, endpoints::RepoDeleteTag<'_>, ()> {
6467 endpoints::RepoDeleteTag { owner, repo, tag }
6468 .make_request()
6469 .wrap::<_, _>(self)
6470 }
6471
6472 pub fn repo_list_teams(
6477 &self,
6478 owner: &str,
6479 repo: &str,
6480 ) -> Request<'_, endpoints::RepoListTeams<'_>, Vec<Team>> {
6481 endpoints::RepoListTeams { owner, repo }
6482 .make_request()
6483 .wrap::<_, _>(self)
6484 }
6485
6486 pub fn repo_check_team(
6492 &self,
6493 owner: &str,
6494 repo: &str,
6495 team: &str,
6496 ) -> Request<'_, endpoints::RepoCheckTeam<'_>, Team> {
6497 endpoints::RepoCheckTeam { owner, repo, team }
6498 .make_request()
6499 .wrap::<_, _>(self)
6500 }
6501
6502 pub fn repo_add_team(
6508 &self,
6509 owner: &str,
6510 repo: &str,
6511 team: &str,
6512 ) -> Request<'_, endpoints::RepoAddTeam<'_>, ()> {
6513 endpoints::RepoAddTeam { owner, repo, team }
6514 .make_request()
6515 .wrap::<_, _>(self)
6516 }
6517
6518 pub fn repo_delete_team(
6524 &self,
6525 owner: &str,
6526 repo: &str,
6527 team: &str,
6528 ) -> Request<'_, endpoints::RepoDeleteTeam<'_>, ()> {
6529 endpoints::RepoDeleteTeam { owner, repo, team }
6530 .make_request()
6531 .wrap::<_, _>(self)
6532 }
6533
6534 pub fn repo_tracked_times(
6539 &self,
6540 owner: &str,
6541 repo: &str,
6542 query: RepoTrackedTimesQuery,
6543 ) -> Request<'_, endpoints::RepoTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
6544 {
6545 endpoints::RepoTrackedTimes { owner, repo, query }
6546 .make_request()
6547 .wrap::<_, _>(self)
6548 }
6549
6550 pub fn user_tracked_times(
6556 &self,
6557 owner: &str,
6558 repo: &str,
6559 user: &str,
6560 ) -> Request<'_, endpoints::UserTrackedTimes<'_>, Vec<TrackedTime>> {
6561 endpoints::UserTrackedTimes { owner, repo, user }
6562 .make_request()
6563 .wrap::<_, _>(self)
6564 }
6565
6566 pub fn repo_list_topics(
6571 &self,
6572 owner: &str,
6573 repo: &str,
6574 ) -> Request<'_, endpoints::RepoListTopics<'_>, TopicName> {
6575 endpoints::RepoListTopics { owner, repo }
6576 .make_request()
6577 .wrap::<_, _>(self)
6578 }
6579
6580 pub fn repo_update_topics(
6586 &self,
6587 owner: &str,
6588 repo: &str,
6589 body: RepoTopicOptions,
6590 ) -> Request<'_, endpoints::RepoUpdateTopics<'_>, ()> {
6591 endpoints::RepoUpdateTopics {
6592 owner,
6593 repo,
6594 body: body,
6595 }
6596 .make_request()
6597 .wrap::<_, _>(self)
6598 }
6599
6600 pub fn repo_add_topic(
6606 &self,
6607 owner: &str,
6608 repo: &str,
6609 topic: &str,
6610 ) -> Request<'_, endpoints::RepoAddTopic<'_>, ()> {
6611 endpoints::RepoAddTopic { owner, repo, topic }
6612 .make_request()
6613 .wrap::<_, _>(self)
6614 }
6615
6616 pub fn repo_delete_topic(
6622 &self,
6623 owner: &str,
6624 repo: &str,
6625 topic: &str,
6626 ) -> Request<'_, endpoints::RepoDeleteTopic<'_>, ()> {
6627 endpoints::RepoDeleteTopic { owner, repo, topic }
6628 .make_request()
6629 .wrap::<_, _>(self)
6630 }
6631
6632 pub fn repo_transfer(
6640 &self,
6641 owner: &str,
6642 repo: &str,
6643 body: TransferRepoOption,
6644 ) -> Request<'_, endpoints::RepoTransfer<'_>, Repository> {
6645 endpoints::RepoTransfer {
6646 owner,
6647 repo,
6648 body: body,
6649 }
6650 .make_request()
6651 .wrap::<_, _>(self)
6652 }
6653
6654 pub fn accept_repo_transfer(
6659 &self,
6660 owner: &str,
6661 repo: &str,
6662 ) -> Request<'_, endpoints::AcceptRepoTransfer<'_>, Repository> {
6663 endpoints::AcceptRepoTransfer { owner, repo }
6664 .make_request()
6665 .wrap::<_, _>(self)
6666 }
6667
6668 pub fn reject_repo_transfer(
6673 &self,
6674 owner: &str,
6675 repo: &str,
6676 ) -> Request<'_, endpoints::RejectRepoTransfer<'_>, Repository> {
6677 endpoints::RejectRepoTransfer { owner, repo }
6678 .make_request()
6679 .wrap::<_, _>(self)
6680 }
6681
6682 pub fn repo_create_wiki_page(
6688 &self,
6689 owner: &str,
6690 repo: &str,
6691 body: CreateWikiPageOptions,
6692 ) -> Request<'_, endpoints::RepoCreateWikiPage<'_>, WikiPage> {
6693 endpoints::RepoCreateWikiPage {
6694 owner,
6695 repo,
6696 body: body,
6697 }
6698 .make_request()
6699 .wrap::<_, _>(self)
6700 }
6701
6702 pub fn repo_get_wiki_page(
6708 &self,
6709 owner: &str,
6710 repo: &str,
6711 page_name: &str,
6712 ) -> Request<'_, endpoints::RepoGetWikiPage<'_>, WikiPage> {
6713 endpoints::RepoGetWikiPage {
6714 owner,
6715 repo,
6716 page_name,
6717 }
6718 .make_request()
6719 .wrap::<_, _>(self)
6720 }
6721
6722 pub fn repo_delete_wiki_page(
6728 &self,
6729 owner: &str,
6730 repo: &str,
6731 page_name: &str,
6732 ) -> Request<'_, endpoints::RepoDeleteWikiPage<'_>, ()> {
6733 endpoints::RepoDeleteWikiPage {
6734 owner,
6735 repo,
6736 page_name,
6737 }
6738 .make_request()
6739 .wrap::<_, _>(self)
6740 }
6741
6742 pub fn repo_edit_wiki_page(
6749 &self,
6750 owner: &str,
6751 repo: &str,
6752 page_name: &str,
6753 body: CreateWikiPageOptions,
6754 ) -> Request<'_, endpoints::RepoEditWikiPage<'_>, WikiPage> {
6755 endpoints::RepoEditWikiPage {
6756 owner,
6757 repo,
6758 page_name,
6759 body: body,
6760 }
6761 .make_request()
6762 .wrap::<_, _>(self)
6763 }
6764
6765 pub fn repo_get_wiki_pages(
6770 &self,
6771 owner: &str,
6772 repo: &str,
6773 ) -> Request<'_, endpoints::RepoGetWikiPages<'_>, (WikiPageListHeaders, Vec<WikiPageMetaData>)>
6774 {
6775 endpoints::RepoGetWikiPages { owner, repo }
6776 .make_request()
6777 .wrap::<_, _>(self)
6778 }
6779
6780 pub fn repo_get_wiki_page_revisions(
6786 &self,
6787 owner: &str,
6788 repo: &str,
6789 page_name: &str,
6790 ) -> Request<'_, endpoints::RepoGetWikiPageRevisions<'_>, (WikiCommitListHeaders, WikiCommitList)>
6791 {
6792 endpoints::RepoGetWikiPageRevisions {
6793 owner,
6794 repo,
6795 page_name,
6796 }
6797 .make_request()
6798 .wrap::<_, _>(self)
6799 }
6800
6801 pub fn generate_repo(
6807 &self,
6808 template_owner: &str,
6809 template_repo: &str,
6810 body: GenerateRepoOption,
6811 ) -> Request<'_, endpoints::GenerateRepo<'_>, Repository> {
6812 endpoints::GenerateRepo {
6813 template_owner,
6814 template_repo,
6815 body: body,
6816 }
6817 .make_request()
6818 .wrap::<_, _>(self)
6819 }
6820
6821 pub fn repo_get_by_id(&self, id: i64) -> Request<'_, endpoints::RepoGetById, Repository> {
6825 endpoints::RepoGetById { id }
6826 .make_request()
6827 .wrap::<_, _>(self)
6828 }
6829
6830 pub fn get_general_api_settings(
6832 &self,
6833 ) -> Request<'_, endpoints::GetGeneralApiSettings, GeneralAPISettings> {
6834 endpoints::GetGeneralApiSettings {}
6835 .make_request()
6836 .wrap::<_, _>(self)
6837 }
6838
6839 pub fn get_general_attachment_settings(
6841 &self,
6842 ) -> Request<'_, endpoints::GetGeneralAttachmentSettings, GeneralAttachmentSettings> {
6843 endpoints::GetGeneralAttachmentSettings {}
6844 .make_request()
6845 .wrap::<_, _>(self)
6846 }
6847
6848 pub fn get_general_repository_settings(
6850 &self,
6851 ) -> Request<'_, endpoints::GetGeneralRepositorySettings, GeneralRepoSettings> {
6852 endpoints::GetGeneralRepositorySettings {}
6853 .make_request()
6854 .wrap::<_, _>(self)
6855 }
6856
6857 pub fn get_general_ui_settings(
6859 &self,
6860 ) -> Request<'_, endpoints::GetGeneralUiSettings, GeneralUISettings> {
6861 endpoints::GetGeneralUiSettings {}
6862 .make_request()
6863 .wrap::<_, _>(self)
6864 }
6865
6866 pub fn get_signing_key(&self) -> Request<'_, endpoints::GetSigningKey, String> {
6868 endpoints::GetSigningKey {}
6869 .make_request()
6870 .wrap::<_, _>(self)
6871 }
6872
6873 pub fn get_ssh_signing_key(&self) -> Request<'_, endpoints::GetSshSigningKey, String> {
6875 endpoints::GetSshSigningKey {}
6876 .make_request()
6877 .wrap::<_, _>(self)
6878 }
6879
6880 pub fn org_get_team(&self, id: i64) -> Request<'_, endpoints::OrgGetTeam, Team> {
6884 endpoints::OrgGetTeam { id }
6885 .make_request()
6886 .wrap::<_, _>(self)
6887 }
6888
6889 pub fn org_delete_team(&self, id: i64) -> Request<'_, endpoints::OrgDeleteTeam, ()> {
6893 endpoints::OrgDeleteTeam { id }
6894 .make_request()
6895 .wrap::<_, _>(self)
6896 }
6897
6898 pub fn org_edit_team(
6903 &self,
6904 id: i64,
6905 body: EditTeamOption,
6906 ) -> Request<'_, endpoints::OrgEditTeam, Team> {
6907 endpoints::OrgEditTeam { id, body: body }
6908 .make_request()
6909 .wrap::<_, _>(self)
6910 }
6911
6912 pub fn org_list_team_activity_feeds(
6916 &self,
6917 id: i64,
6918 query: OrgListTeamActivityFeedsQuery,
6919 ) -> Request<'_, endpoints::OrgListTeamActivityFeeds, (ActivityFeedsListHeaders, Vec<Activity>)>
6920 {
6921 endpoints::OrgListTeamActivityFeeds { id, query }
6922 .make_request()
6923 .wrap::<_, _>(self)
6924 }
6925
6926 pub fn org_list_team_members(
6930 &self,
6931 id: i64,
6932 ) -> Request<'_, endpoints::OrgListTeamMembers, (UserListHeaders, Vec<User>)> {
6933 endpoints::OrgListTeamMembers { id }
6934 .make_request()
6935 .wrap::<_, _>(self)
6936 }
6937
6938 pub fn org_list_team_member(
6943 &self,
6944 id: i64,
6945 username: &str,
6946 ) -> Request<'_, endpoints::OrgListTeamMember<'_>, User> {
6947 endpoints::OrgListTeamMember { id, username }
6948 .make_request()
6949 .wrap::<_, _>(self)
6950 }
6951
6952 pub fn org_add_team_member(
6957 &self,
6958 id: i64,
6959 username: &str,
6960 ) -> Request<'_, endpoints::OrgAddTeamMember<'_>, ()> {
6961 endpoints::OrgAddTeamMember { id, username }
6962 .make_request()
6963 .wrap::<_, _>(self)
6964 }
6965
6966 pub fn org_remove_team_member(
6971 &self,
6972 id: i64,
6973 username: &str,
6974 ) -> Request<'_, endpoints::OrgRemoveTeamMember<'_>, ()> {
6975 endpoints::OrgRemoveTeamMember { id, username }
6976 .make_request()
6977 .wrap::<_, _>(self)
6978 }
6979
6980 pub fn org_list_team_repos(
6984 &self,
6985 id: i64,
6986 ) -> Request<'_, endpoints::OrgListTeamRepos, (RepositoryListHeaders, Vec<Repository>)> {
6987 endpoints::OrgListTeamRepos { id }
6988 .make_request()
6989 .wrap::<_, _>(self)
6990 }
6991
6992 pub fn org_list_team_repo(
6998 &self,
6999 id: i64,
7000 org: &str,
7001 repo: &str,
7002 ) -> Request<'_, endpoints::OrgListTeamRepo<'_>, Repository> {
7003 endpoints::OrgListTeamRepo { id, org, repo }
7004 .make_request()
7005 .wrap::<_, _>(self)
7006 }
7007
7008 pub fn org_add_team_repository(
7014 &self,
7015 id: i64,
7016 org: &str,
7017 repo: &str,
7018 ) -> Request<'_, endpoints::OrgAddTeamRepository<'_>, ()> {
7019 endpoints::OrgAddTeamRepository { id, org, repo }
7020 .make_request()
7021 .wrap::<_, _>(self)
7022 }
7023
7024 pub fn org_remove_team_repository(
7030 &self,
7031 id: i64,
7032 org: &str,
7033 repo: &str,
7034 ) -> Request<'_, endpoints::OrgRemoveTeamRepository<'_>, ()> {
7035 endpoints::OrgRemoveTeamRepository { id, org, repo }
7036 .make_request()
7037 .wrap::<_, _>(self)
7038 }
7039
7040 pub fn topic_search(
7043 &self,
7044 query: TopicSearchQuery,
7045 ) -> Request<'_, endpoints::TopicSearch, TopicSearchResults> {
7046 endpoints::TopicSearch { query }
7047 .make_request()
7048 .wrap::<_, _>(self)
7049 }
7050
7051 pub fn user_get_current(&self) -> Request<'_, endpoints::UserGetCurrent, User> {
7053 endpoints::UserGetCurrent {}
7054 .make_request()
7055 .wrap::<_, _>(self)
7056 }
7057
7058 pub fn get_user_runners(
7061 &self,
7062 query: GetUserRunnersQuery,
7063 ) -> Request<'_, endpoints::GetUserRunners, (ActionRunnerListHeaders, Vec<ActionRunner>)> {
7064 endpoints::GetUserRunners { query }
7065 .make_request()
7066 .wrap::<_, _>(self)
7067 }
7068
7069 pub fn register_user_runner(
7073 &self,
7074 body: RegisterRunnerOptions,
7075 ) -> Request<'_, endpoints::RegisterUserRunner, RegisterRunnerResponse> {
7076 endpoints::RegisterUserRunner { body: body }
7077 .make_request()
7078 .wrap::<_, _>(self)
7079 }
7080
7081 pub fn user_search_run_jobs(
7084 &self,
7085 query: UserSearchRunJobsQuery,
7086 ) -> Request<'_, endpoints::UserSearchRunJobs, Vec<ActionRunJob>> {
7087 endpoints::UserSearchRunJobs { query }
7088 .make_request()
7089 .wrap::<_, _>(self)
7090 }
7091
7092 pub fn user_get_runner_registration_token(
7094 &self,
7095 ) -> Request<'_, endpoints::UserGetRunnerRegistrationToken, RegistrationToken> {
7096 endpoints::UserGetRunnerRegistrationToken {}
7097 .make_request()
7098 .wrap::<_, _>(self)
7099 }
7100
7101 pub fn get_user_runner(
7105 &self,
7106 runner_id: &str,
7107 ) -> Request<'_, endpoints::GetUserRunner<'_>, ActionRunner> {
7108 endpoints::GetUserRunner { runner_id }
7109 .make_request()
7110 .wrap::<_, _>(self)
7111 }
7112
7113 pub fn delete_user_runner(
7117 &self,
7118 runner_id: &str,
7119 ) -> Request<'_, endpoints::DeleteUserRunner<'_>, ()> {
7120 endpoints::DeleteUserRunner { runner_id }
7121 .make_request()
7122 .wrap::<_, _>(self)
7123 }
7124
7125 pub fn update_user_secret(
7130 &self,
7131 secretname: &str,
7132 body: CreateOrUpdateSecretOption,
7133 ) -> Request<'_, endpoints::UpdateUserSecret<'_>, ()> {
7134 endpoints::UpdateUserSecret {
7135 secretname,
7136 body: body,
7137 }
7138 .make_request()
7139 .wrap::<_, _>(self)
7140 }
7141
7142 pub fn delete_user_secret(
7146 &self,
7147 secretname: &str,
7148 ) -> Request<'_, endpoints::DeleteUserSecret<'_>, ()> {
7149 endpoints::DeleteUserSecret { secretname }
7150 .make_request()
7151 .wrap::<_, _>(self)
7152 }
7153
7154 pub fn get_user_variables_list(
7157 &self,
7158 ) -> Request<'_, endpoints::GetUserVariablesList, (VariableListHeaders, Vec<ActionVariable>)>
7159 {
7160 endpoints::GetUserVariablesList {}
7161 .make_request()
7162 .wrap::<_, _>(self)
7163 }
7164
7165 pub fn get_user_variable(
7169 &self,
7170 variablename: &str,
7171 ) -> Request<'_, endpoints::GetUserVariable<'_>, ActionVariable> {
7172 endpoints::GetUserVariable { variablename }
7173 .make_request()
7174 .wrap::<_, _>(self)
7175 }
7176
7177 pub fn update_user_variable(
7182 &self,
7183 variablename: &str,
7184 body: UpdateVariableOption,
7185 ) -> Request<'_, endpoints::UpdateUserVariable<'_>, ()> {
7186 endpoints::UpdateUserVariable {
7187 variablename,
7188 body: body,
7189 }
7190 .make_request()
7191 .wrap::<_, _>(self)
7192 }
7193
7194 pub fn create_user_variable(
7199 &self,
7200 variablename: &str,
7201 body: CreateVariableOption,
7202 ) -> Request<'_, endpoints::CreateUserVariable<'_>, ()> {
7203 endpoints::CreateUserVariable {
7204 variablename,
7205 body: body,
7206 }
7207 .make_request()
7208 .wrap::<_, _>(self)
7209 }
7210
7211 pub fn delete_user_variable(
7215 &self,
7216 variablename: &str,
7217 ) -> Request<'_, endpoints::DeleteUserVariable<'_>, ()> {
7218 endpoints::DeleteUserVariable { variablename }
7219 .make_request()
7220 .wrap::<_, _>(self)
7221 }
7222
7223 pub fn user_current_activity_pub_follow(
7227 &self,
7228 body: APRemoteFollowOption,
7229 ) -> Request<'_, endpoints::UserCurrentActivityPubFollow, ()> {
7230 endpoints::UserCurrentActivityPubFollow { body: body }
7231 .make_request()
7232 .wrap::<_, _>(self)
7233 }
7234
7235 pub fn user_get_oauth2_applications(
7238 &self,
7239 ) -> Request<
7240 '_,
7241 endpoints::UserGetOAuth2Applications,
7242 (OAuth2ApplicationListHeaders, Vec<OAuth2Application>),
7243 > {
7244 endpoints::UserGetOAuth2Applications {}
7245 .make_request()
7246 .wrap::<_, _>(self)
7247 }
7248
7249 pub fn user_create_oauth2_application(
7253 &self,
7254 body: CreateOAuth2ApplicationOptions,
7255 ) -> Request<'_, endpoints::UserCreateOAuth2Application, OAuth2Application> {
7256 endpoints::UserCreateOAuth2Application { body: body }
7257 .make_request()
7258 .wrap::<_, _>(self)
7259 }
7260
7261 pub fn user_get_oauth2_application(
7265 &self,
7266 id: i64,
7267 ) -> Request<'_, endpoints::UserGetOAuth2Application, OAuth2Application> {
7268 endpoints::UserGetOAuth2Application { id }
7269 .make_request()
7270 .wrap::<_, _>(self)
7271 }
7272
7273 pub fn user_delete_oauth2_application(
7277 &self,
7278 id: i64,
7279 ) -> Request<'_, endpoints::UserDeleteOAuth2Application, ()> {
7280 endpoints::UserDeleteOAuth2Application { id }
7281 .make_request()
7282 .wrap::<_, _>(self)
7283 }
7284
7285 pub fn user_update_oauth2_application(
7290 &self,
7291 id: i64,
7292 body: CreateOAuth2ApplicationOptions,
7293 ) -> Request<'_, endpoints::UserUpdateOAuth2Application, OAuth2Application> {
7294 endpoints::UserUpdateOAuth2Application { id, body: body }
7295 .make_request()
7296 .wrap::<_, _>(self)
7297 }
7298
7299 pub fn user_update_avatar(
7303 &self,
7304 body: UpdateUserAvatarOption,
7305 ) -> Request<'_, endpoints::UserUpdateAvatar, ()> {
7306 endpoints::UserUpdateAvatar { body: body }
7307 .make_request()
7308 .wrap::<_, _>(self)
7309 }
7310
7311 pub fn user_delete_avatar(&self) -> Request<'_, endpoints::UserDeleteAvatar, ()> {
7313 endpoints::UserDeleteAvatar {}
7314 .make_request()
7315 .wrap::<_, _>(self)
7316 }
7317
7318 pub fn user_block_user(&self, username: &str) -> Request<'_, endpoints::UserBlockUser<'_>, ()> {
7322 endpoints::UserBlockUser { username }
7323 .make_request()
7324 .wrap::<_, _>(self)
7325 }
7326
7327 pub fn user_list_emails(&self) -> Request<'_, endpoints::UserListEmails, Vec<Email>> {
7329 endpoints::UserListEmails {}
7330 .make_request()
7331 .wrap::<_, _>(self)
7332 }
7333
7334 pub fn user_add_email(
7338 &self,
7339 body: CreateEmailOption,
7340 ) -> Request<'_, endpoints::UserAddEmail, Vec<Email>> {
7341 endpoints::UserAddEmail { body: body }
7342 .make_request()
7343 .wrap::<_, _>(self)
7344 }
7345
7346 pub fn user_delete_email(
7350 &self,
7351 body: DeleteEmailOption,
7352 ) -> Request<'_, endpoints::UserDeleteEmail, ()> {
7353 endpoints::UserDeleteEmail { body: body }
7354 .make_request()
7355 .wrap::<_, _>(self)
7356 }
7357
7358 pub fn user_current_list_followers(
7361 &self,
7362 ) -> Request<'_, endpoints::UserCurrentListFollowers, (UserListHeaders, Vec<User>)> {
7363 endpoints::UserCurrentListFollowers {}
7364 .make_request()
7365 .wrap::<_, _>(self)
7366 }
7367
7368 pub fn user_current_list_following(
7371 &self,
7372 ) -> Request<'_, endpoints::UserCurrentListFollowing, (UserListHeaders, Vec<User>)> {
7373 endpoints::UserCurrentListFollowing {}
7374 .make_request()
7375 .wrap::<_, _>(self)
7376 }
7377
7378 pub fn user_current_check_following(
7382 &self,
7383 username: &str,
7384 ) -> Request<'_, endpoints::UserCurrentCheckFollowing<'_>, ()> {
7385 endpoints::UserCurrentCheckFollowing { username }
7386 .make_request()
7387 .wrap::<_, _>(self)
7388 }
7389
7390 pub fn user_current_put_follow(
7394 &self,
7395 username: &str,
7396 ) -> Request<'_, endpoints::UserCurrentPutFollow<'_>, ()> {
7397 endpoints::UserCurrentPutFollow { username }
7398 .make_request()
7399 .wrap::<_, _>(self)
7400 }
7401
7402 pub fn user_current_delete_follow(
7406 &self,
7407 username: &str,
7408 ) -> Request<'_, endpoints::UserCurrentDeleteFollow<'_>, ()> {
7409 endpoints::UserCurrentDeleteFollow { username }
7410 .make_request()
7411 .wrap::<_, _>(self)
7412 }
7413
7414 pub fn get_verification_token(&self) -> Request<'_, endpoints::GetVerificationToken, String> {
7416 endpoints::GetVerificationToken {}
7417 .make_request()
7418 .wrap::<_, _>(self)
7419 }
7420
7421 pub fn user_verify_gpg_key(
7425 &self,
7426 body: VerifyGPGKeyOption,
7427 ) -> Request<'_, endpoints::UserVerifyGpgKey, GPGKey> {
7428 endpoints::UserVerifyGpgKey { body: body }
7429 .make_request()
7430 .wrap::<_, _>(self)
7431 }
7432
7433 pub fn user_current_list_gpg_keys(
7436 &self,
7437 ) -> Request<'_, endpoints::UserCurrentListGpgKeys, (GpgKeyListHeaders, Vec<GPGKey>)> {
7438 endpoints::UserCurrentListGpgKeys {}
7439 .make_request()
7440 .wrap::<_, _>(self)
7441 }
7442
7443 pub fn user_current_post_gpg_key(
7447 &self,
7448 form: CreateGPGKeyOption,
7449 ) -> Request<'_, endpoints::UserCurrentPostGpgKey, GPGKey> {
7450 endpoints::UserCurrentPostGpgKey { body: form }
7451 .make_request()
7452 .wrap::<_, _>(self)
7453 }
7454
7455 pub fn user_current_get_gpg_key(
7459 &self,
7460 id: i64,
7461 ) -> Request<'_, endpoints::UserCurrentGetGpgKey, GPGKey> {
7462 endpoints::UserCurrentGetGpgKey { id }
7463 .make_request()
7464 .wrap::<_, _>(self)
7465 }
7466
7467 pub fn user_current_delete_gpg_key(
7471 &self,
7472 id: i64,
7473 ) -> Request<'_, endpoints::UserCurrentDeleteGpgKey, ()> {
7474 endpoints::UserCurrentDeleteGpgKey { id }
7475 .make_request()
7476 .wrap::<_, _>(self)
7477 }
7478
7479 pub fn user_list_hooks(&self) -> Request<'_, endpoints::UserListHooks, Vec<Hook>> {
7482 endpoints::UserListHooks {}
7483 .make_request()
7484 .wrap::<_, _>(self)
7485 }
7486
7487 pub fn user_create_hook(
7491 &self,
7492 body: CreateHookOption,
7493 ) -> Request<'_, endpoints::UserCreateHook, Hook> {
7494 endpoints::UserCreateHook { body: body }
7495 .make_request()
7496 .wrap::<_, _>(self)
7497 }
7498
7499 pub fn user_get_hook(&self, id: i64) -> Request<'_, endpoints::UserGetHook, Hook> {
7503 endpoints::UserGetHook { id }
7504 .make_request()
7505 .wrap::<_, _>(self)
7506 }
7507
7508 pub fn user_delete_hook(&self, id: i64) -> Request<'_, endpoints::UserDeleteHook, ()> {
7512 endpoints::UserDeleteHook { id }
7513 .make_request()
7514 .wrap::<_, _>(self)
7515 }
7516
7517 pub fn user_edit_hook(
7522 &self,
7523 id: i64,
7524 body: EditHookOption,
7525 ) -> Request<'_, endpoints::UserEditHook, Hook> {
7526 endpoints::UserEditHook { id, body: body }
7527 .make_request()
7528 .wrap::<_, _>(self)
7529 }
7530
7531 pub fn user_current_list_keys(
7534 &self,
7535 query: UserCurrentListKeysQuery,
7536 ) -> Request<'_, endpoints::UserCurrentListKeys, (PublicKeyListHeaders, Vec<PublicKey>)> {
7537 endpoints::UserCurrentListKeys { query }
7538 .make_request()
7539 .wrap::<_, _>(self)
7540 }
7541
7542 pub fn user_current_post_key(
7546 &self,
7547 body: CreateKeyOption,
7548 ) -> Request<'_, endpoints::UserCurrentPostKey, PublicKey> {
7549 endpoints::UserCurrentPostKey { body: body }
7550 .make_request()
7551 .wrap::<_, _>(self)
7552 }
7553
7554 pub fn user_current_get_key(
7558 &self,
7559 id: i64,
7560 ) -> Request<'_, endpoints::UserCurrentGetKey, PublicKey> {
7561 endpoints::UserCurrentGetKey { id }
7562 .make_request()
7563 .wrap::<_, _>(self)
7564 }
7565
7566 pub fn user_current_delete_key(
7570 &self,
7571 id: i64,
7572 ) -> Request<'_, endpoints::UserCurrentDeleteKey, ()> {
7573 endpoints::UserCurrentDeleteKey { id }
7574 .make_request()
7575 .wrap::<_, _>(self)
7576 }
7577
7578 pub fn user_list_blocked_users(
7581 &self,
7582 ) -> Request<'_, endpoints::UserListBlockedUsers, (BlockedUserListHeaders, Vec<BlockedUser>)>
7583 {
7584 endpoints::UserListBlockedUsers {}
7585 .make_request()
7586 .wrap::<_, _>(self)
7587 }
7588
7589 pub fn org_list_current_user_orgs(
7592 &self,
7593 ) -> Request<'_, endpoints::OrgListCurrentUserOrgs, Vec<Organization>> {
7594 endpoints::OrgListCurrentUserOrgs {}
7595 .make_request()
7596 .wrap::<_, _>(self)
7597 }
7598
7599 pub fn user_get_quota(&self) -> Request<'_, endpoints::UserGetQuota, QuotaInfo> {
7601 endpoints::UserGetQuota {}.make_request().wrap::<_, _>(self)
7602 }
7603
7604 pub fn user_list_quota_artifacts(
7607 &self,
7608 ) -> Request<
7609 '_,
7610 endpoints::UserListQuotaArtifacts,
7611 (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>),
7612 > {
7613 endpoints::UserListQuotaArtifacts {}
7614 .make_request()
7615 .wrap::<_, _>(self)
7616 }
7617
7618 pub fn user_list_quota_attachments(
7621 &self,
7622 ) -> Request<
7623 '_,
7624 endpoints::UserListQuotaAttachments,
7625 (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>),
7626 > {
7627 endpoints::UserListQuotaAttachments {}
7628 .make_request()
7629 .wrap::<_, _>(self)
7630 }
7631
7632 pub fn user_check_quota(
7635 &self,
7636 query: UserCheckQuotaQuery,
7637 ) -> Request<'_, endpoints::UserCheckQuota, bool> {
7638 endpoints::UserCheckQuota { query }
7639 .make_request()
7640 .wrap::<_, _>(self)
7641 }
7642
7643 pub fn user_list_quota_packages(
7646 &self,
7647 ) -> Request<
7648 '_,
7649 endpoints::UserListQuotaPackages,
7650 (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>),
7651 > {
7652 endpoints::UserListQuotaPackages {}
7653 .make_request()
7654 .wrap::<_, _>(self)
7655 }
7656
7657 pub fn user_current_list_repos(
7660 &self,
7661 query: UserCurrentListReposQuery,
7662 ) -> Request<'_, endpoints::UserCurrentListRepos, (RepositoryListHeaders, Vec<Repository>)>
7663 {
7664 endpoints::UserCurrentListRepos { query }
7665 .make_request()
7666 .wrap::<_, _>(self)
7667 }
7668
7669 pub fn create_current_user_repo(
7673 &self,
7674 body: CreateRepoOption,
7675 ) -> Request<'_, endpoints::CreateCurrentUserRepo, Repository> {
7676 endpoints::CreateCurrentUserRepo { body: body }
7677 .make_request()
7678 .wrap::<_, _>(self)
7679 }
7680
7681 pub fn get_user_settings(&self) -> Request<'_, endpoints::GetUserSettings, UserSettings> {
7683 endpoints::GetUserSettings {}
7684 .make_request()
7685 .wrap::<_, _>(self)
7686 }
7687
7688 pub fn update_user_settings(
7692 &self,
7693 body: UserSettingsOptions,
7694 ) -> Request<'_, endpoints::UpdateUserSettings, UserSettings> {
7695 endpoints::UpdateUserSettings { body: body }
7696 .make_request()
7697 .wrap::<_, _>(self)
7698 }
7699
7700 pub fn user_current_list_starred(
7703 &self,
7704 ) -> Request<'_, endpoints::UserCurrentListStarred, (RepositoryListHeaders, Vec<Repository>)>
7705 {
7706 endpoints::UserCurrentListStarred {}
7707 .make_request()
7708 .wrap::<_, _>(self)
7709 }
7710
7711 pub fn user_current_check_starring(
7716 &self,
7717 owner: &str,
7718 repo: &str,
7719 ) -> Request<'_, endpoints::UserCurrentCheckStarring<'_>, ()> {
7720 endpoints::UserCurrentCheckStarring { owner, repo }
7721 .make_request()
7722 .wrap::<_, _>(self)
7723 }
7724
7725 pub fn user_current_put_star(
7730 &self,
7731 owner: &str,
7732 repo: &str,
7733 ) -> Request<'_, endpoints::UserCurrentPutStar<'_>, ()> {
7734 endpoints::UserCurrentPutStar { owner, repo }
7735 .make_request()
7736 .wrap::<_, _>(self)
7737 }
7738
7739 pub fn user_current_delete_star(
7744 &self,
7745 owner: &str,
7746 repo: &str,
7747 ) -> Request<'_, endpoints::UserCurrentDeleteStar<'_>, ()> {
7748 endpoints::UserCurrentDeleteStar { owner, repo }
7749 .make_request()
7750 .wrap::<_, _>(self)
7751 }
7752
7753 pub fn user_get_stop_watches(
7756 &self,
7757 ) -> Request<'_, endpoints::UserGetStopWatches, (StopWatchListHeaders, Vec<StopWatch>)> {
7758 endpoints::UserGetStopWatches {}
7759 .make_request()
7760 .wrap::<_, _>(self)
7761 }
7762
7763 pub fn user_current_list_subscriptions(
7766 &self,
7767 ) -> Request<
7768 '_,
7769 endpoints::UserCurrentListSubscriptions,
7770 (RepositoryListHeaders, Vec<Repository>),
7771 > {
7772 endpoints::UserCurrentListSubscriptions {}
7773 .make_request()
7774 .wrap::<_, _>(self)
7775 }
7776
7777 pub fn user_list_teams(
7780 &self,
7781 ) -> Request<'_, endpoints::UserListTeams, (TeamListHeaders, Vec<Team>)> {
7782 endpoints::UserListTeams {}
7783 .make_request()
7784 .wrap::<_, _>(self)
7785 }
7786
7787 pub fn user_current_tracked_times(
7790 &self,
7791 query: UserCurrentTrackedTimesQuery,
7792 ) -> Request<'_, endpoints::UserCurrentTrackedTimes, (TrackedTimeListHeaders, Vec<TrackedTime>)>
7793 {
7794 endpoints::UserCurrentTrackedTimes { query }
7795 .make_request()
7796 .wrap::<_, _>(self)
7797 }
7798
7799 pub fn user_unblock_user(
7803 &self,
7804 username: &str,
7805 ) -> Request<'_, endpoints::UserUnblockUser<'_>, ()> {
7806 endpoints::UserUnblockUser { username }
7807 .make_request()
7808 .wrap::<_, _>(self)
7809 }
7810
7811 pub fn user_search(
7814 &self,
7815 query: UserSearchQuery,
7816 ) -> Request<'_, endpoints::UserSearch, UserSearchResults> {
7817 endpoints::UserSearch { query }
7818 .make_request()
7819 .wrap::<_, _>(self)
7820 }
7821
7822 pub fn user_get(&self, username: &str) -> Request<'_, endpoints::UserGet<'_>, User> {
7826 endpoints::UserGet { username }
7827 .make_request()
7828 .wrap::<_, _>(self)
7829 }
7830
7831 pub fn user_list_activity_feeds(
7835 &self,
7836 username: &str,
7837 query: UserListActivityFeedsQuery,
7838 ) -> Request<'_, endpoints::UserListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
7839 {
7840 endpoints::UserListActivityFeeds { username, query }
7841 .make_request()
7842 .wrap::<_, _>(self)
7843 }
7844
7845 pub fn user_list_followers(
7849 &self,
7850 username: &str,
7851 ) -> Request<'_, endpoints::UserListFollowers<'_>, (UserListHeaders, Vec<User>)> {
7852 endpoints::UserListFollowers { username }
7853 .make_request()
7854 .wrap::<_, _>(self)
7855 }
7856
7857 pub fn user_list_following(
7861 &self,
7862 username: &str,
7863 ) -> Request<'_, endpoints::UserListFollowing<'_>, (UserListHeaders, Vec<User>)> {
7864 endpoints::UserListFollowing { username }
7865 .make_request()
7866 .wrap::<_, _>(self)
7867 }
7868
7869 pub fn user_check_following(
7874 &self,
7875 username: &str,
7876 target: &str,
7877 ) -> Request<'_, endpoints::UserCheckFollowing<'_>, ()> {
7878 endpoints::UserCheckFollowing { username, target }
7879 .make_request()
7880 .wrap::<_, _>(self)
7881 }
7882
7883 pub fn user_list_gpg_keys(
7887 &self,
7888 username: &str,
7889 ) -> Request<'_, endpoints::UserListGpgKeys<'_>, (GpgKeyListHeaders, Vec<GPGKey>)> {
7890 endpoints::UserListGpgKeys { username }
7891 .make_request()
7892 .wrap::<_, _>(self)
7893 }
7894
7895 pub fn user_get_heatmap_data(
7899 &self,
7900 username: &str,
7901 ) -> Request<'_, endpoints::UserGetHeatmapData<'_>, Vec<UserHeatmapData>> {
7902 endpoints::UserGetHeatmapData { username }
7903 .make_request()
7904 .wrap::<_, _>(self)
7905 }
7906
7907 pub fn user_list_keys(
7911 &self,
7912 username: &str,
7913 query: UserListKeysQuery,
7914 ) -> Request<'_, endpoints::UserListKeys<'_>, (PublicKeyListHeaders, Vec<PublicKey>)> {
7915 endpoints::UserListKeys { username, query }
7916 .make_request()
7917 .wrap::<_, _>(self)
7918 }
7919
7920 pub fn org_list_user_orgs(
7924 &self,
7925 username: &str,
7926 ) -> Request<'_, endpoints::OrgListUserOrgs<'_>, Vec<Organization>> {
7927 endpoints::OrgListUserOrgs { username }
7928 .make_request()
7929 .wrap::<_, _>(self)
7930 }
7931
7932 pub fn org_get_user_permissions(
7937 &self,
7938 username: &str,
7939 org: &str,
7940 ) -> Request<'_, endpoints::OrgGetUserPermissions<'_>, OrganizationPermissions> {
7941 endpoints::OrgGetUserPermissions { username, org }
7942 .make_request()
7943 .wrap::<_, _>(self)
7944 }
7945
7946 pub fn user_list_repos(
7950 &self,
7951 username: &str,
7952 ) -> Request<'_, endpoints::UserListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)> {
7953 endpoints::UserListRepos { username }
7954 .make_request()
7955 .wrap::<_, _>(self)
7956 }
7957
7958 pub fn user_list_starred(
7962 &self,
7963 username: &str,
7964 ) -> Request<'_, endpoints::UserListStarred<'_>, (RepositoryListHeaders, Vec<Repository>)> {
7965 endpoints::UserListStarred { username }
7966 .make_request()
7967 .wrap::<_, _>(self)
7968 }
7969
7970 pub fn user_list_subscriptions(
7974 &self,
7975 username: &str,
7976 ) -> Request<'_, endpoints::UserListSubscriptions<'_>, (RepositoryListHeaders, Vec<Repository>)>
7977 {
7978 endpoints::UserListSubscriptions { username }
7979 .make_request()
7980 .wrap::<_, _>(self)
7981 }
7982
7983 pub fn user_get_tokens(
7987 &self,
7988 username: &str,
7989 ) -> Request<'_, endpoints::UserGetTokens<'_>, (AccessTokenListHeaders, Vec<AccessToken>)> {
7990 endpoints::UserGetTokens { username }
7991 .make_request()
7992 .wrap::<_, _>(self)
7993 }
7994
7995 pub fn user_create_token(
8000 &self,
8001 username: &str,
8002 body: CreateAccessTokenOption,
8003 ) -> Request<'_, endpoints::UserCreateToken<'_>, AccessToken> {
8004 endpoints::UserCreateToken {
8005 username,
8006 body: body,
8007 }
8008 .make_request()
8009 .wrap::<_, _>(self)
8010 }
8011
8012 pub fn user_delete_access_token(
8017 &self,
8018 username: &str,
8019 token: &str,
8020 ) -> Request<'_, endpoints::UserDeleteAccessToken<'_>, ()> {
8021 endpoints::UserDeleteAccessToken { username, token }
8022 .make_request()
8023 .wrap::<_, _>(self)
8024 }
8025
8026 pub fn get_version(&self) -> Request<'_, endpoints::GetVersion, ServerVersion> {
8028 endpoints::GetVersion {}.make_request().wrap::<_, _>(self)
8029 }
8030}