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 activitypub_instance_actor(
11 &self,
12 ) -> Request<'_, endpoints::ActivitypubInstanceActor, ActivityPub> {
13 endpoints::ActivitypubInstanceActor {}
14 .make_request()
15 .wrap::<_, _>(self)
16 }
17
18 pub fn activitypub_instance_actor_inbox(
20 &self,
21 ) -> Request<'_, endpoints::ActivitypubInstanceActorInbox, ()> {
22 endpoints::ActivitypubInstanceActorInbox {}
23 .make_request()
24 .wrap::<_, _>(self)
25 }
26
27 pub fn activitypub_instance_actor_outbox(
29 &self,
30 ) -> Request<'_, endpoints::ActivitypubInstanceActorOutbox, Bytes> {
31 endpoints::ActivitypubInstanceActorOutbox {}
32 .make_request()
33 .wrap::<_, _>(self)
34 }
35
36 pub fn activitypub_repository(
40 &self,
41 repository_id: i64,
42 ) -> Request<'_, endpoints::ActivitypubRepository, ActivityPub> {
43 endpoints::ActivitypubRepository { repository_id }
44 .make_request()
45 .wrap::<_, _>(self)
46 }
47
48 pub fn activitypub_repository_inbox(
53 &self,
54 repository_id: i64,
55 body: ForgeLike,
56 ) -> Request<'_, endpoints::ActivitypubRepositoryInbox, ()> {
57 endpoints::ActivitypubRepositoryInbox {
58 repository_id,
59 body: body,
60 }
61 .make_request()
62 .wrap::<_, _>(self)
63 }
64
65 pub fn activitypub_repository_outbox(
69 &self,
70 repository_id: i64,
71 ) -> Request<'_, endpoints::ActivitypubRepositoryOutbox, Bytes> {
72 endpoints::ActivitypubRepositoryOutbox { repository_id }
73 .make_request()
74 .wrap::<_, _>(self)
75 }
76
77 pub fn activitypub_person(
81 &self,
82 user_id: i64,
83 ) -> Request<'_, endpoints::ActivitypubPerson, ActivityPub> {
84 endpoints::ActivitypubPerson { user_id }
85 .make_request()
86 .wrap::<_, _>(self)
87 }
88
89 pub fn activitypub_person_activity_note(
94 &self,
95 user_id: u32,
96 activity_id: u32,
97 ) -> Request<'_, endpoints::ActivitypubPersonActivityNote, ActivityPub> {
98 endpoints::ActivitypubPersonActivityNote {
99 user_id,
100 activity_id,
101 }
102 .make_request()
103 .wrap::<_, _>(self)
104 }
105
106 pub fn activitypub_person_activity(
111 &self,
112 user_id: u32,
113 activity_id: u32,
114 ) -> Request<'_, endpoints::ActivitypubPersonActivity, ActivityPub> {
115 endpoints::ActivitypubPersonActivity {
116 user_id,
117 activity_id,
118 }
119 .make_request()
120 .wrap::<_, _>(self)
121 }
122
123 pub fn activitypub_person_inbox(
127 &self,
128 user_id: i64,
129 ) -> Request<'_, endpoints::ActivitypubPersonInbox, ()> {
130 endpoints::ActivitypubPersonInbox { user_id }
131 .make_request()
132 .wrap::<_, _>(self)
133 }
134
135 pub fn activitypub_person_feed(
139 &self,
140 user_id: u32,
141 ) -> Request<'_, endpoints::ActivitypubPersonFeed, ForgeOutbox> {
142 endpoints::ActivitypubPersonFeed { user_id }
143 .make_request()
144 .wrap::<_, _>(self)
145 }
146
147 pub fn get_admin_runners(
150 &self,
151 query: GetAdminRunnersQuery,
152 ) -> Request<'_, endpoints::GetAdminRunners, (ActionRunnerListHeaders, Vec<ActionRunner>)> {
153 endpoints::GetAdminRunners { query }
154 .make_request()
155 .wrap::<_, _>(self)
156 }
157
158 pub fn register_admin_runner(
162 &self,
163 body: RegisterRunnerOptions,
164 ) -> Request<'_, endpoints::RegisterAdminRunner, RegisterRunnerResponse> {
165 endpoints::RegisterAdminRunner { body: body }
166 .make_request()
167 .wrap::<_, _>(self)
168 }
169
170 pub fn admin_get_action_run_jobs(
173 &self,
174 query: AdminGetActionRunJobsQuery,
175 ) -> Request<'_, endpoints::AdminGetActionRunJobs, Vec<ActionRunJob>> {
176 endpoints::AdminGetActionRunJobs { query }
177 .make_request()
178 .wrap::<_, _>(self)
179 }
180
181 pub fn admin_get_runner_registration_token(
183 &self,
184 ) -> Request<'_, endpoints::AdminGetRunnerRegistrationToken, RegistrationToken> {
185 endpoints::AdminGetRunnerRegistrationToken {}
186 .make_request()
187 .wrap::<_, _>(self)
188 }
189
190 pub fn get_admin_runner(
194 &self,
195 runner_id: &str,
196 ) -> Request<'_, endpoints::GetAdminRunner<'_>, ActionRunner> {
197 endpoints::GetAdminRunner { runner_id }
198 .make_request()
199 .wrap::<_, _>(self)
200 }
201
202 pub fn delete_admin_runner(
206 &self,
207 runner_id: &str,
208 ) -> Request<'_, endpoints::DeleteAdminRunner<'_>, ()> {
209 endpoints::DeleteAdminRunner { runner_id }
210 .make_request()
211 .wrap::<_, _>(self)
212 }
213
214 pub fn admin_cron_list(
217 &self,
218 ) -> Request<'_, endpoints::AdminCronList, (CronListHeaders, Vec<Cron>)> {
219 endpoints::AdminCronList {}
220 .make_request()
221 .wrap::<_, _>(self)
222 }
223
224 pub fn admin_cron_run(&self, task: &str) -> Request<'_, endpoints::AdminCronRun<'_>, ()> {
228 endpoints::AdminCronRun { task }
229 .make_request()
230 .wrap::<_, _>(self)
231 }
232
233 pub fn admin_get_all_emails(&self) -> Request<'_, endpoints::AdminGetAllEmails, Vec<Email>> {
236 endpoints::AdminGetAllEmails {}
237 .make_request()
238 .wrap::<_, _>(self)
239 }
240
241 pub fn admin_search_emails(
244 &self,
245 query: AdminSearchEmailsQuery,
246 ) -> Request<'_, endpoints::AdminSearchEmails, Vec<Email>> {
247 endpoints::AdminSearchEmails { query }
248 .make_request()
249 .wrap::<_, _>(self)
250 }
251
252 pub fn admin_list_hooks(&self) -> Request<'_, endpoints::AdminListHooks, Vec<Hook>> {
255 endpoints::AdminListHooks {}
256 .make_request()
257 .wrap::<_, _>(self)
258 }
259
260 pub fn admin_create_hook(
264 &self,
265 body: CreateHookOption,
266 ) -> Request<'_, endpoints::AdminCreateHook, Hook> {
267 endpoints::AdminCreateHook { body: body }
268 .make_request()
269 .wrap::<_, _>(self)
270 }
271
272 pub fn admin_get_hook(&self, id: i64) -> Request<'_, endpoints::AdminGetHook, Hook> {
276 endpoints::AdminGetHook { id }
277 .make_request()
278 .wrap::<_, _>(self)
279 }
280
281 pub fn admin_delete_hook(&self, id: i64) -> Request<'_, endpoints::AdminDeleteHook, ()> {
285 endpoints::AdminDeleteHook { id }
286 .make_request()
287 .wrap::<_, _>(self)
288 }
289
290 pub fn admin_edit_hook(
295 &self,
296 id: i64,
297 body: EditHookOption,
298 ) -> Request<'_, endpoints::AdminEditHook, Hook> {
299 endpoints::AdminEditHook { id, body: body }
300 .make_request()
301 .wrap::<_, _>(self)
302 }
303
304 pub fn admin_get_all_orgs(
307 &self,
308 ) -> Request<'_, endpoints::AdminGetAllOrgs, (OrganizationListHeaders, Vec<Organization>)> {
309 endpoints::AdminGetAllOrgs {}
310 .make_request()
311 .wrap::<_, _>(self)
312 }
313
314 pub fn admin_list_quota_groups(
316 &self,
317 ) -> Request<'_, endpoints::AdminListQuotaGroups, Vec<QuotaGroup>> {
318 endpoints::AdminListQuotaGroups {}
319 .make_request()
320 .wrap::<_, _>(self)
321 }
322
323 pub fn admin_create_quota_group(
329 &self,
330 group: CreateQuotaGroupOptions,
331 ) -> Request<'_, endpoints::AdminCreateQuotaGroup, QuotaGroup> {
332 endpoints::AdminCreateQuotaGroup { body: group }
333 .make_request()
334 .wrap::<_, _>(self)
335 }
336
337 pub fn admin_get_quota_group(
341 &self,
342 quotagroup: &str,
343 ) -> Request<'_, endpoints::AdminGetQuotaGroup<'_>, QuotaGroup> {
344 endpoints::AdminGetQuotaGroup { quotagroup }
345 .make_request()
346 .wrap::<_, _>(self)
347 }
348
349 pub fn admin_delete_quota_group(
353 &self,
354 quotagroup: &str,
355 ) -> Request<'_, endpoints::AdminDeleteQuotaGroup<'_>, ()> {
356 endpoints::AdminDeleteQuotaGroup { quotagroup }
357 .make_request()
358 .wrap::<_, _>(self)
359 }
360
361 pub fn admin_add_rule_to_quota_group(
366 &self,
367 quotagroup: &str,
368 quotarule: &str,
369 ) -> Request<'_, endpoints::AdminAddRuleToQuotaGroup<'_>, ()> {
370 endpoints::AdminAddRuleToQuotaGroup {
371 quotagroup,
372 quotarule,
373 }
374 .make_request()
375 .wrap::<_, _>(self)
376 }
377
378 pub fn admin_remove_rule_from_quota_group(
383 &self,
384 quotagroup: &str,
385 quotarule: &str,
386 ) -> Request<'_, endpoints::AdminRemoveRuleFromQuotaGroup<'_>, ()> {
387 endpoints::AdminRemoveRuleFromQuotaGroup {
388 quotagroup,
389 quotarule,
390 }
391 .make_request()
392 .wrap::<_, _>(self)
393 }
394
395 pub fn admin_list_users_in_quota_group(
399 &self,
400 quotagroup: &str,
401 ) -> Request<'_, endpoints::AdminListUsersInQuotaGroup<'_>, (UserListHeaders, Vec<User>)> {
402 endpoints::AdminListUsersInQuotaGroup { quotagroup }
403 .make_request()
404 .wrap::<_, _>(self)
405 }
406
407 pub fn admin_add_user_to_quota_group(
412 &self,
413 quotagroup: &str,
414 username: &str,
415 ) -> Request<'_, endpoints::AdminAddUserToQuotaGroup<'_>, ()> {
416 endpoints::AdminAddUserToQuotaGroup {
417 quotagroup,
418 username,
419 }
420 .make_request()
421 .wrap::<_, _>(self)
422 }
423
424 pub fn admin_remove_user_from_quota_group(
429 &self,
430 quotagroup: &str,
431 username: &str,
432 ) -> Request<'_, endpoints::AdminRemoveUserFromQuotaGroup<'_>, ()> {
433 endpoints::AdminRemoveUserFromQuotaGroup {
434 quotagroup,
435 username,
436 }
437 .make_request()
438 .wrap::<_, _>(self)
439 }
440
441 pub fn admin_list_quota_rules(
443 &self,
444 ) -> Request<'_, endpoints::AdminListQuotaRules, Vec<QuotaRuleInfo>> {
445 endpoints::AdminListQuotaRules {}
446 .make_request()
447 .wrap::<_, _>(self)
448 }
449
450 pub fn admin_create_quota_rule(
456 &self,
457 rule: CreateQuotaRuleOptions,
458 ) -> Request<'_, endpoints::AdminCreateQuotaRule, QuotaRuleInfo> {
459 endpoints::AdminCreateQuotaRule { body: rule }
460 .make_request()
461 .wrap::<_, _>(self)
462 }
463
464 pub fn admin_get_quota_rule(
468 &self,
469 quotarule: &str,
470 ) -> Request<'_, endpoints::AdminGetQuotaRule<'_>, QuotaRuleInfo> {
471 endpoints::AdminGetQuotaRule { quotarule }
472 .make_request()
473 .wrap::<_, _>(self)
474 }
475
476 pub fn admin_delete_quota_rule(
480 &self,
481 quotarule: &str,
482 ) -> Request<'_, endpoints::AdminDeleteQuotaRule<'_>, ()> {
483 endpoints::AdminDeleteQuotaRule { quotarule }
484 .make_request()
485 .wrap::<_, _>(self)
486 }
487
488 pub fn admin_edit_quota_rule(
493 &self,
494 quotarule: &str,
495 rule: EditQuotaRuleOptions,
496 ) -> Request<'_, endpoints::AdminEditQuotaRule<'_>, QuotaRuleInfo> {
497 endpoints::AdminEditQuotaRule {
498 quotarule,
499 body: rule,
500 }
501 .make_request()
502 .wrap::<_, _>(self)
503 }
504
505 pub fn admin_search_run_jobs(
508 &self,
509 query: AdminSearchRunJobsQuery,
510 ) -> Request<'_, endpoints::AdminSearchRunJobs, Vec<ActionRunJob>> {
511 endpoints::AdminSearchRunJobs { query }
512 .make_request()
513 .wrap::<_, _>(self)
514 }
515
516 pub fn admin_get_registration_token(
518 &self,
519 ) -> Request<'_, endpoints::AdminGetRegistrationToken, RegistrationToken> {
520 endpoints::AdminGetRegistrationToken {}
521 .make_request()
522 .wrap::<_, _>(self)
523 }
524
525 pub fn admin_unadopted_list(
528 &self,
529 query: AdminUnadoptedListQuery,
530 ) -> Request<'_, endpoints::AdminUnadoptedList, Vec<String>> {
531 endpoints::AdminUnadoptedList { query }
532 .make_request()
533 .wrap::<_, _>(self)
534 }
535
536 pub fn admin_adopt_repository(
541 &self,
542 owner: &str,
543 repo: &str,
544 ) -> Request<'_, endpoints::AdminAdoptRepository<'_>, ()> {
545 endpoints::AdminAdoptRepository { owner, repo }
546 .make_request()
547 .wrap::<_, _>(self)
548 }
549
550 pub fn admin_delete_unadopted_repository(
555 &self,
556 owner: &str,
557 repo: &str,
558 ) -> Request<'_, endpoints::AdminDeleteUnadoptedRepository<'_>, ()> {
559 endpoints::AdminDeleteUnadoptedRepository { owner, repo }
560 .make_request()
561 .wrap::<_, _>(self)
562 }
563
564 pub fn admin_search_users(
567 &self,
568 query: AdminSearchUsersQuery,
569 ) -> Request<'_, endpoints::AdminSearchUsers, (UserListHeaders, Vec<User>)> {
570 endpoints::AdminSearchUsers { query }
571 .make_request()
572 .wrap::<_, _>(self)
573 }
574
575 pub fn admin_create_user(
579 &self,
580 body: CreateUserOption,
581 ) -> Request<'_, endpoints::AdminCreateUser, User> {
582 endpoints::AdminCreateUser { body: body }
583 .make_request()
584 .wrap::<_, _>(self)
585 }
586
587 pub fn admin_delete_user(
591 &self,
592 username: &str,
593 query: AdminDeleteUserQuery,
594 ) -> Request<'_, endpoints::AdminDeleteUser<'_>, ()> {
595 endpoints::AdminDeleteUser { username, query }
596 .make_request()
597 .wrap::<_, _>(self)
598 }
599
600 pub fn admin_edit_user(
605 &self,
606 username: &str,
607 body: EditUserOption,
608 ) -> Request<'_, endpoints::AdminEditUser<'_>, User> {
609 endpoints::AdminEditUser {
610 username,
611 body: body,
612 }
613 .make_request()
614 .wrap::<_, _>(self)
615 }
616
617 pub fn admin_list_user_emails(
621 &self,
622 username: &str,
623 ) -> Request<'_, endpoints::AdminListUserEmails<'_>, Vec<Email>> {
624 endpoints::AdminListUserEmails { username }
625 .make_request()
626 .wrap::<_, _>(self)
627 }
628
629 pub fn admin_delete_user_emails(
634 &self,
635 username: &str,
636 body: DeleteEmailOption,
637 ) -> Request<'_, endpoints::AdminDeleteUserEmails<'_>, ()> {
638 endpoints::AdminDeleteUserEmails {
639 username,
640 body: body,
641 }
642 .make_request()
643 .wrap::<_, _>(self)
644 }
645
646 pub fn admin_create_public_key(
651 &self,
652 username: &str,
653 key: CreateKeyOption,
654 ) -> Request<'_, endpoints::AdminCreatePublicKey<'_>, PublicKey> {
655 endpoints::AdminCreatePublicKey {
656 username,
657 body: key,
658 }
659 .make_request()
660 .wrap::<_, _>(self)
661 }
662
663 pub fn admin_delete_user_public_key(
668 &self,
669 username: &str,
670 id: i64,
671 ) -> Request<'_, endpoints::AdminDeleteUserPublicKey<'_>, ()> {
672 endpoints::AdminDeleteUserPublicKey { username, id }
673 .make_request()
674 .wrap::<_, _>(self)
675 }
676
677 pub fn admin_create_org(
682 &self,
683 username: &str,
684 organization: CreateOrgOption,
685 ) -> Request<'_, endpoints::AdminCreateOrg<'_>, Organization> {
686 endpoints::AdminCreateOrg {
687 username,
688 body: organization,
689 }
690 .make_request()
691 .wrap::<_, _>(self)
692 }
693
694 pub fn admin_get_user_quota(
698 &self,
699 username: &str,
700 ) -> Request<'_, endpoints::AdminGetUserQuota<'_>, QuotaInfo> {
701 endpoints::AdminGetUserQuota { username }
702 .make_request()
703 .wrap::<_, _>(self)
704 }
705
706 pub fn admin_set_user_quota_groups(
713 &self,
714 username: &str,
715 groups: SetUserQuotaGroupsOptions,
716 ) -> Request<'_, endpoints::AdminSetUserQuotaGroups<'_>, ()> {
717 endpoints::AdminSetUserQuotaGroups {
718 username,
719 body: groups,
720 }
721 .make_request()
722 .wrap::<_, _>(self)
723 }
724
725 pub fn admin_rename_user(
730 &self,
731 username: &str,
732 body: RenameUserOption,
733 ) -> Request<'_, endpoints::AdminRenameUser<'_>, ()> {
734 endpoints::AdminRenameUser {
735 username,
736 body: body,
737 }
738 .make_request()
739 .wrap::<_, _>(self)
740 }
741
742 pub fn admin_create_repo(
747 &self,
748 username: &str,
749 repository: CreateRepoOption,
750 ) -> Request<'_, endpoints::AdminCreateRepo<'_>, Repository> {
751 endpoints::AdminCreateRepo {
752 username,
753 body: repository,
754 }
755 .make_request()
756 .wrap::<_, _>(self)
757 }
758
759 pub fn list_gitignores_templates(
761 &self,
762 ) -> Request<'_, endpoints::ListGitignoresTemplates, Vec<String>> {
763 endpoints::ListGitignoresTemplates {}
764 .make_request()
765 .wrap::<_, _>(self)
766 }
767
768 pub fn get_gitignore_template_info(
772 &self,
773 name: &str,
774 ) -> Request<'_, endpoints::GetGitignoreTemplateInfo<'_>, GitignoreTemplateInfo> {
775 endpoints::GetGitignoreTemplateInfo { name }
776 .make_request()
777 .wrap::<_, _>(self)
778 }
779
780 pub fn list_label_templates(&self) -> Request<'_, endpoints::ListLabelTemplates, Vec<String>> {
782 endpoints::ListLabelTemplates {}
783 .make_request()
784 .wrap::<_, _>(self)
785 }
786
787 pub fn get_label_template_info(
791 &self,
792 name: &str,
793 ) -> Request<'_, endpoints::GetLabelTemplateInfo<'_>, Vec<LabelTemplate>> {
794 endpoints::GetLabelTemplateInfo { name }
795 .make_request()
796 .wrap::<_, _>(self)
797 }
798
799 pub fn list_license_templates(
801 &self,
802 ) -> Request<'_, endpoints::ListLicenseTemplates, Vec<LicensesTemplateListEntry>> {
803 endpoints::ListLicenseTemplates {}
804 .make_request()
805 .wrap::<_, _>(self)
806 }
807
808 pub fn get_license_template_info(
812 &self,
813 name: &str,
814 ) -> Request<'_, endpoints::GetLicenseTemplateInfo<'_>, LicenseTemplateInfo> {
815 endpoints::GetLicenseTemplateInfo { name }
816 .make_request()
817 .wrap::<_, _>(self)
818 }
819
820 pub fn render_markdown(
824 &self,
825 body: MarkdownOption,
826 ) -> Request<'_, endpoints::RenderMarkdown, String> {
827 endpoints::RenderMarkdown { body: body }
828 .make_request()
829 .wrap::<_, _>(self)
830 }
831
832 pub fn render_markdown_raw(
838 &self,
839 body: String,
840 ) -> Request<'_, endpoints::RenderMarkdownRaw, String> {
841 endpoints::RenderMarkdownRaw { body: body }
842 .make_request()
843 .wrap::<_, _>(self)
844 }
845
846 pub fn render_markup(
850 &self,
851 body: MarkupOption,
852 ) -> Request<'_, endpoints::RenderMarkup, String> {
853 endpoints::RenderMarkup { body: body }
854 .make_request()
855 .wrap::<_, _>(self)
856 }
857
858 pub fn get_node_info(&self) -> Request<'_, endpoints::GetNodeInfo, NodeInfo> {
860 endpoints::GetNodeInfo {}.make_request().wrap::<_, _>(self)
861 }
862
863 pub fn notify_get_list(
866 &self,
867 query: NotifyGetListQuery,
868 ) -> Request<
869 '_,
870 endpoints::NotifyGetList,
871 (NotificationThreadListHeaders, Vec<NotificationThread>),
872 > {
873 endpoints::NotifyGetList { query }
874 .make_request()
875 .wrap::<_, _>(self)
876 }
877
878 pub fn notify_read_list(
881 &self,
882 query: NotifyReadListQuery,
883 ) -> Request<'_, endpoints::NotifyReadList, Vec<NotificationThread>> {
884 endpoints::NotifyReadList { query }
885 .make_request()
886 .wrap::<_, _>(self)
887 }
888
889 pub fn notify_new_available(
891 &self,
892 ) -> Request<'_, endpoints::NotifyNewAvailable, NotificationCount> {
893 endpoints::NotifyNewAvailable {}
894 .make_request()
895 .wrap::<_, _>(self)
896 }
897
898 pub fn notify_get_thread(
902 &self,
903 id: i64,
904 ) -> Request<'_, endpoints::NotifyGetThread, NotificationThread> {
905 endpoints::NotifyGetThread { id }
906 .make_request()
907 .wrap::<_, _>(self)
908 }
909
910 pub fn notify_read_thread(
914 &self,
915 id: i64,
916 query: NotifyReadThreadQuery,
917 ) -> Request<'_, endpoints::NotifyReadThread, NotificationThread> {
918 endpoints::NotifyReadThread { id, query }
919 .make_request()
920 .wrap::<_, _>(self)
921 }
922
923 pub fn create_org_repo_deprecated(
928 &self,
929 org: &str,
930 body: CreateRepoOption,
931 ) -> Request<'_, endpoints::CreateOrgRepoDeprecated<'_>, Repository> {
932 endpoints::CreateOrgRepoDeprecated { org, body: body }
933 .make_request()
934 .wrap::<_, _>(self)
935 }
936
937 pub fn org_get_all(
940 &self,
941 ) -> Request<'_, endpoints::OrgGetAll, (OrganizationListHeaders, Vec<Organization>)> {
942 endpoints::OrgGetAll {}.make_request().wrap::<_, _>(self)
943 }
944
945 pub fn org_create(
949 &self,
950 organization: CreateOrgOption,
951 ) -> Request<'_, endpoints::OrgCreate, Organization> {
952 endpoints::OrgCreate { body: organization }
953 .make_request()
954 .wrap::<_, _>(self)
955 }
956
957 pub fn org_get(&self, org: &str) -> Request<'_, endpoints::OrgGet<'_>, Organization> {
961 endpoints::OrgGet { org }.make_request().wrap::<_, _>(self)
962 }
963
964 pub fn org_delete(&self, org: &str) -> Request<'_, endpoints::OrgDelete<'_>, ()> {
968 endpoints::OrgDelete { org }
969 .make_request()
970 .wrap::<_, _>(self)
971 }
972
973 pub fn org_edit(
978 &self,
979 org: &str,
980 body: EditOrgOption,
981 ) -> Request<'_, endpoints::OrgEdit<'_>, Organization> {
982 endpoints::OrgEdit { org, body: body }
983 .make_request()
984 .wrap::<_, _>(self)
985 }
986
987 pub fn get_org_runners(
991 &self,
992 org: &str,
993 query: GetOrgRunnersQuery,
994 ) -> Request<'_, endpoints::GetOrgRunners<'_>, (ActionRunnerListHeaders, Vec<ActionRunner>)>
995 {
996 endpoints::GetOrgRunners { org, query }
997 .make_request()
998 .wrap::<_, _>(self)
999 }
1000
1001 pub fn register_org_runner(
1006 &self,
1007 org: &str,
1008 body: RegisterRunnerOptions,
1009 ) -> Request<'_, endpoints::RegisterOrgRunner<'_>, RegisterRunnerResponse> {
1010 endpoints::RegisterOrgRunner { org, body: body }
1011 .make_request()
1012 .wrap::<_, _>(self)
1013 }
1014
1015 pub fn org_search_run_jobs(
1019 &self,
1020 org: &str,
1021 query: OrgSearchRunJobsQuery,
1022 ) -> Request<'_, endpoints::OrgSearchRunJobs<'_>, Vec<ActionRunJob>> {
1023 endpoints::OrgSearchRunJobs { org, query }
1024 .make_request()
1025 .wrap::<_, _>(self)
1026 }
1027
1028 pub fn org_get_runner_registration_token(
1032 &self,
1033 org: &str,
1034 ) -> Request<'_, endpoints::OrgGetRunnerRegistrationToken<'_>, RegistrationToken> {
1035 endpoints::OrgGetRunnerRegistrationToken { org }
1036 .make_request()
1037 .wrap::<_, _>(self)
1038 }
1039
1040 pub fn get_org_runner(
1045 &self,
1046 org: &str,
1047 runner_id: &str,
1048 ) -> Request<'_, endpoints::GetOrgRunner<'_>, ActionRunner> {
1049 endpoints::GetOrgRunner { org, runner_id }
1050 .make_request()
1051 .wrap::<_, _>(self)
1052 }
1053
1054 pub fn delete_org_runner(
1059 &self,
1060 org: &str,
1061 runner_id: &str,
1062 ) -> Request<'_, endpoints::DeleteOrgRunner<'_>, ()> {
1063 endpoints::DeleteOrgRunner { org, runner_id }
1064 .make_request()
1065 .wrap::<_, _>(self)
1066 }
1067
1068 pub fn org_list_actions_secrets(
1072 &self,
1073 org: &str,
1074 ) -> Request<'_, endpoints::OrgListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)> {
1075 endpoints::OrgListActionsSecrets { org }
1076 .make_request()
1077 .wrap::<_, _>(self)
1078 }
1079
1080 pub fn update_org_secret(
1086 &self,
1087 org: &str,
1088 secretname: &str,
1089 body: CreateOrUpdateSecretOption,
1090 ) -> Request<'_, endpoints::UpdateOrgSecret<'_>, ()> {
1091 endpoints::UpdateOrgSecret {
1092 org,
1093 secretname,
1094 body: body,
1095 }
1096 .make_request()
1097 .wrap::<_, _>(self)
1098 }
1099
1100 pub fn delete_org_secret(
1105 &self,
1106 org: &str,
1107 secretname: &str,
1108 ) -> Request<'_, endpoints::DeleteOrgSecret<'_>, ()> {
1109 endpoints::DeleteOrgSecret { org, secretname }
1110 .make_request()
1111 .wrap::<_, _>(self)
1112 }
1113
1114 pub fn get_org_variables_list(
1118 &self,
1119 org: &str,
1120 ) -> Request<'_, endpoints::GetOrgVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
1121 {
1122 endpoints::GetOrgVariablesList { org }
1123 .make_request()
1124 .wrap::<_, _>(self)
1125 }
1126
1127 pub fn get_org_variable(
1132 &self,
1133 org: &str,
1134 variablename: &str,
1135 ) -> Request<'_, endpoints::GetOrgVariable<'_>, ActionVariable> {
1136 endpoints::GetOrgVariable { org, variablename }
1137 .make_request()
1138 .wrap::<_, _>(self)
1139 }
1140
1141 pub fn update_org_variable(
1147 &self,
1148 org: &str,
1149 variablename: &str,
1150 body: UpdateVariableOption,
1151 ) -> Request<'_, endpoints::UpdateOrgVariable<'_>, ()> {
1152 endpoints::UpdateOrgVariable {
1153 org,
1154 variablename,
1155 body: body,
1156 }
1157 .make_request()
1158 .wrap::<_, _>(self)
1159 }
1160
1161 pub fn create_org_variable(
1167 &self,
1168 org: &str,
1169 variablename: &str,
1170 body: CreateVariableOption,
1171 ) -> Request<'_, endpoints::CreateOrgVariable<'_>, ()> {
1172 endpoints::CreateOrgVariable {
1173 org,
1174 variablename,
1175 body: body,
1176 }
1177 .make_request()
1178 .wrap::<_, _>(self)
1179 }
1180
1181 pub fn delete_org_variable(
1186 &self,
1187 org: &str,
1188 variablename: &str,
1189 ) -> Request<'_, endpoints::DeleteOrgVariable<'_>, ()> {
1190 endpoints::DeleteOrgVariable { org, variablename }
1191 .make_request()
1192 .wrap::<_, _>(self)
1193 }
1194
1195 pub fn org_list_activity_feeds(
1199 &self,
1200 org: &str,
1201 query: OrgListActivityFeedsQuery,
1202 ) -> Request<'_, endpoints::OrgListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
1203 {
1204 endpoints::OrgListActivityFeeds { org, query }
1205 .make_request()
1206 .wrap::<_, _>(self)
1207 }
1208
1209 pub fn org_update_avatar(
1214 &self,
1215 org: &str,
1216 body: UpdateUserAvatarOption,
1217 ) -> Request<'_, endpoints::OrgUpdateAvatar<'_>, ()> {
1218 endpoints::OrgUpdateAvatar { org, body: body }
1219 .make_request()
1220 .wrap::<_, _>(self)
1221 }
1222
1223 pub fn org_delete_avatar(&self, org: &str) -> Request<'_, endpoints::OrgDeleteAvatar<'_>, ()> {
1227 endpoints::OrgDeleteAvatar { org }
1228 .make_request()
1229 .wrap::<_, _>(self)
1230 }
1231
1232 pub fn org_block_user(
1237 &self,
1238 org: &str,
1239 username: &str,
1240 ) -> Request<'_, endpoints::OrgBlockUser<'_>, ()> {
1241 endpoints::OrgBlockUser { org, username }
1242 .make_request()
1243 .wrap::<_, _>(self)
1244 }
1245
1246 pub fn org_list_hooks(&self, org: &str) -> Request<'_, endpoints::OrgListHooks<'_>, Vec<Hook>> {
1250 endpoints::OrgListHooks { org }
1251 .make_request()
1252 .wrap::<_, _>(self)
1253 }
1254
1255 pub fn org_create_hook(
1260 &self,
1261 org: &str,
1262 body: CreateHookOption,
1263 ) -> Request<'_, endpoints::OrgCreateHook<'_>, Hook> {
1264 endpoints::OrgCreateHook { org, body: body }
1265 .make_request()
1266 .wrap::<_, _>(self)
1267 }
1268
1269 pub fn org_get_hook(&self, org: &str, id: i64) -> Request<'_, endpoints::OrgGetHook<'_>, Hook> {
1274 endpoints::OrgGetHook { org, id }
1275 .make_request()
1276 .wrap::<_, _>(self)
1277 }
1278
1279 pub fn org_delete_hook(
1284 &self,
1285 org: &str,
1286 id: i64,
1287 ) -> Request<'_, endpoints::OrgDeleteHook<'_>, ()> {
1288 endpoints::OrgDeleteHook { org, id }
1289 .make_request()
1290 .wrap::<_, _>(self)
1291 }
1292
1293 pub fn org_edit_hook(
1299 &self,
1300 org: &str,
1301 id: i64,
1302 body: EditHookOption,
1303 ) -> Request<'_, endpoints::OrgEditHook<'_>, Hook> {
1304 endpoints::OrgEditHook {
1305 org,
1306 id,
1307 body: body,
1308 }
1309 .make_request()
1310 .wrap::<_, _>(self)
1311 }
1312
1313 pub fn org_list_labels(
1317 &self,
1318 org: &str,
1319 query: OrgListLabelsQuery,
1320 ) -> Request<'_, endpoints::OrgListLabels<'_>, (LabelListHeaders, Vec<Label>)> {
1321 endpoints::OrgListLabels { org, query }
1322 .make_request()
1323 .wrap::<_, _>(self)
1324 }
1325
1326 pub fn org_create_label(
1331 &self,
1332 org: &str,
1333 body: CreateLabelOption,
1334 ) -> Request<'_, endpoints::OrgCreateLabel<'_>, Label> {
1335 endpoints::OrgCreateLabel { org, body: body }
1336 .make_request()
1337 .wrap::<_, _>(self)
1338 }
1339
1340 pub fn org_get_label(
1345 &self,
1346 org: &str,
1347 id: i64,
1348 ) -> Request<'_, endpoints::OrgGetLabel<'_>, Label> {
1349 endpoints::OrgGetLabel { org, id }
1350 .make_request()
1351 .wrap::<_, _>(self)
1352 }
1353
1354 pub fn org_delete_label(
1359 &self,
1360 org: &str,
1361 id: i64,
1362 ) -> Request<'_, endpoints::OrgDeleteLabel<'_>, ()> {
1363 endpoints::OrgDeleteLabel { org, id }
1364 .make_request()
1365 .wrap::<_, _>(self)
1366 }
1367
1368 pub fn org_edit_label(
1374 &self,
1375 org: &str,
1376 id: i64,
1377 body: EditLabelOption,
1378 ) -> Request<'_, endpoints::OrgEditLabel<'_>, Label> {
1379 endpoints::OrgEditLabel {
1380 org,
1381 id,
1382 body: body,
1383 }
1384 .make_request()
1385 .wrap::<_, _>(self)
1386 }
1387
1388 pub fn org_list_blocked_users(
1392 &self,
1393 org: &str,
1394 ) -> Request<'_, endpoints::OrgListBlockedUsers<'_>, (BlockedUserListHeaders, Vec<BlockedUser>)>
1395 {
1396 endpoints::OrgListBlockedUsers { org }
1397 .make_request()
1398 .wrap::<_, _>(self)
1399 }
1400
1401 pub fn org_list_members(
1405 &self,
1406 org: &str,
1407 ) -> Request<'_, endpoints::OrgListMembers<'_>, (UserListHeaders, Vec<User>)> {
1408 endpoints::OrgListMembers { org }
1409 .make_request()
1410 .wrap::<_, _>(self)
1411 }
1412
1413 pub fn org_is_member(
1418 &self,
1419 org: &str,
1420 username: &str,
1421 ) -> Request<'_, endpoints::OrgIsMember<'_>, ()> {
1422 endpoints::OrgIsMember { org, username }
1423 .make_request()
1424 .wrap::<_, _>(self)
1425 }
1426
1427 pub fn org_delete_member(
1432 &self,
1433 org: &str,
1434 username: &str,
1435 ) -> Request<'_, endpoints::OrgDeleteMember<'_>, ()> {
1436 endpoints::OrgDeleteMember { org, username }
1437 .make_request()
1438 .wrap::<_, _>(self)
1439 }
1440
1441 pub fn org_list_public_members(
1445 &self,
1446 org: &str,
1447 ) -> Request<'_, endpoints::OrgListPublicMembers<'_>, (UserListHeaders, Vec<User>)> {
1448 endpoints::OrgListPublicMembers { org }
1449 .make_request()
1450 .wrap::<_, _>(self)
1451 }
1452
1453 pub fn org_is_public_member(
1458 &self,
1459 org: &str,
1460 username: &str,
1461 ) -> Request<'_, endpoints::OrgIsPublicMember<'_>, ()> {
1462 endpoints::OrgIsPublicMember { org, username }
1463 .make_request()
1464 .wrap::<_, _>(self)
1465 }
1466
1467 pub fn org_publicize_member(
1472 &self,
1473 org: &str,
1474 username: &str,
1475 ) -> Request<'_, endpoints::OrgPublicizeMember<'_>, ()> {
1476 endpoints::OrgPublicizeMember { org, username }
1477 .make_request()
1478 .wrap::<_, _>(self)
1479 }
1480
1481 pub fn org_conceal_member(
1486 &self,
1487 org: &str,
1488 username: &str,
1489 ) -> Request<'_, endpoints::OrgConcealMember<'_>, ()> {
1490 endpoints::OrgConcealMember { org, username }
1491 .make_request()
1492 .wrap::<_, _>(self)
1493 }
1494
1495 pub fn org_get_quota(&self, org: &str) -> Request<'_, endpoints::OrgGetQuota<'_>, QuotaInfo> {
1499 endpoints::OrgGetQuota { org }
1500 .make_request()
1501 .wrap::<_, _>(self)
1502 }
1503
1504 pub fn org_list_quota_artifacts(
1508 &self,
1509 org: &str,
1510 ) -> Request<
1511 '_,
1512 endpoints::OrgListQuotaArtifacts<'_>,
1513 (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>),
1514 > {
1515 endpoints::OrgListQuotaArtifacts { org }
1516 .make_request()
1517 .wrap::<_, _>(self)
1518 }
1519
1520 pub fn org_list_quota_attachments(
1524 &self,
1525 org: &str,
1526 ) -> Request<
1527 '_,
1528 endpoints::OrgListQuotaAttachments<'_>,
1529 (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>),
1530 > {
1531 endpoints::OrgListQuotaAttachments { org }
1532 .make_request()
1533 .wrap::<_, _>(self)
1534 }
1535
1536 pub fn org_check_quota(
1540 &self,
1541 org: &str,
1542 query: OrgCheckQuotaQuery,
1543 ) -> Request<'_, endpoints::OrgCheckQuota<'_>, bool> {
1544 endpoints::OrgCheckQuota { org, query }
1545 .make_request()
1546 .wrap::<_, _>(self)
1547 }
1548
1549 pub fn org_list_quota_packages(
1553 &self,
1554 org: &str,
1555 ) -> Request<
1556 '_,
1557 endpoints::OrgListQuotaPackages<'_>,
1558 (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>),
1559 > {
1560 endpoints::OrgListQuotaPackages { org }
1561 .make_request()
1562 .wrap::<_, _>(self)
1563 }
1564
1565 pub fn rename_org(
1570 &self,
1571 org: &str,
1572 body: RenameOrgOption,
1573 ) -> Request<'_, endpoints::RenameOrg<'_>, ()> {
1574 endpoints::RenameOrg { org, body: body }
1575 .make_request()
1576 .wrap::<_, _>(self)
1577 }
1578
1579 pub fn org_list_repos(
1583 &self,
1584 org: &str,
1585 ) -> Request<'_, endpoints::OrgListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)> {
1586 endpoints::OrgListRepos { org }
1587 .make_request()
1588 .wrap::<_, _>(self)
1589 }
1590
1591 pub fn create_org_repo(
1596 &self,
1597 org: &str,
1598 body: CreateRepoOption,
1599 ) -> Request<'_, endpoints::CreateOrgRepo<'_>, Repository> {
1600 endpoints::CreateOrgRepo { org, body: body }
1601 .make_request()
1602 .wrap::<_, _>(self)
1603 }
1604
1605 pub fn org_list_teams(
1609 &self,
1610 org: &str,
1611 ) -> Request<'_, endpoints::OrgListTeams<'_>, (TeamListHeaders, Vec<Team>)> {
1612 endpoints::OrgListTeams { org }
1613 .make_request()
1614 .wrap::<_, _>(self)
1615 }
1616
1617 pub fn org_create_team(
1622 &self,
1623 org: &str,
1624 body: CreateTeamOption,
1625 ) -> Request<'_, endpoints::OrgCreateTeam<'_>, Team> {
1626 endpoints::OrgCreateTeam { org, body: body }
1627 .make_request()
1628 .wrap::<_, _>(self)
1629 }
1630
1631 pub fn team_search(
1635 &self,
1636 org: &str,
1637 query: TeamSearchQuery,
1638 ) -> Request<'_, endpoints::TeamSearch<'_>, TeamSearchResults> {
1639 endpoints::TeamSearch { org, query }
1640 .make_request()
1641 .wrap::<_, _>(self)
1642 }
1643
1644 pub fn org_unblock_user(
1649 &self,
1650 org: &str,
1651 username: &str,
1652 ) -> Request<'_, endpoints::OrgUnblockUser<'_>, ()> {
1653 endpoints::OrgUnblockUser { org, username }
1654 .make_request()
1655 .wrap::<_, _>(self)
1656 }
1657
1658 pub fn list_packages(
1662 &self,
1663 owner: &str,
1664 query: ListPackagesQuery,
1665 ) -> Request<'_, endpoints::ListPackages<'_>, (PackageListHeaders, Vec<Package>)> {
1666 endpoints::ListPackages { owner, query }
1667 .make_request()
1668 .wrap::<_, _>(self)
1669 }
1670
1671 pub fn link_package(
1678 &self,
1679 owner: &str,
1680 r#type: &str,
1681 name: &str,
1682 repo_name: &str,
1683 ) -> Request<'_, endpoints::LinkPackage<'_>, ()> {
1684 endpoints::LinkPackage {
1685 owner,
1686 r#type,
1687 name,
1688 repo_name,
1689 }
1690 .make_request()
1691 .wrap::<_, _>(self)
1692 }
1693
1694 pub fn unlink_package(
1700 &self,
1701 owner: &str,
1702 r#type: &str,
1703 name: &str,
1704 ) -> Request<'_, endpoints::UnlinkPackage<'_>, ()> {
1705 endpoints::UnlinkPackage {
1706 owner,
1707 r#type,
1708 name,
1709 }
1710 .make_request()
1711 .wrap::<_, _>(self)
1712 }
1713
1714 pub fn get_package(
1721 &self,
1722 owner: &str,
1723 r#type: &str,
1724 name: &str,
1725 version: &str,
1726 ) -> Request<'_, endpoints::GetPackage<'_>, Package> {
1727 endpoints::GetPackage {
1728 owner,
1729 r#type,
1730 name,
1731 version,
1732 }
1733 .make_request()
1734 .wrap::<_, _>(self)
1735 }
1736
1737 pub fn delete_package(
1744 &self,
1745 owner: &str,
1746 r#type: &str,
1747 name: &str,
1748 version: &str,
1749 ) -> Request<'_, endpoints::DeletePackage<'_>, ()> {
1750 endpoints::DeletePackage {
1751 owner,
1752 r#type,
1753 name,
1754 version,
1755 }
1756 .make_request()
1757 .wrap::<_, _>(self)
1758 }
1759
1760 pub fn list_package_files(
1767 &self,
1768 owner: &str,
1769 r#type: &str,
1770 name: &str,
1771 version: &str,
1772 ) -> Request<'_, endpoints::ListPackageFiles<'_>, Vec<PackageFile>> {
1773 endpoints::ListPackageFiles {
1774 owner,
1775 r#type,
1776 name,
1777 version,
1778 }
1779 .make_request()
1780 .wrap::<_, _>(self)
1781 }
1782
1783 pub fn issue_search_issues(
1786 &self,
1787 query: IssueSearchIssuesQuery,
1788 ) -> Request<'_, endpoints::IssueSearchIssues, (IssueListHeaders, Vec<Issue>)> {
1789 endpoints::IssueSearchIssues { query }
1790 .make_request()
1791 .wrap::<_, _>(self)
1792 }
1793
1794 pub fn repo_migrate(
1798 &self,
1799 body: MigrateRepoOptions,
1800 ) -> Request<'_, endpoints::RepoMigrate, Repository> {
1801 endpoints::RepoMigrate { body: body }
1802 .make_request()
1803 .wrap::<_, _>(self)
1804 }
1805
1806 pub fn repo_search(
1809 &self,
1810 query: RepoSearchQuery,
1811 ) -> Request<'_, endpoints::RepoSearch, SearchResults> {
1812 endpoints::RepoSearch { query }
1813 .make_request()
1814 .wrap::<_, _>(self)
1815 }
1816
1817 pub fn repo_get(
1822 &self,
1823 owner: &str,
1824 repo: &str,
1825 ) -> Request<'_, endpoints::RepoGet<'_>, Repository> {
1826 endpoints::RepoGet { owner, repo }
1827 .make_request()
1828 .wrap::<_, _>(self)
1829 }
1830
1831 pub fn repo_delete(
1836 &self,
1837 owner: &str,
1838 repo: &str,
1839 ) -> Request<'_, endpoints::RepoDelete<'_>, ()> {
1840 endpoints::RepoDelete { owner, repo }
1841 .make_request()
1842 .wrap::<_, _>(self)
1843 }
1844
1845 pub fn repo_edit(
1853 &self,
1854 owner: &str,
1855 repo: &str,
1856 body: EditRepoOption,
1857 ) -> Request<'_, endpoints::RepoEdit<'_>, Repository> {
1858 endpoints::RepoEdit {
1859 owner,
1860 repo,
1861 body: body,
1862 }
1863 .make_request()
1864 .wrap::<_, _>(self)
1865 }
1866
1867 pub fn get_repo_runners(
1872 &self,
1873 owner: &str,
1874 repo: &str,
1875 query: GetRepoRunnersQuery,
1876 ) -> Request<'_, endpoints::GetRepoRunners<'_>, (ActionRunnerListHeaders, Vec<ActionRunner>)>
1877 {
1878 endpoints::GetRepoRunners { owner, repo, query }
1879 .make_request()
1880 .wrap::<_, _>(self)
1881 }
1882
1883 pub fn register_repo_runner(
1889 &self,
1890 owner: &str,
1891 repo: &str,
1892 body: RegisterRunnerOptions,
1893 ) -> Request<'_, endpoints::RegisterRepoRunner<'_>, RegisterRunnerResponse> {
1894 endpoints::RegisterRepoRunner {
1895 owner,
1896 repo,
1897 body: body,
1898 }
1899 .make_request()
1900 .wrap::<_, _>(self)
1901 }
1902
1903 pub fn repo_search_run_jobs(
1908 &self,
1909 owner: &str,
1910 repo: &str,
1911 query: RepoSearchRunJobsQuery,
1912 ) -> Request<'_, endpoints::RepoSearchRunJobs<'_>, Vec<ActionRunJob>> {
1913 endpoints::RepoSearchRunJobs { owner, repo, query }
1914 .make_request()
1915 .wrap::<_, _>(self)
1916 }
1917
1918 pub fn repo_get_runner_registration_token(
1923 &self,
1924 owner: &str,
1925 repo: &str,
1926 ) -> Request<'_, endpoints::RepoGetRunnerRegistrationToken<'_>, RegistrationToken> {
1927 endpoints::RepoGetRunnerRegistrationToken { owner, repo }
1928 .make_request()
1929 .wrap::<_, _>(self)
1930 }
1931
1932 pub fn get_repo_runner(
1938 &self,
1939 owner: &str,
1940 repo: &str,
1941 runner_id: &str,
1942 ) -> Request<'_, endpoints::GetRepoRunner<'_>, ActionRunner> {
1943 endpoints::GetRepoRunner {
1944 owner,
1945 repo,
1946 runner_id,
1947 }
1948 .make_request()
1949 .wrap::<_, _>(self)
1950 }
1951
1952 pub fn delete_repo_runner(
1958 &self,
1959 owner: &str,
1960 repo: &str,
1961 runner_id: &str,
1962 ) -> Request<'_, endpoints::DeleteRepoRunner<'_>, ()> {
1963 endpoints::DeleteRepoRunner {
1964 owner,
1965 repo,
1966 runner_id,
1967 }
1968 .make_request()
1969 .wrap::<_, _>(self)
1970 }
1971
1972 pub fn list_action_runs(
1977 &self,
1978 owner: &str,
1979 repo: &str,
1980 query: ListActionRunsQuery,
1981 ) -> Request<'_, endpoints::ListActionRuns<'_>, ListActionRunResponse> {
1982 endpoints::ListActionRuns { owner, repo, query }
1983 .make_request()
1984 .wrap::<_, _>(self)
1985 }
1986
1987 pub fn get_action_run(
1993 &self,
1994 owner: &str,
1995 repo: &str,
1996 run_id: i64,
1997 ) -> Request<'_, endpoints::GetActionRun<'_>, ActionRun> {
1998 endpoints::GetActionRun {
1999 owner,
2000 repo,
2001 run_id,
2002 }
2003 .make_request()
2004 .wrap::<_, _>(self)
2005 }
2006
2007 pub fn repo_list_actions_secrets(
2012 &self,
2013 owner: &str,
2014 repo: &str,
2015 ) -> Request<'_, endpoints::RepoListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)> {
2016 endpoints::RepoListActionsSecrets { owner, repo }
2017 .make_request()
2018 .wrap::<_, _>(self)
2019 }
2020
2021 pub fn update_repo_secret(
2028 &self,
2029 owner: &str,
2030 repo: &str,
2031 secretname: &str,
2032 body: CreateOrUpdateSecretOption,
2033 ) -> Request<'_, endpoints::UpdateRepoSecret<'_>, ()> {
2034 endpoints::UpdateRepoSecret {
2035 owner,
2036 repo,
2037 secretname,
2038 body: body,
2039 }
2040 .make_request()
2041 .wrap::<_, _>(self)
2042 }
2043
2044 pub fn delete_repo_secret(
2050 &self,
2051 owner: &str,
2052 repo: &str,
2053 secretname: &str,
2054 ) -> Request<'_, endpoints::DeleteRepoSecret<'_>, ()> {
2055 endpoints::DeleteRepoSecret {
2056 owner,
2057 repo,
2058 secretname,
2059 }
2060 .make_request()
2061 .wrap::<_, _>(self)
2062 }
2063
2064 pub fn list_action_tasks(
2069 &self,
2070 owner: &str,
2071 repo: &str,
2072 query: ListActionTasksQuery,
2073 ) -> Request<'_, endpoints::ListActionTasks<'_>, ActionTaskResponse> {
2074 endpoints::ListActionTasks { owner, repo, query }
2075 .make_request()
2076 .wrap::<_, _>(self)
2077 }
2078
2079 pub fn get_repo_variables_list(
2084 &self,
2085 owner: &str,
2086 repo: &str,
2087 ) -> Request<'_, endpoints::GetRepoVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
2088 {
2089 endpoints::GetRepoVariablesList { owner, repo }
2090 .make_request()
2091 .wrap::<_, _>(self)
2092 }
2093
2094 pub fn get_repo_variable(
2100 &self,
2101 owner: &str,
2102 repo: &str,
2103 variablename: &str,
2104 ) -> Request<'_, endpoints::GetRepoVariable<'_>, ActionVariable> {
2105 endpoints::GetRepoVariable {
2106 owner,
2107 repo,
2108 variablename,
2109 }
2110 .make_request()
2111 .wrap::<_, _>(self)
2112 }
2113
2114 pub fn update_repo_variable(
2121 &self,
2122 owner: &str,
2123 repo: &str,
2124 variablename: &str,
2125 body: UpdateVariableOption,
2126 ) -> Request<'_, endpoints::UpdateRepoVariable<'_>, ()> {
2127 endpoints::UpdateRepoVariable {
2128 owner,
2129 repo,
2130 variablename,
2131 body: body,
2132 }
2133 .make_request()
2134 .wrap::<_, _>(self)
2135 }
2136
2137 pub fn create_repo_variable(
2144 &self,
2145 owner: &str,
2146 repo: &str,
2147 variablename: &str,
2148 body: CreateVariableOption,
2149 ) -> Request<'_, endpoints::CreateRepoVariable<'_>, ()> {
2150 endpoints::CreateRepoVariable {
2151 owner,
2152 repo,
2153 variablename,
2154 body: body,
2155 }
2156 .make_request()
2157 .wrap::<_, _>(self)
2158 }
2159
2160 pub fn delete_repo_variable(
2166 &self,
2167 owner: &str,
2168 repo: &str,
2169 variablename: &str,
2170 ) -> Request<'_, endpoints::DeleteRepoVariable<'_>, ()> {
2171 endpoints::DeleteRepoVariable {
2172 owner,
2173 repo,
2174 variablename,
2175 }
2176 .make_request()
2177 .wrap::<_, _>(self)
2178 }
2179
2180 pub fn dispatch_workflow(
2187 &self,
2188 owner: &str,
2189 repo: &str,
2190 workflowfilename: &str,
2191 body: DispatchWorkflowOption,
2192 ) -> Request<'_, endpoints::DispatchWorkflow<'_>, Option<DispatchWorkflowRun>> {
2193 endpoints::DispatchWorkflow {
2194 owner,
2195 repo,
2196 workflowfilename,
2197 body: body,
2198 }
2199 .make_request()
2200 .wrap::<_, _>(self)
2201 }
2202
2203 pub fn repo_list_activity_feeds(
2208 &self,
2209 owner: &str,
2210 repo: &str,
2211 query: RepoListActivityFeedsQuery,
2212 ) -> Request<'_, endpoints::RepoListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
2213 {
2214 endpoints::RepoListActivityFeeds { owner, repo, query }
2215 .make_request()
2216 .wrap::<_, _>(self)
2217 }
2218
2219 pub fn repo_get_archive(
2225 &self,
2226 owner: &str,
2227 repo: &str,
2228 archive: &str,
2229 ) -> Request<'_, endpoints::RepoGetArchive<'_>, Bytes> {
2230 endpoints::RepoGetArchive {
2231 owner,
2232 repo,
2233 archive,
2234 }
2235 .make_request()
2236 .wrap::<_, _>(self)
2237 }
2238
2239 pub fn repo_get_assignees(
2244 &self,
2245 owner: &str,
2246 repo: &str,
2247 ) -> Request<'_, endpoints::RepoGetAssignees<'_>, (UserListHeaders, Vec<User>)> {
2248 endpoints::RepoGetAssignees { owner, repo }
2249 .make_request()
2250 .wrap::<_, _>(self)
2251 }
2252
2253 pub fn repo_update_avatar(
2259 &self,
2260 owner: &str,
2261 repo: &str,
2262 body: UpdateRepoAvatarOption,
2263 ) -> Request<'_, endpoints::RepoUpdateAvatar<'_>, ()> {
2264 endpoints::RepoUpdateAvatar {
2265 owner,
2266 repo,
2267 body: body,
2268 }
2269 .make_request()
2270 .wrap::<_, _>(self)
2271 }
2272
2273 pub fn repo_delete_avatar(
2278 &self,
2279 owner: &str,
2280 repo: &str,
2281 ) -> Request<'_, endpoints::RepoDeleteAvatar<'_>, ()> {
2282 endpoints::RepoDeleteAvatar { owner, repo }
2283 .make_request()
2284 .wrap::<_, _>(self)
2285 }
2286
2287 pub fn repo_list_branch_protection(
2292 &self,
2293 owner: &str,
2294 repo: &str,
2295 ) -> Request<'_, endpoints::RepoListBranchProtection<'_>, Vec<BranchProtection>> {
2296 endpoints::RepoListBranchProtection { owner, repo }
2297 .make_request()
2298 .wrap::<_, _>(self)
2299 }
2300
2301 pub fn repo_create_branch_protection(
2307 &self,
2308 owner: &str,
2309 repo: &str,
2310 body: CreateBranchProtectionOption,
2311 ) -> Request<'_, endpoints::RepoCreateBranchProtection<'_>, BranchProtection> {
2312 endpoints::RepoCreateBranchProtection {
2313 owner,
2314 repo,
2315 body: body,
2316 }
2317 .make_request()
2318 .wrap::<_, _>(self)
2319 }
2320
2321 pub fn repo_get_branch_protection(
2327 &self,
2328 owner: &str,
2329 repo: &str,
2330 name: &str,
2331 ) -> Request<'_, endpoints::RepoGetBranchProtection<'_>, BranchProtection> {
2332 endpoints::RepoGetBranchProtection { owner, repo, name }
2333 .make_request()
2334 .wrap::<_, _>(self)
2335 }
2336
2337 pub fn repo_delete_branch_protection(
2343 &self,
2344 owner: &str,
2345 repo: &str,
2346 name: &str,
2347 ) -> Request<'_, endpoints::RepoDeleteBranchProtection<'_>, ()> {
2348 endpoints::RepoDeleteBranchProtection { owner, repo, name }
2349 .make_request()
2350 .wrap::<_, _>(self)
2351 }
2352
2353 pub fn repo_edit_branch_protection(
2360 &self,
2361 owner: &str,
2362 repo: &str,
2363 name: &str,
2364 body: EditBranchProtectionOption,
2365 ) -> Request<'_, endpoints::RepoEditBranchProtection<'_>, BranchProtection> {
2366 endpoints::RepoEditBranchProtection {
2367 owner,
2368 repo,
2369 name,
2370 body: body,
2371 }
2372 .make_request()
2373 .wrap::<_, _>(self)
2374 }
2375
2376 pub fn repo_list_branches(
2381 &self,
2382 owner: &str,
2383 repo: &str,
2384 ) -> Request<'_, endpoints::RepoListBranches<'_>, (BranchListHeaders, Vec<Branch>)> {
2385 endpoints::RepoListBranches { owner, repo }
2386 .make_request()
2387 .wrap::<_, _>(self)
2388 }
2389
2390 pub fn repo_create_branch(
2396 &self,
2397 owner: &str,
2398 repo: &str,
2399 body: CreateBranchRepoOption,
2400 ) -> Request<'_, endpoints::RepoCreateBranch<'_>, Branch> {
2401 endpoints::RepoCreateBranch {
2402 owner,
2403 repo,
2404 body: body,
2405 }
2406 .make_request()
2407 .wrap::<_, _>(self)
2408 }
2409
2410 pub fn repo_get_branch(
2416 &self,
2417 owner: &str,
2418 repo: &str,
2419 branch: &str,
2420 ) -> Request<'_, endpoints::RepoGetBranch<'_>, Branch> {
2421 endpoints::RepoGetBranch {
2422 owner,
2423 repo,
2424 branch,
2425 }
2426 .make_request()
2427 .wrap::<_, _>(self)
2428 }
2429
2430 pub fn repo_delete_branch(
2436 &self,
2437 owner: &str,
2438 repo: &str,
2439 branch: &str,
2440 ) -> Request<'_, endpoints::RepoDeleteBranch<'_>, ()> {
2441 endpoints::RepoDeleteBranch {
2442 owner,
2443 repo,
2444 branch,
2445 }
2446 .make_request()
2447 .wrap::<_, _>(self)
2448 }
2449
2450 pub fn repo_update_branch(
2457 &self,
2458 owner: &str,
2459 repo: &str,
2460 branch: &str,
2461 body: UpdateBranchRepoOption,
2462 ) -> Request<'_, endpoints::RepoUpdateBranch<'_>, ()> {
2463 endpoints::RepoUpdateBranch {
2464 owner,
2465 repo,
2466 branch,
2467 body: body,
2468 }
2469 .make_request()
2470 .wrap::<_, _>(self)
2471 }
2472
2473 pub fn repo_list_collaborators(
2478 &self,
2479 owner: &str,
2480 repo: &str,
2481 ) -> Request<'_, endpoints::RepoListCollaborators<'_>, (UserListHeaders, Vec<User>)> {
2482 endpoints::RepoListCollaborators { owner, repo }
2483 .make_request()
2484 .wrap::<_, _>(self)
2485 }
2486
2487 pub fn repo_check_collaborator(
2493 &self,
2494 owner: &str,
2495 repo: &str,
2496 collaborator: &str,
2497 ) -> Request<'_, endpoints::RepoCheckCollaborator<'_>, ()> {
2498 endpoints::RepoCheckCollaborator {
2499 owner,
2500 repo,
2501 collaborator,
2502 }
2503 .make_request()
2504 .wrap::<_, _>(self)
2505 }
2506
2507 pub fn repo_add_collaborator(
2514 &self,
2515 owner: &str,
2516 repo: &str,
2517 collaborator: &str,
2518 body: AddCollaboratorOption,
2519 ) -> Request<'_, endpoints::RepoAddCollaborator<'_>, ()> {
2520 endpoints::RepoAddCollaborator {
2521 owner,
2522 repo,
2523 collaborator,
2524 body: body,
2525 }
2526 .make_request()
2527 .wrap::<_, _>(self)
2528 }
2529
2530 pub fn repo_delete_collaborator(
2536 &self,
2537 owner: &str,
2538 repo: &str,
2539 collaborator: &str,
2540 ) -> Request<'_, endpoints::RepoDeleteCollaborator<'_>, ()> {
2541 endpoints::RepoDeleteCollaborator {
2542 owner,
2543 repo,
2544 collaborator,
2545 }
2546 .make_request()
2547 .wrap::<_, _>(self)
2548 }
2549
2550 pub fn repo_get_repo_permissions(
2556 &self,
2557 owner: &str,
2558 repo: &str,
2559 collaborator: &str,
2560 ) -> Request<'_, endpoints::RepoGetRepoPermissions<'_>, RepoCollaboratorPermission> {
2561 endpoints::RepoGetRepoPermissions {
2562 owner,
2563 repo,
2564 collaborator,
2565 }
2566 .make_request()
2567 .wrap::<_, _>(self)
2568 }
2569
2570 pub fn repo_get_all_commits(
2575 &self,
2576 owner: &str,
2577 repo: &str,
2578 query: RepoGetAllCommitsQuery,
2579 ) -> Request<'_, endpoints::RepoGetAllCommits<'_>, (CommitListHeaders, Vec<Commit>)> {
2580 endpoints::RepoGetAllCommits { owner, repo, query }
2581 .make_request()
2582 .wrap::<_, _>(self)
2583 }
2584
2585 pub fn repo_get_combined_status_by_ref(
2591 &self,
2592 owner: &str,
2593 repo: &str,
2594 r#ref: &str,
2595 ) -> Request<
2596 '_,
2597 endpoints::RepoGetCombinedStatusByRef<'_>,
2598 (CombinedStatusHeaders, CombinedStatus),
2599 > {
2600 endpoints::RepoGetCombinedStatusByRef { owner, repo, r#ref }
2601 .make_request()
2602 .wrap::<_, _>(self)
2603 }
2604
2605 pub fn repo_list_statuses_by_ref(
2611 &self,
2612 owner: &str,
2613 repo: &str,
2614 r#ref: &str,
2615 query: RepoListStatusesByRefQuery,
2616 ) -> Request<
2617 '_,
2618 endpoints::RepoListStatusesByRef<'_>,
2619 (CommitStatusListHeaders, Vec<CommitStatus>),
2620 > {
2621 endpoints::RepoListStatusesByRef {
2622 owner,
2623 repo,
2624 r#ref,
2625 query,
2626 }
2627 .make_request()
2628 .wrap::<_, _>(self)
2629 }
2630
2631 pub fn repo_get_commit_pull_request(
2637 &self,
2638 owner: &str,
2639 repo: &str,
2640 sha: &str,
2641 ) -> Request<'_, endpoints::RepoGetCommitPullRequest<'_>, PullRequest> {
2642 endpoints::RepoGetCommitPullRequest { owner, repo, sha }
2643 .make_request()
2644 .wrap::<_, _>(self)
2645 }
2646
2647 pub fn repo_compare_diff(
2653 &self,
2654 owner: &str,
2655 repo: &str,
2656 basehead: &str,
2657 ) -> Request<'_, endpoints::RepoCompareDiff<'_>, Compare> {
2658 endpoints::RepoCompareDiff {
2659 owner,
2660 repo,
2661 basehead,
2662 }
2663 .make_request()
2664 .wrap::<_, _>(self)
2665 }
2666
2667 pub fn repo_get_contents_list(
2672 &self,
2673 owner: &str,
2674 repo: &str,
2675 query: RepoGetContentsListQuery,
2676 ) -> Request<'_, endpoints::RepoGetContentsList<'_>, Vec<ContentsResponse>> {
2677 endpoints::RepoGetContentsList { owner, repo, query }
2678 .make_request()
2679 .wrap::<_, _>(self)
2680 }
2681
2682 pub fn repo_change_files(
2688 &self,
2689 owner: &str,
2690 repo: &str,
2691 body: ChangeFilesOptions,
2692 ) -> Request<'_, endpoints::RepoChangeFiles<'_>, FilesResponse> {
2693 endpoints::RepoChangeFiles {
2694 owner,
2695 repo,
2696 body: body,
2697 }
2698 .make_request()
2699 .wrap::<_, _>(self)
2700 }
2701
2702 pub fn repo_get_contents(
2708 &self,
2709 owner: &str,
2710 repo: &str,
2711 filepath: &str,
2712 query: RepoGetContentsQuery,
2713 ) -> Request<'_, endpoints::RepoGetContents<'_>, ContentsResponse> {
2714 endpoints::RepoGetContents {
2715 owner,
2716 repo,
2717 filepath,
2718 query,
2719 }
2720 .make_request()
2721 .wrap::<_, _>(self)
2722 }
2723
2724 pub fn repo_update_file(
2731 &self,
2732 owner: &str,
2733 repo: &str,
2734 filepath: &str,
2735 body: UpdateFileOptions,
2736 ) -> Request<'_, endpoints::RepoUpdateFile<'_>, FileResponse> {
2737 endpoints::RepoUpdateFile {
2738 owner,
2739 repo,
2740 filepath,
2741 body: body,
2742 }
2743 .make_request()
2744 .wrap::<_, _>(self)
2745 }
2746
2747 pub fn repo_create_file(
2754 &self,
2755 owner: &str,
2756 repo: &str,
2757 filepath: &str,
2758 body: CreateFileOptions,
2759 ) -> Request<'_, endpoints::RepoCreateFile<'_>, FileResponse> {
2760 endpoints::RepoCreateFile {
2761 owner,
2762 repo,
2763 filepath,
2764 body: body,
2765 }
2766 .make_request()
2767 .wrap::<_, _>(self)
2768 }
2769
2770 pub fn repo_delete_file(
2777 &self,
2778 owner: &str,
2779 repo: &str,
2780 filepath: &str,
2781 body: DeleteFileOptions,
2782 ) -> Request<'_, endpoints::RepoDeleteFile<'_>, FileDeleteResponse> {
2783 endpoints::RepoDeleteFile {
2784 owner,
2785 repo,
2786 filepath,
2787 body: body,
2788 }
2789 .make_request()
2790 .wrap::<_, _>(self)
2791 }
2792
2793 pub fn repo_convert(
2798 &self,
2799 owner: &str,
2800 repo: &str,
2801 ) -> Request<'_, endpoints::RepoConvert<'_>, Repository> {
2802 endpoints::RepoConvert { owner, repo }
2803 .make_request()
2804 .wrap::<_, _>(self)
2805 }
2806
2807 pub fn repo_apply_diff_patch(
2813 &self,
2814 owner: &str,
2815 repo: &str,
2816 body: UpdateFileOptions,
2817 ) -> Request<'_, endpoints::RepoApplyDiffPatch<'_>, FileResponse> {
2818 endpoints::RepoApplyDiffPatch {
2819 owner,
2820 repo,
2821 body: body,
2822 }
2823 .make_request()
2824 .wrap::<_, _>(self)
2825 }
2826
2827 pub fn repo_get_editor_config(
2833 &self,
2834 owner: &str,
2835 repo: &str,
2836 filepath: &str,
2837 query: RepoGetEditorConfigQuery,
2838 ) -> Request<'_, endpoints::RepoGetEditorConfig<'_>, BTreeMap<String, String>> {
2839 endpoints::RepoGetEditorConfig {
2840 owner,
2841 repo,
2842 filepath,
2843 query,
2844 }
2845 .make_request()
2846 .wrap::<_, _>(self)
2847 }
2848
2849 pub fn repo_list_flags(
2854 &self,
2855 owner: &str,
2856 repo: &str,
2857 ) -> Request<'_, endpoints::RepoListFlags<'_>, Vec<String>> {
2858 endpoints::RepoListFlags { owner, repo }
2859 .make_request()
2860 .wrap::<_, _>(self)
2861 }
2862
2863 pub fn repo_replace_all_flags(
2869 &self,
2870 owner: &str,
2871 repo: &str,
2872 body: ReplaceFlagsOption,
2873 ) -> Request<'_, endpoints::RepoReplaceAllFlags<'_>, ()> {
2874 endpoints::RepoReplaceAllFlags {
2875 owner,
2876 repo,
2877 body: body,
2878 }
2879 .make_request()
2880 .wrap::<_, _>(self)
2881 }
2882
2883 pub fn repo_delete_all_flags(
2888 &self,
2889 owner: &str,
2890 repo: &str,
2891 ) -> Request<'_, endpoints::RepoDeleteAllFlags<'_>, ()> {
2892 endpoints::RepoDeleteAllFlags { owner, repo }
2893 .make_request()
2894 .wrap::<_, _>(self)
2895 }
2896
2897 pub fn repo_check_flag(
2903 &self,
2904 owner: &str,
2905 repo: &str,
2906 flag: &str,
2907 ) -> Request<'_, endpoints::RepoCheckFlag<'_>, ()> {
2908 endpoints::RepoCheckFlag { owner, repo, flag }
2909 .make_request()
2910 .wrap::<_, _>(self)
2911 }
2912
2913 pub fn repo_add_flag(
2919 &self,
2920 owner: &str,
2921 repo: &str,
2922 flag: &str,
2923 ) -> Request<'_, endpoints::RepoAddFlag<'_>, ()> {
2924 endpoints::RepoAddFlag { owner, repo, flag }
2925 .make_request()
2926 .wrap::<_, _>(self)
2927 }
2928
2929 pub fn repo_delete_flag(
2935 &self,
2936 owner: &str,
2937 repo: &str,
2938 flag: &str,
2939 ) -> Request<'_, endpoints::RepoDeleteFlag<'_>, ()> {
2940 endpoints::RepoDeleteFlag { owner, repo, flag }
2941 .make_request()
2942 .wrap::<_, _>(self)
2943 }
2944
2945 pub fn list_forks(
2950 &self,
2951 owner: &str,
2952 repo: &str,
2953 ) -> Request<'_, endpoints::ListForks<'_>, (RepositoryListHeaders, Vec<Repository>)> {
2954 endpoints::ListForks { owner, repo }
2955 .make_request()
2956 .wrap::<_, _>(self)
2957 }
2958
2959 pub fn create_fork(
2965 &self,
2966 owner: &str,
2967 repo: &str,
2968 body: CreateForkOption,
2969 ) -> Request<'_, endpoints::CreateFork<'_>, Repository> {
2970 endpoints::CreateFork {
2971 owner,
2972 repo,
2973 body: body,
2974 }
2975 .make_request()
2976 .wrap::<_, _>(self)
2977 }
2978
2979 pub fn get_blobs(
2984 &self,
2985 owner: &str,
2986 repo: &str,
2987 query: GetBlobsQuery,
2988 ) -> Request<'_, endpoints::GetBlobs<'_>, Vec<GitBlob>> {
2989 endpoints::GetBlobs { owner, repo, query }
2990 .make_request()
2991 .wrap::<_, _>(self)
2992 }
2993
2994 pub fn get_blob(
3000 &self,
3001 owner: &str,
3002 repo: &str,
3003 sha: &str,
3004 ) -> Request<'_, endpoints::GetBlob<'_>, GitBlob> {
3005 endpoints::GetBlob { owner, repo, sha }
3006 .make_request()
3007 .wrap::<_, _>(self)
3008 }
3009
3010 pub fn repo_get_single_commit(
3016 &self,
3017 owner: &str,
3018 repo: &str,
3019 sha: &str,
3020 query: RepoGetSingleCommitQuery,
3021 ) -> Request<'_, endpoints::RepoGetSingleCommit<'_>, Commit> {
3022 endpoints::RepoGetSingleCommit {
3023 owner,
3024 repo,
3025 sha,
3026 query,
3027 }
3028 .make_request()
3029 .wrap::<_, _>(self)
3030 }
3031
3032 pub fn repo_download_commit_diff_or_patch(
3039 &self,
3040 owner: &str,
3041 repo: &str,
3042 sha: &str,
3043 diff_type: &str,
3044 ) -> Request<'_, endpoints::RepoDownloadCommitDiffOrPatch<'_>, String> {
3045 endpoints::RepoDownloadCommitDiffOrPatch {
3046 owner,
3047 repo,
3048 sha,
3049 diff_type,
3050 }
3051 .make_request()
3052 .wrap::<_, _>(self)
3053 }
3054
3055 pub fn repo_get_note(
3061 &self,
3062 owner: &str,
3063 repo: &str,
3064 sha: &str,
3065 query: RepoGetNoteQuery,
3066 ) -> Request<'_, endpoints::RepoGetNote<'_>, Note> {
3067 endpoints::RepoGetNote {
3068 owner,
3069 repo,
3070 sha,
3071 query,
3072 }
3073 .make_request()
3074 .wrap::<_, _>(self)
3075 }
3076
3077 pub fn repo_set_note(
3084 &self,
3085 owner: &str,
3086 repo: &str,
3087 sha: &str,
3088 body: NoteOptions,
3089 ) -> Request<'_, endpoints::RepoSetNote<'_>, Note> {
3090 endpoints::RepoSetNote {
3091 owner,
3092 repo,
3093 sha,
3094 body: body,
3095 }
3096 .make_request()
3097 .wrap::<_, _>(self)
3098 }
3099
3100 pub fn repo_remove_note(
3106 &self,
3107 owner: &str,
3108 repo: &str,
3109 sha: &str,
3110 ) -> Request<'_, endpoints::RepoRemoveNote<'_>, ()> {
3111 endpoints::RepoRemoveNote { owner, repo, sha }
3112 .make_request()
3113 .wrap::<_, _>(self)
3114 }
3115
3116 pub fn repo_list_all_git_refs(
3121 &self,
3122 owner: &str,
3123 repo: &str,
3124 ) -> Request<'_, endpoints::RepoListAllGitRefs<'_>, Vec<Reference>> {
3125 endpoints::RepoListAllGitRefs { owner, repo }
3126 .make_request()
3127 .wrap::<_, _>(self)
3128 }
3129
3130 pub fn repo_list_git_refs(
3136 &self,
3137 owner: &str,
3138 repo: &str,
3139 r#ref: &str,
3140 ) -> Request<'_, endpoints::RepoListGitRefs<'_>, Vec<Reference>> {
3141 endpoints::RepoListGitRefs { owner, repo, r#ref }
3142 .make_request()
3143 .wrap::<_, _>(self)
3144 }
3145
3146 pub fn get_annotated_tag(
3152 &self,
3153 owner: &str,
3154 repo: &str,
3155 sha: &str,
3156 ) -> Request<'_, endpoints::GetAnnotatedTag<'_>, AnnotatedTag> {
3157 endpoints::GetAnnotatedTag { owner, repo, sha }
3158 .make_request()
3159 .wrap::<_, _>(self)
3160 }
3161
3162 pub fn get_tree(
3168 &self,
3169 owner: &str,
3170 repo: &str,
3171 sha: &str,
3172 query: GetTreeQuery,
3173 ) -> Request<'_, endpoints::GetTree<'_>, GitTreeResponse> {
3174 endpoints::GetTree {
3175 owner,
3176 repo,
3177 sha,
3178 query,
3179 }
3180 .make_request()
3181 .wrap::<_, _>(self)
3182 }
3183
3184 pub fn repo_list_hooks(
3189 &self,
3190 owner: &str,
3191 repo: &str,
3192 ) -> Request<'_, endpoints::RepoListHooks<'_>, (HookListHeaders, Vec<Hook>)> {
3193 endpoints::RepoListHooks { owner, repo }
3194 .make_request()
3195 .wrap::<_, _>(self)
3196 }
3197
3198 pub fn repo_create_hook(
3204 &self,
3205 owner: &str,
3206 repo: &str,
3207 body: CreateHookOption,
3208 ) -> Request<'_, endpoints::RepoCreateHook<'_>, Hook> {
3209 endpoints::RepoCreateHook {
3210 owner,
3211 repo,
3212 body: body,
3213 }
3214 .make_request()
3215 .wrap::<_, _>(self)
3216 }
3217
3218 pub fn repo_list_git_hooks(
3223 &self,
3224 owner: &str,
3225 repo: &str,
3226 ) -> Request<'_, endpoints::RepoListGitHooks<'_>, Vec<GitHook>> {
3227 endpoints::RepoListGitHooks { owner, repo }
3228 .make_request()
3229 .wrap::<_, _>(self)
3230 }
3231
3232 pub fn repo_get_git_hook(
3238 &self,
3239 owner: &str,
3240 repo: &str,
3241 id: &str,
3242 ) -> Request<'_, endpoints::RepoGetGitHook<'_>, GitHook> {
3243 endpoints::RepoGetGitHook { owner, repo, id }
3244 .make_request()
3245 .wrap::<_, _>(self)
3246 }
3247
3248 pub fn repo_delete_git_hook(
3254 &self,
3255 owner: &str,
3256 repo: &str,
3257 id: &str,
3258 ) -> Request<'_, endpoints::RepoDeleteGitHook<'_>, ()> {
3259 endpoints::RepoDeleteGitHook { owner, repo, id }
3260 .make_request()
3261 .wrap::<_, _>(self)
3262 }
3263
3264 pub fn repo_edit_git_hook(
3271 &self,
3272 owner: &str,
3273 repo: &str,
3274 id: &str,
3275 body: EditGitHookOption,
3276 ) -> Request<'_, endpoints::RepoEditGitHook<'_>, GitHook> {
3277 endpoints::RepoEditGitHook {
3278 owner,
3279 repo,
3280 id,
3281 body: body,
3282 }
3283 .make_request()
3284 .wrap::<_, _>(self)
3285 }
3286
3287 pub fn repo_get_hook(
3293 &self,
3294 owner: &str,
3295 repo: &str,
3296 id: i64,
3297 ) -> Request<'_, endpoints::RepoGetHook<'_>, Hook> {
3298 endpoints::RepoGetHook { owner, repo, id }
3299 .make_request()
3300 .wrap::<_, _>(self)
3301 }
3302
3303 pub fn repo_delete_hook(
3309 &self,
3310 owner: &str,
3311 repo: &str,
3312 id: i64,
3313 ) -> Request<'_, endpoints::RepoDeleteHook<'_>, ()> {
3314 endpoints::RepoDeleteHook { owner, repo, id }
3315 .make_request()
3316 .wrap::<_, _>(self)
3317 }
3318
3319 pub fn repo_edit_hook(
3326 &self,
3327 owner: &str,
3328 repo: &str,
3329 id: i64,
3330 body: EditHookOption,
3331 ) -> Request<'_, endpoints::RepoEditHook<'_>, Hook> {
3332 endpoints::RepoEditHook {
3333 owner,
3334 repo,
3335 id,
3336 body: body,
3337 }
3338 .make_request()
3339 .wrap::<_, _>(self)
3340 }
3341
3342 pub fn repo_test_hook(
3348 &self,
3349 owner: &str,
3350 repo: &str,
3351 id: i64,
3352 query: RepoTestHookQuery,
3353 ) -> Request<'_, endpoints::RepoTestHook<'_>, ()> {
3354 endpoints::RepoTestHook {
3355 owner,
3356 repo,
3357 id,
3358 query,
3359 }
3360 .make_request()
3361 .wrap::<_, _>(self)
3362 }
3363
3364 pub fn repo_get_issue_config(
3369 &self,
3370 owner: &str,
3371 repo: &str,
3372 ) -> Request<'_, endpoints::RepoGetIssueConfig<'_>, IssueConfig> {
3373 endpoints::RepoGetIssueConfig { owner, repo }
3374 .make_request()
3375 .wrap::<_, _>(self)
3376 }
3377
3378 pub fn repo_validate_issue_config(
3383 &self,
3384 owner: &str,
3385 repo: &str,
3386 ) -> Request<'_, endpoints::RepoValidateIssueConfig<'_>, IssueConfigValidation> {
3387 endpoints::RepoValidateIssueConfig { owner, repo }
3388 .make_request()
3389 .wrap::<_, _>(self)
3390 }
3391
3392 pub fn repo_get_issue_templates(
3397 &self,
3398 owner: &str,
3399 repo: &str,
3400 ) -> Request<'_, endpoints::RepoGetIssueTemplates<'_>, Vec<IssueTemplate>> {
3401 endpoints::RepoGetIssueTemplates { owner, repo }
3402 .make_request()
3403 .wrap::<_, _>(self)
3404 }
3405
3406 pub fn issue_list_issues(
3411 &self,
3412 owner: &str,
3413 repo: &str,
3414 query: IssueListIssuesQuery,
3415 ) -> Request<'_, endpoints::IssueListIssues<'_>, (IssueListHeaders, Vec<Issue>)> {
3416 endpoints::IssueListIssues { owner, repo, query }
3417 .make_request()
3418 .wrap::<_, _>(self)
3419 }
3420
3421 pub fn issue_create_issue(
3427 &self,
3428 owner: &str,
3429 repo: &str,
3430 body: CreateIssueOption,
3431 ) -> Request<'_, endpoints::IssueCreateIssue<'_>, Issue> {
3432 endpoints::IssueCreateIssue {
3433 owner,
3434 repo,
3435 body: body,
3436 }
3437 .make_request()
3438 .wrap::<_, _>(self)
3439 }
3440
3441 pub fn issue_get_repo_comments(
3446 &self,
3447 owner: &str,
3448 repo: &str,
3449 query: IssueGetRepoCommentsQuery,
3450 ) -> Request<'_, endpoints::IssueGetRepoComments<'_>, (CommentListHeaders, Vec<Comment>)> {
3451 endpoints::IssueGetRepoComments { owner, repo, query }
3452 .make_request()
3453 .wrap::<_, _>(self)
3454 }
3455
3456 pub fn issue_get_comment(
3462 &self,
3463 owner: &str,
3464 repo: &str,
3465 id: i64,
3466 ) -> Request<'_, endpoints::IssueGetComment<'_>, Option<Comment>> {
3467 endpoints::IssueGetComment { owner, repo, id }
3468 .make_request()
3469 .wrap::<_, _>(self)
3470 }
3471
3472 pub fn issue_delete_comment(
3478 &self,
3479 owner: &str,
3480 repo: &str,
3481 id: i64,
3482 ) -> Request<'_, endpoints::IssueDeleteComment<'_>, ()> {
3483 endpoints::IssueDeleteComment { owner, repo, id }
3484 .make_request()
3485 .wrap::<_, _>(self)
3486 }
3487
3488 pub fn issue_edit_comment(
3495 &self,
3496 owner: &str,
3497 repo: &str,
3498 id: i64,
3499 body: EditIssueCommentOption,
3500 ) -> Request<'_, endpoints::IssueEditComment<'_>, Option<Comment>> {
3501 endpoints::IssueEditComment {
3502 owner,
3503 repo,
3504 id,
3505 body: body,
3506 }
3507 .make_request()
3508 .wrap::<_, _>(self)
3509 }
3510
3511 pub fn issue_list_issue_comment_attachments(
3517 &self,
3518 owner: &str,
3519 repo: &str,
3520 id: i64,
3521 ) -> Request<'_, endpoints::IssueListIssueCommentAttachments<'_>, Vec<Attachment>> {
3522 endpoints::IssueListIssueCommentAttachments { owner, repo, id }
3523 .make_request()
3524 .wrap::<_, _>(self)
3525 }
3526
3527 pub fn issue_create_issue_comment_attachment(
3534 &self,
3535 owner: &str,
3536 repo: &str,
3537 id: i64,
3538 attachment: &[u8],
3539 query: IssueCreateIssueCommentAttachmentQuery,
3540 ) -> Request<'_, endpoints::IssueCreateIssueCommentAttachment<'_>, Attachment> {
3541 endpoints::IssueCreateIssueCommentAttachment {
3542 owner,
3543 repo,
3544 id,
3545 attachment: &attachment,
3546 query,
3547 }
3548 .make_request()
3549 .wrap::<_, _>(self)
3550 }
3551
3552 pub fn issue_get_issue_comment_attachment(
3559 &self,
3560 owner: &str,
3561 repo: &str,
3562 id: i64,
3563 attachment_id: i64,
3564 ) -> Request<'_, endpoints::IssueGetIssueCommentAttachment<'_>, Attachment> {
3565 endpoints::IssueGetIssueCommentAttachment {
3566 owner,
3567 repo,
3568 id,
3569 attachment_id,
3570 }
3571 .make_request()
3572 .wrap::<_, _>(self)
3573 }
3574
3575 pub fn issue_delete_issue_comment_attachment(
3582 &self,
3583 owner: &str,
3584 repo: &str,
3585 id: i64,
3586 attachment_id: i64,
3587 ) -> Request<'_, endpoints::IssueDeleteIssueCommentAttachment<'_>, ()> {
3588 endpoints::IssueDeleteIssueCommentAttachment {
3589 owner,
3590 repo,
3591 id,
3592 attachment_id,
3593 }
3594 .make_request()
3595 .wrap::<_, _>(self)
3596 }
3597
3598 pub fn issue_edit_issue_comment_attachment(
3606 &self,
3607 owner: &str,
3608 repo: &str,
3609 id: i64,
3610 attachment_id: i64,
3611 body: EditAttachmentOptions,
3612 ) -> Request<'_, endpoints::IssueEditIssueCommentAttachment<'_>, Attachment> {
3613 endpoints::IssueEditIssueCommentAttachment {
3614 owner,
3615 repo,
3616 id,
3617 attachment_id,
3618 body: body,
3619 }
3620 .make_request()
3621 .wrap::<_, _>(self)
3622 }
3623
3624 pub fn issue_get_comment_reactions(
3630 &self,
3631 owner: &str,
3632 repo: &str,
3633 id: i64,
3634 ) -> Request<'_, endpoints::IssueGetCommentReactions<'_>, Vec<Reaction>> {
3635 endpoints::IssueGetCommentReactions { owner, repo, id }
3636 .make_request()
3637 .wrap::<_, _>(self)
3638 }
3639
3640 pub fn issue_post_comment_reaction(
3647 &self,
3648 owner: &str,
3649 repo: &str,
3650 id: i64,
3651 content: EditReactionOption,
3652 ) -> Request<'_, endpoints::IssuePostCommentReaction<'_>, Reaction> {
3653 endpoints::IssuePostCommentReaction {
3654 owner,
3655 repo,
3656 id,
3657 body: content,
3658 }
3659 .make_request()
3660 .wrap::<_, _>(self)
3661 }
3662
3663 pub fn issue_delete_comment_reaction(
3670 &self,
3671 owner: &str,
3672 repo: &str,
3673 id: i64,
3674 content: EditReactionOption,
3675 ) -> Request<'_, endpoints::IssueDeleteCommentReaction<'_>, ()> {
3676 endpoints::IssueDeleteCommentReaction {
3677 owner,
3678 repo,
3679 id,
3680 body: content,
3681 }
3682 .make_request()
3683 .wrap::<_, _>(self)
3684 }
3685
3686 pub fn repo_list_pinned_issues(
3691 &self,
3692 owner: &str,
3693 repo: &str,
3694 ) -> Request<'_, endpoints::RepoListPinnedIssues<'_>, Vec<Issue>> {
3695 endpoints::RepoListPinnedIssues { owner, repo }
3696 .make_request()
3697 .wrap::<_, _>(self)
3698 }
3699
3700 pub fn issue_get_issue(
3706 &self,
3707 owner: &str,
3708 repo: &str,
3709 index: i64,
3710 ) -> Request<'_, endpoints::IssueGetIssue<'_>, Issue> {
3711 endpoints::IssueGetIssue { owner, repo, index }
3712 .make_request()
3713 .wrap::<_, _>(self)
3714 }
3715
3716 pub fn issue_delete(
3722 &self,
3723 owner: &str,
3724 repo: &str,
3725 index: i64,
3726 ) -> Request<'_, endpoints::IssueDelete<'_>, ()> {
3727 endpoints::IssueDelete { owner, repo, index }
3728 .make_request()
3729 .wrap::<_, _>(self)
3730 }
3731
3732 pub fn issue_edit_issue(
3739 &self,
3740 owner: &str,
3741 repo: &str,
3742 index: i64,
3743 body: EditIssueOption,
3744 ) -> Request<'_, endpoints::IssueEditIssue<'_>, Issue> {
3745 endpoints::IssueEditIssue {
3746 owner,
3747 repo,
3748 index,
3749 body: body,
3750 }
3751 .make_request()
3752 .wrap::<_, _>(self)
3753 }
3754
3755 pub fn issue_list_issue_attachments(
3761 &self,
3762 owner: &str,
3763 repo: &str,
3764 index: i64,
3765 ) -> Request<'_, endpoints::IssueListIssueAttachments<'_>, Vec<Attachment>> {
3766 endpoints::IssueListIssueAttachments { owner, repo, index }
3767 .make_request()
3768 .wrap::<_, _>(self)
3769 }
3770
3771 pub fn issue_create_issue_attachment(
3778 &self,
3779 owner: &str,
3780 repo: &str,
3781 index: i64,
3782 attachment: &[u8],
3783 query: IssueCreateIssueAttachmentQuery,
3784 ) -> Request<'_, endpoints::IssueCreateIssueAttachment<'_>, Attachment> {
3785 endpoints::IssueCreateIssueAttachment {
3786 owner,
3787 repo,
3788 index,
3789 attachment: &attachment,
3790 query,
3791 }
3792 .make_request()
3793 .wrap::<_, _>(self)
3794 }
3795
3796 pub fn issue_get_issue_attachment(
3803 &self,
3804 owner: &str,
3805 repo: &str,
3806 index: i64,
3807 attachment_id: i64,
3808 ) -> Request<'_, endpoints::IssueGetIssueAttachment<'_>, Attachment> {
3809 endpoints::IssueGetIssueAttachment {
3810 owner,
3811 repo,
3812 index,
3813 attachment_id,
3814 }
3815 .make_request()
3816 .wrap::<_, _>(self)
3817 }
3818
3819 pub fn issue_delete_issue_attachment(
3826 &self,
3827 owner: &str,
3828 repo: &str,
3829 index: i64,
3830 attachment_id: i64,
3831 ) -> Request<'_, endpoints::IssueDeleteIssueAttachment<'_>, ()> {
3832 endpoints::IssueDeleteIssueAttachment {
3833 owner,
3834 repo,
3835 index,
3836 attachment_id,
3837 }
3838 .make_request()
3839 .wrap::<_, _>(self)
3840 }
3841
3842 pub fn issue_edit_issue_attachment(
3850 &self,
3851 owner: &str,
3852 repo: &str,
3853 index: i64,
3854 attachment_id: i64,
3855 body: EditAttachmentOptions,
3856 ) -> Request<'_, endpoints::IssueEditIssueAttachment<'_>, Attachment> {
3857 endpoints::IssueEditIssueAttachment {
3858 owner,
3859 repo,
3860 index,
3861 attachment_id,
3862 body: body,
3863 }
3864 .make_request()
3865 .wrap::<_, _>(self)
3866 }
3867
3868 pub fn issue_list_blocks(
3874 &self,
3875 owner: &str,
3876 repo: &str,
3877 index: i64,
3878 ) -> Request<'_, endpoints::IssueListBlocks<'_>, Vec<Issue>> {
3879 endpoints::IssueListBlocks { owner, repo, index }
3880 .make_request()
3881 .wrap::<_, _>(self)
3882 }
3883
3884 pub fn issue_create_issue_blocking(
3891 &self,
3892 owner: &str,
3893 repo: &str,
3894 index: i64,
3895 body: IssueMeta,
3896 ) -> Request<'_, endpoints::IssueCreateIssueBlocking<'_>, Issue> {
3897 endpoints::IssueCreateIssueBlocking {
3898 owner,
3899 repo,
3900 index,
3901 body: body,
3902 }
3903 .make_request()
3904 .wrap::<_, _>(self)
3905 }
3906
3907 pub fn issue_remove_issue_blocking(
3914 &self,
3915 owner: &str,
3916 repo: &str,
3917 index: i64,
3918 body: IssueMeta,
3919 ) -> Request<'_, endpoints::IssueRemoveIssueBlocking<'_>, Issue> {
3920 endpoints::IssueRemoveIssueBlocking {
3921 owner,
3922 repo,
3923 index,
3924 body: body,
3925 }
3926 .make_request()
3927 .wrap::<_, _>(self)
3928 }
3929
3930 pub fn issue_get_comments(
3936 &self,
3937 owner: &str,
3938 repo: &str,
3939 index: i64,
3940 query: IssueGetCommentsQuery,
3941 ) -> Request<'_, endpoints::IssueGetComments<'_>, (CommentListHeaders, Vec<Comment>)> {
3942 endpoints::IssueGetComments {
3943 owner,
3944 repo,
3945 index,
3946 query,
3947 }
3948 .make_request()
3949 .wrap::<_, _>(self)
3950 }
3951
3952 pub fn issue_create_comment(
3959 &self,
3960 owner: &str,
3961 repo: &str,
3962 index: i64,
3963 body: CreateIssueCommentOption,
3964 ) -> Request<'_, endpoints::IssueCreateComment<'_>, Comment> {
3965 endpoints::IssueCreateComment {
3966 owner,
3967 repo,
3968 index,
3969 body: body,
3970 }
3971 .make_request()
3972 .wrap::<_, _>(self)
3973 }
3974
3975 pub fn issue_delete_comment_deprecated(
3982 &self,
3983 owner: &str,
3984 repo: &str,
3985 index: u32,
3986 id: i64,
3987 ) -> Request<'_, endpoints::IssueDeleteCommentDeprecated<'_>, ()> {
3988 endpoints::IssueDeleteCommentDeprecated {
3989 owner,
3990 repo,
3991 index,
3992 id,
3993 }
3994 .make_request()
3995 .wrap::<_, _>(self)
3996 }
3997
3998 pub fn issue_edit_comment_deprecated(
4006 &self,
4007 owner: &str,
4008 repo: &str,
4009 index: u32,
4010 id: i64,
4011 body: EditIssueCommentOption,
4012 ) -> Request<'_, endpoints::IssueEditCommentDeprecated<'_>, Option<Comment>> {
4013 endpoints::IssueEditCommentDeprecated {
4014 owner,
4015 repo,
4016 index,
4017 id,
4018 body: body,
4019 }
4020 .make_request()
4021 .wrap::<_, _>(self)
4022 }
4023
4024 pub fn issue_edit_issue_deadline(
4031 &self,
4032 owner: &str,
4033 repo: &str,
4034 index: i64,
4035 body: EditDeadlineOption,
4036 ) -> Request<'_, endpoints::IssueEditIssueDeadline<'_>, IssueDeadline> {
4037 endpoints::IssueEditIssueDeadline {
4038 owner,
4039 repo,
4040 index,
4041 body: body,
4042 }
4043 .make_request()
4044 .wrap::<_, _>(self)
4045 }
4046
4047 pub fn issue_list_issue_dependencies(
4053 &self,
4054 owner: &str,
4055 repo: &str,
4056 index: i64,
4057 ) -> Request<'_, endpoints::IssueListIssueDependencies<'_>, Vec<Issue>> {
4058 endpoints::IssueListIssueDependencies { owner, repo, index }
4059 .make_request()
4060 .wrap::<_, _>(self)
4061 }
4062
4063 pub fn issue_create_issue_dependencies(
4070 &self,
4071 owner: &str,
4072 repo: &str,
4073 index: i64,
4074 body: IssueMeta,
4075 ) -> Request<'_, endpoints::IssueCreateIssueDependencies<'_>, Issue> {
4076 endpoints::IssueCreateIssueDependencies {
4077 owner,
4078 repo,
4079 index,
4080 body: body,
4081 }
4082 .make_request()
4083 .wrap::<_, _>(self)
4084 }
4085
4086 pub fn issue_remove_issue_dependencies(
4093 &self,
4094 owner: &str,
4095 repo: &str,
4096 index: i64,
4097 body: IssueMeta,
4098 ) -> Request<'_, endpoints::IssueRemoveIssueDependencies<'_>, Issue> {
4099 endpoints::IssueRemoveIssueDependencies {
4100 owner,
4101 repo,
4102 index,
4103 body: body,
4104 }
4105 .make_request()
4106 .wrap::<_, _>(self)
4107 }
4108
4109 pub fn issue_get_labels(
4115 &self,
4116 owner: &str,
4117 repo: &str,
4118 index: i64,
4119 ) -> Request<'_, endpoints::IssueGetLabels<'_>, Vec<Label>> {
4120 endpoints::IssueGetLabels { owner, repo, index }
4121 .make_request()
4122 .wrap::<_, _>(self)
4123 }
4124
4125 pub fn issue_replace_labels(
4132 &self,
4133 owner: &str,
4134 repo: &str,
4135 index: i64,
4136 body: IssueLabelsOption,
4137 ) -> Request<'_, endpoints::IssueReplaceLabels<'_>, Vec<Label>> {
4138 endpoints::IssueReplaceLabels {
4139 owner,
4140 repo,
4141 index,
4142 body: body,
4143 }
4144 .make_request()
4145 .wrap::<_, _>(self)
4146 }
4147
4148 pub fn issue_add_label(
4155 &self,
4156 owner: &str,
4157 repo: &str,
4158 index: i64,
4159 body: IssueLabelsOption,
4160 ) -> Request<'_, endpoints::IssueAddLabel<'_>, Vec<Label>> {
4161 endpoints::IssueAddLabel {
4162 owner,
4163 repo,
4164 index,
4165 body: body,
4166 }
4167 .make_request()
4168 .wrap::<_, _>(self)
4169 }
4170
4171 pub fn issue_clear_labels(
4178 &self,
4179 owner: &str,
4180 repo: &str,
4181 index: i64,
4182 body: DeleteLabelsOption,
4183 ) -> Request<'_, endpoints::IssueClearLabels<'_>, ()> {
4184 endpoints::IssueClearLabels {
4185 owner,
4186 repo,
4187 index,
4188 body: body,
4189 }
4190 .make_request()
4191 .wrap::<_, _>(self)
4192 }
4193
4194 pub fn issue_remove_label(
4202 &self,
4203 owner: &str,
4204 repo: &str,
4205 index: i64,
4206 identifier: &str,
4207 body: DeleteLabelsOption,
4208 ) -> Request<'_, endpoints::IssueRemoveLabel<'_>, ()> {
4209 endpoints::IssueRemoveLabel {
4210 owner,
4211 repo,
4212 index,
4213 identifier,
4214 body: body,
4215 }
4216 .make_request()
4217 .wrap::<_, _>(self)
4218 }
4219
4220 pub fn pin_issue(
4226 &self,
4227 owner: &str,
4228 repo: &str,
4229 index: i64,
4230 ) -> Request<'_, endpoints::PinIssue<'_>, ()> {
4231 endpoints::PinIssue { owner, repo, index }
4232 .make_request()
4233 .wrap::<_, _>(self)
4234 }
4235
4236 pub fn unpin_issue(
4242 &self,
4243 owner: &str,
4244 repo: &str,
4245 index: i64,
4246 ) -> Request<'_, endpoints::UnpinIssue<'_>, ()> {
4247 endpoints::UnpinIssue { owner, repo, index }
4248 .make_request()
4249 .wrap::<_, _>(self)
4250 }
4251
4252 pub fn move_issue_pin(
4259 &self,
4260 owner: &str,
4261 repo: &str,
4262 index: i64,
4263 position: i64,
4264 ) -> Request<'_, endpoints::MoveIssuePin<'_>, ()> {
4265 endpoints::MoveIssuePin {
4266 owner,
4267 repo,
4268 index,
4269 position,
4270 }
4271 .make_request()
4272 .wrap::<_, _>(self)
4273 }
4274
4275 pub fn issue_get_issue_reactions(
4281 &self,
4282 owner: &str,
4283 repo: &str,
4284 index: i64,
4285 ) -> Request<'_, endpoints::IssueGetIssueReactions<'_>, (ReactionListHeaders, Vec<Reaction>)>
4286 {
4287 endpoints::IssueGetIssueReactions { owner, repo, index }
4288 .make_request()
4289 .wrap::<_, _>(self)
4290 }
4291
4292 pub fn issue_post_issue_reaction(
4299 &self,
4300 owner: &str,
4301 repo: &str,
4302 index: i64,
4303 content: EditReactionOption,
4304 ) -> Request<'_, endpoints::IssuePostIssueReaction<'_>, Reaction> {
4305 endpoints::IssuePostIssueReaction {
4306 owner,
4307 repo,
4308 index,
4309 body: content,
4310 }
4311 .make_request()
4312 .wrap::<_, _>(self)
4313 }
4314
4315 pub fn issue_delete_issue_reaction(
4322 &self,
4323 owner: &str,
4324 repo: &str,
4325 index: i64,
4326 content: EditReactionOption,
4327 ) -> Request<'_, endpoints::IssueDeleteIssueReaction<'_>, ()> {
4328 endpoints::IssueDeleteIssueReaction {
4329 owner,
4330 repo,
4331 index,
4332 body: content,
4333 }
4334 .make_request()
4335 .wrap::<_, _>(self)
4336 }
4337
4338 pub fn issue_delete_stop_watch(
4344 &self,
4345 owner: &str,
4346 repo: &str,
4347 index: i64,
4348 ) -> Request<'_, endpoints::IssueDeleteStopWatch<'_>, ()> {
4349 endpoints::IssueDeleteStopWatch { owner, repo, index }
4350 .make_request()
4351 .wrap::<_, _>(self)
4352 }
4353
4354 pub fn issue_start_stop_watch(
4360 &self,
4361 owner: &str,
4362 repo: &str,
4363 index: i64,
4364 ) -> Request<'_, endpoints::IssueStartStopWatch<'_>, ()> {
4365 endpoints::IssueStartStopWatch { owner, repo, index }
4366 .make_request()
4367 .wrap::<_, _>(self)
4368 }
4369
4370 pub fn issue_stop_stop_watch(
4376 &self,
4377 owner: &str,
4378 repo: &str,
4379 index: i64,
4380 ) -> Request<'_, endpoints::IssueStopStopWatch<'_>, ()> {
4381 endpoints::IssueStopStopWatch { owner, repo, index }
4382 .make_request()
4383 .wrap::<_, _>(self)
4384 }
4385
4386 pub fn issue_subscriptions(
4392 &self,
4393 owner: &str,
4394 repo: &str,
4395 index: i64,
4396 ) -> Request<'_, endpoints::IssueSubscriptions<'_>, (UserListHeaders, Vec<User>)> {
4397 endpoints::IssueSubscriptions { owner, repo, index }
4398 .make_request()
4399 .wrap::<_, _>(self)
4400 }
4401
4402 pub fn issue_check_subscription(
4408 &self,
4409 owner: &str,
4410 repo: &str,
4411 index: i64,
4412 ) -> Request<'_, endpoints::IssueCheckSubscription<'_>, WatchInfo> {
4413 endpoints::IssueCheckSubscription { owner, repo, index }
4414 .make_request()
4415 .wrap::<_, _>(self)
4416 }
4417
4418 pub fn issue_add_subscription(
4425 &self,
4426 owner: &str,
4427 repo: &str,
4428 index: i64,
4429 user: &str,
4430 ) -> Request<'_, endpoints::IssueAddSubscription<'_>, ()> {
4431 endpoints::IssueAddSubscription {
4432 owner,
4433 repo,
4434 index,
4435 user,
4436 }
4437 .make_request()
4438 .wrap::<_, _>(self)
4439 }
4440
4441 pub fn issue_delete_subscription(
4448 &self,
4449 owner: &str,
4450 repo: &str,
4451 index: i64,
4452 user: &str,
4453 ) -> Request<'_, endpoints::IssueDeleteSubscription<'_>, ()> {
4454 endpoints::IssueDeleteSubscription {
4455 owner,
4456 repo,
4457 index,
4458 user,
4459 }
4460 .make_request()
4461 .wrap::<_, _>(self)
4462 }
4463
4464 pub fn issue_get_comments_and_timeline(
4470 &self,
4471 owner: &str,
4472 repo: &str,
4473 index: i64,
4474 query: IssueGetCommentsAndTimelineQuery,
4475 ) -> Request<
4476 '_,
4477 endpoints::IssueGetCommentsAndTimeline<'_>,
4478 (TimelineListHeaders, Vec<TimelineComment>),
4479 > {
4480 endpoints::IssueGetCommentsAndTimeline {
4481 owner,
4482 repo,
4483 index,
4484 query,
4485 }
4486 .make_request()
4487 .wrap::<_, _>(self)
4488 }
4489
4490 pub fn issue_tracked_times(
4496 &self,
4497 owner: &str,
4498 repo: &str,
4499 index: i64,
4500 query: IssueTrackedTimesQuery,
4501 ) -> Request<'_, endpoints::IssueTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
4502 {
4503 endpoints::IssueTrackedTimes {
4504 owner,
4505 repo,
4506 index,
4507 query,
4508 }
4509 .make_request()
4510 .wrap::<_, _>(self)
4511 }
4512
4513 pub fn issue_add_time(
4520 &self,
4521 owner: &str,
4522 repo: &str,
4523 index: i64,
4524 body: AddTimeOption,
4525 ) -> Request<'_, endpoints::IssueAddTime<'_>, TrackedTime> {
4526 endpoints::IssueAddTime {
4527 owner,
4528 repo,
4529 index,
4530 body: body,
4531 }
4532 .make_request()
4533 .wrap::<_, _>(self)
4534 }
4535
4536 pub fn issue_reset_time(
4542 &self,
4543 owner: &str,
4544 repo: &str,
4545 index: i64,
4546 ) -> Request<'_, endpoints::IssueResetTime<'_>, ()> {
4547 endpoints::IssueResetTime { owner, repo, index }
4548 .make_request()
4549 .wrap::<_, _>(self)
4550 }
4551
4552 pub fn issue_delete_time(
4559 &self,
4560 owner: &str,
4561 repo: &str,
4562 index: i64,
4563 id: i64,
4564 ) -> Request<'_, endpoints::IssueDeleteTime<'_>, ()> {
4565 endpoints::IssueDeleteTime {
4566 owner,
4567 repo,
4568 index,
4569 id,
4570 }
4571 .make_request()
4572 .wrap::<_, _>(self)
4573 }
4574
4575 pub fn repo_list_keys(
4580 &self,
4581 owner: &str,
4582 repo: &str,
4583 query: RepoListKeysQuery,
4584 ) -> Request<'_, endpoints::RepoListKeys<'_>, (DeployKeyListHeaders, Vec<DeployKey>)> {
4585 endpoints::RepoListKeys { owner, repo, query }
4586 .make_request()
4587 .wrap::<_, _>(self)
4588 }
4589
4590 pub fn repo_create_key(
4596 &self,
4597 owner: &str,
4598 repo: &str,
4599 body: CreateKeyOption,
4600 ) -> Request<'_, endpoints::RepoCreateKey<'_>, DeployKey> {
4601 endpoints::RepoCreateKey {
4602 owner,
4603 repo,
4604 body: body,
4605 }
4606 .make_request()
4607 .wrap::<_, _>(self)
4608 }
4609
4610 pub fn repo_get_key(
4616 &self,
4617 owner: &str,
4618 repo: &str,
4619 id: i64,
4620 ) -> Request<'_, endpoints::RepoGetKey<'_>, DeployKey> {
4621 endpoints::RepoGetKey { owner, repo, id }
4622 .make_request()
4623 .wrap::<_, _>(self)
4624 }
4625
4626 pub fn repo_delete_key(
4632 &self,
4633 owner: &str,
4634 repo: &str,
4635 id: i64,
4636 ) -> Request<'_, endpoints::RepoDeleteKey<'_>, ()> {
4637 endpoints::RepoDeleteKey { owner, repo, id }
4638 .make_request()
4639 .wrap::<_, _>(self)
4640 }
4641
4642 pub fn issue_list_labels(
4647 &self,
4648 owner: &str,
4649 repo: &str,
4650 query: IssueListLabelsQuery,
4651 ) -> Request<'_, endpoints::IssueListLabels<'_>, (LabelListHeaders, Vec<Label>)> {
4652 endpoints::IssueListLabels { owner, repo, query }
4653 .make_request()
4654 .wrap::<_, _>(self)
4655 }
4656
4657 pub fn issue_create_label(
4663 &self,
4664 owner: &str,
4665 repo: &str,
4666 body: CreateLabelOption,
4667 ) -> Request<'_, endpoints::IssueCreateLabel<'_>, Label> {
4668 endpoints::IssueCreateLabel {
4669 owner,
4670 repo,
4671 body: body,
4672 }
4673 .make_request()
4674 .wrap::<_, _>(self)
4675 }
4676
4677 pub fn issue_get_label(
4683 &self,
4684 owner: &str,
4685 repo: &str,
4686 id: i64,
4687 ) -> Request<'_, endpoints::IssueGetLabel<'_>, Label> {
4688 endpoints::IssueGetLabel { owner, repo, id }
4689 .make_request()
4690 .wrap::<_, _>(self)
4691 }
4692
4693 pub fn issue_delete_label(
4699 &self,
4700 owner: &str,
4701 repo: &str,
4702 id: i64,
4703 ) -> Request<'_, endpoints::IssueDeleteLabel<'_>, ()> {
4704 endpoints::IssueDeleteLabel { owner, repo, id }
4705 .make_request()
4706 .wrap::<_, _>(self)
4707 }
4708
4709 pub fn issue_edit_label(
4716 &self,
4717 owner: &str,
4718 repo: &str,
4719 id: i64,
4720 body: EditLabelOption,
4721 ) -> Request<'_, endpoints::IssueEditLabel<'_>, Label> {
4722 endpoints::IssueEditLabel {
4723 owner,
4724 repo,
4725 id,
4726 body: body,
4727 }
4728 .make_request()
4729 .wrap::<_, _>(self)
4730 }
4731
4732 pub fn repo_get_languages(
4737 &self,
4738 owner: &str,
4739 repo: &str,
4740 ) -> Request<'_, endpoints::RepoGetLanguages<'_>, BTreeMap<String, i64>> {
4741 endpoints::RepoGetLanguages { owner, repo }
4742 .make_request()
4743 .wrap::<_, _>(self)
4744 }
4745
4746 pub fn repo_get_raw_file_or_lfs(
4752 &self,
4753 owner: &str,
4754 repo: &str,
4755 filepath: &str,
4756 query: RepoGetRawFileOrLfsQuery,
4757 ) -> Request<'_, endpoints::RepoGetRawFileOrLfs<'_>, Bytes> {
4758 endpoints::RepoGetRawFileOrLfs {
4759 owner,
4760 repo,
4761 filepath,
4762 query,
4763 }
4764 .make_request()
4765 .wrap::<_, _>(self)
4766 }
4767
4768 pub fn issue_get_milestones_list(
4773 &self,
4774 owner: &str,
4775 repo: &str,
4776 query: IssueGetMilestonesListQuery,
4777 ) -> Request<'_, endpoints::IssueGetMilestonesList<'_>, (MilestoneListHeaders, Vec<Milestone>)>
4778 {
4779 endpoints::IssueGetMilestonesList { owner, repo, query }
4780 .make_request()
4781 .wrap::<_, _>(self)
4782 }
4783
4784 pub fn issue_create_milestone(
4790 &self,
4791 owner: &str,
4792 repo: &str,
4793 body: CreateMilestoneOption,
4794 ) -> Request<'_, endpoints::IssueCreateMilestone<'_>, Milestone> {
4795 endpoints::IssueCreateMilestone {
4796 owner,
4797 repo,
4798 body: body,
4799 }
4800 .make_request()
4801 .wrap::<_, _>(self)
4802 }
4803
4804 pub fn issue_get_milestone(
4810 &self,
4811 owner: &str,
4812 repo: &str,
4813 id: i64,
4814 ) -> Request<'_, endpoints::IssueGetMilestone<'_>, Milestone> {
4815 endpoints::IssueGetMilestone { owner, repo, id }
4816 .make_request()
4817 .wrap::<_, _>(self)
4818 }
4819
4820 pub fn issue_delete_milestone(
4826 &self,
4827 owner: &str,
4828 repo: &str,
4829 id: i64,
4830 ) -> Request<'_, endpoints::IssueDeleteMilestone<'_>, ()> {
4831 endpoints::IssueDeleteMilestone { owner, repo, id }
4832 .make_request()
4833 .wrap::<_, _>(self)
4834 }
4835
4836 pub fn issue_edit_milestone(
4843 &self,
4844 owner: &str,
4845 repo: &str,
4846 id: i64,
4847 body: EditMilestoneOption,
4848 ) -> Request<'_, endpoints::IssueEditMilestone<'_>, Milestone> {
4849 endpoints::IssueEditMilestone {
4850 owner,
4851 repo,
4852 id,
4853 body: body,
4854 }
4855 .make_request()
4856 .wrap::<_, _>(self)
4857 }
4858
4859 pub fn repo_mirror_sync(
4864 &self,
4865 owner: &str,
4866 repo: &str,
4867 ) -> Request<'_, endpoints::RepoMirrorSync<'_>, ()> {
4868 endpoints::RepoMirrorSync { owner, repo }
4869 .make_request()
4870 .wrap::<_, _>(self)
4871 }
4872
4873 pub fn repo_new_pin_allowed(
4878 &self,
4879 owner: &str,
4880 repo: &str,
4881 ) -> Request<'_, endpoints::RepoNewPinAllowed<'_>, NewIssuePinsAllowed> {
4882 endpoints::RepoNewPinAllowed { owner, repo }
4883 .make_request()
4884 .wrap::<_, _>(self)
4885 }
4886
4887 pub fn notify_get_repo_list(
4892 &self,
4893 owner: &str,
4894 repo: &str,
4895 query: NotifyGetRepoListQuery,
4896 ) -> Request<
4897 '_,
4898 endpoints::NotifyGetRepoList<'_>,
4899 (NotificationThreadListHeaders, Vec<NotificationThread>),
4900 > {
4901 endpoints::NotifyGetRepoList { owner, repo, query }
4902 .make_request()
4903 .wrap::<_, _>(self)
4904 }
4905
4906 pub fn notify_read_repo_list(
4911 &self,
4912 owner: &str,
4913 repo: &str,
4914 query: NotifyReadRepoListQuery,
4915 ) -> Request<'_, endpoints::NotifyReadRepoList<'_>, Vec<NotificationThread>> {
4916 endpoints::NotifyReadRepoList { owner, repo, query }
4917 .make_request()
4918 .wrap::<_, _>(self)
4919 }
4920
4921 pub fn repo_list_pull_requests(
4926 &self,
4927 owner: &str,
4928 repo: &str,
4929 query: RepoListPullRequestsQuery,
4930 ) -> Request<'_, endpoints::RepoListPullRequests<'_>, (PullRequestListHeaders, Vec<PullRequest>)>
4931 {
4932 endpoints::RepoListPullRequests { owner, repo, query }
4933 .make_request()
4934 .wrap::<_, _>(self)
4935 }
4936
4937 pub fn repo_create_pull_request(
4943 &self,
4944 owner: &str,
4945 repo: &str,
4946 body: CreatePullRequestOption,
4947 ) -> Request<'_, endpoints::RepoCreatePullRequest<'_>, PullRequest> {
4948 endpoints::RepoCreatePullRequest {
4949 owner,
4950 repo,
4951 body: body,
4952 }
4953 .make_request()
4954 .wrap::<_, _>(self)
4955 }
4956
4957 pub fn repo_list_pinned_pull_requests(
4962 &self,
4963 owner: &str,
4964 repo: &str,
4965 ) -> Request<
4966 '_,
4967 endpoints::RepoListPinnedPullRequests<'_>,
4968 (PullRequestListHeaders, Vec<PullRequest>),
4969 > {
4970 endpoints::RepoListPinnedPullRequests { owner, repo }
4971 .make_request()
4972 .wrap::<_, _>(self)
4973 }
4974
4975 pub fn repo_get_pull_request_by_base_head(
4982 &self,
4983 owner: &str,
4984 repo: &str,
4985 base: &str,
4986 head: &str,
4987 ) -> Request<'_, endpoints::RepoGetPullRequestByBaseHead<'_>, PullRequest> {
4988 endpoints::RepoGetPullRequestByBaseHead {
4989 owner,
4990 repo,
4991 base,
4992 head,
4993 }
4994 .make_request()
4995 .wrap::<_, _>(self)
4996 }
4997
4998 pub fn repo_get_pull_request(
5004 &self,
5005 owner: &str,
5006 repo: &str,
5007 index: i64,
5008 ) -> Request<'_, endpoints::RepoGetPullRequest<'_>, PullRequest> {
5009 endpoints::RepoGetPullRequest { owner, repo, index }
5010 .make_request()
5011 .wrap::<_, _>(self)
5012 }
5013
5014 pub fn repo_edit_pull_request(
5021 &self,
5022 owner: &str,
5023 repo: &str,
5024 index: i64,
5025 body: EditPullRequestOption,
5026 ) -> Request<'_, endpoints::RepoEditPullRequest<'_>, PullRequest> {
5027 endpoints::RepoEditPullRequest {
5028 owner,
5029 repo,
5030 index,
5031 body: body,
5032 }
5033 .make_request()
5034 .wrap::<_, _>(self)
5035 }
5036
5037 pub fn repo_download_pull_diff_or_patch(
5044 &self,
5045 owner: &str,
5046 repo: &str,
5047 index: i64,
5048 diff_type: &str,
5049 query: RepoDownloadPullDiffOrPatchQuery,
5050 ) -> Request<'_, endpoints::RepoDownloadPullDiffOrPatch<'_>, String> {
5051 endpoints::RepoDownloadPullDiffOrPatch {
5052 owner,
5053 repo,
5054 index,
5055 diff_type,
5056 query,
5057 }
5058 .make_request()
5059 .wrap::<_, _>(self)
5060 }
5061
5062 pub fn repo_get_pull_request_commits(
5068 &self,
5069 owner: &str,
5070 repo: &str,
5071 index: i64,
5072 query: RepoGetPullRequestCommitsQuery,
5073 ) -> Request<'_, endpoints::RepoGetPullRequestCommits<'_>, (CommitListHeaders, Vec<Commit>)>
5074 {
5075 endpoints::RepoGetPullRequestCommits {
5076 owner,
5077 repo,
5078 index,
5079 query,
5080 }
5081 .make_request()
5082 .wrap::<_, _>(self)
5083 }
5084
5085 pub fn repo_get_pull_request_files(
5091 &self,
5092 owner: &str,
5093 repo: &str,
5094 index: i64,
5095 query: RepoGetPullRequestFilesQuery,
5096 ) -> Request<
5097 '_,
5098 endpoints::RepoGetPullRequestFiles<'_>,
5099 (ChangedFileListWithPaginationHeaders, Vec<ChangedFile>),
5100 > {
5101 endpoints::RepoGetPullRequestFiles {
5102 owner,
5103 repo,
5104 index,
5105 query,
5106 }
5107 .make_request()
5108 .wrap::<_, _>(self)
5109 }
5110
5111 pub fn repo_pull_request_is_merged(
5117 &self,
5118 owner: &str,
5119 repo: &str,
5120 index: i64,
5121 ) -> Request<'_, endpoints::RepoPullRequestIsMerged<'_>, ()> {
5122 endpoints::RepoPullRequestIsMerged { owner, repo, index }
5123 .make_request()
5124 .wrap::<_, _>(self)
5125 }
5126
5127 pub fn repo_merge_pull_request(
5134 &self,
5135 owner: &str,
5136 repo: &str,
5137 index: i64,
5138 body: MergePullRequestOption,
5139 ) -> Request<'_, endpoints::RepoMergePullRequest<'_>, ()> {
5140 endpoints::RepoMergePullRequest {
5141 owner,
5142 repo,
5143 index,
5144 body: body,
5145 }
5146 .make_request()
5147 .wrap::<_, _>(self)
5148 }
5149
5150 pub fn repo_cancel_scheduled_auto_merge(
5156 &self,
5157 owner: &str,
5158 repo: &str,
5159 index: i64,
5160 ) -> Request<'_, endpoints::RepoCancelScheduledAutoMerge<'_>, ()> {
5161 endpoints::RepoCancelScheduledAutoMerge { owner, repo, index }
5162 .make_request()
5163 .wrap::<_, _>(self)
5164 }
5165
5166 pub fn repo_create_pull_review_requests(
5173 &self,
5174 owner: &str,
5175 repo: &str,
5176 index: i64,
5177 body: PullReviewRequestOptions,
5178 ) -> Request<'_, endpoints::RepoCreatePullReviewRequests<'_>, Vec<PullReview>> {
5179 endpoints::RepoCreatePullReviewRequests {
5180 owner,
5181 repo,
5182 index,
5183 body: body,
5184 }
5185 .make_request()
5186 .wrap::<_, _>(self)
5187 }
5188
5189 pub fn repo_delete_pull_review_requests(
5196 &self,
5197 owner: &str,
5198 repo: &str,
5199 index: i64,
5200 body: PullReviewRequestOptions,
5201 ) -> Request<'_, endpoints::RepoDeletePullReviewRequests<'_>, ()> {
5202 endpoints::RepoDeletePullReviewRequests {
5203 owner,
5204 repo,
5205 index,
5206 body: body,
5207 }
5208 .make_request()
5209 .wrap::<_, _>(self)
5210 }
5211
5212 pub fn repo_list_pull_reviews(
5218 &self,
5219 owner: &str,
5220 repo: &str,
5221 index: i64,
5222 ) -> Request<'_, endpoints::RepoListPullReviews<'_>, (PullReviewListHeaders, Vec<PullReview>)>
5223 {
5224 endpoints::RepoListPullReviews { owner, repo, index }
5225 .make_request()
5226 .wrap::<_, _>(self)
5227 }
5228
5229 pub fn repo_create_pull_review(
5236 &self,
5237 owner: &str,
5238 repo: &str,
5239 index: i64,
5240 body: CreatePullReviewOptions,
5241 ) -> Request<'_, endpoints::RepoCreatePullReview<'_>, PullReview> {
5242 endpoints::RepoCreatePullReview {
5243 owner,
5244 repo,
5245 index,
5246 body: body,
5247 }
5248 .make_request()
5249 .wrap::<_, _>(self)
5250 }
5251
5252 pub fn repo_get_pull_review(
5259 &self,
5260 owner: &str,
5261 repo: &str,
5262 index: i64,
5263 id: i64,
5264 ) -> Request<'_, endpoints::RepoGetPullReview<'_>, PullReview> {
5265 endpoints::RepoGetPullReview {
5266 owner,
5267 repo,
5268 index,
5269 id,
5270 }
5271 .make_request()
5272 .wrap::<_, _>(self)
5273 }
5274
5275 pub fn repo_submit_pull_review(
5283 &self,
5284 owner: &str,
5285 repo: &str,
5286 index: i64,
5287 id: i64,
5288 body: SubmitPullReviewOptions,
5289 ) -> Request<'_, endpoints::RepoSubmitPullReview<'_>, PullReview> {
5290 endpoints::RepoSubmitPullReview {
5291 owner,
5292 repo,
5293 index,
5294 id,
5295 body: body,
5296 }
5297 .make_request()
5298 .wrap::<_, _>(self)
5299 }
5300
5301 pub fn repo_delete_pull_review(
5308 &self,
5309 owner: &str,
5310 repo: &str,
5311 index: i64,
5312 id: i64,
5313 ) -> Request<'_, endpoints::RepoDeletePullReview<'_>, ()> {
5314 endpoints::RepoDeletePullReview {
5315 owner,
5316 repo,
5317 index,
5318 id,
5319 }
5320 .make_request()
5321 .wrap::<_, _>(self)
5322 }
5323
5324 pub fn repo_get_pull_review_comments(
5331 &self,
5332 owner: &str,
5333 repo: &str,
5334 index: i64,
5335 id: i64,
5336 ) -> Request<'_, endpoints::RepoGetPullReviewComments<'_>, Vec<PullReviewComment>> {
5337 endpoints::RepoGetPullReviewComments {
5338 owner,
5339 repo,
5340 index,
5341 id,
5342 }
5343 .make_request()
5344 .wrap::<_, _>(self)
5345 }
5346
5347 pub fn repo_create_pull_review_comment(
5355 &self,
5356 owner: &str,
5357 repo: &str,
5358 index: i64,
5359 id: i64,
5360 body: serde_json::Value,
5361 ) -> Request<'_, endpoints::RepoCreatePullReviewComment<'_>, PullReviewComment> {
5362 endpoints::RepoCreatePullReviewComment {
5363 owner,
5364 repo,
5365 index,
5366 id,
5367 body: body,
5368 }
5369 .make_request()
5370 .wrap::<_, _>(self)
5371 }
5372
5373 pub fn repo_get_pull_review_comment(
5381 &self,
5382 owner: &str,
5383 repo: &str,
5384 index: i64,
5385 id: i64,
5386 comment: i64,
5387 ) -> Request<'_, endpoints::RepoGetPullReviewComment<'_>, PullReviewComment> {
5388 endpoints::RepoGetPullReviewComment {
5389 owner,
5390 repo,
5391 index,
5392 id,
5393 comment,
5394 }
5395 .make_request()
5396 .wrap::<_, _>(self)
5397 }
5398
5399 pub fn repo_delete_pull_review_comment(
5407 &self,
5408 owner: &str,
5409 repo: &str,
5410 index: i64,
5411 id: i64,
5412 comment: i64,
5413 ) -> Request<'_, endpoints::RepoDeletePullReviewComment<'_>, ()> {
5414 endpoints::RepoDeletePullReviewComment {
5415 owner,
5416 repo,
5417 index,
5418 id,
5419 comment,
5420 }
5421 .make_request()
5422 .wrap::<_, _>(self)
5423 }
5424
5425 pub fn repo_dismiss_pull_review(
5433 &self,
5434 owner: &str,
5435 repo: &str,
5436 index: i64,
5437 id: i64,
5438 body: DismissPullReviewOptions,
5439 ) -> Request<'_, endpoints::RepoDismissPullReview<'_>, PullReview> {
5440 endpoints::RepoDismissPullReview {
5441 owner,
5442 repo,
5443 index,
5444 id,
5445 body: body,
5446 }
5447 .make_request()
5448 .wrap::<_, _>(self)
5449 }
5450
5451 pub fn repo_un_dismiss_pull_review(
5458 &self,
5459 owner: &str,
5460 repo: &str,
5461 index: i64,
5462 id: i64,
5463 ) -> Request<'_, endpoints::RepoUnDismissPullReview<'_>, PullReview> {
5464 endpoints::RepoUnDismissPullReview {
5465 owner,
5466 repo,
5467 index,
5468 id,
5469 }
5470 .make_request()
5471 .wrap::<_, _>(self)
5472 }
5473
5474 pub fn repo_update_pull_request(
5480 &self,
5481 owner: &str,
5482 repo: &str,
5483 index: i64,
5484 query: RepoUpdatePullRequestQuery,
5485 ) -> Request<'_, endpoints::RepoUpdatePullRequest<'_>, ()> {
5486 endpoints::RepoUpdatePullRequest {
5487 owner,
5488 repo,
5489 index,
5490 query,
5491 }
5492 .make_request()
5493 .wrap::<_, _>(self)
5494 }
5495
5496 pub fn repo_list_push_mirrors(
5501 &self,
5502 owner: &str,
5503 repo: &str,
5504 ) -> Request<'_, endpoints::RepoListPushMirrors<'_>, (PushMirrorListHeaders, Vec<PushMirror>)>
5505 {
5506 endpoints::RepoListPushMirrors { owner, repo }
5507 .make_request()
5508 .wrap::<_, _>(self)
5509 }
5510
5511 pub fn repo_add_push_mirror(
5517 &self,
5518 owner: &str,
5519 repo: &str,
5520 body: CreatePushMirrorOption,
5521 ) -> Request<'_, endpoints::RepoAddPushMirror<'_>, PushMirror> {
5522 endpoints::RepoAddPushMirror {
5523 owner,
5524 repo,
5525 body: body,
5526 }
5527 .make_request()
5528 .wrap::<_, _>(self)
5529 }
5530
5531 pub fn repo_push_mirror_sync(
5536 &self,
5537 owner: &str,
5538 repo: &str,
5539 ) -> Request<'_, endpoints::RepoPushMirrorSync<'_>, ()> {
5540 endpoints::RepoPushMirrorSync { owner, repo }
5541 .make_request()
5542 .wrap::<_, _>(self)
5543 }
5544
5545 pub fn repo_get_push_mirror_by_remote_name(
5551 &self,
5552 owner: &str,
5553 repo: &str,
5554 name: &str,
5555 ) -> Request<'_, endpoints::RepoGetPushMirrorByRemoteName<'_>, PushMirror> {
5556 endpoints::RepoGetPushMirrorByRemoteName { owner, repo, name }
5557 .make_request()
5558 .wrap::<_, _>(self)
5559 }
5560
5561 pub fn repo_delete_push_mirror(
5567 &self,
5568 owner: &str,
5569 repo: &str,
5570 name: &str,
5571 ) -> Request<'_, endpoints::RepoDeletePushMirror<'_>, ()> {
5572 endpoints::RepoDeletePushMirror { owner, repo, name }
5573 .make_request()
5574 .wrap::<_, _>(self)
5575 }
5576
5577 pub fn repo_get_raw_file(
5583 &self,
5584 owner: &str,
5585 repo: &str,
5586 filepath: &str,
5587 query: RepoGetRawFileQuery,
5588 ) -> Request<'_, endpoints::RepoGetRawFile<'_>, Bytes> {
5589 endpoints::RepoGetRawFile {
5590 owner,
5591 repo,
5592 filepath,
5593 query,
5594 }
5595 .make_request()
5596 .wrap::<_, _>(self)
5597 }
5598
5599 pub fn repo_list_releases(
5604 &self,
5605 owner: &str,
5606 repo: &str,
5607 query: RepoListReleasesQuery,
5608 ) -> Request<'_, endpoints::RepoListReleases<'_>, (ReleaseListHeaders, Vec<Release>)> {
5609 endpoints::RepoListReleases { owner, repo, query }
5610 .make_request()
5611 .wrap::<_, _>(self)
5612 }
5613
5614 pub fn repo_create_release(
5620 &self,
5621 owner: &str,
5622 repo: &str,
5623 body: CreateReleaseOption,
5624 ) -> Request<'_, endpoints::RepoCreateRelease<'_>, Release> {
5625 endpoints::RepoCreateRelease {
5626 owner,
5627 repo,
5628 body: body,
5629 }
5630 .make_request()
5631 .wrap::<_, _>(self)
5632 }
5633
5634 pub fn repo_get_latest_release(
5639 &self,
5640 owner: &str,
5641 repo: &str,
5642 ) -> Request<'_, endpoints::RepoGetLatestRelease<'_>, Release> {
5643 endpoints::RepoGetLatestRelease { owner, repo }
5644 .make_request()
5645 .wrap::<_, _>(self)
5646 }
5647
5648 pub fn repo_get_release_by_tag(
5654 &self,
5655 owner: &str,
5656 repo: &str,
5657 tag: &str,
5658 ) -> Request<'_, endpoints::RepoGetReleaseByTag<'_>, Release> {
5659 endpoints::RepoGetReleaseByTag { owner, repo, tag }
5660 .make_request()
5661 .wrap::<_, _>(self)
5662 }
5663
5664 pub fn repo_delete_release_by_tag(
5670 &self,
5671 owner: &str,
5672 repo: &str,
5673 tag: &str,
5674 ) -> Request<'_, endpoints::RepoDeleteReleaseByTag<'_>, ()> {
5675 endpoints::RepoDeleteReleaseByTag { owner, repo, tag }
5676 .make_request()
5677 .wrap::<_, _>(self)
5678 }
5679
5680 pub fn repo_get_release(
5686 &self,
5687 owner: &str,
5688 repo: &str,
5689 id: i64,
5690 ) -> Request<'_, endpoints::RepoGetRelease<'_>, Release> {
5691 endpoints::RepoGetRelease { owner, repo, id }
5692 .make_request()
5693 .wrap::<_, _>(self)
5694 }
5695
5696 pub fn repo_delete_release(
5702 &self,
5703 owner: &str,
5704 repo: &str,
5705 id: i64,
5706 ) -> Request<'_, endpoints::RepoDeleteRelease<'_>, ()> {
5707 endpoints::RepoDeleteRelease { owner, repo, id }
5708 .make_request()
5709 .wrap::<_, _>(self)
5710 }
5711
5712 pub fn repo_edit_release(
5719 &self,
5720 owner: &str,
5721 repo: &str,
5722 id: i64,
5723 body: EditReleaseOption,
5724 ) -> Request<'_, endpoints::RepoEditRelease<'_>, Release> {
5725 endpoints::RepoEditRelease {
5726 owner,
5727 repo,
5728 id,
5729 body: body,
5730 }
5731 .make_request()
5732 .wrap::<_, _>(self)
5733 }
5734
5735 pub fn repo_list_release_attachments(
5741 &self,
5742 owner: &str,
5743 repo: &str,
5744 id: i64,
5745 ) -> Request<'_, endpoints::RepoListReleaseAttachments<'_>, Vec<Attachment>> {
5746 endpoints::RepoListReleaseAttachments { owner, repo, id }
5747 .make_request()
5748 .wrap::<_, _>(self)
5749 }
5750
5751 pub fn repo_create_release_attachment(
5759 &self,
5760 owner: &str,
5761 repo: &str,
5762 id: i64,
5763 attachment: Option<&[u8]>,
5764 external_url: Option<&str>,
5765 query: RepoCreateReleaseAttachmentQuery,
5766 ) -> Request<'_, endpoints::RepoCreateReleaseAttachment<'_>, Attachment> {
5767 endpoints::RepoCreateReleaseAttachment {
5768 owner,
5769 repo,
5770 id,
5771 attachment: attachment.as_deref(),
5772 external_url: external_url.as_deref(),
5773 query,
5774 }
5775 .make_request()
5776 .wrap::<_, _>(self)
5777 }
5778
5779 pub fn repo_get_release_attachment(
5786 &self,
5787 owner: &str,
5788 repo: &str,
5789 id: i64,
5790 attachment_id: i64,
5791 ) -> Request<'_, endpoints::RepoGetReleaseAttachment<'_>, Attachment> {
5792 endpoints::RepoGetReleaseAttachment {
5793 owner,
5794 repo,
5795 id,
5796 attachment_id,
5797 }
5798 .make_request()
5799 .wrap::<_, _>(self)
5800 }
5801
5802 pub fn repo_delete_release_attachment(
5809 &self,
5810 owner: &str,
5811 repo: &str,
5812 id: i64,
5813 attachment_id: i64,
5814 ) -> Request<'_, endpoints::RepoDeleteReleaseAttachment<'_>, ()> {
5815 endpoints::RepoDeleteReleaseAttachment {
5816 owner,
5817 repo,
5818 id,
5819 attachment_id,
5820 }
5821 .make_request()
5822 .wrap::<_, _>(self)
5823 }
5824
5825 pub fn repo_edit_release_attachment(
5833 &self,
5834 owner: &str,
5835 repo: &str,
5836 id: i64,
5837 attachment_id: i64,
5838 body: EditAttachmentOptions,
5839 ) -> Request<'_, endpoints::RepoEditReleaseAttachment<'_>, Attachment> {
5840 endpoints::RepoEditReleaseAttachment {
5841 owner,
5842 repo,
5843 id,
5844 attachment_id,
5845 body: body,
5846 }
5847 .make_request()
5848 .wrap::<_, _>(self)
5849 }
5850
5851 pub fn repo_get_reviewers(
5856 &self,
5857 owner: &str,
5858 repo: &str,
5859 ) -> Request<'_, endpoints::RepoGetReviewers<'_>, (UserListHeaders, Vec<User>)> {
5860 endpoints::RepoGetReviewers { owner, repo }
5861 .make_request()
5862 .wrap::<_, _>(self)
5863 }
5864
5865 pub fn repo_signing_key(
5870 &self,
5871 owner: &str,
5872 repo: &str,
5873 ) -> Request<'_, endpoints::RepoSigningKey<'_>, String> {
5874 endpoints::RepoSigningKey { owner, repo }
5875 .make_request()
5876 .wrap::<_, _>(self)
5877 }
5878
5879 pub fn repo_list_stargazers(
5884 &self,
5885 owner: &str,
5886 repo: &str,
5887 ) -> Request<'_, endpoints::RepoListStargazers<'_>, (UserListHeaders, Vec<User>)> {
5888 endpoints::RepoListStargazers { owner, repo }
5889 .make_request()
5890 .wrap::<_, _>(self)
5891 }
5892
5893 pub fn repo_list_statuses(
5899 &self,
5900 owner: &str,
5901 repo: &str,
5902 sha: &str,
5903 query: RepoListStatusesQuery,
5904 ) -> Request<'_, endpoints::RepoListStatuses<'_>, (CommitStatusListHeaders, Vec<CommitStatus>)>
5905 {
5906 endpoints::RepoListStatuses {
5907 owner,
5908 repo,
5909 sha,
5910 query,
5911 }
5912 .make_request()
5913 .wrap::<_, _>(self)
5914 }
5915
5916 pub fn repo_create_status(
5923 &self,
5924 owner: &str,
5925 repo: &str,
5926 sha: &str,
5927 body: CreateStatusOption,
5928 ) -> Request<'_, endpoints::RepoCreateStatus<'_>, CommitStatus> {
5929 endpoints::RepoCreateStatus {
5930 owner,
5931 repo,
5932 sha,
5933 body: body,
5934 }
5935 .make_request()
5936 .wrap::<_, _>(self)
5937 }
5938
5939 pub fn repo_list_subscribers(
5944 &self,
5945 owner: &str,
5946 repo: &str,
5947 ) -> Request<'_, endpoints::RepoListSubscribers<'_>, (UserListHeaders, Vec<User>)> {
5948 endpoints::RepoListSubscribers { owner, repo }
5949 .make_request()
5950 .wrap::<_, _>(self)
5951 }
5952
5953 pub fn user_current_check_subscription(
5958 &self,
5959 owner: &str,
5960 repo: &str,
5961 ) -> Request<'_, endpoints::UserCurrentCheckSubscription<'_>, WatchInfo> {
5962 endpoints::UserCurrentCheckSubscription { owner, repo }
5963 .make_request()
5964 .wrap::<_, _>(self)
5965 }
5966
5967 pub fn user_current_put_subscription(
5972 &self,
5973 owner: &str,
5974 repo: &str,
5975 ) -> Request<'_, endpoints::UserCurrentPutSubscription<'_>, WatchInfo> {
5976 endpoints::UserCurrentPutSubscription { owner, repo }
5977 .make_request()
5978 .wrap::<_, _>(self)
5979 }
5980
5981 pub fn user_current_delete_subscription(
5986 &self,
5987 owner: &str,
5988 repo: &str,
5989 ) -> Request<'_, endpoints::UserCurrentDeleteSubscription<'_>, ()> {
5990 endpoints::UserCurrentDeleteSubscription { owner, repo }
5991 .make_request()
5992 .wrap::<_, _>(self)
5993 }
5994
5995 pub fn repo_sync_fork_default_info(
6000 &self,
6001 owner: &str,
6002 repo: &str,
6003 ) -> Request<'_, endpoints::RepoSyncForkDefaultInfo<'_>, SyncForkInfo> {
6004 endpoints::RepoSyncForkDefaultInfo { owner, repo }
6005 .make_request()
6006 .wrap::<_, _>(self)
6007 }
6008
6009 pub fn repo_sync_fork_default(
6014 &self,
6015 owner: &str,
6016 repo: &str,
6017 ) -> Request<'_, endpoints::RepoSyncForkDefault<'_>, ()> {
6018 endpoints::RepoSyncForkDefault { owner, repo }
6019 .make_request()
6020 .wrap::<_, _>(self)
6021 }
6022
6023 pub fn repo_sync_fork_branch_info(
6029 &self,
6030 owner: &str,
6031 repo: &str,
6032 branch: &str,
6033 ) -> Request<'_, endpoints::RepoSyncForkBranchInfo<'_>, SyncForkInfo> {
6034 endpoints::RepoSyncForkBranchInfo {
6035 owner,
6036 repo,
6037 branch,
6038 }
6039 .make_request()
6040 .wrap::<_, _>(self)
6041 }
6042
6043 pub fn repo_sync_fork_branch(
6049 &self,
6050 owner: &str,
6051 repo: &str,
6052 branch: &str,
6053 ) -> Request<'_, endpoints::RepoSyncForkBranch<'_>, ()> {
6054 endpoints::RepoSyncForkBranch {
6055 owner,
6056 repo,
6057 branch,
6058 }
6059 .make_request()
6060 .wrap::<_, _>(self)
6061 }
6062
6063 pub fn repo_list_tag_protection(
6068 &self,
6069 owner: &str,
6070 repo: &str,
6071 ) -> Request<'_, endpoints::RepoListTagProtection<'_>, Vec<TagProtection>> {
6072 endpoints::RepoListTagProtection { owner, repo }
6073 .make_request()
6074 .wrap::<_, _>(self)
6075 }
6076
6077 pub fn repo_create_tag_protection(
6083 &self,
6084 owner: &str,
6085 repo: &str,
6086 body: CreateTagProtectionOption,
6087 ) -> Request<'_, endpoints::RepoCreateTagProtection<'_>, TagProtection> {
6088 endpoints::RepoCreateTagProtection {
6089 owner,
6090 repo,
6091 body: body,
6092 }
6093 .make_request()
6094 .wrap::<_, _>(self)
6095 }
6096
6097 pub fn repo_get_tag_protection(
6103 &self,
6104 owner: &str,
6105 repo: &str,
6106 id: i64,
6107 ) -> Request<'_, endpoints::RepoGetTagProtection<'_>, TagProtection> {
6108 endpoints::RepoGetTagProtection { owner, repo, id }
6109 .make_request()
6110 .wrap::<_, _>(self)
6111 }
6112
6113 pub fn repo_delete_tag_protection(
6119 &self,
6120 owner: &str,
6121 repo: &str,
6122 id: i64,
6123 ) -> Request<'_, endpoints::RepoDeleteTagProtection<'_>, ()> {
6124 endpoints::RepoDeleteTagProtection { owner, repo, id }
6125 .make_request()
6126 .wrap::<_, _>(self)
6127 }
6128
6129 pub fn repo_edit_tag_protection(
6136 &self,
6137 owner: &str,
6138 repo: &str,
6139 id: i64,
6140 body: EditTagProtectionOption,
6141 ) -> Request<'_, endpoints::RepoEditTagProtection<'_>, TagProtection> {
6142 endpoints::RepoEditTagProtection {
6143 owner,
6144 repo,
6145 id,
6146 body: body,
6147 }
6148 .make_request()
6149 .wrap::<_, _>(self)
6150 }
6151
6152 pub fn repo_list_tags(
6157 &self,
6158 owner: &str,
6159 repo: &str,
6160 ) -> Request<'_, endpoints::RepoListTags<'_>, (TagListHeaders, Vec<Tag>)> {
6161 endpoints::RepoListTags { owner, repo }
6162 .make_request()
6163 .wrap::<_, _>(self)
6164 }
6165
6166 pub fn repo_create_tag(
6172 &self,
6173 owner: &str,
6174 repo: &str,
6175 body: CreateTagOption,
6176 ) -> Request<'_, endpoints::RepoCreateTag<'_>, Tag> {
6177 endpoints::RepoCreateTag {
6178 owner,
6179 repo,
6180 body: body,
6181 }
6182 .make_request()
6183 .wrap::<_, _>(self)
6184 }
6185
6186 pub fn repo_get_tag(
6192 &self,
6193 owner: &str,
6194 repo: &str,
6195 tag: &str,
6196 ) -> Request<'_, endpoints::RepoGetTag<'_>, Tag> {
6197 endpoints::RepoGetTag { owner, repo, tag }
6198 .make_request()
6199 .wrap::<_, _>(self)
6200 }
6201
6202 pub fn repo_delete_tag(
6208 &self,
6209 owner: &str,
6210 repo: &str,
6211 tag: &str,
6212 ) -> Request<'_, endpoints::RepoDeleteTag<'_>, ()> {
6213 endpoints::RepoDeleteTag { owner, repo, tag }
6214 .make_request()
6215 .wrap::<_, _>(self)
6216 }
6217
6218 pub fn repo_list_teams(
6223 &self,
6224 owner: &str,
6225 repo: &str,
6226 ) -> Request<'_, endpoints::RepoListTeams<'_>, Vec<Team>> {
6227 endpoints::RepoListTeams { owner, repo }
6228 .make_request()
6229 .wrap::<_, _>(self)
6230 }
6231
6232 pub fn repo_check_team(
6238 &self,
6239 owner: &str,
6240 repo: &str,
6241 team: &str,
6242 ) -> Request<'_, endpoints::RepoCheckTeam<'_>, Team> {
6243 endpoints::RepoCheckTeam { owner, repo, team }
6244 .make_request()
6245 .wrap::<_, _>(self)
6246 }
6247
6248 pub fn repo_add_team(
6254 &self,
6255 owner: &str,
6256 repo: &str,
6257 team: &str,
6258 ) -> Request<'_, endpoints::RepoAddTeam<'_>, ()> {
6259 endpoints::RepoAddTeam { owner, repo, team }
6260 .make_request()
6261 .wrap::<_, _>(self)
6262 }
6263
6264 pub fn repo_delete_team(
6270 &self,
6271 owner: &str,
6272 repo: &str,
6273 team: &str,
6274 ) -> Request<'_, endpoints::RepoDeleteTeam<'_>, ()> {
6275 endpoints::RepoDeleteTeam { owner, repo, team }
6276 .make_request()
6277 .wrap::<_, _>(self)
6278 }
6279
6280 pub fn repo_tracked_times(
6285 &self,
6286 owner: &str,
6287 repo: &str,
6288 query: RepoTrackedTimesQuery,
6289 ) -> Request<'_, endpoints::RepoTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
6290 {
6291 endpoints::RepoTrackedTimes { owner, repo, query }
6292 .make_request()
6293 .wrap::<_, _>(self)
6294 }
6295
6296 pub fn user_tracked_times(
6302 &self,
6303 owner: &str,
6304 repo: &str,
6305 user: &str,
6306 ) -> Request<'_, endpoints::UserTrackedTimes<'_>, Vec<TrackedTime>> {
6307 endpoints::UserTrackedTimes { owner, repo, user }
6308 .make_request()
6309 .wrap::<_, _>(self)
6310 }
6311
6312 pub fn repo_list_topics(
6317 &self,
6318 owner: &str,
6319 repo: &str,
6320 ) -> Request<'_, endpoints::RepoListTopics<'_>, TopicName> {
6321 endpoints::RepoListTopics { owner, repo }
6322 .make_request()
6323 .wrap::<_, _>(self)
6324 }
6325
6326 pub fn repo_update_topics(
6332 &self,
6333 owner: &str,
6334 repo: &str,
6335 body: RepoTopicOptions,
6336 ) -> Request<'_, endpoints::RepoUpdateTopics<'_>, ()> {
6337 endpoints::RepoUpdateTopics {
6338 owner,
6339 repo,
6340 body: body,
6341 }
6342 .make_request()
6343 .wrap::<_, _>(self)
6344 }
6345
6346 pub fn repo_add_topic(
6352 &self,
6353 owner: &str,
6354 repo: &str,
6355 topic: &str,
6356 ) -> Request<'_, endpoints::RepoAddTopic<'_>, ()> {
6357 endpoints::RepoAddTopic { owner, repo, topic }
6358 .make_request()
6359 .wrap::<_, _>(self)
6360 }
6361
6362 pub fn repo_delete_topic(
6368 &self,
6369 owner: &str,
6370 repo: &str,
6371 topic: &str,
6372 ) -> Request<'_, endpoints::RepoDeleteTopic<'_>, ()> {
6373 endpoints::RepoDeleteTopic { owner, repo, topic }
6374 .make_request()
6375 .wrap::<_, _>(self)
6376 }
6377
6378 pub fn repo_transfer(
6386 &self,
6387 owner: &str,
6388 repo: &str,
6389 body: TransferRepoOption,
6390 ) -> Request<'_, endpoints::RepoTransfer<'_>, Repository> {
6391 endpoints::RepoTransfer {
6392 owner,
6393 repo,
6394 body: body,
6395 }
6396 .make_request()
6397 .wrap::<_, _>(self)
6398 }
6399
6400 pub fn accept_repo_transfer(
6405 &self,
6406 owner: &str,
6407 repo: &str,
6408 ) -> Request<'_, endpoints::AcceptRepoTransfer<'_>, Repository> {
6409 endpoints::AcceptRepoTransfer { owner, repo }
6410 .make_request()
6411 .wrap::<_, _>(self)
6412 }
6413
6414 pub fn reject_repo_transfer(
6419 &self,
6420 owner: &str,
6421 repo: &str,
6422 ) -> Request<'_, endpoints::RejectRepoTransfer<'_>, Repository> {
6423 endpoints::RejectRepoTransfer { owner, repo }
6424 .make_request()
6425 .wrap::<_, _>(self)
6426 }
6427
6428 pub fn repo_create_wiki_page(
6434 &self,
6435 owner: &str,
6436 repo: &str,
6437 body: CreateWikiPageOptions,
6438 ) -> Request<'_, endpoints::RepoCreateWikiPage<'_>, WikiPage> {
6439 endpoints::RepoCreateWikiPage {
6440 owner,
6441 repo,
6442 body: body,
6443 }
6444 .make_request()
6445 .wrap::<_, _>(self)
6446 }
6447
6448 pub fn repo_get_wiki_page(
6454 &self,
6455 owner: &str,
6456 repo: &str,
6457 page_name: &str,
6458 ) -> Request<'_, endpoints::RepoGetWikiPage<'_>, WikiPage> {
6459 endpoints::RepoGetWikiPage {
6460 owner,
6461 repo,
6462 page_name,
6463 }
6464 .make_request()
6465 .wrap::<_, _>(self)
6466 }
6467
6468 pub fn repo_delete_wiki_page(
6474 &self,
6475 owner: &str,
6476 repo: &str,
6477 page_name: &str,
6478 ) -> Request<'_, endpoints::RepoDeleteWikiPage<'_>, ()> {
6479 endpoints::RepoDeleteWikiPage {
6480 owner,
6481 repo,
6482 page_name,
6483 }
6484 .make_request()
6485 .wrap::<_, _>(self)
6486 }
6487
6488 pub fn repo_edit_wiki_page(
6495 &self,
6496 owner: &str,
6497 repo: &str,
6498 page_name: &str,
6499 body: CreateWikiPageOptions,
6500 ) -> Request<'_, endpoints::RepoEditWikiPage<'_>, WikiPage> {
6501 endpoints::RepoEditWikiPage {
6502 owner,
6503 repo,
6504 page_name,
6505 body: body,
6506 }
6507 .make_request()
6508 .wrap::<_, _>(self)
6509 }
6510
6511 pub fn repo_get_wiki_pages(
6516 &self,
6517 owner: &str,
6518 repo: &str,
6519 ) -> Request<'_, endpoints::RepoGetWikiPages<'_>, (WikiPageListHeaders, Vec<WikiPageMetaData>)>
6520 {
6521 endpoints::RepoGetWikiPages { owner, repo }
6522 .make_request()
6523 .wrap::<_, _>(self)
6524 }
6525
6526 pub fn repo_get_wiki_page_revisions(
6532 &self,
6533 owner: &str,
6534 repo: &str,
6535 page_name: &str,
6536 ) -> Request<'_, endpoints::RepoGetWikiPageRevisions<'_>, (WikiCommitListHeaders, WikiCommitList)>
6537 {
6538 endpoints::RepoGetWikiPageRevisions {
6539 owner,
6540 repo,
6541 page_name,
6542 }
6543 .make_request()
6544 .wrap::<_, _>(self)
6545 }
6546
6547 pub fn generate_repo(
6553 &self,
6554 template_owner: &str,
6555 template_repo: &str,
6556 body: GenerateRepoOption,
6557 ) -> Request<'_, endpoints::GenerateRepo<'_>, Repository> {
6558 endpoints::GenerateRepo {
6559 template_owner,
6560 template_repo,
6561 body: body,
6562 }
6563 .make_request()
6564 .wrap::<_, _>(self)
6565 }
6566
6567 pub fn repo_get_by_id(&self, id: i64) -> Request<'_, endpoints::RepoGetById, Repository> {
6571 endpoints::RepoGetById { id }
6572 .make_request()
6573 .wrap::<_, _>(self)
6574 }
6575
6576 pub fn get_general_api_settings(
6578 &self,
6579 ) -> Request<'_, endpoints::GetGeneralApiSettings, GeneralAPISettings> {
6580 endpoints::GetGeneralApiSettings {}
6581 .make_request()
6582 .wrap::<_, _>(self)
6583 }
6584
6585 pub fn get_general_attachment_settings(
6587 &self,
6588 ) -> Request<'_, endpoints::GetGeneralAttachmentSettings, GeneralAttachmentSettings> {
6589 endpoints::GetGeneralAttachmentSettings {}
6590 .make_request()
6591 .wrap::<_, _>(self)
6592 }
6593
6594 pub fn get_general_repository_settings(
6596 &self,
6597 ) -> Request<'_, endpoints::GetGeneralRepositorySettings, GeneralRepoSettings> {
6598 endpoints::GetGeneralRepositorySettings {}
6599 .make_request()
6600 .wrap::<_, _>(self)
6601 }
6602
6603 pub fn get_general_ui_settings(
6605 &self,
6606 ) -> Request<'_, endpoints::GetGeneralUiSettings, GeneralUISettings> {
6607 endpoints::GetGeneralUiSettings {}
6608 .make_request()
6609 .wrap::<_, _>(self)
6610 }
6611
6612 pub fn get_signing_key(&self) -> Request<'_, endpoints::GetSigningKey, String> {
6614 endpoints::GetSigningKey {}
6615 .make_request()
6616 .wrap::<_, _>(self)
6617 }
6618
6619 pub fn get_ssh_signing_key(&self) -> Request<'_, endpoints::GetSshSigningKey, String> {
6621 endpoints::GetSshSigningKey {}
6622 .make_request()
6623 .wrap::<_, _>(self)
6624 }
6625
6626 pub fn org_get_team(&self, id: i64) -> Request<'_, endpoints::OrgGetTeam, Team> {
6630 endpoints::OrgGetTeam { id }
6631 .make_request()
6632 .wrap::<_, _>(self)
6633 }
6634
6635 pub fn org_delete_team(&self, id: i64) -> Request<'_, endpoints::OrgDeleteTeam, ()> {
6639 endpoints::OrgDeleteTeam { id }
6640 .make_request()
6641 .wrap::<_, _>(self)
6642 }
6643
6644 pub fn org_edit_team(
6649 &self,
6650 id: i64,
6651 body: EditTeamOption,
6652 ) -> Request<'_, endpoints::OrgEditTeam, Team> {
6653 endpoints::OrgEditTeam { id, body: body }
6654 .make_request()
6655 .wrap::<_, _>(self)
6656 }
6657
6658 pub fn org_list_team_activity_feeds(
6662 &self,
6663 id: i64,
6664 query: OrgListTeamActivityFeedsQuery,
6665 ) -> Request<'_, endpoints::OrgListTeamActivityFeeds, (ActivityFeedsListHeaders, Vec<Activity>)>
6666 {
6667 endpoints::OrgListTeamActivityFeeds { id, query }
6668 .make_request()
6669 .wrap::<_, _>(self)
6670 }
6671
6672 pub fn org_list_team_members(
6676 &self,
6677 id: i64,
6678 ) -> Request<'_, endpoints::OrgListTeamMembers, (UserListHeaders, Vec<User>)> {
6679 endpoints::OrgListTeamMembers { id }
6680 .make_request()
6681 .wrap::<_, _>(self)
6682 }
6683
6684 pub fn org_list_team_member(
6689 &self,
6690 id: i64,
6691 username: &str,
6692 ) -> Request<'_, endpoints::OrgListTeamMember<'_>, User> {
6693 endpoints::OrgListTeamMember { id, username }
6694 .make_request()
6695 .wrap::<_, _>(self)
6696 }
6697
6698 pub fn org_add_team_member(
6703 &self,
6704 id: i64,
6705 username: &str,
6706 ) -> Request<'_, endpoints::OrgAddTeamMember<'_>, ()> {
6707 endpoints::OrgAddTeamMember { id, username }
6708 .make_request()
6709 .wrap::<_, _>(self)
6710 }
6711
6712 pub fn org_remove_team_member(
6717 &self,
6718 id: i64,
6719 username: &str,
6720 ) -> Request<'_, endpoints::OrgRemoveTeamMember<'_>, ()> {
6721 endpoints::OrgRemoveTeamMember { id, username }
6722 .make_request()
6723 .wrap::<_, _>(self)
6724 }
6725
6726 pub fn org_list_team_repos(
6730 &self,
6731 id: i64,
6732 ) -> Request<'_, endpoints::OrgListTeamRepos, (RepositoryListHeaders, Vec<Repository>)> {
6733 endpoints::OrgListTeamRepos { id }
6734 .make_request()
6735 .wrap::<_, _>(self)
6736 }
6737
6738 pub fn org_list_team_repo(
6744 &self,
6745 id: i64,
6746 org: &str,
6747 repo: &str,
6748 ) -> Request<'_, endpoints::OrgListTeamRepo<'_>, Repository> {
6749 endpoints::OrgListTeamRepo { id, org, repo }
6750 .make_request()
6751 .wrap::<_, _>(self)
6752 }
6753
6754 pub fn org_add_team_repository(
6760 &self,
6761 id: i64,
6762 org: &str,
6763 repo: &str,
6764 ) -> Request<'_, endpoints::OrgAddTeamRepository<'_>, ()> {
6765 endpoints::OrgAddTeamRepository { id, org, repo }
6766 .make_request()
6767 .wrap::<_, _>(self)
6768 }
6769
6770 pub fn org_remove_team_repository(
6776 &self,
6777 id: i64,
6778 org: &str,
6779 repo: &str,
6780 ) -> Request<'_, endpoints::OrgRemoveTeamRepository<'_>, ()> {
6781 endpoints::OrgRemoveTeamRepository { id, org, repo }
6782 .make_request()
6783 .wrap::<_, _>(self)
6784 }
6785
6786 pub fn topic_search(
6789 &self,
6790 query: TopicSearchQuery,
6791 ) -> Request<'_, endpoints::TopicSearch, TopicSearchResults> {
6792 endpoints::TopicSearch { query }
6793 .make_request()
6794 .wrap::<_, _>(self)
6795 }
6796
6797 pub fn user_get_current(&self) -> Request<'_, endpoints::UserGetCurrent, User> {
6799 endpoints::UserGetCurrent {}
6800 .make_request()
6801 .wrap::<_, _>(self)
6802 }
6803
6804 pub fn get_user_runners(
6807 &self,
6808 query: GetUserRunnersQuery,
6809 ) -> Request<'_, endpoints::GetUserRunners, (ActionRunnerListHeaders, Vec<ActionRunner>)> {
6810 endpoints::GetUserRunners { query }
6811 .make_request()
6812 .wrap::<_, _>(self)
6813 }
6814
6815 pub fn register_user_runner(
6819 &self,
6820 body: RegisterRunnerOptions,
6821 ) -> Request<'_, endpoints::RegisterUserRunner, RegisterRunnerResponse> {
6822 endpoints::RegisterUserRunner { body: body }
6823 .make_request()
6824 .wrap::<_, _>(self)
6825 }
6826
6827 pub fn user_search_run_jobs(
6830 &self,
6831 query: UserSearchRunJobsQuery,
6832 ) -> Request<'_, endpoints::UserSearchRunJobs, Vec<ActionRunJob>> {
6833 endpoints::UserSearchRunJobs { query }
6834 .make_request()
6835 .wrap::<_, _>(self)
6836 }
6837
6838 pub fn user_get_runner_registration_token(
6840 &self,
6841 ) -> Request<'_, endpoints::UserGetRunnerRegistrationToken, RegistrationToken> {
6842 endpoints::UserGetRunnerRegistrationToken {}
6843 .make_request()
6844 .wrap::<_, _>(self)
6845 }
6846
6847 pub fn get_user_runner(
6851 &self,
6852 runner_id: &str,
6853 ) -> Request<'_, endpoints::GetUserRunner<'_>, ActionRunner> {
6854 endpoints::GetUserRunner { runner_id }
6855 .make_request()
6856 .wrap::<_, _>(self)
6857 }
6858
6859 pub fn delete_user_runner(
6863 &self,
6864 runner_id: &str,
6865 ) -> Request<'_, endpoints::DeleteUserRunner<'_>, ()> {
6866 endpoints::DeleteUserRunner { runner_id }
6867 .make_request()
6868 .wrap::<_, _>(self)
6869 }
6870
6871 pub fn update_user_secret(
6876 &self,
6877 secretname: &str,
6878 body: CreateOrUpdateSecretOption,
6879 ) -> Request<'_, endpoints::UpdateUserSecret<'_>, ()> {
6880 endpoints::UpdateUserSecret {
6881 secretname,
6882 body: body,
6883 }
6884 .make_request()
6885 .wrap::<_, _>(self)
6886 }
6887
6888 pub fn delete_user_secret(
6892 &self,
6893 secretname: &str,
6894 ) -> Request<'_, endpoints::DeleteUserSecret<'_>, ()> {
6895 endpoints::DeleteUserSecret { secretname }
6896 .make_request()
6897 .wrap::<_, _>(self)
6898 }
6899
6900 pub fn get_user_variables_list(
6903 &self,
6904 ) -> Request<'_, endpoints::GetUserVariablesList, (VariableListHeaders, Vec<ActionVariable>)>
6905 {
6906 endpoints::GetUserVariablesList {}
6907 .make_request()
6908 .wrap::<_, _>(self)
6909 }
6910
6911 pub fn get_user_variable(
6915 &self,
6916 variablename: &str,
6917 ) -> Request<'_, endpoints::GetUserVariable<'_>, ActionVariable> {
6918 endpoints::GetUserVariable { variablename }
6919 .make_request()
6920 .wrap::<_, _>(self)
6921 }
6922
6923 pub fn update_user_variable(
6928 &self,
6929 variablename: &str,
6930 body: UpdateVariableOption,
6931 ) -> Request<'_, endpoints::UpdateUserVariable<'_>, ()> {
6932 endpoints::UpdateUserVariable {
6933 variablename,
6934 body: body,
6935 }
6936 .make_request()
6937 .wrap::<_, _>(self)
6938 }
6939
6940 pub fn create_user_variable(
6945 &self,
6946 variablename: &str,
6947 body: CreateVariableOption,
6948 ) -> Request<'_, endpoints::CreateUserVariable<'_>, ()> {
6949 endpoints::CreateUserVariable {
6950 variablename,
6951 body: body,
6952 }
6953 .make_request()
6954 .wrap::<_, _>(self)
6955 }
6956
6957 pub fn delete_user_variable(
6961 &self,
6962 variablename: &str,
6963 ) -> Request<'_, endpoints::DeleteUserVariable<'_>, ()> {
6964 endpoints::DeleteUserVariable { variablename }
6965 .make_request()
6966 .wrap::<_, _>(self)
6967 }
6968
6969 pub fn user_get_oauth2_applications(
6972 &self,
6973 ) -> Request<
6974 '_,
6975 endpoints::UserGetOAuth2Applications,
6976 (OAuth2ApplicationListHeaders, Vec<OAuth2Application>),
6977 > {
6978 endpoints::UserGetOAuth2Applications {}
6979 .make_request()
6980 .wrap::<_, _>(self)
6981 }
6982
6983 pub fn user_create_oauth2_application(
6987 &self,
6988 body: CreateOAuth2ApplicationOptions,
6989 ) -> Request<'_, endpoints::UserCreateOAuth2Application, OAuth2Application> {
6990 endpoints::UserCreateOAuth2Application { body: body }
6991 .make_request()
6992 .wrap::<_, _>(self)
6993 }
6994
6995 pub fn user_get_oauth2_application(
6999 &self,
7000 id: i64,
7001 ) -> Request<'_, endpoints::UserGetOAuth2Application, OAuth2Application> {
7002 endpoints::UserGetOAuth2Application { id }
7003 .make_request()
7004 .wrap::<_, _>(self)
7005 }
7006
7007 pub fn user_delete_oauth2_application(
7011 &self,
7012 id: i64,
7013 ) -> Request<'_, endpoints::UserDeleteOAuth2Application, ()> {
7014 endpoints::UserDeleteOAuth2Application { id }
7015 .make_request()
7016 .wrap::<_, _>(self)
7017 }
7018
7019 pub fn user_update_oauth2_application(
7024 &self,
7025 id: i64,
7026 body: CreateOAuth2ApplicationOptions,
7027 ) -> Request<'_, endpoints::UserUpdateOAuth2Application, OAuth2Application> {
7028 endpoints::UserUpdateOAuth2Application { id, body: body }
7029 .make_request()
7030 .wrap::<_, _>(self)
7031 }
7032
7033 pub fn user_update_avatar(
7037 &self,
7038 body: UpdateUserAvatarOption,
7039 ) -> Request<'_, endpoints::UserUpdateAvatar, ()> {
7040 endpoints::UserUpdateAvatar { body: body }
7041 .make_request()
7042 .wrap::<_, _>(self)
7043 }
7044
7045 pub fn user_delete_avatar(&self) -> Request<'_, endpoints::UserDeleteAvatar, ()> {
7047 endpoints::UserDeleteAvatar {}
7048 .make_request()
7049 .wrap::<_, _>(self)
7050 }
7051
7052 pub fn user_block_user(&self, username: &str) -> Request<'_, endpoints::UserBlockUser<'_>, ()> {
7056 endpoints::UserBlockUser { username }
7057 .make_request()
7058 .wrap::<_, _>(self)
7059 }
7060
7061 pub fn user_list_emails(&self) -> Request<'_, endpoints::UserListEmails, Vec<Email>> {
7063 endpoints::UserListEmails {}
7064 .make_request()
7065 .wrap::<_, _>(self)
7066 }
7067
7068 pub fn user_add_email(
7072 &self,
7073 body: CreateEmailOption,
7074 ) -> Request<'_, endpoints::UserAddEmail, Vec<Email>> {
7075 endpoints::UserAddEmail { body: body }
7076 .make_request()
7077 .wrap::<_, _>(self)
7078 }
7079
7080 pub fn user_delete_email(
7084 &self,
7085 body: DeleteEmailOption,
7086 ) -> Request<'_, endpoints::UserDeleteEmail, ()> {
7087 endpoints::UserDeleteEmail { body: body }
7088 .make_request()
7089 .wrap::<_, _>(self)
7090 }
7091
7092 pub fn user_current_list_followers(
7095 &self,
7096 ) -> Request<'_, endpoints::UserCurrentListFollowers, (UserListHeaders, Vec<User>)> {
7097 endpoints::UserCurrentListFollowers {}
7098 .make_request()
7099 .wrap::<_, _>(self)
7100 }
7101
7102 pub fn user_current_list_following(
7105 &self,
7106 ) -> Request<'_, endpoints::UserCurrentListFollowing, (UserListHeaders, Vec<User>)> {
7107 endpoints::UserCurrentListFollowing {}
7108 .make_request()
7109 .wrap::<_, _>(self)
7110 }
7111
7112 pub fn user_current_check_following(
7116 &self,
7117 username: &str,
7118 ) -> Request<'_, endpoints::UserCurrentCheckFollowing<'_>, ()> {
7119 endpoints::UserCurrentCheckFollowing { username }
7120 .make_request()
7121 .wrap::<_, _>(self)
7122 }
7123
7124 pub fn user_current_put_follow(
7128 &self,
7129 username: &str,
7130 ) -> Request<'_, endpoints::UserCurrentPutFollow<'_>, ()> {
7131 endpoints::UserCurrentPutFollow { username }
7132 .make_request()
7133 .wrap::<_, _>(self)
7134 }
7135
7136 pub fn user_current_delete_follow(
7140 &self,
7141 username: &str,
7142 ) -> Request<'_, endpoints::UserCurrentDeleteFollow<'_>, ()> {
7143 endpoints::UserCurrentDeleteFollow { username }
7144 .make_request()
7145 .wrap::<_, _>(self)
7146 }
7147
7148 pub fn get_verification_token(&self) -> Request<'_, endpoints::GetVerificationToken, String> {
7150 endpoints::GetVerificationToken {}
7151 .make_request()
7152 .wrap::<_, _>(self)
7153 }
7154
7155 pub fn user_verify_gpg_key(
7159 &self,
7160 body: VerifyGPGKeyOption,
7161 ) -> Request<'_, endpoints::UserVerifyGpgKey, GPGKey> {
7162 endpoints::UserVerifyGpgKey { body: body }
7163 .make_request()
7164 .wrap::<_, _>(self)
7165 }
7166
7167 pub fn user_current_list_gpg_keys(
7170 &self,
7171 ) -> Request<'_, endpoints::UserCurrentListGpgKeys, (GpgKeyListHeaders, Vec<GPGKey>)> {
7172 endpoints::UserCurrentListGpgKeys {}
7173 .make_request()
7174 .wrap::<_, _>(self)
7175 }
7176
7177 pub fn user_current_post_gpg_key(
7181 &self,
7182 form: CreateGPGKeyOption,
7183 ) -> Request<'_, endpoints::UserCurrentPostGpgKey, GPGKey> {
7184 endpoints::UserCurrentPostGpgKey { body: form }
7185 .make_request()
7186 .wrap::<_, _>(self)
7187 }
7188
7189 pub fn user_current_get_gpg_key(
7193 &self,
7194 id: i64,
7195 ) -> Request<'_, endpoints::UserCurrentGetGpgKey, GPGKey> {
7196 endpoints::UserCurrentGetGpgKey { id }
7197 .make_request()
7198 .wrap::<_, _>(self)
7199 }
7200
7201 pub fn user_current_delete_gpg_key(
7205 &self,
7206 id: i64,
7207 ) -> Request<'_, endpoints::UserCurrentDeleteGpgKey, ()> {
7208 endpoints::UserCurrentDeleteGpgKey { id }
7209 .make_request()
7210 .wrap::<_, _>(self)
7211 }
7212
7213 pub fn user_list_hooks(&self) -> Request<'_, endpoints::UserListHooks, Vec<Hook>> {
7216 endpoints::UserListHooks {}
7217 .make_request()
7218 .wrap::<_, _>(self)
7219 }
7220
7221 pub fn user_create_hook(
7225 &self,
7226 body: CreateHookOption,
7227 ) -> Request<'_, endpoints::UserCreateHook, Hook> {
7228 endpoints::UserCreateHook { body: body }
7229 .make_request()
7230 .wrap::<_, _>(self)
7231 }
7232
7233 pub fn user_get_hook(&self, id: i64) -> Request<'_, endpoints::UserGetHook, Hook> {
7237 endpoints::UserGetHook { id }
7238 .make_request()
7239 .wrap::<_, _>(self)
7240 }
7241
7242 pub fn user_delete_hook(&self, id: i64) -> Request<'_, endpoints::UserDeleteHook, ()> {
7246 endpoints::UserDeleteHook { id }
7247 .make_request()
7248 .wrap::<_, _>(self)
7249 }
7250
7251 pub fn user_edit_hook(
7256 &self,
7257 id: i64,
7258 body: EditHookOption,
7259 ) -> Request<'_, endpoints::UserEditHook, Hook> {
7260 endpoints::UserEditHook { id, body: body }
7261 .make_request()
7262 .wrap::<_, _>(self)
7263 }
7264
7265 pub fn user_current_list_keys(
7268 &self,
7269 query: UserCurrentListKeysQuery,
7270 ) -> Request<'_, endpoints::UserCurrentListKeys, (PublicKeyListHeaders, Vec<PublicKey>)> {
7271 endpoints::UserCurrentListKeys { query }
7272 .make_request()
7273 .wrap::<_, _>(self)
7274 }
7275
7276 pub fn user_current_post_key(
7280 &self,
7281 body: CreateKeyOption,
7282 ) -> Request<'_, endpoints::UserCurrentPostKey, PublicKey> {
7283 endpoints::UserCurrentPostKey { body: body }
7284 .make_request()
7285 .wrap::<_, _>(self)
7286 }
7287
7288 pub fn user_current_get_key(
7292 &self,
7293 id: i64,
7294 ) -> Request<'_, endpoints::UserCurrentGetKey, PublicKey> {
7295 endpoints::UserCurrentGetKey { id }
7296 .make_request()
7297 .wrap::<_, _>(self)
7298 }
7299
7300 pub fn user_current_delete_key(
7304 &self,
7305 id: i64,
7306 ) -> Request<'_, endpoints::UserCurrentDeleteKey, ()> {
7307 endpoints::UserCurrentDeleteKey { id }
7308 .make_request()
7309 .wrap::<_, _>(self)
7310 }
7311
7312 pub fn user_list_blocked_users(
7315 &self,
7316 ) -> Request<'_, endpoints::UserListBlockedUsers, (BlockedUserListHeaders, Vec<BlockedUser>)>
7317 {
7318 endpoints::UserListBlockedUsers {}
7319 .make_request()
7320 .wrap::<_, _>(self)
7321 }
7322
7323 pub fn org_list_current_user_orgs(
7326 &self,
7327 ) -> Request<'_, endpoints::OrgListCurrentUserOrgs, Vec<Organization>> {
7328 endpoints::OrgListCurrentUserOrgs {}
7329 .make_request()
7330 .wrap::<_, _>(self)
7331 }
7332
7333 pub fn user_get_quota(&self) -> Request<'_, endpoints::UserGetQuota, QuotaInfo> {
7335 endpoints::UserGetQuota {}.make_request().wrap::<_, _>(self)
7336 }
7337
7338 pub fn user_list_quota_artifacts(
7341 &self,
7342 ) -> Request<
7343 '_,
7344 endpoints::UserListQuotaArtifacts,
7345 (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>),
7346 > {
7347 endpoints::UserListQuotaArtifacts {}
7348 .make_request()
7349 .wrap::<_, _>(self)
7350 }
7351
7352 pub fn user_list_quota_attachments(
7355 &self,
7356 ) -> Request<
7357 '_,
7358 endpoints::UserListQuotaAttachments,
7359 (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>),
7360 > {
7361 endpoints::UserListQuotaAttachments {}
7362 .make_request()
7363 .wrap::<_, _>(self)
7364 }
7365
7366 pub fn user_check_quota(
7369 &self,
7370 query: UserCheckQuotaQuery,
7371 ) -> Request<'_, endpoints::UserCheckQuota, bool> {
7372 endpoints::UserCheckQuota { query }
7373 .make_request()
7374 .wrap::<_, _>(self)
7375 }
7376
7377 pub fn user_list_quota_packages(
7380 &self,
7381 ) -> Request<
7382 '_,
7383 endpoints::UserListQuotaPackages,
7384 (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>),
7385 > {
7386 endpoints::UserListQuotaPackages {}
7387 .make_request()
7388 .wrap::<_, _>(self)
7389 }
7390
7391 pub fn user_current_list_repos(
7394 &self,
7395 query: UserCurrentListReposQuery,
7396 ) -> Request<'_, endpoints::UserCurrentListRepos, (RepositoryListHeaders, Vec<Repository>)>
7397 {
7398 endpoints::UserCurrentListRepos { query }
7399 .make_request()
7400 .wrap::<_, _>(self)
7401 }
7402
7403 pub fn create_current_user_repo(
7407 &self,
7408 body: CreateRepoOption,
7409 ) -> Request<'_, endpoints::CreateCurrentUserRepo, Repository> {
7410 endpoints::CreateCurrentUserRepo { body: body }
7411 .make_request()
7412 .wrap::<_, _>(self)
7413 }
7414
7415 pub fn get_user_settings(&self) -> Request<'_, endpoints::GetUserSettings, UserSettings> {
7417 endpoints::GetUserSettings {}
7418 .make_request()
7419 .wrap::<_, _>(self)
7420 }
7421
7422 pub fn update_user_settings(
7426 &self,
7427 body: UserSettingsOptions,
7428 ) -> Request<'_, endpoints::UpdateUserSettings, UserSettings> {
7429 endpoints::UpdateUserSettings { body: body }
7430 .make_request()
7431 .wrap::<_, _>(self)
7432 }
7433
7434 pub fn user_current_list_starred(
7437 &self,
7438 ) -> Request<'_, endpoints::UserCurrentListStarred, (RepositoryListHeaders, Vec<Repository>)>
7439 {
7440 endpoints::UserCurrentListStarred {}
7441 .make_request()
7442 .wrap::<_, _>(self)
7443 }
7444
7445 pub fn user_current_check_starring(
7450 &self,
7451 owner: &str,
7452 repo: &str,
7453 ) -> Request<'_, endpoints::UserCurrentCheckStarring<'_>, ()> {
7454 endpoints::UserCurrentCheckStarring { owner, repo }
7455 .make_request()
7456 .wrap::<_, _>(self)
7457 }
7458
7459 pub fn user_current_put_star(
7464 &self,
7465 owner: &str,
7466 repo: &str,
7467 ) -> Request<'_, endpoints::UserCurrentPutStar<'_>, ()> {
7468 endpoints::UserCurrentPutStar { owner, repo }
7469 .make_request()
7470 .wrap::<_, _>(self)
7471 }
7472
7473 pub fn user_current_delete_star(
7478 &self,
7479 owner: &str,
7480 repo: &str,
7481 ) -> Request<'_, endpoints::UserCurrentDeleteStar<'_>, ()> {
7482 endpoints::UserCurrentDeleteStar { owner, repo }
7483 .make_request()
7484 .wrap::<_, _>(self)
7485 }
7486
7487 pub fn user_get_stop_watches(
7490 &self,
7491 ) -> Request<'_, endpoints::UserGetStopWatches, (StopWatchListHeaders, Vec<StopWatch>)> {
7492 endpoints::UserGetStopWatches {}
7493 .make_request()
7494 .wrap::<_, _>(self)
7495 }
7496
7497 pub fn user_current_list_subscriptions(
7500 &self,
7501 ) -> Request<
7502 '_,
7503 endpoints::UserCurrentListSubscriptions,
7504 (RepositoryListHeaders, Vec<Repository>),
7505 > {
7506 endpoints::UserCurrentListSubscriptions {}
7507 .make_request()
7508 .wrap::<_, _>(self)
7509 }
7510
7511 pub fn user_list_teams(
7514 &self,
7515 ) -> Request<'_, endpoints::UserListTeams, (TeamListHeaders, Vec<Team>)> {
7516 endpoints::UserListTeams {}
7517 .make_request()
7518 .wrap::<_, _>(self)
7519 }
7520
7521 pub fn user_current_tracked_times(
7524 &self,
7525 query: UserCurrentTrackedTimesQuery,
7526 ) -> Request<'_, endpoints::UserCurrentTrackedTimes, (TrackedTimeListHeaders, Vec<TrackedTime>)>
7527 {
7528 endpoints::UserCurrentTrackedTimes { query }
7529 .make_request()
7530 .wrap::<_, _>(self)
7531 }
7532
7533 pub fn user_unblock_user(
7537 &self,
7538 username: &str,
7539 ) -> Request<'_, endpoints::UserUnblockUser<'_>, ()> {
7540 endpoints::UserUnblockUser { username }
7541 .make_request()
7542 .wrap::<_, _>(self)
7543 }
7544
7545 pub fn user_search(
7548 &self,
7549 query: UserSearchQuery,
7550 ) -> Request<'_, endpoints::UserSearch, UserSearchResults> {
7551 endpoints::UserSearch { query }
7552 .make_request()
7553 .wrap::<_, _>(self)
7554 }
7555
7556 pub fn user_get(&self, username: &str) -> Request<'_, endpoints::UserGet<'_>, User> {
7560 endpoints::UserGet { username }
7561 .make_request()
7562 .wrap::<_, _>(self)
7563 }
7564
7565 pub fn user_list_activity_feeds(
7569 &self,
7570 username: &str,
7571 query: UserListActivityFeedsQuery,
7572 ) -> Request<'_, endpoints::UserListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
7573 {
7574 endpoints::UserListActivityFeeds { username, query }
7575 .make_request()
7576 .wrap::<_, _>(self)
7577 }
7578
7579 pub fn user_list_followers(
7583 &self,
7584 username: &str,
7585 ) -> Request<'_, endpoints::UserListFollowers<'_>, (UserListHeaders, Vec<User>)> {
7586 endpoints::UserListFollowers { username }
7587 .make_request()
7588 .wrap::<_, _>(self)
7589 }
7590
7591 pub fn user_list_following(
7595 &self,
7596 username: &str,
7597 ) -> Request<'_, endpoints::UserListFollowing<'_>, (UserListHeaders, Vec<User>)> {
7598 endpoints::UserListFollowing { username }
7599 .make_request()
7600 .wrap::<_, _>(self)
7601 }
7602
7603 pub fn user_check_following(
7608 &self,
7609 username: &str,
7610 target: &str,
7611 ) -> Request<'_, endpoints::UserCheckFollowing<'_>, ()> {
7612 endpoints::UserCheckFollowing { username, target }
7613 .make_request()
7614 .wrap::<_, _>(self)
7615 }
7616
7617 pub fn user_list_gpg_keys(
7621 &self,
7622 username: &str,
7623 ) -> Request<'_, endpoints::UserListGpgKeys<'_>, (GpgKeyListHeaders, Vec<GPGKey>)> {
7624 endpoints::UserListGpgKeys { username }
7625 .make_request()
7626 .wrap::<_, _>(self)
7627 }
7628
7629 pub fn user_get_heatmap_data(
7633 &self,
7634 username: &str,
7635 ) -> Request<'_, endpoints::UserGetHeatmapData<'_>, Vec<UserHeatmapData>> {
7636 endpoints::UserGetHeatmapData { username }
7637 .make_request()
7638 .wrap::<_, _>(self)
7639 }
7640
7641 pub fn user_list_keys(
7645 &self,
7646 username: &str,
7647 query: UserListKeysQuery,
7648 ) -> Request<'_, endpoints::UserListKeys<'_>, (PublicKeyListHeaders, Vec<PublicKey>)> {
7649 endpoints::UserListKeys { username, query }
7650 .make_request()
7651 .wrap::<_, _>(self)
7652 }
7653
7654 pub fn org_list_user_orgs(
7658 &self,
7659 username: &str,
7660 ) -> Request<'_, endpoints::OrgListUserOrgs<'_>, Vec<Organization>> {
7661 endpoints::OrgListUserOrgs { username }
7662 .make_request()
7663 .wrap::<_, _>(self)
7664 }
7665
7666 pub fn org_get_user_permissions(
7671 &self,
7672 username: &str,
7673 org: &str,
7674 ) -> Request<'_, endpoints::OrgGetUserPermissions<'_>, OrganizationPermissions> {
7675 endpoints::OrgGetUserPermissions { username, org }
7676 .make_request()
7677 .wrap::<_, _>(self)
7678 }
7679
7680 pub fn user_list_repos(
7684 &self,
7685 username: &str,
7686 ) -> Request<'_, endpoints::UserListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)> {
7687 endpoints::UserListRepos { username }
7688 .make_request()
7689 .wrap::<_, _>(self)
7690 }
7691
7692 pub fn user_list_starred(
7696 &self,
7697 username: &str,
7698 ) -> Request<'_, endpoints::UserListStarred<'_>, (RepositoryListHeaders, Vec<Repository>)> {
7699 endpoints::UserListStarred { username }
7700 .make_request()
7701 .wrap::<_, _>(self)
7702 }
7703
7704 pub fn user_list_subscriptions(
7708 &self,
7709 username: &str,
7710 ) -> Request<'_, endpoints::UserListSubscriptions<'_>, (RepositoryListHeaders, Vec<Repository>)>
7711 {
7712 endpoints::UserListSubscriptions { username }
7713 .make_request()
7714 .wrap::<_, _>(self)
7715 }
7716
7717 pub fn user_get_tokens(
7721 &self,
7722 username: &str,
7723 ) -> Request<'_, endpoints::UserGetTokens<'_>, (AccessTokenListHeaders, Vec<AccessToken>)> {
7724 endpoints::UserGetTokens { username }
7725 .make_request()
7726 .wrap::<_, _>(self)
7727 }
7728
7729 pub fn user_create_token(
7734 &self,
7735 username: &str,
7736 body: CreateAccessTokenOption,
7737 ) -> Request<'_, endpoints::UserCreateToken<'_>, AccessToken> {
7738 endpoints::UserCreateToken {
7739 username,
7740 body: body,
7741 }
7742 .make_request()
7743 .wrap::<_, _>(self)
7744 }
7745
7746 pub fn user_delete_access_token(
7751 &self,
7752 username: &str,
7753 token: &str,
7754 ) -> Request<'_, endpoints::UserDeleteAccessToken<'_>, ()> {
7755 endpoints::UserDeleteAccessToken { username, token }
7756 .make_request()
7757 .wrap::<_, _>(self)
7758 }
7759
7760 pub fn get_version(&self) -> Request<'_, endpoints::GetVersion, ServerVersion> {
7762 endpoints::GetVersion {}.make_request().wrap::<_, _>(self)
7763 }
7764}