From 0d689b7d7f54f75f9995c2d720ace788da797b6d Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 19 Jul 2024 14:16:28 -0500 Subject: [PATCH] feat: Changes in generated code Co-authored-by: Octokit Bot --- .github/ISSUE_TEMPLATE/bug.yml | 2 +- .github/ISSUE_TEMPLATE/documentation.yml | 2 +- .github/ISSUE_TEMPLATE/feature.yml | 2 +- .github/ISSUE_TEMPLATE/maintenance.yml | 2 +- .gitignore | 1 + .../get_ecosystem_query_parameter_type.go | 66 - .../hook_deliveries_item_attempts_response.go | 28 - .../appmanifests/item_conversions_response.go | 28 - pkg/github/emojis/emojis_response.go | 28 - .../installation/repositories_response.go | 28 - pkg/github/kiota-lock.json | 2 +- ...pilot_organization_details_copilot_chat.go | 40 - .../models/deployment_payload_member1.go | 50 - pkg/github/models/environment.go | 16 +- .../models/global_advisory_vulnerabilities.go | 167 -- ...global_advisory_vulnerabilities_package.go | 111 - pkg/github/models/hook_config.go | 330 --- ...nullable_repository_template_repository.go | 2496 ----------------- ...emplate_repository_merge_commit_message.go | 40 - ..._template_repository_merge_commit_title.go | 37 - ...le_repository_template_repository_owner.go | 554 ---- ...ository_template_repository_permissions.go | 190 -- ..._repository_squash_merge_commit_message.go | 40 - ...te_repository_squash_merge_commit_title.go | 37 - .../organization_fine_grained_permission.go | 110 - pkg/github/models/repository_rule_member1.go | 111 - .../repository_rule_member1_parameters.go | 86 - .../models/repository_rule_member1_type.go | 30 - pkg/github/models/repository_rule_member2.go | 111 - .../repository_rule_member2_parameters.go | 80 - .../models/repository_rule_member2_type.go | 30 - pkg/github/models/repository_rule_member3.go | 111 - .../repository_rule_member3_parameters.go | 86 - .../models/repository_rule_member3_type.go | 30 - pkg/github/models/repository_rule_member4.go | 111 - .../repository_rule_member4_parameters.go | 80 - .../models/repository_rule_member4_type.go | 30 - ..._ruleset_conditions_for_repository_i_ds.go | 39 - ...ruleset_conditions_for_repository_names.go | 39 - .../models/repository_template_repository.go | 2496 ----------------- ...emplate_repository_merge_commit_message.go | 40 - ..._template_repository_merge_commit_title.go | 37 - .../repository_template_repository_owner.go | 554 ---- ...ository_template_repository_permissions.go | 190 -- ..._repository_squash_merge_commit_message.go | 40 - ...te_repository_squash_merge_commit_title.go | 37 - .../notifications/notifications_response.go | 28 - ...ions_cache_usage_by_repository_response.go | 28 - ...tions_permissions_repositories_response.go | 28 - ...ons_runners_generate_jitconfig_response.go | 28 - ...ers_item_labels_item_with_name_response.go | 28 - ...em_actions_runners_item_labels_response.go | 28 - .../orgs/item_actions_runners_response.go | 28 - ...ions_secrets_item_repositories_response.go | 28 - .../orgs/item_actions_secrets_response.go | 28 - ...ns_variables_item_repositories_response.go | 28 - .../orgs/item_actions_variables_response.go | 28 - pkg/github/orgs/item_codespaces_response.go | 28 - ...aces_secrets_item_repositories_response.go | 28 - .../orgs/item_codespaces_secrets_response.go | 28 - .../item_copilot_billing_seats_response.go | 28 - ...copilot_billing_selected_teams_response.go | 28 - ...copilot_billing_selected_users_response.go | 28 - ...abot_secrets_item_repositories_response.go | 28 - .../orgs/item_dependabot_secrets_response.go | 28 - ..._item_deliveries_item_attempts_response.go | 28 - .../orgs/item_installations_response.go | 28 - ...interaction_limits_get_response_member1.go | 32 - ...paces_item_with_codespace_name_response.go | 28 - .../item_members_item_codespaces_response.go | 28 - ...ine_grained_permissions_request_builder.go | 66 - ...zation_roles_item_teams_request_builder.go | 6 +- ...zation_roles_item_users_request_builder.go | 6 +- ...roles_item_with_role_patch_request_body.go | 144 - ...em_organization_roles_post_request_body.go | 144 - ...item_organization_roles_request_builder.go | 43 +- .../orgs/item_organization_roles_response.go | 28 - ...ams_item_with_role_item_request_builder.go | 8 +- ...ams_with_team_slug_item_request_builder.go | 4 +- ...ers_item_with_role_item_request_builder.go | 8 +- ...sers_with_username_item_request_builder.go | 4 +- ...on_roles_with_role_item_request_builder.go | 65 +- ...llaborators_item_with_username_response.go | 28 - ...personal_access_token_requests_response.go | 28 - .../item_personal_access_tokens_response.go | 28 - ...em_rulesets_rule_suites_request_builder.go | 4 +- .../item_team_item_copilot_request_builder.go | 28 - ...team_item_copilot_usage_request_builder.go | 81 - pkg/github/orgs/item_team_request_builder.go | 35 - ...eam_with_team_slug_item_request_builder.go | 28 - pkg/github/orgs/item_with_org_response.go | 28 - .../orgs/with_org_item_request_builder.go | 5 - .../columns_cards_item_moves_response.go | 28 - .../projects/columns_item_moves_response.go | 28 - ...patch_request_body_merge_commit_message.go | 40 - ...r_patch_request_body_merge_commit_title.go | 37 - ...equest_body_squash_merge_commit_message.go | 40 - ..._request_body_squash_merge_commit_title.go | 37 - .../owner_patch_request_body_visibility.go | 37 - ...patch_request_body_merge_commit_message.go | 40 - ...o_patch_request_body_merge_commit_title.go | 37 - ...equest_body_squash_merge_commit_message.go | 40 - ..._request_body_squash_merge_commit_title.go | 37 - ...with_repo_patch_request_body_visibility.go | 37 - .../item_item_actions_artifacts_response.go | 28 - ...m_actions_organization_secrets_response.go | 28 - ...actions_organization_variables_response.go | 28 - ...ons_runners_generate_jitconfig_response.go | 28 - ...ers_item_labels_item_with_name_response.go | 28 - ...em_actions_runners_item_labels_response.go | 28 - .../item_item_actions_runners_response.go | 28 - ...em_actions_runs_item_artifacts_response.go | 28 - ...s_runs_item_attempts_item_jobs_response.go | 28 - ...em_item_actions_runs_item_jobs_response.go | 28 - .../repos/item_item_actions_runs_response.go | 28 - .../item_item_actions_secrets_response.go | 28 - .../item_item_actions_variables_response.go | 28 - ...em_actions_workflows_item_runs_response.go | 28 - .../item_item_actions_workflows_response.go | 28 - ...m_check_suites_item_check_runs_response.go | 28 - ..._item_codespaces_devcontainers_response.go | 28 - .../item_item_codespaces_machines_response.go | 28 - .../item_item_codespaces_new_response.go | 28 - .../repos/item_item_codespaces_response.go | 28 - .../item_item_codespaces_secrets_response.go | 28 - ...em_commits_commits_item_request_builder.go | 109 - ...m_item_commits_item_check_runs_response.go | 28 - ...item_commits_item_check_suites_response.go | 28 - ...ts_with_commit_sha_item_request_builder.go | 110 - .../item_item_dependabot_secrets_response.go | 28 - ...tem_dependency_graph_snapshots_response.go | 28 - ...ments_post_request_body_payload_member1.go | 50 - ...tem_deployment_branch_policies_response.go | 28 - ...t_protection_rules_apps_request_builder.go | 6 +- ...ployment_protection_rules_apps_response.go | 28 - ...em_deployment_protection_rules_response.go | 28 - .../repos/item_item_environments_response.go | 28 - ...item_item_git_commits_post_request_body.go | 6 +- ..._item_deliveries_item_attempts_response.go | 28 - ...tem_with_hook_patch_request_body_config.go | 219 -- ...interaction_limits_get_response_member1.go | 32 - .../repos/item_item_notifications_response.go | 28 - pkg/github/repos/item_item_owner403_error.go | 117 - .../item_item_owner_patch_request_body.go | 634 ----- ...atch_request_body_security_and_analysis.go | 139 - ...security_and_analysis_advanced_security.go | 81 - ...y_security_and_analysis_secret_scanning.go | 81 - ...nalysis_secret_scanning_push_protection.go | 81 - ...item_pages_deployment_post_request_body.go | 166 -- ...m_item_pages_deployment_request_builder.go | 63 - ..._item_pulls_item_update_branch_response.go | 28 - ...em_rulesets_rule_suites_request_builder.go | 2 +- ...m_security_advisories_item_cve_response.go | 28 - .../repos/item_item_with_repo403_error.go | 113 - .../item_item_with_repo_patch_request_body.go | 613 ---- ...atch_request_body_security_and_analysis.go | 134 - ...security_and_analysis_advanced_security.go | 78 - ...y_security_and_analysis_secret_scanning.go | 78 - ...nalysis_secret_scanning_push_protection.go | 78 - .../repos/item_owner_item_request_builder.go | 456 --- .../item_with_repo_item_request_builder.go | 408 --- .../repos/repos_item_request_builder.go | 35 - .../repos/with_owner_item_request_builder.go | 34 - ..._environments_item_secrets_get_response.go | 122 - ..._item_with_secret_name_put_request_body.go | 109 - ...item_secrets_public_key_request_builder.go | 57 - ...vironments_item_secrets_request_builder.go | 80 - ...item_environments_item_secrets_response.go | 28 - ...s_with_secret_name_item_request_builder.go | 110 - ...nvironments_item_variables_get_response.go | 122 - ...ables_item_with_name_patch_request_body.go | 109 - ...nments_item_variables_post_request_body.go | 109 - ...ronments_item_variables_request_builder.go | 107 - ...em_environments_item_variables_response.go | 28 - ...ariables_with_name_item_request_builder.go | 105 - .../item_environments_request_builder.go | 35 - ...h_environment_name_item_request_builder.go | 33 - .../with_repository_item_request_builder.go | 28 - pkg/github/search/code_response.go | 28 - pkg/github/search/commits_response.go | 28 - pkg/github/search/issues_response.go | 28 - pkg/github/search/labels_response.go | 28 - pkg/github/search/repositories_response.go | 28 - pkg/github/search/topics_response.go | 28 - pkg/github/search/users_response.go | 28 - .../user/codespaces_item_machines_response.go | 28 - ...paces_item_with_codespace_name_response.go | 28 - pkg/github/user/codespaces_response.go | 28 - ...aces_secrets_item_repositories_response.go | 28 - .../user/codespaces_secrets_response.go | 28 - ...nstallations_item_repositories_response.go | 28 - pkg/github/user/installations_response.go | 28 - ...interaction_limits_get_response_member1.go | 32 - 193 files changed, 46 insertions(+), 17115 deletions(-) delete mode 100644 pkg/github/advisories/get_ecosystem_query_parameter_type.go delete mode 100644 pkg/github/app/hook_deliveries_item_attempts_response.go delete mode 100644 pkg/github/appmanifests/item_conversions_response.go delete mode 100644 pkg/github/emojis/emojis_response.go delete mode 100644 pkg/github/installation/repositories_response.go delete mode 100644 pkg/github/models/copilot_organization_details_copilot_chat.go delete mode 100644 pkg/github/models/deployment_payload_member1.go delete mode 100644 pkg/github/models/global_advisory_vulnerabilities.go delete mode 100644 pkg/github/models/global_advisory_vulnerabilities_package.go delete mode 100644 pkg/github/models/hook_config.go delete mode 100644 pkg/github/models/nullable_repository_template_repository.go delete mode 100644 pkg/github/models/nullable_repository_template_repository_merge_commit_message.go delete mode 100644 pkg/github/models/nullable_repository_template_repository_merge_commit_title.go delete mode 100644 pkg/github/models/nullable_repository_template_repository_owner.go delete mode 100644 pkg/github/models/nullable_repository_template_repository_permissions.go delete mode 100644 pkg/github/models/nullable_repository_template_repository_squash_merge_commit_message.go delete mode 100644 pkg/github/models/nullable_repository_template_repository_squash_merge_commit_title.go delete mode 100644 pkg/github/models/organization_fine_grained_permission.go delete mode 100644 pkg/github/models/repository_rule_member1.go delete mode 100644 pkg/github/models/repository_rule_member1_parameters.go delete mode 100644 pkg/github/models/repository_rule_member1_type.go delete mode 100644 pkg/github/models/repository_rule_member2.go delete mode 100644 pkg/github/models/repository_rule_member2_parameters.go delete mode 100644 pkg/github/models/repository_rule_member2_type.go delete mode 100644 pkg/github/models/repository_rule_member3.go delete mode 100644 pkg/github/models/repository_rule_member3_parameters.go delete mode 100644 pkg/github/models/repository_rule_member3_type.go delete mode 100644 pkg/github/models/repository_rule_member4.go delete mode 100644 pkg/github/models/repository_rule_member4_parameters.go delete mode 100644 pkg/github/models/repository_rule_member4_type.go delete mode 100644 pkg/github/models/repository_ruleset_conditions_for_repository_i_ds.go delete mode 100644 pkg/github/models/repository_ruleset_conditions_for_repository_names.go delete mode 100644 pkg/github/models/repository_template_repository.go delete mode 100644 pkg/github/models/repository_template_repository_merge_commit_message.go delete mode 100644 pkg/github/models/repository_template_repository_merge_commit_title.go delete mode 100644 pkg/github/models/repository_template_repository_owner.go delete mode 100644 pkg/github/models/repository_template_repository_permissions.go delete mode 100644 pkg/github/models/repository_template_repository_squash_merge_commit_message.go delete mode 100644 pkg/github/models/repository_template_repository_squash_merge_commit_title.go delete mode 100644 pkg/github/notifications/notifications_response.go delete mode 100644 pkg/github/orgs/item_actions_cache_usage_by_repository_response.go delete mode 100644 pkg/github/orgs/item_actions_permissions_repositories_response.go delete mode 100644 pkg/github/orgs/item_actions_runners_generate_jitconfig_response.go delete mode 100644 pkg/github/orgs/item_actions_runners_item_labels_item_with_name_response.go delete mode 100644 pkg/github/orgs/item_actions_runners_item_labels_response.go delete mode 100644 pkg/github/orgs/item_actions_runners_response.go delete mode 100644 pkg/github/orgs/item_actions_secrets_item_repositories_response.go delete mode 100644 pkg/github/orgs/item_actions_secrets_response.go delete mode 100644 pkg/github/orgs/item_actions_variables_item_repositories_response.go delete mode 100644 pkg/github/orgs/item_actions_variables_response.go delete mode 100644 pkg/github/orgs/item_codespaces_response.go delete mode 100644 pkg/github/orgs/item_codespaces_secrets_item_repositories_response.go delete mode 100644 pkg/github/orgs/item_codespaces_secrets_response.go delete mode 100644 pkg/github/orgs/item_copilot_billing_seats_response.go delete mode 100644 pkg/github/orgs/item_copilot_billing_selected_teams_response.go delete mode 100644 pkg/github/orgs/item_copilot_billing_selected_users_response.go delete mode 100644 pkg/github/orgs/item_dependabot_secrets_item_repositories_response.go delete mode 100644 pkg/github/orgs/item_dependabot_secrets_response.go delete mode 100644 pkg/github/orgs/item_hooks_item_deliveries_item_attempts_response.go delete mode 100644 pkg/github/orgs/item_installations_response.go delete mode 100644 pkg/github/orgs/item_interaction_limits_get_response_member1.go delete mode 100644 pkg/github/orgs/item_members_item_codespaces_item_with_codespace_name_response.go delete mode 100644 pkg/github/orgs/item_members_item_codespaces_response.go delete mode 100644 pkg/github/orgs/item_organization_fine_grained_permissions_request_builder.go delete mode 100644 pkg/github/orgs/item_organization_roles_item_with_role_patch_request_body.go delete mode 100644 pkg/github/orgs/item_organization_roles_post_request_body.go delete mode 100644 pkg/github/orgs/item_organization_roles_response.go delete mode 100644 pkg/github/orgs/item_outside_collaborators_item_with_username_response.go delete mode 100644 pkg/github/orgs/item_personal_access_token_requests_response.go delete mode 100644 pkg/github/orgs/item_personal_access_tokens_response.go delete mode 100644 pkg/github/orgs/item_team_item_copilot_request_builder.go delete mode 100644 pkg/github/orgs/item_team_item_copilot_usage_request_builder.go delete mode 100644 pkg/github/orgs/item_team_request_builder.go delete mode 100644 pkg/github/orgs/item_team_with_team_slug_item_request_builder.go delete mode 100644 pkg/github/orgs/item_with_org_response.go delete mode 100644 pkg/github/projects/columns_cards_item_moves_response.go delete mode 100644 pkg/github/projects/columns_item_moves_response.go delete mode 100644 pkg/github/repos/item/item/owner_patch_request_body_merge_commit_message.go delete mode 100644 pkg/github/repos/item/item/owner_patch_request_body_merge_commit_title.go delete mode 100644 pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_message.go delete mode 100644 pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_title.go delete mode 100644 pkg/github/repos/item/item/owner_patch_request_body_visibility.go delete mode 100644 pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_message.go delete mode 100644 pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_title.go delete mode 100644 pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_message.go delete mode 100644 pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_title.go delete mode 100644 pkg/github/repos/item/item/with_repo_patch_request_body_visibility.go delete mode 100644 pkg/github/repos/item_item_actions_artifacts_response.go delete mode 100644 pkg/github/repos/item_item_actions_organization_secrets_response.go delete mode 100644 pkg/github/repos/item_item_actions_organization_variables_response.go delete mode 100644 pkg/github/repos/item_item_actions_runners_generate_jitconfig_response.go delete mode 100644 pkg/github/repos/item_item_actions_runners_item_labels_item_with_name_response.go delete mode 100644 pkg/github/repos/item_item_actions_runners_item_labels_response.go delete mode 100644 pkg/github/repos/item_item_actions_runners_response.go delete mode 100644 pkg/github/repos/item_item_actions_runs_item_artifacts_response.go delete mode 100644 pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_response.go delete mode 100644 pkg/github/repos/item_item_actions_runs_item_jobs_response.go delete mode 100644 pkg/github/repos/item_item_actions_runs_response.go delete mode 100644 pkg/github/repos/item_item_actions_secrets_response.go delete mode 100644 pkg/github/repos/item_item_actions_variables_response.go delete mode 100644 pkg/github/repos/item_item_actions_workflows_item_runs_response.go delete mode 100644 pkg/github/repos/item_item_actions_workflows_response.go delete mode 100644 pkg/github/repos/item_item_check_suites_item_check_runs_response.go delete mode 100644 pkg/github/repos/item_item_codespaces_devcontainers_response.go delete mode 100644 pkg/github/repos/item_item_codespaces_machines_response.go delete mode 100644 pkg/github/repos/item_item_codespaces_new_response.go delete mode 100644 pkg/github/repos/item_item_codespaces_response.go delete mode 100644 pkg/github/repos/item_item_codespaces_secrets_response.go delete mode 100644 pkg/github/repos/item_item_commits_commits_item_request_builder.go delete mode 100644 pkg/github/repos/item_item_commits_item_check_runs_response.go delete mode 100644 pkg/github/repos/item_item_commits_item_check_suites_response.go delete mode 100644 pkg/github/repos/item_item_commits_with_commit_sha_item_request_builder.go delete mode 100644 pkg/github/repos/item_item_dependabot_secrets_response.go delete mode 100644 pkg/github/repos/item_item_dependency_graph_snapshots_response.go delete mode 100644 pkg/github/repos/item_item_deployments_post_request_body_payload_member1.go delete mode 100644 pkg/github/repos/item_item_environments_item_deployment_branch_policies_response.go delete mode 100644 pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_response.go delete mode 100644 pkg/github/repos/item_item_environments_item_deployment_protection_rules_response.go delete mode 100644 pkg/github/repos/item_item_environments_response.go delete mode 100644 pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_response.go delete mode 100644 pkg/github/repos/item_item_hooks_item_with_hook_patch_request_body_config.go delete mode 100644 pkg/github/repos/item_item_interaction_limits_get_response_member1.go delete mode 100644 pkg/github/repos/item_item_notifications_response.go delete mode 100644 pkg/github/repos/item_item_owner403_error.go delete mode 100644 pkg/github/repos/item_item_owner_patch_request_body.go delete mode 100644 pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis.go delete mode 100644 pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_advanced_security.go delete mode 100644 pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning.go delete mode 100644 pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning_push_protection.go delete mode 100644 pkg/github/repos/item_item_pages_deployment_post_request_body.go delete mode 100644 pkg/github/repos/item_item_pages_deployment_request_builder.go delete mode 100644 pkg/github/repos/item_item_pulls_item_update_branch_response.go delete mode 100644 pkg/github/repos/item_item_security_advisories_item_cve_response.go delete mode 100644 pkg/github/repos/item_item_with_repo403_error.go delete mode 100644 pkg/github/repos/item_item_with_repo_patch_request_body.go delete mode 100644 pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis.go delete mode 100644 pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_advanced_security.go delete mode 100644 pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning.go delete mode 100644 pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning_push_protection.go delete mode 100644 pkg/github/repos/item_owner_item_request_builder.go delete mode 100644 pkg/github/repos/item_with_repo_item_request_builder.go delete mode 100644 pkg/github/repos/repos_item_request_builder.go delete mode 100644 pkg/github/repos/with_owner_item_request_builder.go delete mode 100644 pkg/github/repositories/item_environments_item_secrets_get_response.go delete mode 100644 pkg/github/repositories/item_environments_item_secrets_item_with_secret_name_put_request_body.go delete mode 100644 pkg/github/repositories/item_environments_item_secrets_public_key_request_builder.go delete mode 100644 pkg/github/repositories/item_environments_item_secrets_request_builder.go delete mode 100644 pkg/github/repositories/item_environments_item_secrets_response.go delete mode 100644 pkg/github/repositories/item_environments_item_secrets_with_secret_name_item_request_builder.go delete mode 100644 pkg/github/repositories/item_environments_item_variables_get_response.go delete mode 100644 pkg/github/repositories/item_environments_item_variables_item_with_name_patch_request_body.go delete mode 100644 pkg/github/repositories/item_environments_item_variables_post_request_body.go delete mode 100644 pkg/github/repositories/item_environments_item_variables_request_builder.go delete mode 100644 pkg/github/repositories/item_environments_item_variables_response.go delete mode 100644 pkg/github/repositories/item_environments_item_variables_with_name_item_request_builder.go delete mode 100644 pkg/github/repositories/item_environments_request_builder.go delete mode 100644 pkg/github/repositories/item_environments_with_environment_name_item_request_builder.go delete mode 100644 pkg/github/repositories/with_repository_item_request_builder.go delete mode 100644 pkg/github/search/code_response.go delete mode 100644 pkg/github/search/commits_response.go delete mode 100644 pkg/github/search/issues_response.go delete mode 100644 pkg/github/search/labels_response.go delete mode 100644 pkg/github/search/repositories_response.go delete mode 100644 pkg/github/search/topics_response.go delete mode 100644 pkg/github/search/users_response.go delete mode 100644 pkg/github/user/codespaces_item_machines_response.go delete mode 100644 pkg/github/user/codespaces_item_with_codespace_name_response.go delete mode 100644 pkg/github/user/codespaces_response.go delete mode 100644 pkg/github/user/codespaces_secrets_item_repositories_response.go delete mode 100644 pkg/github/user/codespaces_secrets_response.go delete mode 100644 pkg/github/user/installations_item_repositories_response.go delete mode 100644 pkg/github/user/installations_response.go delete mode 100644 pkg/github/user/interaction_limits_get_response_member1.go diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 15100be9..b703af14 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -27,7 +27,7 @@ body: id: terms attributes: label: Code of Conduct - description: By submitting this issue, you agree to follow our [Code of Conduct](Docs/CODE_OF_CONDUCT.md) + description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md) options: - label: I agree to follow this project's Code of Conduct required: true diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml index dac3f02d..62e740d3 100644 --- a/.github/ISSUE_TEMPLATE/documentation.yml +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -35,7 +35,7 @@ body: id: terms attributes: label: Code of Conduct - description: By submitting this issue, you agree to follow our [Code of Conduct](Docs/CODE_OF_CONDUCT.md) + description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md) options: - label: I agree to follow this project's Code of Conduct required: true diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index 2a5cd5b0..1d77798b 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -35,7 +35,7 @@ body: id: terms attributes: label: Code of Conduct - description: By submitting this issue, you agree to follow our [Code of Conduct](Docs/CODE_OF_CONDUCT.md) + description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md) options: - label: I agree to follow this project's Code of Conduct required: true diff --git a/.github/ISSUE_TEMPLATE/maintenance.yml b/.github/ISSUE_TEMPLATE/maintenance.yml index 2958a9b0..86712b2e 100644 --- a/.github/ISSUE_TEMPLATE/maintenance.yml +++ b/.github/ISSUE_TEMPLATE/maintenance.yml @@ -35,7 +35,7 @@ body: id: terms attributes: label: Code of Conduct - description: By submitting this issue, you agree to follow our [Code of Conduct](Docs/CODE_OF_CONDUCT.md) + description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md) options: - label: I agree to follow this project's Code of Conduct required: true diff --git a/.gitignore b/.gitignore index 0998948e..e4d52083 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +# Kiota .kiota.log # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,go,linux,macos diff --git a/pkg/github/advisories/get_ecosystem_query_parameter_type.go b/pkg/github/advisories/get_ecosystem_query_parameter_type.go deleted file mode 100644 index ecb63a7b..00000000 --- a/pkg/github/advisories/get_ecosystem_query_parameter_type.go +++ /dev/null @@ -1,66 +0,0 @@ -package advisories -import ( - "errors" -) -type GetEcosystemQueryParameterType int - -const ( - ACTIONS_GETECOSYSTEMQUERYPARAMETERTYPE GetEcosystemQueryParameterType = iota - COMPOSER_GETECOSYSTEMQUERYPARAMETERTYPE - ERLANG_GETECOSYSTEMQUERYPARAMETERTYPE - GO_GETECOSYSTEMQUERYPARAMETERTYPE - MAVEN_GETECOSYSTEMQUERYPARAMETERTYPE - NPM_GETECOSYSTEMQUERYPARAMETERTYPE - NUGET_GETECOSYSTEMQUERYPARAMETERTYPE - OTHER_GETECOSYSTEMQUERYPARAMETERTYPE - PIP_GETECOSYSTEMQUERYPARAMETERTYPE - PUB_GETECOSYSTEMQUERYPARAMETERTYPE - RUBYGEMS_GETECOSYSTEMQUERYPARAMETERTYPE - RUST_GETECOSYSTEMQUERYPARAMETERTYPE -) - -func (i GetEcosystemQueryParameterType) String() string { - return []string{"actions", "composer", "erlang", "go", "maven", "npm", "nuget", "other", "pip", "pub", "rubygems", "rust"}[i] -} -func ParseGetEcosystemQueryParameterType(v string) (any, error) { - result := ACTIONS_GETECOSYSTEMQUERYPARAMETERTYPE - switch v { - case "actions": - result = ACTIONS_GETECOSYSTEMQUERYPARAMETERTYPE - case "composer": - result = COMPOSER_GETECOSYSTEMQUERYPARAMETERTYPE - case "erlang": - result = ERLANG_GETECOSYSTEMQUERYPARAMETERTYPE - case "go": - result = GO_GETECOSYSTEMQUERYPARAMETERTYPE - case "maven": - result = MAVEN_GETECOSYSTEMQUERYPARAMETERTYPE - case "npm": - result = NPM_GETECOSYSTEMQUERYPARAMETERTYPE - case "nuget": - result = NUGET_GETECOSYSTEMQUERYPARAMETERTYPE - case "other": - result = OTHER_GETECOSYSTEMQUERYPARAMETERTYPE - case "pip": - result = PIP_GETECOSYSTEMQUERYPARAMETERTYPE - case "pub": - result = PUB_GETECOSYSTEMQUERYPARAMETERTYPE - case "rubygems": - result = RUBYGEMS_GETECOSYSTEMQUERYPARAMETERTYPE - case "rust": - result = RUST_GETECOSYSTEMQUERYPARAMETERTYPE - default: - return 0, errors.New("Unknown GetEcosystemQueryParameterType value: " + v) - } - return &result, nil -} -func SerializeGetEcosystemQueryParameterType(values []GetEcosystemQueryParameterType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i GetEcosystemQueryParameterType) isMultiValue() bool { - return false -} diff --git a/pkg/github/app/hook_deliveries_item_attempts_response.go b/pkg/github/app/hook_deliveries_item_attempts_response.go deleted file mode 100644 index 5b350e4d..00000000 --- a/pkg/github/app/hook_deliveries_item_attempts_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package app - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// HookDeliveriesItemAttemptsResponse -// Deprecated: This class is obsolete. Use attemptsPostResponse instead. -type HookDeliveriesItemAttemptsResponse struct { - HookDeliveriesItemAttemptsPostResponse -} -// NewHookDeliveriesItemAttemptsResponse instantiates a new HookDeliveriesItemAttemptsResponse and sets the default values. -func NewHookDeliveriesItemAttemptsResponse()(*HookDeliveriesItemAttemptsResponse) { - m := &HookDeliveriesItemAttemptsResponse{ - HookDeliveriesItemAttemptsPostResponse: *NewHookDeliveriesItemAttemptsPostResponse(), - } - return m -} -// CreateHookDeliveriesItemAttemptsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateHookDeliveriesItemAttemptsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewHookDeliveriesItemAttemptsResponse(), nil -} -// HookDeliveriesItemAttemptsResponseable -// Deprecated: This class is obsolete. Use attemptsPostResponse instead. -type HookDeliveriesItemAttemptsResponseable interface { - HookDeliveriesItemAttemptsPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/appmanifests/item_conversions_response.go b/pkg/github/appmanifests/item_conversions_response.go deleted file mode 100644 index 58632ce3..00000000 --- a/pkg/github/appmanifests/item_conversions_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package appmanifests - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemConversionsResponse -// Deprecated: This class is obsolete. Use conversionsPostResponse instead. -type ItemConversionsResponse struct { - ItemConversionsPostResponse -} -// NewItemConversionsResponse instantiates a new ItemConversionsResponse and sets the default values. -func NewItemConversionsResponse()(*ItemConversionsResponse) { - m := &ItemConversionsResponse{ - ItemConversionsPostResponse: *NewItemConversionsPostResponse(), - } - return m -} -// CreateItemConversionsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemConversionsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemConversionsResponse(), nil -} -// ItemConversionsResponseable -// Deprecated: This class is obsolete. Use conversionsPostResponse instead. -type ItemConversionsResponseable interface { - ItemConversionsPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/emojis/emojis_response.go b/pkg/github/emojis/emojis_response.go deleted file mode 100644 index b170a321..00000000 --- a/pkg/github/emojis/emojis_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package emojis - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// EmojisResponse -// Deprecated: This class is obsolete. Use emojisGetResponse instead. -type EmojisResponse struct { - EmojisGetResponse -} -// NewEmojisResponse instantiates a new emojisResponse and sets the default values. -func NewEmojisResponse()(*EmojisResponse) { - m := &EmojisResponse{ - EmojisGetResponse: *NewEmojisGetResponse(), - } - return m -} -// CreateEmojisResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateEmojisResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewEmojisResponse(), nil -} -// EmojisResponseable -// Deprecated: This class is obsolete. Use emojisGetResponse instead. -type EmojisResponseable interface { - EmojisGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/installation/repositories_response.go b/pkg/github/installation/repositories_response.go deleted file mode 100644 index f8507882..00000000 --- a/pkg/github/installation/repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package installation - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type RepositoriesResponse struct { - RepositoriesGetResponse -} -// NewRepositoriesResponse instantiates a new RepositoriesResponse and sets the default values. -func NewRepositoriesResponse()(*RepositoriesResponse) { - m := &RepositoriesResponse{ - RepositoriesGetResponse: *NewRepositoriesGetResponse(), - } - return m -} -// CreateRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoriesResponse(), nil -} -// RepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type RepositoriesResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - RepositoriesGetResponseable -} diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index ec3315d9..3484b335 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "25CBDDF87B5D7FAED3AFBA18614FCE9BC696E3AA892C3A9253E5E733130804713C08A3F3D7360A24961AF443C24518812E497A7D6C8EE8FFAC1A003073730BEE", + "descriptionHash": "F5FD3919C2BFEEFEB09A475F6133B5A3FC7E77B0AE71458C1E4B9C4F45F18EEE4C3E8C870EBDB75A7F0502BD652478E4ADF7A2F76462CE8689C57E711A9FF402", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0", diff --git a/pkg/github/models/copilot_organization_details_copilot_chat.go b/pkg/github/models/copilot_organization_details_copilot_chat.go deleted file mode 100644 index 5998d7d4..00000000 --- a/pkg/github/models/copilot_organization_details_copilot_chat.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor. -type CopilotOrganizationDetails_copilot_chat int - -const ( - ENABLED_COPILOTORGANIZATIONDETAILS_COPILOT_CHAT CopilotOrganizationDetails_copilot_chat = iota - DISABLED_COPILOTORGANIZATIONDETAILS_COPILOT_CHAT - UNCONFIGURED_COPILOTORGANIZATIONDETAILS_COPILOT_CHAT -) - -func (i CopilotOrganizationDetails_copilot_chat) String() string { - return []string{"enabled", "disabled", "unconfigured"}[i] -} -func ParseCopilotOrganizationDetails_copilot_chat(v string) (any, error) { - result := ENABLED_COPILOTORGANIZATIONDETAILS_COPILOT_CHAT - switch v { - case "enabled": - result = ENABLED_COPILOTORGANIZATIONDETAILS_COPILOT_CHAT - case "disabled": - result = DISABLED_COPILOTORGANIZATIONDETAILS_COPILOT_CHAT - case "unconfigured": - result = UNCONFIGURED_COPILOTORGANIZATIONDETAILS_COPILOT_CHAT - default: - return 0, errors.New("Unknown CopilotOrganizationDetails_copilot_chat value: " + v) - } - return &result, nil -} -func SerializeCopilotOrganizationDetails_copilot_chat(values []CopilotOrganizationDetails_copilot_chat) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CopilotOrganizationDetails_copilot_chat) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/deployment_payload_member1.go b/pkg/github/models/deployment_payload_member1.go deleted file mode 100644 index 7f429d5a..00000000 --- a/pkg/github/models/deployment_payload_member1.go +++ /dev/null @@ -1,50 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deployment_payloadMember1 -type Deployment_payloadMember1 struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any -} -// NewDeployment_payloadMember1 instantiates a new deployment_payloadMember1 and sets the default values. -func NewDeployment_payloadMember1()(*Deployment_payloadMember1) { - m := &Deployment_payloadMember1{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateDeployment_payloadMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateDeployment_payloadMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewDeployment_payloadMember1(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Deployment_payloadMember1) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -func (m *Deployment_payloadMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - return res -} -// Serialize serializes information the current object -func (m *Deployment_payloadMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Deployment_payloadMember1) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// Deployment_payloadMember1able -type Deployment_payloadMember1able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/models/environment.go b/pkg/github/models/environment.go index 4731bc50..57c78b6a 100644 --- a/pkg/github/models/environment.go +++ b/pkg/github/models/environment.go @@ -16,7 +16,7 @@ type Environment struct { // The html_url property html_url *string // The id of the environment. - id *int32 + id *int64 // The name of the environment. name *string // The node_id property @@ -201,7 +201,7 @@ func (m *Environment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -274,8 +274,8 @@ func (m *Environment) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id of the environment. -// returns a *int32 when successful -func (m *Environment) GetId()(*int32) { +// returns a *int64 when successful +func (m *Environment) GetId()(*int64) { return m.id } // GetName gets the name property value. The name of the environment. @@ -324,7 +324,7 @@ func (m *Environment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -390,7 +390,7 @@ func (m *Environment) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id of the environment. -func (m *Environment) SetId(value *int32)() { +func (m *Environment) SetId(value *int64)() { m.id = value } // SetName sets the name property value. The name of the environment. @@ -419,7 +419,7 @@ type Environmentable interface { GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDeploymentBranchPolicy()(DeploymentBranchPolicySettingsable) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetName()(*string) GetNodeId()(*string) GetProtectionRules()([]Environment_Environment_protection_rulesable) @@ -428,7 +428,7 @@ type Environmentable interface { SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDeploymentBranchPolicy(value DeploymentBranchPolicySettingsable)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetName(value *string)() SetNodeId(value *string)() SetProtectionRules(value []Environment_Environment_protection_rulesable)() diff --git a/pkg/github/models/global_advisory_vulnerabilities.go b/pkg/github/models/global_advisory_vulnerabilities.go deleted file mode 100644 index 2a2c05ce..00000000 --- a/pkg/github/models/global_advisory_vulnerabilities.go +++ /dev/null @@ -1,167 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type GlobalAdvisory_vulnerabilities struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The package version that resolve the vulnerability. - first_patched_version *string - // The name of the package affected by the vulnerability. - packageEscaped GlobalAdvisory_vulnerabilities_packageable - // The functions in the package that are affected by the vulnerability. - vulnerable_functions []string - // The range of the package versions affected by the vulnerability. - vulnerable_version_range *string -} -// NewGlobalAdvisory_vulnerabilities instantiates a new GlobalAdvisory_vulnerabilities and sets the default values. -func NewGlobalAdvisory_vulnerabilities()(*GlobalAdvisory_vulnerabilities) { - m := &GlobalAdvisory_vulnerabilities{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateGlobalAdvisory_vulnerabilitiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateGlobalAdvisory_vulnerabilitiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewGlobalAdvisory_vulnerabilities(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *GlobalAdvisory_vulnerabilities) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *GlobalAdvisory_vulnerabilities) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["first_patched_version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFirstPatchedVersion(val) - } - return nil - } - res["package"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateGlobalAdvisory_vulnerabilities_packageFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPackageEscaped(val.(GlobalAdvisory_vulnerabilities_packageable)) - } - return nil - } - res["vulnerable_functions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetVulnerableFunctions(res) - } - return nil - } - res["vulnerable_version_range"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetVulnerableVersionRange(val) - } - return nil - } - return res -} -// GetFirstPatchedVersion gets the first_patched_version property value. The package version that resolve the vulnerability. -// returns a *string when successful -func (m *GlobalAdvisory_vulnerabilities) GetFirstPatchedVersion()(*string) { - return m.first_patched_version -} -// GetPackageEscaped gets the package property value. The name of the package affected by the vulnerability. -// returns a GlobalAdvisory_vulnerabilities_packageable when successful -func (m *GlobalAdvisory_vulnerabilities) GetPackageEscaped()(GlobalAdvisory_vulnerabilities_packageable) { - return m.packageEscaped -} -// GetVulnerableFunctions gets the vulnerable_functions property value. The functions in the package that are affected by the vulnerability. -// returns a []string when successful -func (m *GlobalAdvisory_vulnerabilities) GetVulnerableFunctions()([]string) { - return m.vulnerable_functions -} -// GetVulnerableVersionRange gets the vulnerable_version_range property value. The range of the package versions affected by the vulnerability. -// returns a *string when successful -func (m *GlobalAdvisory_vulnerabilities) GetVulnerableVersionRange()(*string) { - return m.vulnerable_version_range -} -// Serialize serializes information the current object -func (m *GlobalAdvisory_vulnerabilities) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("first_patched_version", m.GetFirstPatchedVersion()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("package", m.GetPackageEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("vulnerable_version_range", m.GetVulnerableVersionRange()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *GlobalAdvisory_vulnerabilities) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetFirstPatchedVersion sets the first_patched_version property value. The package version that resolve the vulnerability. -func (m *GlobalAdvisory_vulnerabilities) SetFirstPatchedVersion(value *string)() { - m.first_patched_version = value -} -// SetPackageEscaped sets the package property value. The name of the package affected by the vulnerability. -func (m *GlobalAdvisory_vulnerabilities) SetPackageEscaped(value GlobalAdvisory_vulnerabilities_packageable)() { - m.packageEscaped = value -} -// SetVulnerableFunctions sets the vulnerable_functions property value. The functions in the package that are affected by the vulnerability. -func (m *GlobalAdvisory_vulnerabilities) SetVulnerableFunctions(value []string)() { - m.vulnerable_functions = value -} -// SetVulnerableVersionRange sets the vulnerable_version_range property value. The range of the package versions affected by the vulnerability. -func (m *GlobalAdvisory_vulnerabilities) SetVulnerableVersionRange(value *string)() { - m.vulnerable_version_range = value -} -type GlobalAdvisory_vulnerabilitiesable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetFirstPatchedVersion()(*string) - GetPackageEscaped()(GlobalAdvisory_vulnerabilities_packageable) - GetVulnerableFunctions()([]string) - GetVulnerableVersionRange()(*string) - SetFirstPatchedVersion(value *string)() - SetPackageEscaped(value GlobalAdvisory_vulnerabilities_packageable)() - SetVulnerableFunctions(value []string)() - SetVulnerableVersionRange(value *string)() -} diff --git a/pkg/github/models/global_advisory_vulnerabilities_package.go b/pkg/github/models/global_advisory_vulnerabilities_package.go deleted file mode 100644 index 476d4dfa..00000000 --- a/pkg/github/models/global_advisory_vulnerabilities_package.go +++ /dev/null @@ -1,111 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// GlobalAdvisory_vulnerabilities_package the name of the package affected by the vulnerability. -type GlobalAdvisory_vulnerabilities_package struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The package's language or package management ecosystem. - ecosystem *SecurityAdvisoryEcosystems - // The unique package name within its ecosystem. - name *string -} -// NewGlobalAdvisory_vulnerabilities_package instantiates a new GlobalAdvisory_vulnerabilities_package and sets the default values. -func NewGlobalAdvisory_vulnerabilities_package()(*GlobalAdvisory_vulnerabilities_package) { - m := &GlobalAdvisory_vulnerabilities_package{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateGlobalAdvisory_vulnerabilities_packageFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateGlobalAdvisory_vulnerabilities_packageFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewGlobalAdvisory_vulnerabilities_package(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *GlobalAdvisory_vulnerabilities_package) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetEcosystem gets the ecosystem property value. The package's language or package management ecosystem. -// returns a *SecurityAdvisoryEcosystems when successful -func (m *GlobalAdvisory_vulnerabilities_package) GetEcosystem()(*SecurityAdvisoryEcosystems) { - return m.ecosystem -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *GlobalAdvisory_vulnerabilities_package) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["ecosystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSecurityAdvisoryEcosystems) - if err != nil { - return err - } - if val != nil { - m.SetEcosystem(val.(*SecurityAdvisoryEcosystems)) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - return res -} -// GetName gets the name property value. The unique package name within its ecosystem. -// returns a *string when successful -func (m *GlobalAdvisory_vulnerabilities_package) GetName()(*string) { - return m.name -} -// Serialize serializes information the current object -func (m *GlobalAdvisory_vulnerabilities_package) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetEcosystem() != nil { - cast := (*m.GetEcosystem()).String() - err := writer.WriteStringValue("ecosystem", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *GlobalAdvisory_vulnerabilities_package) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetEcosystem sets the ecosystem property value. The package's language or package management ecosystem. -func (m *GlobalAdvisory_vulnerabilities_package) SetEcosystem(value *SecurityAdvisoryEcosystems)() { - m.ecosystem = value -} -// SetName sets the name property value. The unique package name within its ecosystem. -func (m *GlobalAdvisory_vulnerabilities_package) SetName(value *string)() { - m.name = value -} -type GlobalAdvisory_vulnerabilities_packageable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetEcosystem()(*SecurityAdvisoryEcosystems) - GetName()(*string) - SetEcosystem(value *SecurityAdvisoryEcosystems)() - SetName(value *string)() -} diff --git a/pkg/github/models/hook_config.go b/pkg/github/models/hook_config.go deleted file mode 100644 index 20cc21ac..00000000 --- a/pkg/github/models/hook_config.go +++ /dev/null @@ -1,330 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Hook_config -type Hook_config struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. - content_type *string - // The digest property - digest *string - // The email property - email *string - // The insecure_ssl property - insecure_ssl WebhookConfigInsecureSslable - // The password property - password *string - // The room property - room *string - // If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). - secret *string - // The subdomain property - subdomain *string - // The token property - token *string - // The URL to which the payloads will be delivered. - url *string -} -// NewHook_config instantiates a new hook_config and sets the default values. -func NewHook_config()(*Hook_config) { - m := &Hook_config{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateHook_configFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateHook_configFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewHook_config(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Hook_config) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetContentType gets the content_type property value. The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. -func (m *Hook_config) GetContentType()(*string) { - return m.content_type -} -// GetDigest gets the digest property value. The digest property -func (m *Hook_config) GetDigest()(*string) { - return m.digest -} -// GetEmail gets the email property value. The email property -func (m *Hook_config) GetEmail()(*string) { - return m.email -} -// GetFieldDeserializers the deserialization information for the current model -func (m *Hook_config) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["content_type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContentType(val) - } - return nil - } - res["digest"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDigest(val) - } - return nil - } - res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEmail(val) - } - return nil - } - res["insecure_ssl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWebhookConfigInsecureSslFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInsecureSsl(val.(WebhookConfigInsecureSslable)) - } - return nil - } - res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPassword(val) - } - return nil - } - res["room"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetRoom(val) - } - return nil - } - res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSecret(val) - } - return nil - } - res["subdomain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSubdomain(val) - } - return nil - } - res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetToken(val) - } - return nil - } - res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUrl(val) - } - return nil - } - return res -} -// GetInsecureSsl gets the insecure_ssl property value. The insecure_ssl property -func (m *Hook_config) GetInsecureSsl()(WebhookConfigInsecureSslable) { - return m.insecure_ssl -} -// GetPassword gets the password property value. The password property -func (m *Hook_config) GetPassword()(*string) { - return m.password -} -// GetRoom gets the room property value. The room property -func (m *Hook_config) GetRoom()(*string) { - return m.room -} -// GetSecret gets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). -func (m *Hook_config) GetSecret()(*string) { - return m.secret -} -// GetSubdomain gets the subdomain property value. The subdomain property -func (m *Hook_config) GetSubdomain()(*string) { - return m.subdomain -} -// GetToken gets the token property value. The token property -func (m *Hook_config) GetToken()(*string) { - return m.token -} -// GetUrl gets the url property value. The URL to which the payloads will be delivered. -func (m *Hook_config) GetUrl()(*string) { - return m.url -} -// Serialize serializes information the current object -func (m *Hook_config) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("content_type", m.GetContentType()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("digest", m.GetDigest()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("email", m.GetEmail()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("insecure_ssl", m.GetInsecureSsl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("password", m.GetPassword()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("room", m.GetRoom()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("secret", m.GetSecret()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("subdomain", m.GetSubdomain()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("token", m.GetToken()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("url", m.GetUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Hook_config) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetContentType sets the content_type property value. The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. -func (m *Hook_config) SetContentType(value *string)() { - m.content_type = value -} -// SetDigest sets the digest property value. The digest property -func (m *Hook_config) SetDigest(value *string)() { - m.digest = value -} -// SetEmail sets the email property value. The email property -func (m *Hook_config) SetEmail(value *string)() { - m.email = value -} -// SetInsecureSsl sets the insecure_ssl property value. The insecure_ssl property -func (m *Hook_config) SetInsecureSsl(value WebhookConfigInsecureSslable)() { - m.insecure_ssl = value -} -// SetPassword sets the password property value. The password property -func (m *Hook_config) SetPassword(value *string)() { - m.password = value -} -// SetRoom sets the room property value. The room property -func (m *Hook_config) SetRoom(value *string)() { - m.room = value -} -// SetSecret sets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). -func (m *Hook_config) SetSecret(value *string)() { - m.secret = value -} -// SetSubdomain sets the subdomain property value. The subdomain property -func (m *Hook_config) SetSubdomain(value *string)() { - m.subdomain = value -} -// SetToken sets the token property value. The token property -func (m *Hook_config) SetToken(value *string)() { - m.token = value -} -// SetUrl sets the url property value. The URL to which the payloads will be delivered. -func (m *Hook_config) SetUrl(value *string)() { - m.url = value -} -// Hook_configable -type Hook_configable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetContentType()(*string) - GetDigest()(*string) - GetEmail()(*string) - GetInsecureSsl()(WebhookConfigInsecureSslable) - GetPassword()(*string) - GetRoom()(*string) - GetSecret()(*string) - GetSubdomain()(*string) - GetToken()(*string) - GetUrl()(*string) - SetContentType(value *string)() - SetDigest(value *string)() - SetEmail(value *string)() - SetInsecureSsl(value WebhookConfigInsecureSslable)() - SetPassword(value *string)() - SetRoom(value *string)() - SetSecret(value *string)() - SetSubdomain(value *string)() - SetToken(value *string)() - SetUrl(value *string)() -} diff --git a/pkg/github/models/nullable_repository_template_repository.go b/pkg/github/models/nullable_repository_template_repository.go deleted file mode 100644 index 305d396d..00000000 --- a/pkg/github/models/nullable_repository_template_repository.go +++ /dev/null @@ -1,2496 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// NullableRepository_template_repository -type NullableRepository_template_repository struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The allow_auto_merge property - allow_auto_merge *bool - // The allow_merge_commit property - allow_merge_commit *bool - // The allow_rebase_merge property - allow_rebase_merge *bool - // The allow_squash_merge property - allow_squash_merge *bool - // The allow_update_branch property - allow_update_branch *bool - // The archive_url property - archive_url *string - // The archived property - archived *bool - // The assignees_url property - assignees_url *string - // The blobs_url property - blobs_url *string - // The branches_url property - branches_url *string - // The clone_url property - clone_url *string - // The collaborators_url property - collaborators_url *string - // The comments_url property - comments_url *string - // The commits_url property - commits_url *string - // The compare_url property - compare_url *string - // The contents_url property - contents_url *string - // The contributors_url property - contributors_url *string - // The created_at property - created_at *string - // The default_branch property - default_branch *string - // The delete_branch_on_merge property - delete_branch_on_merge *bool - // The deployments_url property - deployments_url *string - // The description property - description *string - // The disabled property - disabled *bool - // The downloads_url property - downloads_url *string - // The events_url property - events_url *string - // The fork property - fork *bool - // The forks_count property - forks_count *int32 - // The forks_url property - forks_url *string - // The full_name property - full_name *string - // The git_commits_url property - git_commits_url *string - // The git_refs_url property - git_refs_url *string - // The git_tags_url property - git_tags_url *string - // The git_url property - git_url *string - // The has_downloads property - has_downloads *bool - // The has_issues property - has_issues *bool - // The has_pages property - has_pages *bool - // The has_projects property - has_projects *bool - // The has_wiki property - has_wiki *bool - // The homepage property - homepage *string - // The hooks_url property - hooks_url *string - // The html_url property - html_url *string - // The id property - id *int32 - // The is_template property - is_template *bool - // The issue_comment_url property - issue_comment_url *string - // The issue_events_url property - issue_events_url *string - // The issues_url property - issues_url *string - // The keys_url property - keys_url *string - // The labels_url property - labels_url *string - // The language property - language *string - // The languages_url property - languages_url *string - // The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. - merge_commit_message *NullableRepository_template_repository_merge_commit_message - // The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). - merge_commit_title *NullableRepository_template_repository_merge_commit_title - // The merges_url property - merges_url *string - // The milestones_url property - milestones_url *string - // The mirror_url property - mirror_url *string - // The name property - name *string - // The network_count property - network_count *int32 - // The node_id property - node_id *string - // The notifications_url property - notifications_url *string - // The open_issues_count property - open_issues_count *int32 - // The owner property - owner NullableRepository_template_repository_ownerable - // The permissions property - permissions NullableRepository_template_repository_permissionsable - // The private property - private *bool - // The pulls_url property - pulls_url *string - // The pushed_at property - pushed_at *string - // The releases_url property - releases_url *string - // The size property - size *int32 - // The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. - squash_merge_commit_message *NullableRepository_template_repository_squash_merge_commit_message - // The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). - squash_merge_commit_title *NullableRepository_template_repository_squash_merge_commit_title - // The ssh_url property - ssh_url *string - // The stargazers_count property - stargazers_count *int32 - // The stargazers_url property - stargazers_url *string - // The statuses_url property - statuses_url *string - // The subscribers_count property - subscribers_count *int32 - // The subscribers_url property - subscribers_url *string - // The subscription_url property - subscription_url *string - // The svn_url property - svn_url *string - // The tags_url property - tags_url *string - // The teams_url property - teams_url *string - // The temp_clone_token property - temp_clone_token *string - // The topics property - topics []string - // The trees_url property - trees_url *string - // The updated_at property - updated_at *string - // The url property - url *string - // The use_squash_pr_title_as_default property - use_squash_pr_title_as_default *bool - // The visibility property - visibility *string - // The watchers_count property - watchers_count *int32 -} -// NewNullableRepository_template_repository instantiates a new nullableRepository_template_repository and sets the default values. -func NewNullableRepository_template_repository()(*NullableRepository_template_repository) { - m := &NullableRepository_template_repository{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateNullableRepository_template_repositoryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateNullableRepository_template_repositoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewNullableRepository_template_repository(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *NullableRepository_template_repository) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAllowAutoMerge gets the allow_auto_merge property value. The allow_auto_merge property -func (m *NullableRepository_template_repository) GetAllowAutoMerge()(*bool) { - return m.allow_auto_merge -} -// GetAllowMergeCommit gets the allow_merge_commit property value. The allow_merge_commit property -func (m *NullableRepository_template_repository) GetAllowMergeCommit()(*bool) { - return m.allow_merge_commit -} -// GetAllowRebaseMerge gets the allow_rebase_merge property value. The allow_rebase_merge property -func (m *NullableRepository_template_repository) GetAllowRebaseMerge()(*bool) { - return m.allow_rebase_merge -} -// GetAllowSquashMerge gets the allow_squash_merge property value. The allow_squash_merge property -func (m *NullableRepository_template_repository) GetAllowSquashMerge()(*bool) { - return m.allow_squash_merge -} -// GetAllowUpdateBranch gets the allow_update_branch property value. The allow_update_branch property -func (m *NullableRepository_template_repository) GetAllowUpdateBranch()(*bool) { - return m.allow_update_branch -} -// GetArchived gets the archived property value. The archived property -func (m *NullableRepository_template_repository) GetArchived()(*bool) { - return m.archived -} -// GetArchiveUrl gets the archive_url property value. The archive_url property -func (m *NullableRepository_template_repository) GetArchiveUrl()(*string) { - return m.archive_url -} -// GetAssigneesUrl gets the assignees_url property value. The assignees_url property -func (m *NullableRepository_template_repository) GetAssigneesUrl()(*string) { - return m.assignees_url -} -// GetBlobsUrl gets the blobs_url property value. The blobs_url property -func (m *NullableRepository_template_repository) GetBlobsUrl()(*string) { - return m.blobs_url -} -// GetBranchesUrl gets the branches_url property value. The branches_url property -func (m *NullableRepository_template_repository) GetBranchesUrl()(*string) { - return m.branches_url -} -// GetCloneUrl gets the clone_url property value. The clone_url property -func (m *NullableRepository_template_repository) GetCloneUrl()(*string) { - return m.clone_url -} -// GetCollaboratorsUrl gets the collaborators_url property value. The collaborators_url property -func (m *NullableRepository_template_repository) GetCollaboratorsUrl()(*string) { - return m.collaborators_url -} -// GetCommentsUrl gets the comments_url property value. The comments_url property -func (m *NullableRepository_template_repository) GetCommentsUrl()(*string) { - return m.comments_url -} -// GetCommitsUrl gets the commits_url property value. The commits_url property -func (m *NullableRepository_template_repository) GetCommitsUrl()(*string) { - return m.commits_url -} -// GetCompareUrl gets the compare_url property value. The compare_url property -func (m *NullableRepository_template_repository) GetCompareUrl()(*string) { - return m.compare_url -} -// GetContentsUrl gets the contents_url property value. The contents_url property -func (m *NullableRepository_template_repository) GetContentsUrl()(*string) { - return m.contents_url -} -// GetContributorsUrl gets the contributors_url property value. The contributors_url property -func (m *NullableRepository_template_repository) GetContributorsUrl()(*string) { - return m.contributors_url -} -// GetCreatedAt gets the created_at property value. The created_at property -func (m *NullableRepository_template_repository) GetCreatedAt()(*string) { - return m.created_at -} -// GetDefaultBranch gets the default_branch property value. The default_branch property -func (m *NullableRepository_template_repository) GetDefaultBranch()(*string) { - return m.default_branch -} -// GetDeleteBranchOnMerge gets the delete_branch_on_merge property value. The delete_branch_on_merge property -func (m *NullableRepository_template_repository) GetDeleteBranchOnMerge()(*bool) { - return m.delete_branch_on_merge -} -// GetDeploymentsUrl gets the deployments_url property value. The deployments_url property -func (m *NullableRepository_template_repository) GetDeploymentsUrl()(*string) { - return m.deployments_url -} -// GetDescription gets the description property value. The description property -func (m *NullableRepository_template_repository) GetDescription()(*string) { - return m.description -} -// GetDisabled gets the disabled property value. The disabled property -func (m *NullableRepository_template_repository) GetDisabled()(*bool) { - return m.disabled -} -// GetDownloadsUrl gets the downloads_url property value. The downloads_url property -func (m *NullableRepository_template_repository) GetDownloadsUrl()(*string) { - return m.downloads_url -} -// GetEventsUrl gets the events_url property value. The events_url property -func (m *NullableRepository_template_repository) GetEventsUrl()(*string) { - return m.events_url -} -// GetFieldDeserializers the deserialization information for the current model -func (m *NullableRepository_template_repository) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allow_auto_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowAutoMerge(val) - } - return nil - } - res["allow_merge_commit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowMergeCommit(val) - } - return nil - } - res["allow_rebase_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowRebaseMerge(val) - } - return nil - } - res["allow_squash_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowSquashMerge(val) - } - return nil - } - res["allow_update_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowUpdateBranch(val) - } - return nil - } - res["archive_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetArchiveUrl(val) - } - return nil - } - res["archived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetArchived(val) - } - return nil - } - res["assignees_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAssigneesUrl(val) - } - return nil - } - res["blobs_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetBlobsUrl(val) - } - return nil - } - res["branches_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetBranchesUrl(val) - } - return nil - } - res["clone_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCloneUrl(val) - } - return nil - } - res["collaborators_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCollaboratorsUrl(val) - } - return nil - } - res["comments_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCommentsUrl(val) - } - return nil - } - res["commits_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCommitsUrl(val) - } - return nil - } - res["compare_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCompareUrl(val) - } - return nil - } - res["contents_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContentsUrl(val) - } - return nil - } - res["contributors_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContributorsUrl(val) - } - return nil - } - res["created_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedAt(val) - } - return nil - } - res["default_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDefaultBranch(val) - } - return nil - } - res["delete_branch_on_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetDeleteBranchOnMerge(val) - } - return nil - } - res["deployments_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDeploymentsUrl(val) - } - return nil - } - res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDescription(val) - } - return nil - } - res["disabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetDisabled(val) - } - return nil - } - res["downloads_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDownloadsUrl(val) - } - return nil - } - res["events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEventsUrl(val) - } - return nil - } - res["fork"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetFork(val) - } - return nil - } - res["forks_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetForksCount(val) - } - return nil - } - res["forks_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetForksUrl(val) - } - return nil - } - res["full_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFullName(val) - } - return nil - } - res["git_commits_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitCommitsUrl(val) - } - return nil - } - res["git_refs_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitRefsUrl(val) - } - return nil - } - res["git_tags_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitTagsUrl(val) - } - return nil - } - res["git_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitUrl(val) - } - return nil - } - res["has_downloads"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasDownloads(val) - } - return nil - } - res["has_issues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasIssues(val) - } - return nil - } - res["has_pages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasPages(val) - } - return nil - } - res["has_projects"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasProjects(val) - } - return nil - } - res["has_wiki"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasWiki(val) - } - return nil - } - res["homepage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHomepage(val) - } - return nil - } - res["hooks_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHooksUrl(val) - } - return nil - } - res["html_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHtmlUrl(val) - } - return nil - } - res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetId(val) - } - return nil - } - res["is_template"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetIsTemplate(val) - } - return nil - } - res["issue_comment_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetIssueCommentUrl(val) - } - return nil - } - res["issue_events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetIssueEventsUrl(val) - } - return nil - } - res["issues_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetIssuesUrl(val) - } - return nil - } - res["keys_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetKeysUrl(val) - } - return nil - } - res["labels_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLabelsUrl(val) - } - return nil - } - res["language"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLanguage(val) - } - return nil - } - res["languages_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLanguagesUrl(val) - } - return nil - } - res["merge_commit_message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNullableRepository_template_repository_merge_commit_message) - if err != nil { - return err - } - if val != nil { - m.SetMergeCommitMessage(val.(*NullableRepository_template_repository_merge_commit_message)) - } - return nil - } - res["merge_commit_title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNullableRepository_template_repository_merge_commit_title) - if err != nil { - return err - } - if val != nil { - m.SetMergeCommitTitle(val.(*NullableRepository_template_repository_merge_commit_title)) - } - return nil - } - res["merges_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMergesUrl(val) - } - return nil - } - res["milestones_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMilestonesUrl(val) - } - return nil - } - res["mirror_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMirrorUrl(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["network_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetNetworkCount(val) - } - return nil - } - res["node_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetNodeId(val) - } - return nil - } - res["notifications_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetNotificationsUrl(val) - } - return nil - } - res["open_issues_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetOpenIssuesCount(val) - } - return nil - } - res["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateNullableRepository_template_repository_ownerFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOwner(val.(NullableRepository_template_repository_ownerable)) - } - return nil - } - res["permissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateNullableRepository_template_repository_permissionsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPermissions(val.(NullableRepository_template_repository_permissionsable)) - } - return nil - } - res["private"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPrivate(val) - } - return nil - } - res["pulls_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPullsUrl(val) - } - return nil - } - res["pushed_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPushedAt(val) - } - return nil - } - res["releases_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetReleasesUrl(val) - } - return nil - } - res["size"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetSize(val) - } - return nil - } - res["squash_merge_commit_message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNullableRepository_template_repository_squash_merge_commit_message) - if err != nil { - return err - } - if val != nil { - m.SetSquashMergeCommitMessage(val.(*NullableRepository_template_repository_squash_merge_commit_message)) - } - return nil - } - res["squash_merge_commit_title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNullableRepository_template_repository_squash_merge_commit_title) - if err != nil { - return err - } - if val != nil { - m.SetSquashMergeCommitTitle(val.(*NullableRepository_template_repository_squash_merge_commit_title)) - } - return nil - } - res["ssh_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSshUrl(val) - } - return nil - } - res["stargazers_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetStargazersCount(val) - } - return nil - } - res["stargazers_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStargazersUrl(val) - } - return nil - } - res["statuses_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatusesUrl(val) - } - return nil - } - res["subscribers_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetSubscribersCount(val) - } - return nil - } - res["subscribers_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSubscribersUrl(val) - } - return nil - } - res["subscription_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSubscriptionUrl(val) - } - return nil - } - res["svn_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSvnUrl(val) - } - return nil - } - res["tags_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTagsUrl(val) - } - return nil - } - res["teams_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTeamsUrl(val) - } - return nil - } - res["temp_clone_token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTempCloneToken(val) - } - return nil - } - res["topics"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetTopics(res) - } - return nil - } - res["trees_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTreesUrl(val) - } - return nil - } - res["updated_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUpdatedAt(val) - } - return nil - } - res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUrl(val) - } - return nil - } - res["use_squash_pr_title_as_default"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetUseSquashPrTitleAsDefault(val) - } - return nil - } - res["visibility"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetVisibility(val) - } - return nil - } - res["watchers_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetWatchersCount(val) - } - return nil - } - return res -} -// GetFork gets the fork property value. The fork property -func (m *NullableRepository_template_repository) GetFork()(*bool) { - return m.fork -} -// GetForksCount gets the forks_count property value. The forks_count property -func (m *NullableRepository_template_repository) GetForksCount()(*int32) { - return m.forks_count -} -// GetForksUrl gets the forks_url property value. The forks_url property -func (m *NullableRepository_template_repository) GetForksUrl()(*string) { - return m.forks_url -} -// GetFullName gets the full_name property value. The full_name property -func (m *NullableRepository_template_repository) GetFullName()(*string) { - return m.full_name -} -// GetGitCommitsUrl gets the git_commits_url property value. The git_commits_url property -func (m *NullableRepository_template_repository) GetGitCommitsUrl()(*string) { - return m.git_commits_url -} -// GetGitRefsUrl gets the git_refs_url property value. The git_refs_url property -func (m *NullableRepository_template_repository) GetGitRefsUrl()(*string) { - return m.git_refs_url -} -// GetGitTagsUrl gets the git_tags_url property value. The git_tags_url property -func (m *NullableRepository_template_repository) GetGitTagsUrl()(*string) { - return m.git_tags_url -} -// GetGitUrl gets the git_url property value. The git_url property -func (m *NullableRepository_template_repository) GetGitUrl()(*string) { - return m.git_url -} -// GetHasDownloads gets the has_downloads property value. The has_downloads property -func (m *NullableRepository_template_repository) GetHasDownloads()(*bool) { - return m.has_downloads -} -// GetHasIssues gets the has_issues property value. The has_issues property -func (m *NullableRepository_template_repository) GetHasIssues()(*bool) { - return m.has_issues -} -// GetHasPages gets the has_pages property value. The has_pages property -func (m *NullableRepository_template_repository) GetHasPages()(*bool) { - return m.has_pages -} -// GetHasProjects gets the has_projects property value. The has_projects property -func (m *NullableRepository_template_repository) GetHasProjects()(*bool) { - return m.has_projects -} -// GetHasWiki gets the has_wiki property value. The has_wiki property -func (m *NullableRepository_template_repository) GetHasWiki()(*bool) { - return m.has_wiki -} -// GetHomepage gets the homepage property value. The homepage property -func (m *NullableRepository_template_repository) GetHomepage()(*string) { - return m.homepage -} -// GetHooksUrl gets the hooks_url property value. The hooks_url property -func (m *NullableRepository_template_repository) GetHooksUrl()(*string) { - return m.hooks_url -} -// GetHtmlUrl gets the html_url property value. The html_url property -func (m *NullableRepository_template_repository) GetHtmlUrl()(*string) { - return m.html_url -} -// GetId gets the id property value. The id property -func (m *NullableRepository_template_repository) GetId()(*int32) { - return m.id -} -// GetIssueCommentUrl gets the issue_comment_url property value. The issue_comment_url property -func (m *NullableRepository_template_repository) GetIssueCommentUrl()(*string) { - return m.issue_comment_url -} -// GetIssueEventsUrl gets the issue_events_url property value. The issue_events_url property -func (m *NullableRepository_template_repository) GetIssueEventsUrl()(*string) { - return m.issue_events_url -} -// GetIssuesUrl gets the issues_url property value. The issues_url property -func (m *NullableRepository_template_repository) GetIssuesUrl()(*string) { - return m.issues_url -} -// GetIsTemplate gets the is_template property value. The is_template property -func (m *NullableRepository_template_repository) GetIsTemplate()(*bool) { - return m.is_template -} -// GetKeysUrl gets the keys_url property value. The keys_url property -func (m *NullableRepository_template_repository) GetKeysUrl()(*string) { - return m.keys_url -} -// GetLabelsUrl gets the labels_url property value. The labels_url property -func (m *NullableRepository_template_repository) GetLabelsUrl()(*string) { - return m.labels_url -} -// GetLanguage gets the language property value. The language property -func (m *NullableRepository_template_repository) GetLanguage()(*string) { - return m.language -} -// GetLanguagesUrl gets the languages_url property value. The languages_url property -func (m *NullableRepository_template_repository) GetLanguagesUrl()(*string) { - return m.languages_url -} -// GetMergeCommitMessage gets the merge_commit_message property value. The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -func (m *NullableRepository_template_repository) GetMergeCommitMessage()(*NullableRepository_template_repository_merge_commit_message) { - return m.merge_commit_message -} -// GetMergeCommitTitle gets the merge_commit_title property value. The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -func (m *NullableRepository_template_repository) GetMergeCommitTitle()(*NullableRepository_template_repository_merge_commit_title) { - return m.merge_commit_title -} -// GetMergesUrl gets the merges_url property value. The merges_url property -func (m *NullableRepository_template_repository) GetMergesUrl()(*string) { - return m.merges_url -} -// GetMilestonesUrl gets the milestones_url property value. The milestones_url property -func (m *NullableRepository_template_repository) GetMilestonesUrl()(*string) { - return m.milestones_url -} -// GetMirrorUrl gets the mirror_url property value. The mirror_url property -func (m *NullableRepository_template_repository) GetMirrorUrl()(*string) { - return m.mirror_url -} -// GetName gets the name property value. The name property -func (m *NullableRepository_template_repository) GetName()(*string) { - return m.name -} -// GetNetworkCount gets the network_count property value. The network_count property -func (m *NullableRepository_template_repository) GetNetworkCount()(*int32) { - return m.network_count -} -// GetNodeId gets the node_id property value. The node_id property -func (m *NullableRepository_template_repository) GetNodeId()(*string) { - return m.node_id -} -// GetNotificationsUrl gets the notifications_url property value. The notifications_url property -func (m *NullableRepository_template_repository) GetNotificationsUrl()(*string) { - return m.notifications_url -} -// GetOpenIssuesCount gets the open_issues_count property value. The open_issues_count property -func (m *NullableRepository_template_repository) GetOpenIssuesCount()(*int32) { - return m.open_issues_count -} -// GetOwner gets the owner property value. The owner property -func (m *NullableRepository_template_repository) GetOwner()(NullableRepository_template_repository_ownerable) { - return m.owner -} -// GetPermissions gets the permissions property value. The permissions property -func (m *NullableRepository_template_repository) GetPermissions()(NullableRepository_template_repository_permissionsable) { - return m.permissions -} -// GetPrivate gets the private property value. The private property -func (m *NullableRepository_template_repository) GetPrivate()(*bool) { - return m.private -} -// GetPullsUrl gets the pulls_url property value. The pulls_url property -func (m *NullableRepository_template_repository) GetPullsUrl()(*string) { - return m.pulls_url -} -// GetPushedAt gets the pushed_at property value. The pushed_at property -func (m *NullableRepository_template_repository) GetPushedAt()(*string) { - return m.pushed_at -} -// GetReleasesUrl gets the releases_url property value. The releases_url property -func (m *NullableRepository_template_repository) GetReleasesUrl()(*string) { - return m.releases_url -} -// GetSize gets the size property value. The size property -func (m *NullableRepository_template_repository) GetSize()(*int32) { - return m.size -} -// GetSquashMergeCommitMessage gets the squash_merge_commit_message property value. The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -func (m *NullableRepository_template_repository) GetSquashMergeCommitMessage()(*NullableRepository_template_repository_squash_merge_commit_message) { - return m.squash_merge_commit_message -} -// GetSquashMergeCommitTitle gets the squash_merge_commit_title property value. The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -func (m *NullableRepository_template_repository) GetSquashMergeCommitTitle()(*NullableRepository_template_repository_squash_merge_commit_title) { - return m.squash_merge_commit_title -} -// GetSshUrl gets the ssh_url property value. The ssh_url property -func (m *NullableRepository_template_repository) GetSshUrl()(*string) { - return m.ssh_url -} -// GetStargazersCount gets the stargazers_count property value. The stargazers_count property -func (m *NullableRepository_template_repository) GetStargazersCount()(*int32) { - return m.stargazers_count -} -// GetStargazersUrl gets the stargazers_url property value. The stargazers_url property -func (m *NullableRepository_template_repository) GetStargazersUrl()(*string) { - return m.stargazers_url -} -// GetStatusesUrl gets the statuses_url property value. The statuses_url property -func (m *NullableRepository_template_repository) GetStatusesUrl()(*string) { - return m.statuses_url -} -// GetSubscribersCount gets the subscribers_count property value. The subscribers_count property -func (m *NullableRepository_template_repository) GetSubscribersCount()(*int32) { - return m.subscribers_count -} -// GetSubscribersUrl gets the subscribers_url property value. The subscribers_url property -func (m *NullableRepository_template_repository) GetSubscribersUrl()(*string) { - return m.subscribers_url -} -// GetSubscriptionUrl gets the subscription_url property value. The subscription_url property -func (m *NullableRepository_template_repository) GetSubscriptionUrl()(*string) { - return m.subscription_url -} -// GetSvnUrl gets the svn_url property value. The svn_url property -func (m *NullableRepository_template_repository) GetSvnUrl()(*string) { - return m.svn_url -} -// GetTagsUrl gets the tags_url property value. The tags_url property -func (m *NullableRepository_template_repository) GetTagsUrl()(*string) { - return m.tags_url -} -// GetTeamsUrl gets the teams_url property value. The teams_url property -func (m *NullableRepository_template_repository) GetTeamsUrl()(*string) { - return m.teams_url -} -// GetTempCloneToken gets the temp_clone_token property value. The temp_clone_token property -func (m *NullableRepository_template_repository) GetTempCloneToken()(*string) { - return m.temp_clone_token -} -// GetTopics gets the topics property value. The topics property -func (m *NullableRepository_template_repository) GetTopics()([]string) { - return m.topics -} -// GetTreesUrl gets the trees_url property value. The trees_url property -func (m *NullableRepository_template_repository) GetTreesUrl()(*string) { - return m.trees_url -} -// GetUpdatedAt gets the updated_at property value. The updated_at property -func (m *NullableRepository_template_repository) GetUpdatedAt()(*string) { - return m.updated_at -} -// GetUrl gets the url property value. The url property -func (m *NullableRepository_template_repository) GetUrl()(*string) { - return m.url -} -// GetUseSquashPrTitleAsDefault gets the use_squash_pr_title_as_default property value. The use_squash_pr_title_as_default property -func (m *NullableRepository_template_repository) GetUseSquashPrTitleAsDefault()(*bool) { - return m.use_squash_pr_title_as_default -} -// GetVisibility gets the visibility property value. The visibility property -func (m *NullableRepository_template_repository) GetVisibility()(*string) { - return m.visibility -} -// GetWatchersCount gets the watchers_count property value. The watchers_count property -func (m *NullableRepository_template_repository) GetWatchersCount()(*int32) { - return m.watchers_count -} -// Serialize serializes information the current object -func (m *NullableRepository_template_repository) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("allow_auto_merge", m.GetAllowAutoMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_merge_commit", m.GetAllowMergeCommit()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_rebase_merge", m.GetAllowRebaseMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_squash_merge", m.GetAllowSquashMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_update_branch", m.GetAllowUpdateBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("archived", m.GetArchived()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("archive_url", m.GetArchiveUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("assignees_url", m.GetAssigneesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("blobs_url", m.GetBlobsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("branches_url", m.GetBranchesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("clone_url", m.GetCloneUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("collaborators_url", m.GetCollaboratorsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("comments_url", m.GetCommentsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("commits_url", m.GetCommitsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("compare_url", m.GetCompareUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("contents_url", m.GetContentsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("contributors_url", m.GetContributorsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("created_at", m.GetCreatedAt()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("default_branch", m.GetDefaultBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("delete_branch_on_merge", m.GetDeleteBranchOnMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("deployments_url", m.GetDeploymentsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("description", m.GetDescription()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("disabled", m.GetDisabled()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("downloads_url", m.GetDownloadsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("events_url", m.GetEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("fork", m.GetFork()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("forks_count", m.GetForksCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("forks_url", m.GetForksUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("full_name", m.GetFullName()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_commits_url", m.GetGitCommitsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_refs_url", m.GetGitRefsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_tags_url", m.GetGitTagsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_url", m.GetGitUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_downloads", m.GetHasDownloads()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_issues", m.GetHasIssues()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_pages", m.GetHasPages()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_projects", m.GetHasProjects()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_wiki", m.GetHasWiki()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("homepage", m.GetHomepage()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("hooks_url", m.GetHooksUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("html_url", m.GetHtmlUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("id", m.GetId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("issues_url", m.GetIssuesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("issue_comment_url", m.GetIssueCommentUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("issue_events_url", m.GetIssueEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("is_template", m.GetIsTemplate()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("keys_url", m.GetKeysUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("labels_url", m.GetLabelsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("language", m.GetLanguage()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("languages_url", m.GetLanguagesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("merges_url", m.GetMergesUrl()) - if err != nil { - return err - } - } - if m.GetMergeCommitMessage() != nil { - cast := (*m.GetMergeCommitMessage()).String() - err := writer.WriteStringValue("merge_commit_message", &cast) - if err != nil { - return err - } - } - if m.GetMergeCommitTitle() != nil { - cast := (*m.GetMergeCommitTitle()).String() - err := writer.WriteStringValue("merge_commit_title", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("milestones_url", m.GetMilestonesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("mirror_url", m.GetMirrorUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("network_count", m.GetNetworkCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("node_id", m.GetNodeId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("notifications_url", m.GetNotificationsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("open_issues_count", m.GetOpenIssuesCount()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("owner", m.GetOwner()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("permissions", m.GetPermissions()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("private", m.GetPrivate()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("pulls_url", m.GetPullsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("pushed_at", m.GetPushedAt()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("releases_url", m.GetReleasesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("size", m.GetSize()) - if err != nil { - return err - } - } - if m.GetSquashMergeCommitMessage() != nil { - cast := (*m.GetSquashMergeCommitMessage()).String() - err := writer.WriteStringValue("squash_merge_commit_message", &cast) - if err != nil { - return err - } - } - if m.GetSquashMergeCommitTitle() != nil { - cast := (*m.GetSquashMergeCommitTitle()).String() - err := writer.WriteStringValue("squash_merge_commit_title", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("ssh_url", m.GetSshUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("stargazers_count", m.GetStargazersCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("stargazers_url", m.GetStargazersUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("statuses_url", m.GetStatusesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("subscribers_count", m.GetSubscribersCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("subscribers_url", m.GetSubscribersUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("subscription_url", m.GetSubscriptionUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("svn_url", m.GetSvnUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("tags_url", m.GetTagsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("teams_url", m.GetTeamsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("temp_clone_token", m.GetTempCloneToken()) - if err != nil { - return err - } - } - if m.GetTopics() != nil { - err := writer.WriteCollectionOfStringValues("topics", m.GetTopics()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("trees_url", m.GetTreesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("updated_at", m.GetUpdatedAt()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("url", m.GetUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("use_squash_pr_title_as_default", m.GetUseSquashPrTitleAsDefault()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("visibility", m.GetVisibility()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("watchers_count", m.GetWatchersCount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *NullableRepository_template_repository) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAllowAutoMerge sets the allow_auto_merge property value. The allow_auto_merge property -func (m *NullableRepository_template_repository) SetAllowAutoMerge(value *bool)() { - m.allow_auto_merge = value -} -// SetAllowMergeCommit sets the allow_merge_commit property value. The allow_merge_commit property -func (m *NullableRepository_template_repository) SetAllowMergeCommit(value *bool)() { - m.allow_merge_commit = value -} -// SetAllowRebaseMerge sets the allow_rebase_merge property value. The allow_rebase_merge property -func (m *NullableRepository_template_repository) SetAllowRebaseMerge(value *bool)() { - m.allow_rebase_merge = value -} -// SetAllowSquashMerge sets the allow_squash_merge property value. The allow_squash_merge property -func (m *NullableRepository_template_repository) SetAllowSquashMerge(value *bool)() { - m.allow_squash_merge = value -} -// SetAllowUpdateBranch sets the allow_update_branch property value. The allow_update_branch property -func (m *NullableRepository_template_repository) SetAllowUpdateBranch(value *bool)() { - m.allow_update_branch = value -} -// SetArchived sets the archived property value. The archived property -func (m *NullableRepository_template_repository) SetArchived(value *bool)() { - m.archived = value -} -// SetArchiveUrl sets the archive_url property value. The archive_url property -func (m *NullableRepository_template_repository) SetArchiveUrl(value *string)() { - m.archive_url = value -} -// SetAssigneesUrl sets the assignees_url property value. The assignees_url property -func (m *NullableRepository_template_repository) SetAssigneesUrl(value *string)() { - m.assignees_url = value -} -// SetBlobsUrl sets the blobs_url property value. The blobs_url property -func (m *NullableRepository_template_repository) SetBlobsUrl(value *string)() { - m.blobs_url = value -} -// SetBranchesUrl sets the branches_url property value. The branches_url property -func (m *NullableRepository_template_repository) SetBranchesUrl(value *string)() { - m.branches_url = value -} -// SetCloneUrl sets the clone_url property value. The clone_url property -func (m *NullableRepository_template_repository) SetCloneUrl(value *string)() { - m.clone_url = value -} -// SetCollaboratorsUrl sets the collaborators_url property value. The collaborators_url property -func (m *NullableRepository_template_repository) SetCollaboratorsUrl(value *string)() { - m.collaborators_url = value -} -// SetCommentsUrl sets the comments_url property value. The comments_url property -func (m *NullableRepository_template_repository) SetCommentsUrl(value *string)() { - m.comments_url = value -} -// SetCommitsUrl sets the commits_url property value. The commits_url property -func (m *NullableRepository_template_repository) SetCommitsUrl(value *string)() { - m.commits_url = value -} -// SetCompareUrl sets the compare_url property value. The compare_url property -func (m *NullableRepository_template_repository) SetCompareUrl(value *string)() { - m.compare_url = value -} -// SetContentsUrl sets the contents_url property value. The contents_url property -func (m *NullableRepository_template_repository) SetContentsUrl(value *string)() { - m.contents_url = value -} -// SetContributorsUrl sets the contributors_url property value. The contributors_url property -func (m *NullableRepository_template_repository) SetContributorsUrl(value *string)() { - m.contributors_url = value -} -// SetCreatedAt sets the created_at property value. The created_at property -func (m *NullableRepository_template_repository) SetCreatedAt(value *string)() { - m.created_at = value -} -// SetDefaultBranch sets the default_branch property value. The default_branch property -func (m *NullableRepository_template_repository) SetDefaultBranch(value *string)() { - m.default_branch = value -} -// SetDeleteBranchOnMerge sets the delete_branch_on_merge property value. The delete_branch_on_merge property -func (m *NullableRepository_template_repository) SetDeleteBranchOnMerge(value *bool)() { - m.delete_branch_on_merge = value -} -// SetDeploymentsUrl sets the deployments_url property value. The deployments_url property -func (m *NullableRepository_template_repository) SetDeploymentsUrl(value *string)() { - m.deployments_url = value -} -// SetDescription sets the description property value. The description property -func (m *NullableRepository_template_repository) SetDescription(value *string)() { - m.description = value -} -// SetDisabled sets the disabled property value. The disabled property -func (m *NullableRepository_template_repository) SetDisabled(value *bool)() { - m.disabled = value -} -// SetDownloadsUrl sets the downloads_url property value. The downloads_url property -func (m *NullableRepository_template_repository) SetDownloadsUrl(value *string)() { - m.downloads_url = value -} -// SetEventsUrl sets the events_url property value. The events_url property -func (m *NullableRepository_template_repository) SetEventsUrl(value *string)() { - m.events_url = value -} -// SetFork sets the fork property value. The fork property -func (m *NullableRepository_template_repository) SetFork(value *bool)() { - m.fork = value -} -// SetForksCount sets the forks_count property value. The forks_count property -func (m *NullableRepository_template_repository) SetForksCount(value *int32)() { - m.forks_count = value -} -// SetForksUrl sets the forks_url property value. The forks_url property -func (m *NullableRepository_template_repository) SetForksUrl(value *string)() { - m.forks_url = value -} -// SetFullName sets the full_name property value. The full_name property -func (m *NullableRepository_template_repository) SetFullName(value *string)() { - m.full_name = value -} -// SetGitCommitsUrl sets the git_commits_url property value. The git_commits_url property -func (m *NullableRepository_template_repository) SetGitCommitsUrl(value *string)() { - m.git_commits_url = value -} -// SetGitRefsUrl sets the git_refs_url property value. The git_refs_url property -func (m *NullableRepository_template_repository) SetGitRefsUrl(value *string)() { - m.git_refs_url = value -} -// SetGitTagsUrl sets the git_tags_url property value. The git_tags_url property -func (m *NullableRepository_template_repository) SetGitTagsUrl(value *string)() { - m.git_tags_url = value -} -// SetGitUrl sets the git_url property value. The git_url property -func (m *NullableRepository_template_repository) SetGitUrl(value *string)() { - m.git_url = value -} -// SetHasDownloads sets the has_downloads property value. The has_downloads property -func (m *NullableRepository_template_repository) SetHasDownloads(value *bool)() { - m.has_downloads = value -} -// SetHasIssues sets the has_issues property value. The has_issues property -func (m *NullableRepository_template_repository) SetHasIssues(value *bool)() { - m.has_issues = value -} -// SetHasPages sets the has_pages property value. The has_pages property -func (m *NullableRepository_template_repository) SetHasPages(value *bool)() { - m.has_pages = value -} -// SetHasProjects sets the has_projects property value. The has_projects property -func (m *NullableRepository_template_repository) SetHasProjects(value *bool)() { - m.has_projects = value -} -// SetHasWiki sets the has_wiki property value. The has_wiki property -func (m *NullableRepository_template_repository) SetHasWiki(value *bool)() { - m.has_wiki = value -} -// SetHomepage sets the homepage property value. The homepage property -func (m *NullableRepository_template_repository) SetHomepage(value *string)() { - m.homepage = value -} -// SetHooksUrl sets the hooks_url property value. The hooks_url property -func (m *NullableRepository_template_repository) SetHooksUrl(value *string)() { - m.hooks_url = value -} -// SetHtmlUrl sets the html_url property value. The html_url property -func (m *NullableRepository_template_repository) SetHtmlUrl(value *string)() { - m.html_url = value -} -// SetId sets the id property value. The id property -func (m *NullableRepository_template_repository) SetId(value *int32)() { - m.id = value -} -// SetIssueCommentUrl sets the issue_comment_url property value. The issue_comment_url property -func (m *NullableRepository_template_repository) SetIssueCommentUrl(value *string)() { - m.issue_comment_url = value -} -// SetIssueEventsUrl sets the issue_events_url property value. The issue_events_url property -func (m *NullableRepository_template_repository) SetIssueEventsUrl(value *string)() { - m.issue_events_url = value -} -// SetIssuesUrl sets the issues_url property value. The issues_url property -func (m *NullableRepository_template_repository) SetIssuesUrl(value *string)() { - m.issues_url = value -} -// SetIsTemplate sets the is_template property value. The is_template property -func (m *NullableRepository_template_repository) SetIsTemplate(value *bool)() { - m.is_template = value -} -// SetKeysUrl sets the keys_url property value. The keys_url property -func (m *NullableRepository_template_repository) SetKeysUrl(value *string)() { - m.keys_url = value -} -// SetLabelsUrl sets the labels_url property value. The labels_url property -func (m *NullableRepository_template_repository) SetLabelsUrl(value *string)() { - m.labels_url = value -} -// SetLanguage sets the language property value. The language property -func (m *NullableRepository_template_repository) SetLanguage(value *string)() { - m.language = value -} -// SetLanguagesUrl sets the languages_url property value. The languages_url property -func (m *NullableRepository_template_repository) SetLanguagesUrl(value *string)() { - m.languages_url = value -} -// SetMergeCommitMessage sets the merge_commit_message property value. The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -func (m *NullableRepository_template_repository) SetMergeCommitMessage(value *NullableRepository_template_repository_merge_commit_message)() { - m.merge_commit_message = value -} -// SetMergeCommitTitle sets the merge_commit_title property value. The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -func (m *NullableRepository_template_repository) SetMergeCommitTitle(value *NullableRepository_template_repository_merge_commit_title)() { - m.merge_commit_title = value -} -// SetMergesUrl sets the merges_url property value. The merges_url property -func (m *NullableRepository_template_repository) SetMergesUrl(value *string)() { - m.merges_url = value -} -// SetMilestonesUrl sets the milestones_url property value. The milestones_url property -func (m *NullableRepository_template_repository) SetMilestonesUrl(value *string)() { - m.milestones_url = value -} -// SetMirrorUrl sets the mirror_url property value. The mirror_url property -func (m *NullableRepository_template_repository) SetMirrorUrl(value *string)() { - m.mirror_url = value -} -// SetName sets the name property value. The name property -func (m *NullableRepository_template_repository) SetName(value *string)() { - m.name = value -} -// SetNetworkCount sets the network_count property value. The network_count property -func (m *NullableRepository_template_repository) SetNetworkCount(value *int32)() { - m.network_count = value -} -// SetNodeId sets the node_id property value. The node_id property -func (m *NullableRepository_template_repository) SetNodeId(value *string)() { - m.node_id = value -} -// SetNotificationsUrl sets the notifications_url property value. The notifications_url property -func (m *NullableRepository_template_repository) SetNotificationsUrl(value *string)() { - m.notifications_url = value -} -// SetOpenIssuesCount sets the open_issues_count property value. The open_issues_count property -func (m *NullableRepository_template_repository) SetOpenIssuesCount(value *int32)() { - m.open_issues_count = value -} -// SetOwner sets the owner property value. The owner property -func (m *NullableRepository_template_repository) SetOwner(value NullableRepository_template_repository_ownerable)() { - m.owner = value -} -// SetPermissions sets the permissions property value. The permissions property -func (m *NullableRepository_template_repository) SetPermissions(value NullableRepository_template_repository_permissionsable)() { - m.permissions = value -} -// SetPrivate sets the private property value. The private property -func (m *NullableRepository_template_repository) SetPrivate(value *bool)() { - m.private = value -} -// SetPullsUrl sets the pulls_url property value. The pulls_url property -func (m *NullableRepository_template_repository) SetPullsUrl(value *string)() { - m.pulls_url = value -} -// SetPushedAt sets the pushed_at property value. The pushed_at property -func (m *NullableRepository_template_repository) SetPushedAt(value *string)() { - m.pushed_at = value -} -// SetReleasesUrl sets the releases_url property value. The releases_url property -func (m *NullableRepository_template_repository) SetReleasesUrl(value *string)() { - m.releases_url = value -} -// SetSize sets the size property value. The size property -func (m *NullableRepository_template_repository) SetSize(value *int32)() { - m.size = value -} -// SetSquashMergeCommitMessage sets the squash_merge_commit_message property value. The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -func (m *NullableRepository_template_repository) SetSquashMergeCommitMessage(value *NullableRepository_template_repository_squash_merge_commit_message)() { - m.squash_merge_commit_message = value -} -// SetSquashMergeCommitTitle sets the squash_merge_commit_title property value. The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -func (m *NullableRepository_template_repository) SetSquashMergeCommitTitle(value *NullableRepository_template_repository_squash_merge_commit_title)() { - m.squash_merge_commit_title = value -} -// SetSshUrl sets the ssh_url property value. The ssh_url property -func (m *NullableRepository_template_repository) SetSshUrl(value *string)() { - m.ssh_url = value -} -// SetStargazersCount sets the stargazers_count property value. The stargazers_count property -func (m *NullableRepository_template_repository) SetStargazersCount(value *int32)() { - m.stargazers_count = value -} -// SetStargazersUrl sets the stargazers_url property value. The stargazers_url property -func (m *NullableRepository_template_repository) SetStargazersUrl(value *string)() { - m.stargazers_url = value -} -// SetStatusesUrl sets the statuses_url property value. The statuses_url property -func (m *NullableRepository_template_repository) SetStatusesUrl(value *string)() { - m.statuses_url = value -} -// SetSubscribersCount sets the subscribers_count property value. The subscribers_count property -func (m *NullableRepository_template_repository) SetSubscribersCount(value *int32)() { - m.subscribers_count = value -} -// SetSubscribersUrl sets the subscribers_url property value. The subscribers_url property -func (m *NullableRepository_template_repository) SetSubscribersUrl(value *string)() { - m.subscribers_url = value -} -// SetSubscriptionUrl sets the subscription_url property value. The subscription_url property -func (m *NullableRepository_template_repository) SetSubscriptionUrl(value *string)() { - m.subscription_url = value -} -// SetSvnUrl sets the svn_url property value. The svn_url property -func (m *NullableRepository_template_repository) SetSvnUrl(value *string)() { - m.svn_url = value -} -// SetTagsUrl sets the tags_url property value. The tags_url property -func (m *NullableRepository_template_repository) SetTagsUrl(value *string)() { - m.tags_url = value -} -// SetTeamsUrl sets the teams_url property value. The teams_url property -func (m *NullableRepository_template_repository) SetTeamsUrl(value *string)() { - m.teams_url = value -} -// SetTempCloneToken sets the temp_clone_token property value. The temp_clone_token property -func (m *NullableRepository_template_repository) SetTempCloneToken(value *string)() { - m.temp_clone_token = value -} -// SetTopics sets the topics property value. The topics property -func (m *NullableRepository_template_repository) SetTopics(value []string)() { - m.topics = value -} -// SetTreesUrl sets the trees_url property value. The trees_url property -func (m *NullableRepository_template_repository) SetTreesUrl(value *string)() { - m.trees_url = value -} -// SetUpdatedAt sets the updated_at property value. The updated_at property -func (m *NullableRepository_template_repository) SetUpdatedAt(value *string)() { - m.updated_at = value -} -// SetUrl sets the url property value. The url property -func (m *NullableRepository_template_repository) SetUrl(value *string)() { - m.url = value -} -// SetUseSquashPrTitleAsDefault sets the use_squash_pr_title_as_default property value. The use_squash_pr_title_as_default property -func (m *NullableRepository_template_repository) SetUseSquashPrTitleAsDefault(value *bool)() { - m.use_squash_pr_title_as_default = value -} -// SetVisibility sets the visibility property value. The visibility property -func (m *NullableRepository_template_repository) SetVisibility(value *string)() { - m.visibility = value -} -// SetWatchersCount sets the watchers_count property value. The watchers_count property -func (m *NullableRepository_template_repository) SetWatchersCount(value *int32)() { - m.watchers_count = value -} -// NullableRepository_template_repositoryable -type NullableRepository_template_repositoryable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowAutoMerge()(*bool) - GetAllowMergeCommit()(*bool) - GetAllowRebaseMerge()(*bool) - GetAllowSquashMerge()(*bool) - GetAllowUpdateBranch()(*bool) - GetArchived()(*bool) - GetArchiveUrl()(*string) - GetAssigneesUrl()(*string) - GetBlobsUrl()(*string) - GetBranchesUrl()(*string) - GetCloneUrl()(*string) - GetCollaboratorsUrl()(*string) - GetCommentsUrl()(*string) - GetCommitsUrl()(*string) - GetCompareUrl()(*string) - GetContentsUrl()(*string) - GetContributorsUrl()(*string) - GetCreatedAt()(*string) - GetDefaultBranch()(*string) - GetDeleteBranchOnMerge()(*bool) - GetDeploymentsUrl()(*string) - GetDescription()(*string) - GetDisabled()(*bool) - GetDownloadsUrl()(*string) - GetEventsUrl()(*string) - GetFork()(*bool) - GetForksCount()(*int32) - GetForksUrl()(*string) - GetFullName()(*string) - GetGitCommitsUrl()(*string) - GetGitRefsUrl()(*string) - GetGitTagsUrl()(*string) - GetGitUrl()(*string) - GetHasDownloads()(*bool) - GetHasIssues()(*bool) - GetHasPages()(*bool) - GetHasProjects()(*bool) - GetHasWiki()(*bool) - GetHomepage()(*string) - GetHooksUrl()(*string) - GetHtmlUrl()(*string) - GetId()(*int32) - GetIssueCommentUrl()(*string) - GetIssueEventsUrl()(*string) - GetIssuesUrl()(*string) - GetIsTemplate()(*bool) - GetKeysUrl()(*string) - GetLabelsUrl()(*string) - GetLanguage()(*string) - GetLanguagesUrl()(*string) - GetMergeCommitMessage()(*NullableRepository_template_repository_merge_commit_message) - GetMergeCommitTitle()(*NullableRepository_template_repository_merge_commit_title) - GetMergesUrl()(*string) - GetMilestonesUrl()(*string) - GetMirrorUrl()(*string) - GetName()(*string) - GetNetworkCount()(*int32) - GetNodeId()(*string) - GetNotificationsUrl()(*string) - GetOpenIssuesCount()(*int32) - GetOwner()(NullableRepository_template_repository_ownerable) - GetPermissions()(NullableRepository_template_repository_permissionsable) - GetPrivate()(*bool) - GetPullsUrl()(*string) - GetPushedAt()(*string) - GetReleasesUrl()(*string) - GetSize()(*int32) - GetSquashMergeCommitMessage()(*NullableRepository_template_repository_squash_merge_commit_message) - GetSquashMergeCommitTitle()(*NullableRepository_template_repository_squash_merge_commit_title) - GetSshUrl()(*string) - GetStargazersCount()(*int32) - GetStargazersUrl()(*string) - GetStatusesUrl()(*string) - GetSubscribersCount()(*int32) - GetSubscribersUrl()(*string) - GetSubscriptionUrl()(*string) - GetSvnUrl()(*string) - GetTagsUrl()(*string) - GetTeamsUrl()(*string) - GetTempCloneToken()(*string) - GetTopics()([]string) - GetTreesUrl()(*string) - GetUpdatedAt()(*string) - GetUrl()(*string) - GetUseSquashPrTitleAsDefault()(*bool) - GetVisibility()(*string) - GetWatchersCount()(*int32) - SetAllowAutoMerge(value *bool)() - SetAllowMergeCommit(value *bool)() - SetAllowRebaseMerge(value *bool)() - SetAllowSquashMerge(value *bool)() - SetAllowUpdateBranch(value *bool)() - SetArchived(value *bool)() - SetArchiveUrl(value *string)() - SetAssigneesUrl(value *string)() - SetBlobsUrl(value *string)() - SetBranchesUrl(value *string)() - SetCloneUrl(value *string)() - SetCollaboratorsUrl(value *string)() - SetCommentsUrl(value *string)() - SetCommitsUrl(value *string)() - SetCompareUrl(value *string)() - SetContentsUrl(value *string)() - SetContributorsUrl(value *string)() - SetCreatedAt(value *string)() - SetDefaultBranch(value *string)() - SetDeleteBranchOnMerge(value *bool)() - SetDeploymentsUrl(value *string)() - SetDescription(value *string)() - SetDisabled(value *bool)() - SetDownloadsUrl(value *string)() - SetEventsUrl(value *string)() - SetFork(value *bool)() - SetForksCount(value *int32)() - SetForksUrl(value *string)() - SetFullName(value *string)() - SetGitCommitsUrl(value *string)() - SetGitRefsUrl(value *string)() - SetGitTagsUrl(value *string)() - SetGitUrl(value *string)() - SetHasDownloads(value *bool)() - SetHasIssues(value *bool)() - SetHasPages(value *bool)() - SetHasProjects(value *bool)() - SetHasWiki(value *bool)() - SetHomepage(value *string)() - SetHooksUrl(value *string)() - SetHtmlUrl(value *string)() - SetId(value *int32)() - SetIssueCommentUrl(value *string)() - SetIssueEventsUrl(value *string)() - SetIssuesUrl(value *string)() - SetIsTemplate(value *bool)() - SetKeysUrl(value *string)() - SetLabelsUrl(value *string)() - SetLanguage(value *string)() - SetLanguagesUrl(value *string)() - SetMergeCommitMessage(value *NullableRepository_template_repository_merge_commit_message)() - SetMergeCommitTitle(value *NullableRepository_template_repository_merge_commit_title)() - SetMergesUrl(value *string)() - SetMilestonesUrl(value *string)() - SetMirrorUrl(value *string)() - SetName(value *string)() - SetNetworkCount(value *int32)() - SetNodeId(value *string)() - SetNotificationsUrl(value *string)() - SetOpenIssuesCount(value *int32)() - SetOwner(value NullableRepository_template_repository_ownerable)() - SetPermissions(value NullableRepository_template_repository_permissionsable)() - SetPrivate(value *bool)() - SetPullsUrl(value *string)() - SetPushedAt(value *string)() - SetReleasesUrl(value *string)() - SetSize(value *int32)() - SetSquashMergeCommitMessage(value *NullableRepository_template_repository_squash_merge_commit_message)() - SetSquashMergeCommitTitle(value *NullableRepository_template_repository_squash_merge_commit_title)() - SetSshUrl(value *string)() - SetStargazersCount(value *int32)() - SetStargazersUrl(value *string)() - SetStatusesUrl(value *string)() - SetSubscribersCount(value *int32)() - SetSubscribersUrl(value *string)() - SetSubscriptionUrl(value *string)() - SetSvnUrl(value *string)() - SetTagsUrl(value *string)() - SetTeamsUrl(value *string)() - SetTempCloneToken(value *string)() - SetTopics(value []string)() - SetTreesUrl(value *string)() - SetUpdatedAt(value *string)() - SetUrl(value *string)() - SetUseSquashPrTitleAsDefault(value *bool)() - SetVisibility(value *string)() - SetWatchersCount(value *int32)() -} diff --git a/pkg/github/models/nullable_repository_template_repository_merge_commit_message.go b/pkg/github/models/nullable_repository_template_repository_merge_commit_message.go deleted file mode 100644 index 09cdd784..00000000 --- a/pkg/github/models/nullable_repository_template_repository_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -type NullableRepository_template_repository_merge_commit_message int - -const ( - PR_BODY_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE NullableRepository_template_repository_merge_commit_message = iota - PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - BLANK_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE -) - -func (i NullableRepository_template_repository_merge_commit_message) String() string { - return []string{"PR_BODY", "PR_TITLE", "BLANK"}[i] -} -func ParseNullableRepository_template_repository_merge_commit_message(v string) (any, error) { - result := PR_BODY_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - case "PR_TITLE": - result = PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown NullableRepository_template_repository_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeNullableRepository_template_repository_merge_commit_message(values []NullableRepository_template_repository_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NullableRepository_template_repository_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/nullable_repository_template_repository_merge_commit_title.go b/pkg/github/models/nullable_repository_template_repository_merge_commit_title.go deleted file mode 100644 index c354f80c..00000000 --- a/pkg/github/models/nullable_repository_template_repository_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -type NullableRepository_template_repository_merge_commit_title int - -const ( - PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE NullableRepository_template_repository_merge_commit_title = iota - MERGE_MESSAGE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE -) - -func (i NullableRepository_template_repository_merge_commit_title) String() string { - return []string{"PR_TITLE", "MERGE_MESSAGE"}[i] -} -func ParseNullableRepository_template_repository_merge_commit_title(v string) (any, error) { - result := PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE - case "MERGE_MESSAGE": - result = MERGE_MESSAGE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown NullableRepository_template_repository_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeNullableRepository_template_repository_merge_commit_title(values []NullableRepository_template_repository_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NullableRepository_template_repository_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/nullable_repository_template_repository_owner.go b/pkg/github/models/nullable_repository_template_repository_owner.go deleted file mode 100644 index c4bf37f1..00000000 --- a/pkg/github/models/nullable_repository_template_repository_owner.go +++ /dev/null @@ -1,554 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// NullableRepository_template_repository_owner -type NullableRepository_template_repository_owner struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The avatar_url property - avatar_url *string - // The events_url property - events_url *string - // The followers_url property - followers_url *string - // The following_url property - following_url *string - // The gists_url property - gists_url *string - // The gravatar_id property - gravatar_id *string - // The html_url property - html_url *string - // The id property - id *int32 - // The login property - login *string - // The node_id property - node_id *string - // The organizations_url property - organizations_url *string - // The received_events_url property - received_events_url *string - // The repos_url property - repos_url *string - // The site_admin property - site_admin *bool - // The starred_url property - starred_url *string - // The subscriptions_url property - subscriptions_url *string - // The type property - typeEscaped *string - // The url property - url *string -} -// NewNullableRepository_template_repository_owner instantiates a new nullableRepository_template_repository_owner and sets the default values. -func NewNullableRepository_template_repository_owner()(*NullableRepository_template_repository_owner) { - m := &NullableRepository_template_repository_owner{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateNullableRepository_template_repository_ownerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateNullableRepository_template_repository_ownerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewNullableRepository_template_repository_owner(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *NullableRepository_template_repository_owner) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAvatarUrl gets the avatar_url property value. The avatar_url property -func (m *NullableRepository_template_repository_owner) GetAvatarUrl()(*string) { - return m.avatar_url -} -// GetEventsUrl gets the events_url property value. The events_url property -func (m *NullableRepository_template_repository_owner) GetEventsUrl()(*string) { - return m.events_url -} -// GetFieldDeserializers the deserialization information for the current model -func (m *NullableRepository_template_repository_owner) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["avatar_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAvatarUrl(val) - } - return nil - } - res["events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEventsUrl(val) - } - return nil - } - res["followers_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFollowersUrl(val) - } - return nil - } - res["following_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFollowingUrl(val) - } - return nil - } - res["gists_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGistsUrl(val) - } - return nil - } - res["gravatar_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGravatarId(val) - } - return nil - } - res["html_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHtmlUrl(val) - } - return nil - } - res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetId(val) - } - return nil - } - res["login"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLogin(val) - } - return nil - } - res["node_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetNodeId(val) - } - return nil - } - res["organizations_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOrganizationsUrl(val) - } - return nil - } - res["received_events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetReceivedEventsUrl(val) - } - return nil - } - res["repos_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetReposUrl(val) - } - return nil - } - res["site_admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetSiteAdmin(val) - } - return nil - } - res["starred_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStarredUrl(val) - } - return nil - } - res["subscriptions_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSubscriptionsUrl(val) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val) - } - return nil - } - res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUrl(val) - } - return nil - } - return res -} -// GetFollowersUrl gets the followers_url property value. The followers_url property -func (m *NullableRepository_template_repository_owner) GetFollowersUrl()(*string) { - return m.followers_url -} -// GetFollowingUrl gets the following_url property value. The following_url property -func (m *NullableRepository_template_repository_owner) GetFollowingUrl()(*string) { - return m.following_url -} -// GetGistsUrl gets the gists_url property value. The gists_url property -func (m *NullableRepository_template_repository_owner) GetGistsUrl()(*string) { - return m.gists_url -} -// GetGravatarId gets the gravatar_id property value. The gravatar_id property -func (m *NullableRepository_template_repository_owner) GetGravatarId()(*string) { - return m.gravatar_id -} -// GetHtmlUrl gets the html_url property value. The html_url property -func (m *NullableRepository_template_repository_owner) GetHtmlUrl()(*string) { - return m.html_url -} -// GetId gets the id property value. The id property -func (m *NullableRepository_template_repository_owner) GetId()(*int32) { - return m.id -} -// GetLogin gets the login property value. The login property -func (m *NullableRepository_template_repository_owner) GetLogin()(*string) { - return m.login -} -// GetNodeId gets the node_id property value. The node_id property -func (m *NullableRepository_template_repository_owner) GetNodeId()(*string) { - return m.node_id -} -// GetOrganizationsUrl gets the organizations_url property value. The organizations_url property -func (m *NullableRepository_template_repository_owner) GetOrganizationsUrl()(*string) { - return m.organizations_url -} -// GetReceivedEventsUrl gets the received_events_url property value. The received_events_url property -func (m *NullableRepository_template_repository_owner) GetReceivedEventsUrl()(*string) { - return m.received_events_url -} -// GetReposUrl gets the repos_url property value. The repos_url property -func (m *NullableRepository_template_repository_owner) GetReposUrl()(*string) { - return m.repos_url -} -// GetSiteAdmin gets the site_admin property value. The site_admin property -func (m *NullableRepository_template_repository_owner) GetSiteAdmin()(*bool) { - return m.site_admin -} -// GetStarredUrl gets the starred_url property value. The starred_url property -func (m *NullableRepository_template_repository_owner) GetStarredUrl()(*string) { - return m.starred_url -} -// GetSubscriptionsUrl gets the subscriptions_url property value. The subscriptions_url property -func (m *NullableRepository_template_repository_owner) GetSubscriptionsUrl()(*string) { - return m.subscriptions_url -} -// GetTypeEscaped gets the type property value. The type property -func (m *NullableRepository_template_repository_owner) GetTypeEscaped()(*string) { - return m.typeEscaped -} -// GetUrl gets the url property value. The url property -func (m *NullableRepository_template_repository_owner) GetUrl()(*string) { - return m.url -} -// Serialize serializes information the current object -func (m *NullableRepository_template_repository_owner) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("avatar_url", m.GetAvatarUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("events_url", m.GetEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("followers_url", m.GetFollowersUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("following_url", m.GetFollowingUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("gists_url", m.GetGistsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("gravatar_id", m.GetGravatarId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("html_url", m.GetHtmlUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("id", m.GetId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("login", m.GetLogin()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("node_id", m.GetNodeId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("organizations_url", m.GetOrganizationsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("received_events_url", m.GetReceivedEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("repos_url", m.GetReposUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("site_admin", m.GetSiteAdmin()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("starred_url", m.GetStarredUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("subscriptions_url", m.GetSubscriptionsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("url", m.GetUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *NullableRepository_template_repository_owner) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAvatarUrl sets the avatar_url property value. The avatar_url property -func (m *NullableRepository_template_repository_owner) SetAvatarUrl(value *string)() { - m.avatar_url = value -} -// SetEventsUrl sets the events_url property value. The events_url property -func (m *NullableRepository_template_repository_owner) SetEventsUrl(value *string)() { - m.events_url = value -} -// SetFollowersUrl sets the followers_url property value. The followers_url property -func (m *NullableRepository_template_repository_owner) SetFollowersUrl(value *string)() { - m.followers_url = value -} -// SetFollowingUrl sets the following_url property value. The following_url property -func (m *NullableRepository_template_repository_owner) SetFollowingUrl(value *string)() { - m.following_url = value -} -// SetGistsUrl sets the gists_url property value. The gists_url property -func (m *NullableRepository_template_repository_owner) SetGistsUrl(value *string)() { - m.gists_url = value -} -// SetGravatarId sets the gravatar_id property value. The gravatar_id property -func (m *NullableRepository_template_repository_owner) SetGravatarId(value *string)() { - m.gravatar_id = value -} -// SetHtmlUrl sets the html_url property value. The html_url property -func (m *NullableRepository_template_repository_owner) SetHtmlUrl(value *string)() { - m.html_url = value -} -// SetId sets the id property value. The id property -func (m *NullableRepository_template_repository_owner) SetId(value *int32)() { - m.id = value -} -// SetLogin sets the login property value. The login property -func (m *NullableRepository_template_repository_owner) SetLogin(value *string)() { - m.login = value -} -// SetNodeId sets the node_id property value. The node_id property -func (m *NullableRepository_template_repository_owner) SetNodeId(value *string)() { - m.node_id = value -} -// SetOrganizationsUrl sets the organizations_url property value. The organizations_url property -func (m *NullableRepository_template_repository_owner) SetOrganizationsUrl(value *string)() { - m.organizations_url = value -} -// SetReceivedEventsUrl sets the received_events_url property value. The received_events_url property -func (m *NullableRepository_template_repository_owner) SetReceivedEventsUrl(value *string)() { - m.received_events_url = value -} -// SetReposUrl sets the repos_url property value. The repos_url property -func (m *NullableRepository_template_repository_owner) SetReposUrl(value *string)() { - m.repos_url = value -} -// SetSiteAdmin sets the site_admin property value. The site_admin property -func (m *NullableRepository_template_repository_owner) SetSiteAdmin(value *bool)() { - m.site_admin = value -} -// SetStarredUrl sets the starred_url property value. The starred_url property -func (m *NullableRepository_template_repository_owner) SetStarredUrl(value *string)() { - m.starred_url = value -} -// SetSubscriptionsUrl sets the subscriptions_url property value. The subscriptions_url property -func (m *NullableRepository_template_repository_owner) SetSubscriptionsUrl(value *string)() { - m.subscriptions_url = value -} -// SetTypeEscaped sets the type property value. The type property -func (m *NullableRepository_template_repository_owner) SetTypeEscaped(value *string)() { - m.typeEscaped = value -} -// SetUrl sets the url property value. The url property -func (m *NullableRepository_template_repository_owner) SetUrl(value *string)() { - m.url = value -} -// NullableRepository_template_repository_ownerable -type NullableRepository_template_repository_ownerable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAvatarUrl()(*string) - GetEventsUrl()(*string) - GetFollowersUrl()(*string) - GetFollowingUrl()(*string) - GetGistsUrl()(*string) - GetGravatarId()(*string) - GetHtmlUrl()(*string) - GetId()(*int32) - GetLogin()(*string) - GetNodeId()(*string) - GetOrganizationsUrl()(*string) - GetReceivedEventsUrl()(*string) - GetReposUrl()(*string) - GetSiteAdmin()(*bool) - GetStarredUrl()(*string) - GetSubscriptionsUrl()(*string) - GetTypeEscaped()(*string) - GetUrl()(*string) - SetAvatarUrl(value *string)() - SetEventsUrl(value *string)() - SetFollowersUrl(value *string)() - SetFollowingUrl(value *string)() - SetGistsUrl(value *string)() - SetGravatarId(value *string)() - SetHtmlUrl(value *string)() - SetId(value *int32)() - SetLogin(value *string)() - SetNodeId(value *string)() - SetOrganizationsUrl(value *string)() - SetReceivedEventsUrl(value *string)() - SetReposUrl(value *string)() - SetSiteAdmin(value *bool)() - SetStarredUrl(value *string)() - SetSubscriptionsUrl(value *string)() - SetTypeEscaped(value *string)() - SetUrl(value *string)() -} diff --git a/pkg/github/models/nullable_repository_template_repository_permissions.go b/pkg/github/models/nullable_repository_template_repository_permissions.go deleted file mode 100644 index 95973cb9..00000000 --- a/pkg/github/models/nullable_repository_template_repository_permissions.go +++ /dev/null @@ -1,190 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// NullableRepository_template_repository_permissions -type NullableRepository_template_repository_permissions struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The admin property - admin *bool - // The maintain property - maintain *bool - // The pull property - pull *bool - // The push property - push *bool - // The triage property - triage *bool -} -// NewNullableRepository_template_repository_permissions instantiates a new nullableRepository_template_repository_permissions and sets the default values. -func NewNullableRepository_template_repository_permissions()(*NullableRepository_template_repository_permissions) { - m := &NullableRepository_template_repository_permissions{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateNullableRepository_template_repository_permissionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateNullableRepository_template_repository_permissionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewNullableRepository_template_repository_permissions(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *NullableRepository_template_repository_permissions) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAdmin gets the admin property value. The admin property -func (m *NullableRepository_template_repository_permissions) GetAdmin()(*bool) { - return m.admin -} -// GetFieldDeserializers the deserialization information for the current model -func (m *NullableRepository_template_repository_permissions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAdmin(val) - } - return nil - } - res["maintain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetMaintain(val) - } - return nil - } - res["pull"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPull(val) - } - return nil - } - res["push"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPush(val) - } - return nil - } - res["triage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetTriage(val) - } - return nil - } - return res -} -// GetMaintain gets the maintain property value. The maintain property -func (m *NullableRepository_template_repository_permissions) GetMaintain()(*bool) { - return m.maintain -} -// GetPull gets the pull property value. The pull property -func (m *NullableRepository_template_repository_permissions) GetPull()(*bool) { - return m.pull -} -// GetPush gets the push property value. The push property -func (m *NullableRepository_template_repository_permissions) GetPush()(*bool) { - return m.push -} -// GetTriage gets the triage property value. The triage property -func (m *NullableRepository_template_repository_permissions) GetTriage()(*bool) { - return m.triage -} -// Serialize serializes information the current object -func (m *NullableRepository_template_repository_permissions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("admin", m.GetAdmin()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("maintain", m.GetMaintain()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("pull", m.GetPull()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("push", m.GetPush()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("triage", m.GetTriage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *NullableRepository_template_repository_permissions) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAdmin sets the admin property value. The admin property -func (m *NullableRepository_template_repository_permissions) SetAdmin(value *bool)() { - m.admin = value -} -// SetMaintain sets the maintain property value. The maintain property -func (m *NullableRepository_template_repository_permissions) SetMaintain(value *bool)() { - m.maintain = value -} -// SetPull sets the pull property value. The pull property -func (m *NullableRepository_template_repository_permissions) SetPull(value *bool)() { - m.pull = value -} -// SetPush sets the push property value. The push property -func (m *NullableRepository_template_repository_permissions) SetPush(value *bool)() { - m.push = value -} -// SetTriage sets the triage property value. The triage property -func (m *NullableRepository_template_repository_permissions) SetTriage(value *bool)() { - m.triage = value -} -// NullableRepository_template_repository_permissionsable -type NullableRepository_template_repository_permissionsable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdmin()(*bool) - GetMaintain()(*bool) - GetPull()(*bool) - GetPush()(*bool) - GetTriage()(*bool) - SetAdmin(value *bool)() - SetMaintain(value *bool)() - SetPull(value *bool)() - SetPush(value *bool)() - SetTriage(value *bool)() -} diff --git a/pkg/github/models/nullable_repository_template_repository_squash_merge_commit_message.go b/pkg/github/models/nullable_repository_template_repository_squash_merge_commit_message.go deleted file mode 100644 index 695bb178..00000000 --- a/pkg/github/models/nullable_repository_template_repository_squash_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -type NullableRepository_template_repository_squash_merge_commit_message int - -const ( - PR_BODY_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE NullableRepository_template_repository_squash_merge_commit_message = iota - COMMIT_MESSAGES_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - BLANK_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE -) - -func (i NullableRepository_template_repository_squash_merge_commit_message) String() string { - return []string{"PR_BODY", "COMMIT_MESSAGES", "BLANK"}[i] -} -func ParseNullableRepository_template_repository_squash_merge_commit_message(v string) (any, error) { - result := PR_BODY_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - case "COMMIT_MESSAGES": - result = COMMIT_MESSAGES_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown NullableRepository_template_repository_squash_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeNullableRepository_template_repository_squash_merge_commit_message(values []NullableRepository_template_repository_squash_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NullableRepository_template_repository_squash_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/nullable_repository_template_repository_squash_merge_commit_title.go b/pkg/github/models/nullable_repository_template_repository_squash_merge_commit_title.go deleted file mode 100644 index 5c0f3bd0..00000000 --- a/pkg/github/models/nullable_repository_template_repository_squash_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -type NullableRepository_template_repository_squash_merge_commit_title int - -const ( - PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE NullableRepository_template_repository_squash_merge_commit_title = iota - COMMIT_OR_PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE -) - -func (i NullableRepository_template_repository_squash_merge_commit_title) String() string { - return []string{"PR_TITLE", "COMMIT_OR_PR_TITLE"}[i] -} -func ParseNullableRepository_template_repository_squash_merge_commit_title(v string) (any, error) { - result := PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE - case "COMMIT_OR_PR_TITLE": - result = COMMIT_OR_PR_TITLE_NULLABLEREPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown NullableRepository_template_repository_squash_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeNullableRepository_template_repository_squash_merge_commit_title(values []NullableRepository_template_repository_squash_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NullableRepository_template_repository_squash_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/organization_fine_grained_permission.go b/pkg/github/models/organization_fine_grained_permission.go deleted file mode 100644 index e7f18854..00000000 --- a/pkg/github/models/organization_fine_grained_permission.go +++ /dev/null @@ -1,110 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// OrganizationFineGrainedPermission a fine-grained permission that protects organization resources. -type OrganizationFineGrainedPermission struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The description property - description *string - // The name property - name *string -} -// NewOrganizationFineGrainedPermission instantiates a new OrganizationFineGrainedPermission and sets the default values. -func NewOrganizationFineGrainedPermission()(*OrganizationFineGrainedPermission) { - m := &OrganizationFineGrainedPermission{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateOrganizationFineGrainedPermissionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateOrganizationFineGrainedPermissionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewOrganizationFineGrainedPermission(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *OrganizationFineGrainedPermission) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetDescription gets the description property value. The description property -// returns a *string when successful -func (m *OrganizationFineGrainedPermission) GetDescription()(*string) { - return m.description -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *OrganizationFineGrainedPermission) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDescription(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - return res -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *OrganizationFineGrainedPermission) GetName()(*string) { - return m.name -} -// Serialize serializes information the current object -func (m *OrganizationFineGrainedPermission) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("description", m.GetDescription()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *OrganizationFineGrainedPermission) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetDescription sets the description property value. The description property -func (m *OrganizationFineGrainedPermission) SetDescription(value *string)() { - m.description = value -} -// SetName sets the name property value. The name property -func (m *OrganizationFineGrainedPermission) SetName(value *string)() { - m.name = value -} -type OrganizationFineGrainedPermissionable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDescription()(*string) - GetName()(*string) - SetDescription(value *string)() - SetName(value *string)() -} diff --git a/pkg/github/models/repository_rule_member1.go b/pkg/github/models/repository_rule_member1.go deleted file mode 100644 index 4977bf22..00000000 --- a/pkg/github/models/repository_rule_member1.go +++ /dev/null @@ -1,111 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoryRuleMember1 note: file_path_restriction is in beta and subject to change.Prevent commits that include changes in specified file paths from being pushed to the commit graph. -type RepositoryRuleMember1 struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The parameters property - parameters RepositoryRuleMember1_parametersable - // The type property - typeEscaped *RepositoryRuleMember1_type -} -// NewRepositoryRuleMember1 instantiates a new RepositoryRuleMember1 and sets the default values. -func NewRepositoryRuleMember1()(*RepositoryRuleMember1) { - m := &RepositoryRuleMember1{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember1(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember1) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["parameters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateRepositoryRuleMember1_parametersFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetParameters(val.(RepositoryRuleMember1_parametersable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepositoryRuleMember1_type) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(*RepositoryRuleMember1_type)) - } - return nil - } - return res -} -// GetParameters gets the parameters property value. The parameters property -// returns a RepositoryRuleMember1_parametersable when successful -func (m *RepositoryRuleMember1) GetParameters()(RepositoryRuleMember1_parametersable) { - return m.parameters -} -// GetTypeEscaped gets the type property value. The type property -// returns a *RepositoryRuleMember1_type when successful -func (m *RepositoryRuleMember1) GetTypeEscaped()(*RepositoryRuleMember1_type) { - return m.typeEscaped -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("parameters", m.GetParameters()) - if err != nil { - return err - } - } - if m.GetTypeEscaped() != nil { - cast := (*m.GetTypeEscaped()).String() - err := writer.WriteStringValue("type", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember1) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetParameters sets the parameters property value. The parameters property -func (m *RepositoryRuleMember1) SetParameters(value RepositoryRuleMember1_parametersable)() { - m.parameters = value -} -// SetTypeEscaped sets the type property value. The type property -func (m *RepositoryRuleMember1) SetTypeEscaped(value *RepositoryRuleMember1_type)() { - m.typeEscaped = value -} -type RepositoryRuleMember1able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetParameters()(RepositoryRuleMember1_parametersable) - GetTypeEscaped()(*RepositoryRuleMember1_type) - SetParameters(value RepositoryRuleMember1_parametersable)() - SetTypeEscaped(value *RepositoryRuleMember1_type)() -} diff --git a/pkg/github/models/repository_rule_member1_parameters.go b/pkg/github/models/repository_rule_member1_parameters.go deleted file mode 100644 index c65c28d8..00000000 --- a/pkg/github/models/repository_rule_member1_parameters.go +++ /dev/null @@ -1,86 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type RepositoryRuleMember1_parameters struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The file paths that are restricted from being pushed to the commit graph. - restricted_file_paths []string -} -// NewRepositoryRuleMember1_parameters instantiates a new RepositoryRuleMember1_parameters and sets the default values. -func NewRepositoryRuleMember1_parameters()(*RepositoryRuleMember1_parameters) { - m := &RepositoryRuleMember1_parameters{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember1_parametersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember1_parametersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember1_parameters(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember1_parameters) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember1_parameters) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["restricted_file_paths"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetRestrictedFilePaths(res) - } - return nil - } - return res -} -// GetRestrictedFilePaths gets the restricted_file_paths property value. The file paths that are restricted from being pushed to the commit graph. -// returns a []string when successful -func (m *RepositoryRuleMember1_parameters) GetRestrictedFilePaths()([]string) { - return m.restricted_file_paths -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember1_parameters) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetRestrictedFilePaths() != nil { - err := writer.WriteCollectionOfStringValues("restricted_file_paths", m.GetRestrictedFilePaths()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember1_parameters) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetRestrictedFilePaths sets the restricted_file_paths property value. The file paths that are restricted from being pushed to the commit graph. -func (m *RepositoryRuleMember1_parameters) SetRestrictedFilePaths(value []string)() { - m.restricted_file_paths = value -} -type RepositoryRuleMember1_parametersable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetRestrictedFilePaths()([]string) - SetRestrictedFilePaths(value []string)() -} diff --git a/pkg/github/models/repository_rule_member1_type.go b/pkg/github/models/repository_rule_member1_type.go deleted file mode 100644 index 039bd412..00000000 --- a/pkg/github/models/repository_rule_member1_type.go +++ /dev/null @@ -1,30 +0,0 @@ -package models -type RepositoryRuleMember1_type int - -const ( - FILE_PATH_RESTRICTION_REPOSITORYRULEMEMBER1_TYPE RepositoryRuleMember1_type = iota -) - -func (i RepositoryRuleMember1_type) String() string { - return []string{"file_path_restriction"}[i] -} -func ParseRepositoryRuleMember1_type(v string) (any, error) { - result := FILE_PATH_RESTRICTION_REPOSITORYRULEMEMBER1_TYPE - switch v { - case "file_path_restriction": - result = FILE_PATH_RESTRICTION_REPOSITORYRULEMEMBER1_TYPE - default: - return nil, nil - } - return &result, nil -} -func SerializeRepositoryRuleMember1_type(values []RepositoryRuleMember1_type) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RepositoryRuleMember1_type) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/repository_rule_member2.go b/pkg/github/models/repository_rule_member2.go deleted file mode 100644 index 111eaa5c..00000000 --- a/pkg/github/models/repository_rule_member2.go +++ /dev/null @@ -1,111 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoryRuleMember2 note: max_file_path_length is in beta and subject to change.Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. -type RepositoryRuleMember2 struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The parameters property - parameters RepositoryRuleMember2_parametersable - // The type property - typeEscaped *RepositoryRuleMember2_type -} -// NewRepositoryRuleMember2 instantiates a new RepositoryRuleMember2 and sets the default values. -func NewRepositoryRuleMember2()(*RepositoryRuleMember2) { - m := &RepositoryRuleMember2{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember2(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember2) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["parameters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateRepositoryRuleMember2_parametersFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetParameters(val.(RepositoryRuleMember2_parametersable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepositoryRuleMember2_type) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(*RepositoryRuleMember2_type)) - } - return nil - } - return res -} -// GetParameters gets the parameters property value. The parameters property -// returns a RepositoryRuleMember2_parametersable when successful -func (m *RepositoryRuleMember2) GetParameters()(RepositoryRuleMember2_parametersable) { - return m.parameters -} -// GetTypeEscaped gets the type property value. The type property -// returns a *RepositoryRuleMember2_type when successful -func (m *RepositoryRuleMember2) GetTypeEscaped()(*RepositoryRuleMember2_type) { - return m.typeEscaped -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("parameters", m.GetParameters()) - if err != nil { - return err - } - } - if m.GetTypeEscaped() != nil { - cast := (*m.GetTypeEscaped()).String() - err := writer.WriteStringValue("type", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember2) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetParameters sets the parameters property value. The parameters property -func (m *RepositoryRuleMember2) SetParameters(value RepositoryRuleMember2_parametersable)() { - m.parameters = value -} -// SetTypeEscaped sets the type property value. The type property -func (m *RepositoryRuleMember2) SetTypeEscaped(value *RepositoryRuleMember2_type)() { - m.typeEscaped = value -} -type RepositoryRuleMember2able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetParameters()(RepositoryRuleMember2_parametersable) - GetTypeEscaped()(*RepositoryRuleMember2_type) - SetParameters(value RepositoryRuleMember2_parametersable)() - SetTypeEscaped(value *RepositoryRuleMember2_type)() -} diff --git a/pkg/github/models/repository_rule_member2_parameters.go b/pkg/github/models/repository_rule_member2_parameters.go deleted file mode 100644 index 5eb04c8d..00000000 --- a/pkg/github/models/repository_rule_member2_parameters.go +++ /dev/null @@ -1,80 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type RepositoryRuleMember2_parameters struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The maximum amount of characters allowed in file paths - max_file_path_length *int32 -} -// NewRepositoryRuleMember2_parameters instantiates a new RepositoryRuleMember2_parameters and sets the default values. -func NewRepositoryRuleMember2_parameters()(*RepositoryRuleMember2_parameters) { - m := &RepositoryRuleMember2_parameters{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember2_parametersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember2_parametersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember2_parameters(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember2_parameters) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember2_parameters) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["max_file_path_length"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetMaxFilePathLength(val) - } - return nil - } - return res -} -// GetMaxFilePathLength gets the max_file_path_length property value. The maximum amount of characters allowed in file paths -// returns a *int32 when successful -func (m *RepositoryRuleMember2_parameters) GetMaxFilePathLength()(*int32) { - return m.max_file_path_length -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember2_parameters) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("max_file_path_length", m.GetMaxFilePathLength()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember2_parameters) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetMaxFilePathLength sets the max_file_path_length property value. The maximum amount of characters allowed in file paths -func (m *RepositoryRuleMember2_parameters) SetMaxFilePathLength(value *int32)() { - m.max_file_path_length = value -} -type RepositoryRuleMember2_parametersable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetMaxFilePathLength()(*int32) - SetMaxFilePathLength(value *int32)() -} diff --git a/pkg/github/models/repository_rule_member2_type.go b/pkg/github/models/repository_rule_member2_type.go deleted file mode 100644 index 5d7aa03f..00000000 --- a/pkg/github/models/repository_rule_member2_type.go +++ /dev/null @@ -1,30 +0,0 @@ -package models -type RepositoryRuleMember2_type int - -const ( - MAX_FILE_PATH_LENGTH_REPOSITORYRULEMEMBER2_TYPE RepositoryRuleMember2_type = iota -) - -func (i RepositoryRuleMember2_type) String() string { - return []string{"max_file_path_length"}[i] -} -func ParseRepositoryRuleMember2_type(v string) (any, error) { - result := MAX_FILE_PATH_LENGTH_REPOSITORYRULEMEMBER2_TYPE - switch v { - case "max_file_path_length": - result = MAX_FILE_PATH_LENGTH_REPOSITORYRULEMEMBER2_TYPE - default: - return nil, nil - } - return &result, nil -} -func SerializeRepositoryRuleMember2_type(values []RepositoryRuleMember2_type) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RepositoryRuleMember2_type) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/repository_rule_member3.go b/pkg/github/models/repository_rule_member3.go deleted file mode 100644 index f6405b2a..00000000 --- a/pkg/github/models/repository_rule_member3.go +++ /dev/null @@ -1,111 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoryRuleMember3 note: file_extension_restriction is in beta and subject to change.Prevent commits that include files with specified file extensions from being pushed to the commit graph. -type RepositoryRuleMember3 struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The parameters property - parameters RepositoryRuleMember3_parametersable - // The type property - typeEscaped *RepositoryRuleMember3_type -} -// NewRepositoryRuleMember3 instantiates a new RepositoryRuleMember3 and sets the default values. -func NewRepositoryRuleMember3()(*RepositoryRuleMember3) { - m := &RepositoryRuleMember3{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember3(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember3) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["parameters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateRepositoryRuleMember3_parametersFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetParameters(val.(RepositoryRuleMember3_parametersable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepositoryRuleMember3_type) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(*RepositoryRuleMember3_type)) - } - return nil - } - return res -} -// GetParameters gets the parameters property value. The parameters property -// returns a RepositoryRuleMember3_parametersable when successful -func (m *RepositoryRuleMember3) GetParameters()(RepositoryRuleMember3_parametersable) { - return m.parameters -} -// GetTypeEscaped gets the type property value. The type property -// returns a *RepositoryRuleMember3_type when successful -func (m *RepositoryRuleMember3) GetTypeEscaped()(*RepositoryRuleMember3_type) { - return m.typeEscaped -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("parameters", m.GetParameters()) - if err != nil { - return err - } - } - if m.GetTypeEscaped() != nil { - cast := (*m.GetTypeEscaped()).String() - err := writer.WriteStringValue("type", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember3) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetParameters sets the parameters property value. The parameters property -func (m *RepositoryRuleMember3) SetParameters(value RepositoryRuleMember3_parametersable)() { - m.parameters = value -} -// SetTypeEscaped sets the type property value. The type property -func (m *RepositoryRuleMember3) SetTypeEscaped(value *RepositoryRuleMember3_type)() { - m.typeEscaped = value -} -type RepositoryRuleMember3able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetParameters()(RepositoryRuleMember3_parametersable) - GetTypeEscaped()(*RepositoryRuleMember3_type) - SetParameters(value RepositoryRuleMember3_parametersable)() - SetTypeEscaped(value *RepositoryRuleMember3_type)() -} diff --git a/pkg/github/models/repository_rule_member3_parameters.go b/pkg/github/models/repository_rule_member3_parameters.go deleted file mode 100644 index 79ff508b..00000000 --- a/pkg/github/models/repository_rule_member3_parameters.go +++ /dev/null @@ -1,86 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type RepositoryRuleMember3_parameters struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The file extensions that are restricted from being pushed to the commit graph. - restricted_file_extensions []string -} -// NewRepositoryRuleMember3_parameters instantiates a new RepositoryRuleMember3_parameters and sets the default values. -func NewRepositoryRuleMember3_parameters()(*RepositoryRuleMember3_parameters) { - m := &RepositoryRuleMember3_parameters{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember3_parametersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember3_parametersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember3_parameters(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember3_parameters) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember3_parameters) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["restricted_file_extensions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetRestrictedFileExtensions(res) - } - return nil - } - return res -} -// GetRestrictedFileExtensions gets the restricted_file_extensions property value. The file extensions that are restricted from being pushed to the commit graph. -// returns a []string when successful -func (m *RepositoryRuleMember3_parameters) GetRestrictedFileExtensions()([]string) { - return m.restricted_file_extensions -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember3_parameters) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetRestrictedFileExtensions() != nil { - err := writer.WriteCollectionOfStringValues("restricted_file_extensions", m.GetRestrictedFileExtensions()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember3_parameters) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetRestrictedFileExtensions sets the restricted_file_extensions property value. The file extensions that are restricted from being pushed to the commit graph. -func (m *RepositoryRuleMember3_parameters) SetRestrictedFileExtensions(value []string)() { - m.restricted_file_extensions = value -} -type RepositoryRuleMember3_parametersable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetRestrictedFileExtensions()([]string) - SetRestrictedFileExtensions(value []string)() -} diff --git a/pkg/github/models/repository_rule_member3_type.go b/pkg/github/models/repository_rule_member3_type.go deleted file mode 100644 index bc575cc3..00000000 --- a/pkg/github/models/repository_rule_member3_type.go +++ /dev/null @@ -1,30 +0,0 @@ -package models -type RepositoryRuleMember3_type int - -const ( - FILE_EXTENSION_RESTRICTION_REPOSITORYRULEMEMBER3_TYPE RepositoryRuleMember3_type = iota -) - -func (i RepositoryRuleMember3_type) String() string { - return []string{"file_extension_restriction"}[i] -} -func ParseRepositoryRuleMember3_type(v string) (any, error) { - result := FILE_EXTENSION_RESTRICTION_REPOSITORYRULEMEMBER3_TYPE - switch v { - case "file_extension_restriction": - result = FILE_EXTENSION_RESTRICTION_REPOSITORYRULEMEMBER3_TYPE - default: - return nil, nil - } - return &result, nil -} -func SerializeRepositoryRuleMember3_type(values []RepositoryRuleMember3_type) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RepositoryRuleMember3_type) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/repository_rule_member4.go b/pkg/github/models/repository_rule_member4.go deleted file mode 100644 index 4f3a7922..00000000 --- a/pkg/github/models/repository_rule_member4.go +++ /dev/null @@ -1,111 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoryRuleMember4 note: max_file_size is in beta and subject to change.Prevent commits that exceed a specified file size limit from being pushed to the commit. -type RepositoryRuleMember4 struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The parameters property - parameters RepositoryRuleMember4_parametersable - // The type property - typeEscaped *RepositoryRuleMember4_type -} -// NewRepositoryRuleMember4 instantiates a new RepositoryRuleMember4 and sets the default values. -func NewRepositoryRuleMember4()(*RepositoryRuleMember4) { - m := &RepositoryRuleMember4{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember4(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember4) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["parameters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateRepositoryRuleMember4_parametersFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetParameters(val.(RepositoryRuleMember4_parametersable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepositoryRuleMember4_type) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(*RepositoryRuleMember4_type)) - } - return nil - } - return res -} -// GetParameters gets the parameters property value. The parameters property -// returns a RepositoryRuleMember4_parametersable when successful -func (m *RepositoryRuleMember4) GetParameters()(RepositoryRuleMember4_parametersable) { - return m.parameters -} -// GetTypeEscaped gets the type property value. The type property -// returns a *RepositoryRuleMember4_type when successful -func (m *RepositoryRuleMember4) GetTypeEscaped()(*RepositoryRuleMember4_type) { - return m.typeEscaped -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("parameters", m.GetParameters()) - if err != nil { - return err - } - } - if m.GetTypeEscaped() != nil { - cast := (*m.GetTypeEscaped()).String() - err := writer.WriteStringValue("type", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember4) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetParameters sets the parameters property value. The parameters property -func (m *RepositoryRuleMember4) SetParameters(value RepositoryRuleMember4_parametersable)() { - m.parameters = value -} -// SetTypeEscaped sets the type property value. The type property -func (m *RepositoryRuleMember4) SetTypeEscaped(value *RepositoryRuleMember4_type)() { - m.typeEscaped = value -} -type RepositoryRuleMember4able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetParameters()(RepositoryRuleMember4_parametersable) - GetTypeEscaped()(*RepositoryRuleMember4_type) - SetParameters(value RepositoryRuleMember4_parametersable)() - SetTypeEscaped(value *RepositoryRuleMember4_type)() -} diff --git a/pkg/github/models/repository_rule_member4_parameters.go b/pkg/github/models/repository_rule_member4_parameters.go deleted file mode 100644 index d61d97e9..00000000 --- a/pkg/github/models/repository_rule_member4_parameters.go +++ /dev/null @@ -1,80 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type RepositoryRuleMember4_parameters struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). - max_file_size *int32 -} -// NewRepositoryRuleMember4_parameters instantiates a new RepositoryRuleMember4_parameters and sets the default values. -func NewRepositoryRuleMember4_parameters()(*RepositoryRuleMember4_parameters) { - m := &RepositoryRuleMember4_parameters{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepositoryRuleMember4_parametersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateRepositoryRuleMember4_parametersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRuleMember4_parameters(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *RepositoryRuleMember4_parameters) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *RepositoryRuleMember4_parameters) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["max_file_size"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetMaxFileSize(val) - } - return nil - } - return res -} -// GetMaxFileSize gets the max_file_size property value. The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). -// returns a *int32 when successful -func (m *RepositoryRuleMember4_parameters) GetMaxFileSize()(*int32) { - return m.max_file_size -} -// Serialize serializes information the current object -func (m *RepositoryRuleMember4_parameters) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("max_file_size", m.GetMaxFileSize()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *RepositoryRuleMember4_parameters) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetMaxFileSize sets the max_file_size property value. The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). -func (m *RepositoryRuleMember4_parameters) SetMaxFileSize(value *int32)() { - m.max_file_size = value -} -type RepositoryRuleMember4_parametersable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetMaxFileSize()(*int32) - SetMaxFileSize(value *int32)() -} diff --git a/pkg/github/models/repository_rule_member4_type.go b/pkg/github/models/repository_rule_member4_type.go deleted file mode 100644 index 54d4b529..00000000 --- a/pkg/github/models/repository_rule_member4_type.go +++ /dev/null @@ -1,30 +0,0 @@ -package models -type RepositoryRuleMember4_type int - -const ( - MAX_FILE_SIZE_REPOSITORYRULEMEMBER4_TYPE RepositoryRuleMember4_type = iota -) - -func (i RepositoryRuleMember4_type) String() string { - return []string{"max_file_size"}[i] -} -func ParseRepositoryRuleMember4_type(v string) (any, error) { - result := MAX_FILE_SIZE_REPOSITORYRULEMEMBER4_TYPE - switch v { - case "max_file_size": - result = MAX_FILE_SIZE_REPOSITORYRULEMEMBER4_TYPE - default: - return nil, nil - } - return &result, nil -} -func SerializeRepositoryRuleMember4_type(values []RepositoryRuleMember4_type) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RepositoryRuleMember4_type) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/repository_ruleset_conditions_for_repository_i_ds.go b/pkg/github/models/repository_ruleset_conditions_for_repository_i_ds.go deleted file mode 100644 index c67247fb..00000000 --- a/pkg/github/models/repository_ruleset_conditions_for_repository_i_ds.go +++ /dev/null @@ -1,39 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoryRulesetConditionsForRepositoryIDs conditions to target repositories by id and refs by name -type RepositoryRulesetConditionsForRepositoryIDs struct { - RepositoryRulesetConditions -} -// NewRepositoryRulesetConditionsForRepositoryIDs instantiates a new RepositoryRulesetConditionsForRepositoryIDs and sets the default values. -func NewRepositoryRulesetConditionsForRepositoryIDs()(*RepositoryRulesetConditionsForRepositoryIDs) { - m := &RepositoryRulesetConditionsForRepositoryIDs{ - RepositoryRulesetConditions: *NewRepositoryRulesetConditions(), - } - return m -} -// CreateRepositoryRulesetConditionsForRepositoryIDsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateRepositoryRulesetConditionsForRepositoryIDsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRulesetConditionsForRepositoryIDs(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *RepositoryRulesetConditionsForRepositoryIDs) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.RepositoryRulesetConditions.GetFieldDeserializers() - return res -} -// Serialize serializes information the current object -func (m *RepositoryRulesetConditionsForRepositoryIDs) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.RepositoryRulesetConditions.Serialize(writer) - if err != nil { - return err - } - return nil -} -// RepositoryRulesetConditionsForRepositoryIDsable -type RepositoryRulesetConditionsForRepositoryIDsable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - RepositoryRulesetConditionsable -} diff --git a/pkg/github/models/repository_ruleset_conditions_for_repository_names.go b/pkg/github/models/repository_ruleset_conditions_for_repository_names.go deleted file mode 100644 index ecd7e3b1..00000000 --- a/pkg/github/models/repository_ruleset_conditions_for_repository_names.go +++ /dev/null @@ -1,39 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoryRulesetConditionsForRepositoryNames conditions to target repositories by name and refs by name -type RepositoryRulesetConditionsForRepositoryNames struct { - RepositoryRulesetConditions -} -// NewRepositoryRulesetConditionsForRepositoryNames instantiates a new RepositoryRulesetConditionsForRepositoryNames and sets the default values. -func NewRepositoryRulesetConditionsForRepositoryNames()(*RepositoryRulesetConditionsForRepositoryNames) { - m := &RepositoryRulesetConditionsForRepositoryNames{ - RepositoryRulesetConditions: *NewRepositoryRulesetConditions(), - } - return m -} -// CreateRepositoryRulesetConditionsForRepositoryNamesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateRepositoryRulesetConditionsForRepositoryNamesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoryRulesetConditionsForRepositoryNames(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *RepositoryRulesetConditionsForRepositoryNames) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.RepositoryRulesetConditions.GetFieldDeserializers() - return res -} -// Serialize serializes information the current object -func (m *RepositoryRulesetConditionsForRepositoryNames) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.RepositoryRulesetConditions.Serialize(writer) - if err != nil { - return err - } - return nil -} -// RepositoryRulesetConditionsForRepositoryNamesable -type RepositoryRulesetConditionsForRepositoryNamesable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - RepositoryRulesetConditionsable -} diff --git a/pkg/github/models/repository_template_repository.go b/pkg/github/models/repository_template_repository.go deleted file mode 100644 index 05735eae..00000000 --- a/pkg/github/models/repository_template_repository.go +++ /dev/null @@ -1,2496 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Repository_template_repository -type Repository_template_repository struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The allow_auto_merge property - allow_auto_merge *bool - // The allow_merge_commit property - allow_merge_commit *bool - // The allow_rebase_merge property - allow_rebase_merge *bool - // The allow_squash_merge property - allow_squash_merge *bool - // The allow_update_branch property - allow_update_branch *bool - // The archive_url property - archive_url *string - // The archived property - archived *bool - // The assignees_url property - assignees_url *string - // The blobs_url property - blobs_url *string - // The branches_url property - branches_url *string - // The clone_url property - clone_url *string - // The collaborators_url property - collaborators_url *string - // The comments_url property - comments_url *string - // The commits_url property - commits_url *string - // The compare_url property - compare_url *string - // The contents_url property - contents_url *string - // The contributors_url property - contributors_url *string - // The created_at property - created_at *string - // The default_branch property - default_branch *string - // The delete_branch_on_merge property - delete_branch_on_merge *bool - // The deployments_url property - deployments_url *string - // The description property - description *string - // The disabled property - disabled *bool - // The downloads_url property - downloads_url *string - // The events_url property - events_url *string - // The fork property - fork *bool - // The forks_count property - forks_count *int32 - // The forks_url property - forks_url *string - // The full_name property - full_name *string - // The git_commits_url property - git_commits_url *string - // The git_refs_url property - git_refs_url *string - // The git_tags_url property - git_tags_url *string - // The git_url property - git_url *string - // The has_downloads property - has_downloads *bool - // The has_issues property - has_issues *bool - // The has_pages property - has_pages *bool - // The has_projects property - has_projects *bool - // The has_wiki property - has_wiki *bool - // The homepage property - homepage *string - // The hooks_url property - hooks_url *string - // The html_url property - html_url *string - // The id property - id *int32 - // The is_template property - is_template *bool - // The issue_comment_url property - issue_comment_url *string - // The issue_events_url property - issue_events_url *string - // The issues_url property - issues_url *string - // The keys_url property - keys_url *string - // The labels_url property - labels_url *string - // The language property - language *string - // The languages_url property - languages_url *string - // The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. - merge_commit_message *Repository_template_repository_merge_commit_message - // The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). - merge_commit_title *Repository_template_repository_merge_commit_title - // The merges_url property - merges_url *string - // The milestones_url property - milestones_url *string - // The mirror_url property - mirror_url *string - // The name property - name *string - // The network_count property - network_count *int32 - // The node_id property - node_id *string - // The notifications_url property - notifications_url *string - // The open_issues_count property - open_issues_count *int32 - // The owner property - owner Repository_template_repository_ownerable - // The permissions property - permissions Repository_template_repository_permissionsable - // The private property - private *bool - // The pulls_url property - pulls_url *string - // The pushed_at property - pushed_at *string - // The releases_url property - releases_url *string - // The size property - size *int32 - // The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. - squash_merge_commit_message *Repository_template_repository_squash_merge_commit_message - // The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). - squash_merge_commit_title *Repository_template_repository_squash_merge_commit_title - // The ssh_url property - ssh_url *string - // The stargazers_count property - stargazers_count *int32 - // The stargazers_url property - stargazers_url *string - // The statuses_url property - statuses_url *string - // The subscribers_count property - subscribers_count *int32 - // The subscribers_url property - subscribers_url *string - // The subscription_url property - subscription_url *string - // The svn_url property - svn_url *string - // The tags_url property - tags_url *string - // The teams_url property - teams_url *string - // The temp_clone_token property - temp_clone_token *string - // The topics property - topics []string - // The trees_url property - trees_url *string - // The updated_at property - updated_at *string - // The url property - url *string - // The use_squash_pr_title_as_default property - use_squash_pr_title_as_default *bool - // The visibility property - visibility *string - // The watchers_count property - watchers_count *int32 -} -// NewRepository_template_repository instantiates a new repository_template_repository and sets the default values. -func NewRepository_template_repository()(*Repository_template_repository) { - m := &Repository_template_repository{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepository_template_repositoryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateRepository_template_repositoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepository_template_repository(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Repository_template_repository) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAllowAutoMerge gets the allow_auto_merge property value. The allow_auto_merge property -func (m *Repository_template_repository) GetAllowAutoMerge()(*bool) { - return m.allow_auto_merge -} -// GetAllowMergeCommit gets the allow_merge_commit property value. The allow_merge_commit property -func (m *Repository_template_repository) GetAllowMergeCommit()(*bool) { - return m.allow_merge_commit -} -// GetAllowRebaseMerge gets the allow_rebase_merge property value. The allow_rebase_merge property -func (m *Repository_template_repository) GetAllowRebaseMerge()(*bool) { - return m.allow_rebase_merge -} -// GetAllowSquashMerge gets the allow_squash_merge property value. The allow_squash_merge property -func (m *Repository_template_repository) GetAllowSquashMerge()(*bool) { - return m.allow_squash_merge -} -// GetAllowUpdateBranch gets the allow_update_branch property value. The allow_update_branch property -func (m *Repository_template_repository) GetAllowUpdateBranch()(*bool) { - return m.allow_update_branch -} -// GetArchived gets the archived property value. The archived property -func (m *Repository_template_repository) GetArchived()(*bool) { - return m.archived -} -// GetArchiveUrl gets the archive_url property value. The archive_url property -func (m *Repository_template_repository) GetArchiveUrl()(*string) { - return m.archive_url -} -// GetAssigneesUrl gets the assignees_url property value. The assignees_url property -func (m *Repository_template_repository) GetAssigneesUrl()(*string) { - return m.assignees_url -} -// GetBlobsUrl gets the blobs_url property value. The blobs_url property -func (m *Repository_template_repository) GetBlobsUrl()(*string) { - return m.blobs_url -} -// GetBranchesUrl gets the branches_url property value. The branches_url property -func (m *Repository_template_repository) GetBranchesUrl()(*string) { - return m.branches_url -} -// GetCloneUrl gets the clone_url property value. The clone_url property -func (m *Repository_template_repository) GetCloneUrl()(*string) { - return m.clone_url -} -// GetCollaboratorsUrl gets the collaborators_url property value. The collaborators_url property -func (m *Repository_template_repository) GetCollaboratorsUrl()(*string) { - return m.collaborators_url -} -// GetCommentsUrl gets the comments_url property value. The comments_url property -func (m *Repository_template_repository) GetCommentsUrl()(*string) { - return m.comments_url -} -// GetCommitsUrl gets the commits_url property value. The commits_url property -func (m *Repository_template_repository) GetCommitsUrl()(*string) { - return m.commits_url -} -// GetCompareUrl gets the compare_url property value. The compare_url property -func (m *Repository_template_repository) GetCompareUrl()(*string) { - return m.compare_url -} -// GetContentsUrl gets the contents_url property value. The contents_url property -func (m *Repository_template_repository) GetContentsUrl()(*string) { - return m.contents_url -} -// GetContributorsUrl gets the contributors_url property value. The contributors_url property -func (m *Repository_template_repository) GetContributorsUrl()(*string) { - return m.contributors_url -} -// GetCreatedAt gets the created_at property value. The created_at property -func (m *Repository_template_repository) GetCreatedAt()(*string) { - return m.created_at -} -// GetDefaultBranch gets the default_branch property value. The default_branch property -func (m *Repository_template_repository) GetDefaultBranch()(*string) { - return m.default_branch -} -// GetDeleteBranchOnMerge gets the delete_branch_on_merge property value. The delete_branch_on_merge property -func (m *Repository_template_repository) GetDeleteBranchOnMerge()(*bool) { - return m.delete_branch_on_merge -} -// GetDeploymentsUrl gets the deployments_url property value. The deployments_url property -func (m *Repository_template_repository) GetDeploymentsUrl()(*string) { - return m.deployments_url -} -// GetDescription gets the description property value. The description property -func (m *Repository_template_repository) GetDescription()(*string) { - return m.description -} -// GetDisabled gets the disabled property value. The disabled property -func (m *Repository_template_repository) GetDisabled()(*bool) { - return m.disabled -} -// GetDownloadsUrl gets the downloads_url property value. The downloads_url property -func (m *Repository_template_repository) GetDownloadsUrl()(*string) { - return m.downloads_url -} -// GetEventsUrl gets the events_url property value. The events_url property -func (m *Repository_template_repository) GetEventsUrl()(*string) { - return m.events_url -} -// GetFieldDeserializers the deserialization information for the current model -func (m *Repository_template_repository) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allow_auto_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowAutoMerge(val) - } - return nil - } - res["allow_merge_commit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowMergeCommit(val) - } - return nil - } - res["allow_rebase_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowRebaseMerge(val) - } - return nil - } - res["allow_squash_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowSquashMerge(val) - } - return nil - } - res["allow_update_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowUpdateBranch(val) - } - return nil - } - res["archive_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetArchiveUrl(val) - } - return nil - } - res["archived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetArchived(val) - } - return nil - } - res["assignees_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAssigneesUrl(val) - } - return nil - } - res["blobs_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetBlobsUrl(val) - } - return nil - } - res["branches_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetBranchesUrl(val) - } - return nil - } - res["clone_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCloneUrl(val) - } - return nil - } - res["collaborators_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCollaboratorsUrl(val) - } - return nil - } - res["comments_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCommentsUrl(val) - } - return nil - } - res["commits_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCommitsUrl(val) - } - return nil - } - res["compare_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCompareUrl(val) - } - return nil - } - res["contents_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContentsUrl(val) - } - return nil - } - res["contributors_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContributorsUrl(val) - } - return nil - } - res["created_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedAt(val) - } - return nil - } - res["default_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDefaultBranch(val) - } - return nil - } - res["delete_branch_on_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetDeleteBranchOnMerge(val) - } - return nil - } - res["deployments_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDeploymentsUrl(val) - } - return nil - } - res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDescription(val) - } - return nil - } - res["disabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetDisabled(val) - } - return nil - } - res["downloads_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDownloadsUrl(val) - } - return nil - } - res["events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEventsUrl(val) - } - return nil - } - res["fork"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetFork(val) - } - return nil - } - res["forks_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetForksCount(val) - } - return nil - } - res["forks_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetForksUrl(val) - } - return nil - } - res["full_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFullName(val) - } - return nil - } - res["git_commits_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitCommitsUrl(val) - } - return nil - } - res["git_refs_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitRefsUrl(val) - } - return nil - } - res["git_tags_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitTagsUrl(val) - } - return nil - } - res["git_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGitUrl(val) - } - return nil - } - res["has_downloads"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasDownloads(val) - } - return nil - } - res["has_issues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasIssues(val) - } - return nil - } - res["has_pages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasPages(val) - } - return nil - } - res["has_projects"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasProjects(val) - } - return nil - } - res["has_wiki"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasWiki(val) - } - return nil - } - res["homepage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHomepage(val) - } - return nil - } - res["hooks_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHooksUrl(val) - } - return nil - } - res["html_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHtmlUrl(val) - } - return nil - } - res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetId(val) - } - return nil - } - res["is_template"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetIsTemplate(val) - } - return nil - } - res["issue_comment_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetIssueCommentUrl(val) - } - return nil - } - res["issue_events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetIssueEventsUrl(val) - } - return nil - } - res["issues_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetIssuesUrl(val) - } - return nil - } - res["keys_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetKeysUrl(val) - } - return nil - } - res["labels_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLabelsUrl(val) - } - return nil - } - res["language"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLanguage(val) - } - return nil - } - res["languages_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLanguagesUrl(val) - } - return nil - } - res["merge_commit_message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepository_template_repository_merge_commit_message) - if err != nil { - return err - } - if val != nil { - m.SetMergeCommitMessage(val.(*Repository_template_repository_merge_commit_message)) - } - return nil - } - res["merge_commit_title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepository_template_repository_merge_commit_title) - if err != nil { - return err - } - if val != nil { - m.SetMergeCommitTitle(val.(*Repository_template_repository_merge_commit_title)) - } - return nil - } - res["merges_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMergesUrl(val) - } - return nil - } - res["milestones_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMilestonesUrl(val) - } - return nil - } - res["mirror_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMirrorUrl(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["network_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetNetworkCount(val) - } - return nil - } - res["node_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetNodeId(val) - } - return nil - } - res["notifications_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetNotificationsUrl(val) - } - return nil - } - res["open_issues_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetOpenIssuesCount(val) - } - return nil - } - res["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateRepository_template_repository_ownerFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOwner(val.(Repository_template_repository_ownerable)) - } - return nil - } - res["permissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateRepository_template_repository_permissionsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPermissions(val.(Repository_template_repository_permissionsable)) - } - return nil - } - res["private"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPrivate(val) - } - return nil - } - res["pulls_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPullsUrl(val) - } - return nil - } - res["pushed_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPushedAt(val) - } - return nil - } - res["releases_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetReleasesUrl(val) - } - return nil - } - res["size"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetSize(val) - } - return nil - } - res["squash_merge_commit_message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepository_template_repository_squash_merge_commit_message) - if err != nil { - return err - } - if val != nil { - m.SetSquashMergeCommitMessage(val.(*Repository_template_repository_squash_merge_commit_message)) - } - return nil - } - res["squash_merge_commit_title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRepository_template_repository_squash_merge_commit_title) - if err != nil { - return err - } - if val != nil { - m.SetSquashMergeCommitTitle(val.(*Repository_template_repository_squash_merge_commit_title)) - } - return nil - } - res["ssh_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSshUrl(val) - } - return nil - } - res["stargazers_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetStargazersCount(val) - } - return nil - } - res["stargazers_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStargazersUrl(val) - } - return nil - } - res["statuses_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatusesUrl(val) - } - return nil - } - res["subscribers_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetSubscribersCount(val) - } - return nil - } - res["subscribers_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSubscribersUrl(val) - } - return nil - } - res["subscription_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSubscriptionUrl(val) - } - return nil - } - res["svn_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSvnUrl(val) - } - return nil - } - res["tags_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTagsUrl(val) - } - return nil - } - res["teams_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTeamsUrl(val) - } - return nil - } - res["temp_clone_token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTempCloneToken(val) - } - return nil - } - res["topics"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetTopics(res) - } - return nil - } - res["trees_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTreesUrl(val) - } - return nil - } - res["updated_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUpdatedAt(val) - } - return nil - } - res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUrl(val) - } - return nil - } - res["use_squash_pr_title_as_default"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetUseSquashPrTitleAsDefault(val) - } - return nil - } - res["visibility"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetVisibility(val) - } - return nil - } - res["watchers_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetWatchersCount(val) - } - return nil - } - return res -} -// GetFork gets the fork property value. The fork property -func (m *Repository_template_repository) GetFork()(*bool) { - return m.fork -} -// GetForksCount gets the forks_count property value. The forks_count property -func (m *Repository_template_repository) GetForksCount()(*int32) { - return m.forks_count -} -// GetForksUrl gets the forks_url property value. The forks_url property -func (m *Repository_template_repository) GetForksUrl()(*string) { - return m.forks_url -} -// GetFullName gets the full_name property value. The full_name property -func (m *Repository_template_repository) GetFullName()(*string) { - return m.full_name -} -// GetGitCommitsUrl gets the git_commits_url property value. The git_commits_url property -func (m *Repository_template_repository) GetGitCommitsUrl()(*string) { - return m.git_commits_url -} -// GetGitRefsUrl gets the git_refs_url property value. The git_refs_url property -func (m *Repository_template_repository) GetGitRefsUrl()(*string) { - return m.git_refs_url -} -// GetGitTagsUrl gets the git_tags_url property value. The git_tags_url property -func (m *Repository_template_repository) GetGitTagsUrl()(*string) { - return m.git_tags_url -} -// GetGitUrl gets the git_url property value. The git_url property -func (m *Repository_template_repository) GetGitUrl()(*string) { - return m.git_url -} -// GetHasDownloads gets the has_downloads property value. The has_downloads property -func (m *Repository_template_repository) GetHasDownloads()(*bool) { - return m.has_downloads -} -// GetHasIssues gets the has_issues property value. The has_issues property -func (m *Repository_template_repository) GetHasIssues()(*bool) { - return m.has_issues -} -// GetHasPages gets the has_pages property value. The has_pages property -func (m *Repository_template_repository) GetHasPages()(*bool) { - return m.has_pages -} -// GetHasProjects gets the has_projects property value. The has_projects property -func (m *Repository_template_repository) GetHasProjects()(*bool) { - return m.has_projects -} -// GetHasWiki gets the has_wiki property value. The has_wiki property -func (m *Repository_template_repository) GetHasWiki()(*bool) { - return m.has_wiki -} -// GetHomepage gets the homepage property value. The homepage property -func (m *Repository_template_repository) GetHomepage()(*string) { - return m.homepage -} -// GetHooksUrl gets the hooks_url property value. The hooks_url property -func (m *Repository_template_repository) GetHooksUrl()(*string) { - return m.hooks_url -} -// GetHtmlUrl gets the html_url property value. The html_url property -func (m *Repository_template_repository) GetHtmlUrl()(*string) { - return m.html_url -} -// GetId gets the id property value. The id property -func (m *Repository_template_repository) GetId()(*int32) { - return m.id -} -// GetIssueCommentUrl gets the issue_comment_url property value. The issue_comment_url property -func (m *Repository_template_repository) GetIssueCommentUrl()(*string) { - return m.issue_comment_url -} -// GetIssueEventsUrl gets the issue_events_url property value. The issue_events_url property -func (m *Repository_template_repository) GetIssueEventsUrl()(*string) { - return m.issue_events_url -} -// GetIssuesUrl gets the issues_url property value. The issues_url property -func (m *Repository_template_repository) GetIssuesUrl()(*string) { - return m.issues_url -} -// GetIsTemplate gets the is_template property value. The is_template property -func (m *Repository_template_repository) GetIsTemplate()(*bool) { - return m.is_template -} -// GetKeysUrl gets the keys_url property value. The keys_url property -func (m *Repository_template_repository) GetKeysUrl()(*string) { - return m.keys_url -} -// GetLabelsUrl gets the labels_url property value. The labels_url property -func (m *Repository_template_repository) GetLabelsUrl()(*string) { - return m.labels_url -} -// GetLanguage gets the language property value. The language property -func (m *Repository_template_repository) GetLanguage()(*string) { - return m.language -} -// GetLanguagesUrl gets the languages_url property value. The languages_url property -func (m *Repository_template_repository) GetLanguagesUrl()(*string) { - return m.languages_url -} -// GetMergeCommitMessage gets the merge_commit_message property value. The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -func (m *Repository_template_repository) GetMergeCommitMessage()(*Repository_template_repository_merge_commit_message) { - return m.merge_commit_message -} -// GetMergeCommitTitle gets the merge_commit_title property value. The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -func (m *Repository_template_repository) GetMergeCommitTitle()(*Repository_template_repository_merge_commit_title) { - return m.merge_commit_title -} -// GetMergesUrl gets the merges_url property value. The merges_url property -func (m *Repository_template_repository) GetMergesUrl()(*string) { - return m.merges_url -} -// GetMilestonesUrl gets the milestones_url property value. The milestones_url property -func (m *Repository_template_repository) GetMilestonesUrl()(*string) { - return m.milestones_url -} -// GetMirrorUrl gets the mirror_url property value. The mirror_url property -func (m *Repository_template_repository) GetMirrorUrl()(*string) { - return m.mirror_url -} -// GetName gets the name property value. The name property -func (m *Repository_template_repository) GetName()(*string) { - return m.name -} -// GetNetworkCount gets the network_count property value. The network_count property -func (m *Repository_template_repository) GetNetworkCount()(*int32) { - return m.network_count -} -// GetNodeId gets the node_id property value. The node_id property -func (m *Repository_template_repository) GetNodeId()(*string) { - return m.node_id -} -// GetNotificationsUrl gets the notifications_url property value. The notifications_url property -func (m *Repository_template_repository) GetNotificationsUrl()(*string) { - return m.notifications_url -} -// GetOpenIssuesCount gets the open_issues_count property value. The open_issues_count property -func (m *Repository_template_repository) GetOpenIssuesCount()(*int32) { - return m.open_issues_count -} -// GetOwner gets the owner property value. The owner property -func (m *Repository_template_repository) GetOwner()(Repository_template_repository_ownerable) { - return m.owner -} -// GetPermissions gets the permissions property value. The permissions property -func (m *Repository_template_repository) GetPermissions()(Repository_template_repository_permissionsable) { - return m.permissions -} -// GetPrivate gets the private property value. The private property -func (m *Repository_template_repository) GetPrivate()(*bool) { - return m.private -} -// GetPullsUrl gets the pulls_url property value. The pulls_url property -func (m *Repository_template_repository) GetPullsUrl()(*string) { - return m.pulls_url -} -// GetPushedAt gets the pushed_at property value. The pushed_at property -func (m *Repository_template_repository) GetPushedAt()(*string) { - return m.pushed_at -} -// GetReleasesUrl gets the releases_url property value. The releases_url property -func (m *Repository_template_repository) GetReleasesUrl()(*string) { - return m.releases_url -} -// GetSize gets the size property value. The size property -func (m *Repository_template_repository) GetSize()(*int32) { - return m.size -} -// GetSquashMergeCommitMessage gets the squash_merge_commit_message property value. The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -func (m *Repository_template_repository) GetSquashMergeCommitMessage()(*Repository_template_repository_squash_merge_commit_message) { - return m.squash_merge_commit_message -} -// GetSquashMergeCommitTitle gets the squash_merge_commit_title property value. The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -func (m *Repository_template_repository) GetSquashMergeCommitTitle()(*Repository_template_repository_squash_merge_commit_title) { - return m.squash_merge_commit_title -} -// GetSshUrl gets the ssh_url property value. The ssh_url property -func (m *Repository_template_repository) GetSshUrl()(*string) { - return m.ssh_url -} -// GetStargazersCount gets the stargazers_count property value. The stargazers_count property -func (m *Repository_template_repository) GetStargazersCount()(*int32) { - return m.stargazers_count -} -// GetStargazersUrl gets the stargazers_url property value. The stargazers_url property -func (m *Repository_template_repository) GetStargazersUrl()(*string) { - return m.stargazers_url -} -// GetStatusesUrl gets the statuses_url property value. The statuses_url property -func (m *Repository_template_repository) GetStatusesUrl()(*string) { - return m.statuses_url -} -// GetSubscribersCount gets the subscribers_count property value. The subscribers_count property -func (m *Repository_template_repository) GetSubscribersCount()(*int32) { - return m.subscribers_count -} -// GetSubscribersUrl gets the subscribers_url property value. The subscribers_url property -func (m *Repository_template_repository) GetSubscribersUrl()(*string) { - return m.subscribers_url -} -// GetSubscriptionUrl gets the subscription_url property value. The subscription_url property -func (m *Repository_template_repository) GetSubscriptionUrl()(*string) { - return m.subscription_url -} -// GetSvnUrl gets the svn_url property value. The svn_url property -func (m *Repository_template_repository) GetSvnUrl()(*string) { - return m.svn_url -} -// GetTagsUrl gets the tags_url property value. The tags_url property -func (m *Repository_template_repository) GetTagsUrl()(*string) { - return m.tags_url -} -// GetTeamsUrl gets the teams_url property value. The teams_url property -func (m *Repository_template_repository) GetTeamsUrl()(*string) { - return m.teams_url -} -// GetTempCloneToken gets the temp_clone_token property value. The temp_clone_token property -func (m *Repository_template_repository) GetTempCloneToken()(*string) { - return m.temp_clone_token -} -// GetTopics gets the topics property value. The topics property -func (m *Repository_template_repository) GetTopics()([]string) { - return m.topics -} -// GetTreesUrl gets the trees_url property value. The trees_url property -func (m *Repository_template_repository) GetTreesUrl()(*string) { - return m.trees_url -} -// GetUpdatedAt gets the updated_at property value. The updated_at property -func (m *Repository_template_repository) GetUpdatedAt()(*string) { - return m.updated_at -} -// GetUrl gets the url property value. The url property -func (m *Repository_template_repository) GetUrl()(*string) { - return m.url -} -// GetUseSquashPrTitleAsDefault gets the use_squash_pr_title_as_default property value. The use_squash_pr_title_as_default property -func (m *Repository_template_repository) GetUseSquashPrTitleAsDefault()(*bool) { - return m.use_squash_pr_title_as_default -} -// GetVisibility gets the visibility property value. The visibility property -func (m *Repository_template_repository) GetVisibility()(*string) { - return m.visibility -} -// GetWatchersCount gets the watchers_count property value. The watchers_count property -func (m *Repository_template_repository) GetWatchersCount()(*int32) { - return m.watchers_count -} -// Serialize serializes information the current object -func (m *Repository_template_repository) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("allow_auto_merge", m.GetAllowAutoMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_merge_commit", m.GetAllowMergeCommit()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_rebase_merge", m.GetAllowRebaseMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_squash_merge", m.GetAllowSquashMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_update_branch", m.GetAllowUpdateBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("archived", m.GetArchived()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("archive_url", m.GetArchiveUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("assignees_url", m.GetAssigneesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("blobs_url", m.GetBlobsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("branches_url", m.GetBranchesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("clone_url", m.GetCloneUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("collaborators_url", m.GetCollaboratorsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("comments_url", m.GetCommentsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("commits_url", m.GetCommitsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("compare_url", m.GetCompareUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("contents_url", m.GetContentsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("contributors_url", m.GetContributorsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("created_at", m.GetCreatedAt()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("default_branch", m.GetDefaultBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("delete_branch_on_merge", m.GetDeleteBranchOnMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("deployments_url", m.GetDeploymentsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("description", m.GetDescription()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("disabled", m.GetDisabled()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("downloads_url", m.GetDownloadsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("events_url", m.GetEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("fork", m.GetFork()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("forks_count", m.GetForksCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("forks_url", m.GetForksUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("full_name", m.GetFullName()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_commits_url", m.GetGitCommitsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_refs_url", m.GetGitRefsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_tags_url", m.GetGitTagsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("git_url", m.GetGitUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_downloads", m.GetHasDownloads()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_issues", m.GetHasIssues()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_pages", m.GetHasPages()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_projects", m.GetHasProjects()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_wiki", m.GetHasWiki()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("homepage", m.GetHomepage()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("hooks_url", m.GetHooksUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("html_url", m.GetHtmlUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("id", m.GetId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("issues_url", m.GetIssuesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("issue_comment_url", m.GetIssueCommentUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("issue_events_url", m.GetIssueEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("is_template", m.GetIsTemplate()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("keys_url", m.GetKeysUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("labels_url", m.GetLabelsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("language", m.GetLanguage()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("languages_url", m.GetLanguagesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("merges_url", m.GetMergesUrl()) - if err != nil { - return err - } - } - if m.GetMergeCommitMessage() != nil { - cast := (*m.GetMergeCommitMessage()).String() - err := writer.WriteStringValue("merge_commit_message", &cast) - if err != nil { - return err - } - } - if m.GetMergeCommitTitle() != nil { - cast := (*m.GetMergeCommitTitle()).String() - err := writer.WriteStringValue("merge_commit_title", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("milestones_url", m.GetMilestonesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("mirror_url", m.GetMirrorUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("network_count", m.GetNetworkCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("node_id", m.GetNodeId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("notifications_url", m.GetNotificationsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("open_issues_count", m.GetOpenIssuesCount()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("owner", m.GetOwner()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("permissions", m.GetPermissions()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("private", m.GetPrivate()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("pulls_url", m.GetPullsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("pushed_at", m.GetPushedAt()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("releases_url", m.GetReleasesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("size", m.GetSize()) - if err != nil { - return err - } - } - if m.GetSquashMergeCommitMessage() != nil { - cast := (*m.GetSquashMergeCommitMessage()).String() - err := writer.WriteStringValue("squash_merge_commit_message", &cast) - if err != nil { - return err - } - } - if m.GetSquashMergeCommitTitle() != nil { - cast := (*m.GetSquashMergeCommitTitle()).String() - err := writer.WriteStringValue("squash_merge_commit_title", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("ssh_url", m.GetSshUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("stargazers_count", m.GetStargazersCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("stargazers_url", m.GetStargazersUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("statuses_url", m.GetStatusesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("subscribers_count", m.GetSubscribersCount()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("subscribers_url", m.GetSubscribersUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("subscription_url", m.GetSubscriptionUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("svn_url", m.GetSvnUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("tags_url", m.GetTagsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("teams_url", m.GetTeamsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("temp_clone_token", m.GetTempCloneToken()) - if err != nil { - return err - } - } - if m.GetTopics() != nil { - err := writer.WriteCollectionOfStringValues("topics", m.GetTopics()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("trees_url", m.GetTreesUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("updated_at", m.GetUpdatedAt()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("url", m.GetUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("use_squash_pr_title_as_default", m.GetUseSquashPrTitleAsDefault()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("visibility", m.GetVisibility()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("watchers_count", m.GetWatchersCount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Repository_template_repository) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAllowAutoMerge sets the allow_auto_merge property value. The allow_auto_merge property -func (m *Repository_template_repository) SetAllowAutoMerge(value *bool)() { - m.allow_auto_merge = value -} -// SetAllowMergeCommit sets the allow_merge_commit property value. The allow_merge_commit property -func (m *Repository_template_repository) SetAllowMergeCommit(value *bool)() { - m.allow_merge_commit = value -} -// SetAllowRebaseMerge sets the allow_rebase_merge property value. The allow_rebase_merge property -func (m *Repository_template_repository) SetAllowRebaseMerge(value *bool)() { - m.allow_rebase_merge = value -} -// SetAllowSquashMerge sets the allow_squash_merge property value. The allow_squash_merge property -func (m *Repository_template_repository) SetAllowSquashMerge(value *bool)() { - m.allow_squash_merge = value -} -// SetAllowUpdateBranch sets the allow_update_branch property value. The allow_update_branch property -func (m *Repository_template_repository) SetAllowUpdateBranch(value *bool)() { - m.allow_update_branch = value -} -// SetArchived sets the archived property value. The archived property -func (m *Repository_template_repository) SetArchived(value *bool)() { - m.archived = value -} -// SetArchiveUrl sets the archive_url property value. The archive_url property -func (m *Repository_template_repository) SetArchiveUrl(value *string)() { - m.archive_url = value -} -// SetAssigneesUrl sets the assignees_url property value. The assignees_url property -func (m *Repository_template_repository) SetAssigneesUrl(value *string)() { - m.assignees_url = value -} -// SetBlobsUrl sets the blobs_url property value. The blobs_url property -func (m *Repository_template_repository) SetBlobsUrl(value *string)() { - m.blobs_url = value -} -// SetBranchesUrl sets the branches_url property value. The branches_url property -func (m *Repository_template_repository) SetBranchesUrl(value *string)() { - m.branches_url = value -} -// SetCloneUrl sets the clone_url property value. The clone_url property -func (m *Repository_template_repository) SetCloneUrl(value *string)() { - m.clone_url = value -} -// SetCollaboratorsUrl sets the collaborators_url property value. The collaborators_url property -func (m *Repository_template_repository) SetCollaboratorsUrl(value *string)() { - m.collaborators_url = value -} -// SetCommentsUrl sets the comments_url property value. The comments_url property -func (m *Repository_template_repository) SetCommentsUrl(value *string)() { - m.comments_url = value -} -// SetCommitsUrl sets the commits_url property value. The commits_url property -func (m *Repository_template_repository) SetCommitsUrl(value *string)() { - m.commits_url = value -} -// SetCompareUrl sets the compare_url property value. The compare_url property -func (m *Repository_template_repository) SetCompareUrl(value *string)() { - m.compare_url = value -} -// SetContentsUrl sets the contents_url property value. The contents_url property -func (m *Repository_template_repository) SetContentsUrl(value *string)() { - m.contents_url = value -} -// SetContributorsUrl sets the contributors_url property value. The contributors_url property -func (m *Repository_template_repository) SetContributorsUrl(value *string)() { - m.contributors_url = value -} -// SetCreatedAt sets the created_at property value. The created_at property -func (m *Repository_template_repository) SetCreatedAt(value *string)() { - m.created_at = value -} -// SetDefaultBranch sets the default_branch property value. The default_branch property -func (m *Repository_template_repository) SetDefaultBranch(value *string)() { - m.default_branch = value -} -// SetDeleteBranchOnMerge sets the delete_branch_on_merge property value. The delete_branch_on_merge property -func (m *Repository_template_repository) SetDeleteBranchOnMerge(value *bool)() { - m.delete_branch_on_merge = value -} -// SetDeploymentsUrl sets the deployments_url property value. The deployments_url property -func (m *Repository_template_repository) SetDeploymentsUrl(value *string)() { - m.deployments_url = value -} -// SetDescription sets the description property value. The description property -func (m *Repository_template_repository) SetDescription(value *string)() { - m.description = value -} -// SetDisabled sets the disabled property value. The disabled property -func (m *Repository_template_repository) SetDisabled(value *bool)() { - m.disabled = value -} -// SetDownloadsUrl sets the downloads_url property value. The downloads_url property -func (m *Repository_template_repository) SetDownloadsUrl(value *string)() { - m.downloads_url = value -} -// SetEventsUrl sets the events_url property value. The events_url property -func (m *Repository_template_repository) SetEventsUrl(value *string)() { - m.events_url = value -} -// SetFork sets the fork property value. The fork property -func (m *Repository_template_repository) SetFork(value *bool)() { - m.fork = value -} -// SetForksCount sets the forks_count property value. The forks_count property -func (m *Repository_template_repository) SetForksCount(value *int32)() { - m.forks_count = value -} -// SetForksUrl sets the forks_url property value. The forks_url property -func (m *Repository_template_repository) SetForksUrl(value *string)() { - m.forks_url = value -} -// SetFullName sets the full_name property value. The full_name property -func (m *Repository_template_repository) SetFullName(value *string)() { - m.full_name = value -} -// SetGitCommitsUrl sets the git_commits_url property value. The git_commits_url property -func (m *Repository_template_repository) SetGitCommitsUrl(value *string)() { - m.git_commits_url = value -} -// SetGitRefsUrl sets the git_refs_url property value. The git_refs_url property -func (m *Repository_template_repository) SetGitRefsUrl(value *string)() { - m.git_refs_url = value -} -// SetGitTagsUrl sets the git_tags_url property value. The git_tags_url property -func (m *Repository_template_repository) SetGitTagsUrl(value *string)() { - m.git_tags_url = value -} -// SetGitUrl sets the git_url property value. The git_url property -func (m *Repository_template_repository) SetGitUrl(value *string)() { - m.git_url = value -} -// SetHasDownloads sets the has_downloads property value. The has_downloads property -func (m *Repository_template_repository) SetHasDownloads(value *bool)() { - m.has_downloads = value -} -// SetHasIssues sets the has_issues property value. The has_issues property -func (m *Repository_template_repository) SetHasIssues(value *bool)() { - m.has_issues = value -} -// SetHasPages sets the has_pages property value. The has_pages property -func (m *Repository_template_repository) SetHasPages(value *bool)() { - m.has_pages = value -} -// SetHasProjects sets the has_projects property value. The has_projects property -func (m *Repository_template_repository) SetHasProjects(value *bool)() { - m.has_projects = value -} -// SetHasWiki sets the has_wiki property value. The has_wiki property -func (m *Repository_template_repository) SetHasWiki(value *bool)() { - m.has_wiki = value -} -// SetHomepage sets the homepage property value. The homepage property -func (m *Repository_template_repository) SetHomepage(value *string)() { - m.homepage = value -} -// SetHooksUrl sets the hooks_url property value. The hooks_url property -func (m *Repository_template_repository) SetHooksUrl(value *string)() { - m.hooks_url = value -} -// SetHtmlUrl sets the html_url property value. The html_url property -func (m *Repository_template_repository) SetHtmlUrl(value *string)() { - m.html_url = value -} -// SetId sets the id property value. The id property -func (m *Repository_template_repository) SetId(value *int32)() { - m.id = value -} -// SetIssueCommentUrl sets the issue_comment_url property value. The issue_comment_url property -func (m *Repository_template_repository) SetIssueCommentUrl(value *string)() { - m.issue_comment_url = value -} -// SetIssueEventsUrl sets the issue_events_url property value. The issue_events_url property -func (m *Repository_template_repository) SetIssueEventsUrl(value *string)() { - m.issue_events_url = value -} -// SetIssuesUrl sets the issues_url property value. The issues_url property -func (m *Repository_template_repository) SetIssuesUrl(value *string)() { - m.issues_url = value -} -// SetIsTemplate sets the is_template property value. The is_template property -func (m *Repository_template_repository) SetIsTemplate(value *bool)() { - m.is_template = value -} -// SetKeysUrl sets the keys_url property value. The keys_url property -func (m *Repository_template_repository) SetKeysUrl(value *string)() { - m.keys_url = value -} -// SetLabelsUrl sets the labels_url property value. The labels_url property -func (m *Repository_template_repository) SetLabelsUrl(value *string)() { - m.labels_url = value -} -// SetLanguage sets the language property value. The language property -func (m *Repository_template_repository) SetLanguage(value *string)() { - m.language = value -} -// SetLanguagesUrl sets the languages_url property value. The languages_url property -func (m *Repository_template_repository) SetLanguagesUrl(value *string)() { - m.languages_url = value -} -// SetMergeCommitMessage sets the merge_commit_message property value. The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -func (m *Repository_template_repository) SetMergeCommitMessage(value *Repository_template_repository_merge_commit_message)() { - m.merge_commit_message = value -} -// SetMergeCommitTitle sets the merge_commit_title property value. The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -func (m *Repository_template_repository) SetMergeCommitTitle(value *Repository_template_repository_merge_commit_title)() { - m.merge_commit_title = value -} -// SetMergesUrl sets the merges_url property value. The merges_url property -func (m *Repository_template_repository) SetMergesUrl(value *string)() { - m.merges_url = value -} -// SetMilestonesUrl sets the milestones_url property value. The milestones_url property -func (m *Repository_template_repository) SetMilestonesUrl(value *string)() { - m.milestones_url = value -} -// SetMirrorUrl sets the mirror_url property value. The mirror_url property -func (m *Repository_template_repository) SetMirrorUrl(value *string)() { - m.mirror_url = value -} -// SetName sets the name property value. The name property -func (m *Repository_template_repository) SetName(value *string)() { - m.name = value -} -// SetNetworkCount sets the network_count property value. The network_count property -func (m *Repository_template_repository) SetNetworkCount(value *int32)() { - m.network_count = value -} -// SetNodeId sets the node_id property value. The node_id property -func (m *Repository_template_repository) SetNodeId(value *string)() { - m.node_id = value -} -// SetNotificationsUrl sets the notifications_url property value. The notifications_url property -func (m *Repository_template_repository) SetNotificationsUrl(value *string)() { - m.notifications_url = value -} -// SetOpenIssuesCount sets the open_issues_count property value. The open_issues_count property -func (m *Repository_template_repository) SetOpenIssuesCount(value *int32)() { - m.open_issues_count = value -} -// SetOwner sets the owner property value. The owner property -func (m *Repository_template_repository) SetOwner(value Repository_template_repository_ownerable)() { - m.owner = value -} -// SetPermissions sets the permissions property value. The permissions property -func (m *Repository_template_repository) SetPermissions(value Repository_template_repository_permissionsable)() { - m.permissions = value -} -// SetPrivate sets the private property value. The private property -func (m *Repository_template_repository) SetPrivate(value *bool)() { - m.private = value -} -// SetPullsUrl sets the pulls_url property value. The pulls_url property -func (m *Repository_template_repository) SetPullsUrl(value *string)() { - m.pulls_url = value -} -// SetPushedAt sets the pushed_at property value. The pushed_at property -func (m *Repository_template_repository) SetPushedAt(value *string)() { - m.pushed_at = value -} -// SetReleasesUrl sets the releases_url property value. The releases_url property -func (m *Repository_template_repository) SetReleasesUrl(value *string)() { - m.releases_url = value -} -// SetSize sets the size property value. The size property -func (m *Repository_template_repository) SetSize(value *int32)() { - m.size = value -} -// SetSquashMergeCommitMessage sets the squash_merge_commit_message property value. The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -func (m *Repository_template_repository) SetSquashMergeCommitMessage(value *Repository_template_repository_squash_merge_commit_message)() { - m.squash_merge_commit_message = value -} -// SetSquashMergeCommitTitle sets the squash_merge_commit_title property value. The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -func (m *Repository_template_repository) SetSquashMergeCommitTitle(value *Repository_template_repository_squash_merge_commit_title)() { - m.squash_merge_commit_title = value -} -// SetSshUrl sets the ssh_url property value. The ssh_url property -func (m *Repository_template_repository) SetSshUrl(value *string)() { - m.ssh_url = value -} -// SetStargazersCount sets the stargazers_count property value. The stargazers_count property -func (m *Repository_template_repository) SetStargazersCount(value *int32)() { - m.stargazers_count = value -} -// SetStargazersUrl sets the stargazers_url property value. The stargazers_url property -func (m *Repository_template_repository) SetStargazersUrl(value *string)() { - m.stargazers_url = value -} -// SetStatusesUrl sets the statuses_url property value. The statuses_url property -func (m *Repository_template_repository) SetStatusesUrl(value *string)() { - m.statuses_url = value -} -// SetSubscribersCount sets the subscribers_count property value. The subscribers_count property -func (m *Repository_template_repository) SetSubscribersCount(value *int32)() { - m.subscribers_count = value -} -// SetSubscribersUrl sets the subscribers_url property value. The subscribers_url property -func (m *Repository_template_repository) SetSubscribersUrl(value *string)() { - m.subscribers_url = value -} -// SetSubscriptionUrl sets the subscription_url property value. The subscription_url property -func (m *Repository_template_repository) SetSubscriptionUrl(value *string)() { - m.subscription_url = value -} -// SetSvnUrl sets the svn_url property value. The svn_url property -func (m *Repository_template_repository) SetSvnUrl(value *string)() { - m.svn_url = value -} -// SetTagsUrl sets the tags_url property value. The tags_url property -func (m *Repository_template_repository) SetTagsUrl(value *string)() { - m.tags_url = value -} -// SetTeamsUrl sets the teams_url property value. The teams_url property -func (m *Repository_template_repository) SetTeamsUrl(value *string)() { - m.teams_url = value -} -// SetTempCloneToken sets the temp_clone_token property value. The temp_clone_token property -func (m *Repository_template_repository) SetTempCloneToken(value *string)() { - m.temp_clone_token = value -} -// SetTopics sets the topics property value. The topics property -func (m *Repository_template_repository) SetTopics(value []string)() { - m.topics = value -} -// SetTreesUrl sets the trees_url property value. The trees_url property -func (m *Repository_template_repository) SetTreesUrl(value *string)() { - m.trees_url = value -} -// SetUpdatedAt sets the updated_at property value. The updated_at property -func (m *Repository_template_repository) SetUpdatedAt(value *string)() { - m.updated_at = value -} -// SetUrl sets the url property value. The url property -func (m *Repository_template_repository) SetUrl(value *string)() { - m.url = value -} -// SetUseSquashPrTitleAsDefault sets the use_squash_pr_title_as_default property value. The use_squash_pr_title_as_default property -func (m *Repository_template_repository) SetUseSquashPrTitleAsDefault(value *bool)() { - m.use_squash_pr_title_as_default = value -} -// SetVisibility sets the visibility property value. The visibility property -func (m *Repository_template_repository) SetVisibility(value *string)() { - m.visibility = value -} -// SetWatchersCount sets the watchers_count property value. The watchers_count property -func (m *Repository_template_repository) SetWatchersCount(value *int32)() { - m.watchers_count = value -} -// Repository_template_repositoryable -type Repository_template_repositoryable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowAutoMerge()(*bool) - GetAllowMergeCommit()(*bool) - GetAllowRebaseMerge()(*bool) - GetAllowSquashMerge()(*bool) - GetAllowUpdateBranch()(*bool) - GetArchived()(*bool) - GetArchiveUrl()(*string) - GetAssigneesUrl()(*string) - GetBlobsUrl()(*string) - GetBranchesUrl()(*string) - GetCloneUrl()(*string) - GetCollaboratorsUrl()(*string) - GetCommentsUrl()(*string) - GetCommitsUrl()(*string) - GetCompareUrl()(*string) - GetContentsUrl()(*string) - GetContributorsUrl()(*string) - GetCreatedAt()(*string) - GetDefaultBranch()(*string) - GetDeleteBranchOnMerge()(*bool) - GetDeploymentsUrl()(*string) - GetDescription()(*string) - GetDisabled()(*bool) - GetDownloadsUrl()(*string) - GetEventsUrl()(*string) - GetFork()(*bool) - GetForksCount()(*int32) - GetForksUrl()(*string) - GetFullName()(*string) - GetGitCommitsUrl()(*string) - GetGitRefsUrl()(*string) - GetGitTagsUrl()(*string) - GetGitUrl()(*string) - GetHasDownloads()(*bool) - GetHasIssues()(*bool) - GetHasPages()(*bool) - GetHasProjects()(*bool) - GetHasWiki()(*bool) - GetHomepage()(*string) - GetHooksUrl()(*string) - GetHtmlUrl()(*string) - GetId()(*int32) - GetIssueCommentUrl()(*string) - GetIssueEventsUrl()(*string) - GetIssuesUrl()(*string) - GetIsTemplate()(*bool) - GetKeysUrl()(*string) - GetLabelsUrl()(*string) - GetLanguage()(*string) - GetLanguagesUrl()(*string) - GetMergeCommitMessage()(*Repository_template_repository_merge_commit_message) - GetMergeCommitTitle()(*Repository_template_repository_merge_commit_title) - GetMergesUrl()(*string) - GetMilestonesUrl()(*string) - GetMirrorUrl()(*string) - GetName()(*string) - GetNetworkCount()(*int32) - GetNodeId()(*string) - GetNotificationsUrl()(*string) - GetOpenIssuesCount()(*int32) - GetOwner()(Repository_template_repository_ownerable) - GetPermissions()(Repository_template_repository_permissionsable) - GetPrivate()(*bool) - GetPullsUrl()(*string) - GetPushedAt()(*string) - GetReleasesUrl()(*string) - GetSize()(*int32) - GetSquashMergeCommitMessage()(*Repository_template_repository_squash_merge_commit_message) - GetSquashMergeCommitTitle()(*Repository_template_repository_squash_merge_commit_title) - GetSshUrl()(*string) - GetStargazersCount()(*int32) - GetStargazersUrl()(*string) - GetStatusesUrl()(*string) - GetSubscribersCount()(*int32) - GetSubscribersUrl()(*string) - GetSubscriptionUrl()(*string) - GetSvnUrl()(*string) - GetTagsUrl()(*string) - GetTeamsUrl()(*string) - GetTempCloneToken()(*string) - GetTopics()([]string) - GetTreesUrl()(*string) - GetUpdatedAt()(*string) - GetUrl()(*string) - GetUseSquashPrTitleAsDefault()(*bool) - GetVisibility()(*string) - GetWatchersCount()(*int32) - SetAllowAutoMerge(value *bool)() - SetAllowMergeCommit(value *bool)() - SetAllowRebaseMerge(value *bool)() - SetAllowSquashMerge(value *bool)() - SetAllowUpdateBranch(value *bool)() - SetArchived(value *bool)() - SetArchiveUrl(value *string)() - SetAssigneesUrl(value *string)() - SetBlobsUrl(value *string)() - SetBranchesUrl(value *string)() - SetCloneUrl(value *string)() - SetCollaboratorsUrl(value *string)() - SetCommentsUrl(value *string)() - SetCommitsUrl(value *string)() - SetCompareUrl(value *string)() - SetContentsUrl(value *string)() - SetContributorsUrl(value *string)() - SetCreatedAt(value *string)() - SetDefaultBranch(value *string)() - SetDeleteBranchOnMerge(value *bool)() - SetDeploymentsUrl(value *string)() - SetDescription(value *string)() - SetDisabled(value *bool)() - SetDownloadsUrl(value *string)() - SetEventsUrl(value *string)() - SetFork(value *bool)() - SetForksCount(value *int32)() - SetForksUrl(value *string)() - SetFullName(value *string)() - SetGitCommitsUrl(value *string)() - SetGitRefsUrl(value *string)() - SetGitTagsUrl(value *string)() - SetGitUrl(value *string)() - SetHasDownloads(value *bool)() - SetHasIssues(value *bool)() - SetHasPages(value *bool)() - SetHasProjects(value *bool)() - SetHasWiki(value *bool)() - SetHomepage(value *string)() - SetHooksUrl(value *string)() - SetHtmlUrl(value *string)() - SetId(value *int32)() - SetIssueCommentUrl(value *string)() - SetIssueEventsUrl(value *string)() - SetIssuesUrl(value *string)() - SetIsTemplate(value *bool)() - SetKeysUrl(value *string)() - SetLabelsUrl(value *string)() - SetLanguage(value *string)() - SetLanguagesUrl(value *string)() - SetMergeCommitMessage(value *Repository_template_repository_merge_commit_message)() - SetMergeCommitTitle(value *Repository_template_repository_merge_commit_title)() - SetMergesUrl(value *string)() - SetMilestonesUrl(value *string)() - SetMirrorUrl(value *string)() - SetName(value *string)() - SetNetworkCount(value *int32)() - SetNodeId(value *string)() - SetNotificationsUrl(value *string)() - SetOpenIssuesCount(value *int32)() - SetOwner(value Repository_template_repository_ownerable)() - SetPermissions(value Repository_template_repository_permissionsable)() - SetPrivate(value *bool)() - SetPullsUrl(value *string)() - SetPushedAt(value *string)() - SetReleasesUrl(value *string)() - SetSize(value *int32)() - SetSquashMergeCommitMessage(value *Repository_template_repository_squash_merge_commit_message)() - SetSquashMergeCommitTitle(value *Repository_template_repository_squash_merge_commit_title)() - SetSshUrl(value *string)() - SetStargazersCount(value *int32)() - SetStargazersUrl(value *string)() - SetStatusesUrl(value *string)() - SetSubscribersCount(value *int32)() - SetSubscribersUrl(value *string)() - SetSubscriptionUrl(value *string)() - SetSvnUrl(value *string)() - SetTagsUrl(value *string)() - SetTeamsUrl(value *string)() - SetTempCloneToken(value *string)() - SetTopics(value []string)() - SetTreesUrl(value *string)() - SetUpdatedAt(value *string)() - SetUrl(value *string)() - SetUseSquashPrTitleAsDefault(value *bool)() - SetVisibility(value *string)() - SetWatchersCount(value *int32)() -} diff --git a/pkg/github/models/repository_template_repository_merge_commit_message.go b/pkg/github/models/repository_template_repository_merge_commit_message.go deleted file mode 100644 index ca435b70..00000000 --- a/pkg/github/models/repository_template_repository_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -type Repository_template_repository_merge_commit_message int - -const ( - PR_BODY_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE Repository_template_repository_merge_commit_message = iota - PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - BLANK_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE -) - -func (i Repository_template_repository_merge_commit_message) String() string { - return []string{"PR_BODY", "PR_TITLE", "BLANK"}[i] -} -func ParseRepository_template_repository_merge_commit_message(v string) (any, error) { - result := PR_BODY_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - case "PR_TITLE": - result = PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown Repository_template_repository_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeRepository_template_repository_merge_commit_message(values []Repository_template_repository_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Repository_template_repository_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/repository_template_repository_merge_commit_title.go b/pkg/github/models/repository_template_repository_merge_commit_title.go deleted file mode 100644 index 9c872f42..00000000 --- a/pkg/github/models/repository_template_repository_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -type Repository_template_repository_merge_commit_title int - -const ( - PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE Repository_template_repository_merge_commit_title = iota - MERGE_MESSAGE_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE -) - -func (i Repository_template_repository_merge_commit_title) String() string { - return []string{"PR_TITLE", "MERGE_MESSAGE"}[i] -} -func ParseRepository_template_repository_merge_commit_title(v string) (any, error) { - result := PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE - case "MERGE_MESSAGE": - result = MERGE_MESSAGE_REPOSITORY_TEMPLATE_REPOSITORY_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown Repository_template_repository_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeRepository_template_repository_merge_commit_title(values []Repository_template_repository_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Repository_template_repository_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/repository_template_repository_owner.go b/pkg/github/models/repository_template_repository_owner.go deleted file mode 100644 index 6d95d759..00000000 --- a/pkg/github/models/repository_template_repository_owner.go +++ /dev/null @@ -1,554 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Repository_template_repository_owner -type Repository_template_repository_owner struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The avatar_url property - avatar_url *string - // The events_url property - events_url *string - // The followers_url property - followers_url *string - // The following_url property - following_url *string - // The gists_url property - gists_url *string - // The gravatar_id property - gravatar_id *string - // The html_url property - html_url *string - // The id property - id *int32 - // The login property - login *string - // The node_id property - node_id *string - // The organizations_url property - organizations_url *string - // The received_events_url property - received_events_url *string - // The repos_url property - repos_url *string - // The site_admin property - site_admin *bool - // The starred_url property - starred_url *string - // The subscriptions_url property - subscriptions_url *string - // The type property - typeEscaped *string - // The url property - url *string -} -// NewRepository_template_repository_owner instantiates a new repository_template_repository_owner and sets the default values. -func NewRepository_template_repository_owner()(*Repository_template_repository_owner) { - m := &Repository_template_repository_owner{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepository_template_repository_ownerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateRepository_template_repository_ownerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepository_template_repository_owner(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Repository_template_repository_owner) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAvatarUrl gets the avatar_url property value. The avatar_url property -func (m *Repository_template_repository_owner) GetAvatarUrl()(*string) { - return m.avatar_url -} -// GetEventsUrl gets the events_url property value. The events_url property -func (m *Repository_template_repository_owner) GetEventsUrl()(*string) { - return m.events_url -} -// GetFieldDeserializers the deserialization information for the current model -func (m *Repository_template_repository_owner) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["avatar_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAvatarUrl(val) - } - return nil - } - res["events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEventsUrl(val) - } - return nil - } - res["followers_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFollowersUrl(val) - } - return nil - } - res["following_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFollowingUrl(val) - } - return nil - } - res["gists_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGistsUrl(val) - } - return nil - } - res["gravatar_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetGravatarId(val) - } - return nil - } - res["html_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHtmlUrl(val) - } - return nil - } - res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetId(val) - } - return nil - } - res["login"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLogin(val) - } - return nil - } - res["node_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetNodeId(val) - } - return nil - } - res["organizations_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOrganizationsUrl(val) - } - return nil - } - res["received_events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetReceivedEventsUrl(val) - } - return nil - } - res["repos_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetReposUrl(val) - } - return nil - } - res["site_admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetSiteAdmin(val) - } - return nil - } - res["starred_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStarredUrl(val) - } - return nil - } - res["subscriptions_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSubscriptionsUrl(val) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val) - } - return nil - } - res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUrl(val) - } - return nil - } - return res -} -// GetFollowersUrl gets the followers_url property value. The followers_url property -func (m *Repository_template_repository_owner) GetFollowersUrl()(*string) { - return m.followers_url -} -// GetFollowingUrl gets the following_url property value. The following_url property -func (m *Repository_template_repository_owner) GetFollowingUrl()(*string) { - return m.following_url -} -// GetGistsUrl gets the gists_url property value. The gists_url property -func (m *Repository_template_repository_owner) GetGistsUrl()(*string) { - return m.gists_url -} -// GetGravatarId gets the gravatar_id property value. The gravatar_id property -func (m *Repository_template_repository_owner) GetGravatarId()(*string) { - return m.gravatar_id -} -// GetHtmlUrl gets the html_url property value. The html_url property -func (m *Repository_template_repository_owner) GetHtmlUrl()(*string) { - return m.html_url -} -// GetId gets the id property value. The id property -func (m *Repository_template_repository_owner) GetId()(*int32) { - return m.id -} -// GetLogin gets the login property value. The login property -func (m *Repository_template_repository_owner) GetLogin()(*string) { - return m.login -} -// GetNodeId gets the node_id property value. The node_id property -func (m *Repository_template_repository_owner) GetNodeId()(*string) { - return m.node_id -} -// GetOrganizationsUrl gets the organizations_url property value. The organizations_url property -func (m *Repository_template_repository_owner) GetOrganizationsUrl()(*string) { - return m.organizations_url -} -// GetReceivedEventsUrl gets the received_events_url property value. The received_events_url property -func (m *Repository_template_repository_owner) GetReceivedEventsUrl()(*string) { - return m.received_events_url -} -// GetReposUrl gets the repos_url property value. The repos_url property -func (m *Repository_template_repository_owner) GetReposUrl()(*string) { - return m.repos_url -} -// GetSiteAdmin gets the site_admin property value. The site_admin property -func (m *Repository_template_repository_owner) GetSiteAdmin()(*bool) { - return m.site_admin -} -// GetStarredUrl gets the starred_url property value. The starred_url property -func (m *Repository_template_repository_owner) GetStarredUrl()(*string) { - return m.starred_url -} -// GetSubscriptionsUrl gets the subscriptions_url property value. The subscriptions_url property -func (m *Repository_template_repository_owner) GetSubscriptionsUrl()(*string) { - return m.subscriptions_url -} -// GetTypeEscaped gets the type property value. The type property -func (m *Repository_template_repository_owner) GetTypeEscaped()(*string) { - return m.typeEscaped -} -// GetUrl gets the url property value. The url property -func (m *Repository_template_repository_owner) GetUrl()(*string) { - return m.url -} -// Serialize serializes information the current object -func (m *Repository_template_repository_owner) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("avatar_url", m.GetAvatarUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("events_url", m.GetEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("followers_url", m.GetFollowersUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("following_url", m.GetFollowingUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("gists_url", m.GetGistsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("gravatar_id", m.GetGravatarId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("html_url", m.GetHtmlUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("id", m.GetId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("login", m.GetLogin()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("node_id", m.GetNodeId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("organizations_url", m.GetOrganizationsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("received_events_url", m.GetReceivedEventsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("repos_url", m.GetReposUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("site_admin", m.GetSiteAdmin()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("starred_url", m.GetStarredUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("subscriptions_url", m.GetSubscriptionsUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("url", m.GetUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Repository_template_repository_owner) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAvatarUrl sets the avatar_url property value. The avatar_url property -func (m *Repository_template_repository_owner) SetAvatarUrl(value *string)() { - m.avatar_url = value -} -// SetEventsUrl sets the events_url property value. The events_url property -func (m *Repository_template_repository_owner) SetEventsUrl(value *string)() { - m.events_url = value -} -// SetFollowersUrl sets the followers_url property value. The followers_url property -func (m *Repository_template_repository_owner) SetFollowersUrl(value *string)() { - m.followers_url = value -} -// SetFollowingUrl sets the following_url property value. The following_url property -func (m *Repository_template_repository_owner) SetFollowingUrl(value *string)() { - m.following_url = value -} -// SetGistsUrl sets the gists_url property value. The gists_url property -func (m *Repository_template_repository_owner) SetGistsUrl(value *string)() { - m.gists_url = value -} -// SetGravatarId sets the gravatar_id property value. The gravatar_id property -func (m *Repository_template_repository_owner) SetGravatarId(value *string)() { - m.gravatar_id = value -} -// SetHtmlUrl sets the html_url property value. The html_url property -func (m *Repository_template_repository_owner) SetHtmlUrl(value *string)() { - m.html_url = value -} -// SetId sets the id property value. The id property -func (m *Repository_template_repository_owner) SetId(value *int32)() { - m.id = value -} -// SetLogin sets the login property value. The login property -func (m *Repository_template_repository_owner) SetLogin(value *string)() { - m.login = value -} -// SetNodeId sets the node_id property value. The node_id property -func (m *Repository_template_repository_owner) SetNodeId(value *string)() { - m.node_id = value -} -// SetOrganizationsUrl sets the organizations_url property value. The organizations_url property -func (m *Repository_template_repository_owner) SetOrganizationsUrl(value *string)() { - m.organizations_url = value -} -// SetReceivedEventsUrl sets the received_events_url property value. The received_events_url property -func (m *Repository_template_repository_owner) SetReceivedEventsUrl(value *string)() { - m.received_events_url = value -} -// SetReposUrl sets the repos_url property value. The repos_url property -func (m *Repository_template_repository_owner) SetReposUrl(value *string)() { - m.repos_url = value -} -// SetSiteAdmin sets the site_admin property value. The site_admin property -func (m *Repository_template_repository_owner) SetSiteAdmin(value *bool)() { - m.site_admin = value -} -// SetStarredUrl sets the starred_url property value. The starred_url property -func (m *Repository_template_repository_owner) SetStarredUrl(value *string)() { - m.starred_url = value -} -// SetSubscriptionsUrl sets the subscriptions_url property value. The subscriptions_url property -func (m *Repository_template_repository_owner) SetSubscriptionsUrl(value *string)() { - m.subscriptions_url = value -} -// SetTypeEscaped sets the type property value. The type property -func (m *Repository_template_repository_owner) SetTypeEscaped(value *string)() { - m.typeEscaped = value -} -// SetUrl sets the url property value. The url property -func (m *Repository_template_repository_owner) SetUrl(value *string)() { - m.url = value -} -// Repository_template_repository_ownerable -type Repository_template_repository_ownerable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAvatarUrl()(*string) - GetEventsUrl()(*string) - GetFollowersUrl()(*string) - GetFollowingUrl()(*string) - GetGistsUrl()(*string) - GetGravatarId()(*string) - GetHtmlUrl()(*string) - GetId()(*int32) - GetLogin()(*string) - GetNodeId()(*string) - GetOrganizationsUrl()(*string) - GetReceivedEventsUrl()(*string) - GetReposUrl()(*string) - GetSiteAdmin()(*bool) - GetStarredUrl()(*string) - GetSubscriptionsUrl()(*string) - GetTypeEscaped()(*string) - GetUrl()(*string) - SetAvatarUrl(value *string)() - SetEventsUrl(value *string)() - SetFollowersUrl(value *string)() - SetFollowingUrl(value *string)() - SetGistsUrl(value *string)() - SetGravatarId(value *string)() - SetHtmlUrl(value *string)() - SetId(value *int32)() - SetLogin(value *string)() - SetNodeId(value *string)() - SetOrganizationsUrl(value *string)() - SetReceivedEventsUrl(value *string)() - SetReposUrl(value *string)() - SetSiteAdmin(value *bool)() - SetStarredUrl(value *string)() - SetSubscriptionsUrl(value *string)() - SetTypeEscaped(value *string)() - SetUrl(value *string)() -} diff --git a/pkg/github/models/repository_template_repository_permissions.go b/pkg/github/models/repository_template_repository_permissions.go deleted file mode 100644 index a4805355..00000000 --- a/pkg/github/models/repository_template_repository_permissions.go +++ /dev/null @@ -1,190 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Repository_template_repository_permissions -type Repository_template_repository_permissions struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The admin property - admin *bool - // The maintain property - maintain *bool - // The pull property - pull *bool - // The push property - push *bool - // The triage property - triage *bool -} -// NewRepository_template_repository_permissions instantiates a new repository_template_repository_permissions and sets the default values. -func NewRepository_template_repository_permissions()(*Repository_template_repository_permissions) { - m := &Repository_template_repository_permissions{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateRepository_template_repository_permissionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateRepository_template_repository_permissionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepository_template_repository_permissions(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Repository_template_repository_permissions) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAdmin gets the admin property value. The admin property -func (m *Repository_template_repository_permissions) GetAdmin()(*bool) { - return m.admin -} -// GetFieldDeserializers the deserialization information for the current model -func (m *Repository_template_repository_permissions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAdmin(val) - } - return nil - } - res["maintain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetMaintain(val) - } - return nil - } - res["pull"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPull(val) - } - return nil - } - res["push"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPush(val) - } - return nil - } - res["triage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetTriage(val) - } - return nil - } - return res -} -// GetMaintain gets the maintain property value. The maintain property -func (m *Repository_template_repository_permissions) GetMaintain()(*bool) { - return m.maintain -} -// GetPull gets the pull property value. The pull property -func (m *Repository_template_repository_permissions) GetPull()(*bool) { - return m.pull -} -// GetPush gets the push property value. The push property -func (m *Repository_template_repository_permissions) GetPush()(*bool) { - return m.push -} -// GetTriage gets the triage property value. The triage property -func (m *Repository_template_repository_permissions) GetTriage()(*bool) { - return m.triage -} -// Serialize serializes information the current object -func (m *Repository_template_repository_permissions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("admin", m.GetAdmin()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("maintain", m.GetMaintain()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("pull", m.GetPull()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("push", m.GetPush()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("triage", m.GetTriage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Repository_template_repository_permissions) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAdmin sets the admin property value. The admin property -func (m *Repository_template_repository_permissions) SetAdmin(value *bool)() { - m.admin = value -} -// SetMaintain sets the maintain property value. The maintain property -func (m *Repository_template_repository_permissions) SetMaintain(value *bool)() { - m.maintain = value -} -// SetPull sets the pull property value. The pull property -func (m *Repository_template_repository_permissions) SetPull(value *bool)() { - m.pull = value -} -// SetPush sets the push property value. The push property -func (m *Repository_template_repository_permissions) SetPush(value *bool)() { - m.push = value -} -// SetTriage sets the triage property value. The triage property -func (m *Repository_template_repository_permissions) SetTriage(value *bool)() { - m.triage = value -} -// Repository_template_repository_permissionsable -type Repository_template_repository_permissionsable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdmin()(*bool) - GetMaintain()(*bool) - GetPull()(*bool) - GetPush()(*bool) - GetTriage()(*bool) - SetAdmin(value *bool)() - SetMaintain(value *bool)() - SetPull(value *bool)() - SetPush(value *bool)() - SetTriage(value *bool)() -} diff --git a/pkg/github/models/repository_template_repository_squash_merge_commit_message.go b/pkg/github/models/repository_template_repository_squash_merge_commit_message.go deleted file mode 100644 index a9bcec8e..00000000 --- a/pkg/github/models/repository_template_repository_squash_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -type Repository_template_repository_squash_merge_commit_message int - -const ( - PR_BODY_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE Repository_template_repository_squash_merge_commit_message = iota - COMMIT_MESSAGES_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - BLANK_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE -) - -func (i Repository_template_repository_squash_merge_commit_message) String() string { - return []string{"PR_BODY", "COMMIT_MESSAGES", "BLANK"}[i] -} -func ParseRepository_template_repository_squash_merge_commit_message(v string) (any, error) { - result := PR_BODY_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - case "COMMIT_MESSAGES": - result = COMMIT_MESSAGES_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown Repository_template_repository_squash_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeRepository_template_repository_squash_merge_commit_message(values []Repository_template_repository_squash_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Repository_template_repository_squash_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/models/repository_template_repository_squash_merge_commit_title.go b/pkg/github/models/repository_template_repository_squash_merge_commit_title.go deleted file mode 100644 index 8a2a6b9f..00000000 --- a/pkg/github/models/repository_template_repository_squash_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -type Repository_template_repository_squash_merge_commit_title int - -const ( - PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE Repository_template_repository_squash_merge_commit_title = iota - COMMIT_OR_PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE -) - -func (i Repository_template_repository_squash_merge_commit_title) String() string { - return []string{"PR_TITLE", "COMMIT_OR_PR_TITLE"}[i] -} -func ParseRepository_template_repository_squash_merge_commit_title(v string) (any, error) { - result := PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE - case "COMMIT_OR_PR_TITLE": - result = COMMIT_OR_PR_TITLE_REPOSITORY_TEMPLATE_REPOSITORY_SQUASH_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown Repository_template_repository_squash_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeRepository_template_repository_squash_merge_commit_title(values []Repository_template_repository_squash_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Repository_template_repository_squash_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/notifications/notifications_response.go b/pkg/github/notifications/notifications_response.go deleted file mode 100644 index 0dce649d..00000000 --- a/pkg/github/notifications/notifications_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package notifications - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// NotificationsResponse -// Deprecated: This class is obsolete. Use notificationsPutResponse instead. -type NotificationsResponse struct { - NotificationsPutResponse -} -// NewNotificationsResponse instantiates a new notificationsResponse and sets the default values. -func NewNotificationsResponse()(*NotificationsResponse) { - m := &NotificationsResponse{ - NotificationsPutResponse: *NewNotificationsPutResponse(), - } - return m -} -// CreateNotificationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateNotificationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewNotificationsResponse(), nil -} -// NotificationsResponseable -// Deprecated: This class is obsolete. Use notificationsPutResponse instead. -type NotificationsResponseable interface { - NotificationsPutResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_cache_usage_by_repository_response.go b/pkg/github/orgs/item_actions_cache_usage_by_repository_response.go deleted file mode 100644 index e07cf7a2..00000000 --- a/pkg/github/orgs/item_actions_cache_usage_by_repository_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsCacheUsageByRepositoryResponse -// Deprecated: This class is obsolete. Use usageByRepositoryGetResponse instead. -type ItemActionsCacheUsageByRepositoryResponse struct { - ItemActionsCacheUsageByRepositoryGetResponse -} -// NewItemActionsCacheUsageByRepositoryResponse instantiates a new ItemActionsCacheUsageByRepositoryResponse and sets the default values. -func NewItemActionsCacheUsageByRepositoryResponse()(*ItemActionsCacheUsageByRepositoryResponse) { - m := &ItemActionsCacheUsageByRepositoryResponse{ - ItemActionsCacheUsageByRepositoryGetResponse: *NewItemActionsCacheUsageByRepositoryGetResponse(), - } - return m -} -// CreateItemActionsCacheUsageByRepositoryResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsCacheUsageByRepositoryResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsCacheUsageByRepositoryResponse(), nil -} -// ItemActionsCacheUsageByRepositoryResponseable -// Deprecated: This class is obsolete. Use usageByRepositoryGetResponse instead. -type ItemActionsCacheUsageByRepositoryResponseable interface { - ItemActionsCacheUsageByRepositoryGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_permissions_repositories_response.go b/pkg/github/orgs/item_actions_permissions_repositories_response.go deleted file mode 100644 index 4189b5cf..00000000 --- a/pkg/github/orgs/item_actions_permissions_repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsPermissionsRepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemActionsPermissionsRepositoriesResponse struct { - ItemActionsPermissionsRepositoriesGetResponse -} -// NewItemActionsPermissionsRepositoriesResponse instantiates a new ItemActionsPermissionsRepositoriesResponse and sets the default values. -func NewItemActionsPermissionsRepositoriesResponse()(*ItemActionsPermissionsRepositoriesResponse) { - m := &ItemActionsPermissionsRepositoriesResponse{ - ItemActionsPermissionsRepositoriesGetResponse: *NewItemActionsPermissionsRepositoriesGetResponse(), - } - return m -} -// CreateItemActionsPermissionsRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsPermissionsRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsPermissionsRepositoriesResponse(), nil -} -// ItemActionsPermissionsRepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemActionsPermissionsRepositoriesResponseable interface { - ItemActionsPermissionsRepositoriesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_runners_generate_jitconfig_response.go b/pkg/github/orgs/item_actions_runners_generate_jitconfig_response.go deleted file mode 100644 index 10f019eb..00000000 --- a/pkg/github/orgs/item_actions_runners_generate_jitconfig_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsRunnersGenerateJitconfigResponse -// Deprecated: This class is obsolete. Use generateJitconfigPostResponse instead. -type ItemActionsRunnersGenerateJitconfigResponse struct { - ItemActionsRunnersGenerateJitconfigPostResponse -} -// NewItemActionsRunnersGenerateJitconfigResponse instantiates a new ItemActionsRunnersGenerateJitconfigResponse and sets the default values. -func NewItemActionsRunnersGenerateJitconfigResponse()(*ItemActionsRunnersGenerateJitconfigResponse) { - m := &ItemActionsRunnersGenerateJitconfigResponse{ - ItemActionsRunnersGenerateJitconfigPostResponse: *NewItemActionsRunnersGenerateJitconfigPostResponse(), - } - return m -} -// CreateItemActionsRunnersGenerateJitconfigResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsRunnersGenerateJitconfigResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsRunnersGenerateJitconfigResponse(), nil -} -// ItemActionsRunnersGenerateJitconfigResponseable -// Deprecated: This class is obsolete. Use generateJitconfigPostResponse instead. -type ItemActionsRunnersGenerateJitconfigResponseable interface { - ItemActionsRunnersGenerateJitconfigPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_runners_item_labels_item_with_name_response.go b/pkg/github/orgs/item_actions_runners_item_labels_item_with_name_response.go deleted file mode 100644 index 0582fa76..00000000 --- a/pkg/github/orgs/item_actions_runners_item_labels_item_with_name_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsRunnersItemLabelsItemWithNameResponse -// Deprecated: This class is obsolete. Use WithNameDeleteResponse instead. -type ItemActionsRunnersItemLabelsItemWithNameResponse struct { - ItemActionsRunnersItemLabelsItemWithNameDeleteResponse -} -// NewItemActionsRunnersItemLabelsItemWithNameResponse instantiates a new ItemActionsRunnersItemLabelsItemWithNameResponse and sets the default values. -func NewItemActionsRunnersItemLabelsItemWithNameResponse()(*ItemActionsRunnersItemLabelsItemWithNameResponse) { - m := &ItemActionsRunnersItemLabelsItemWithNameResponse{ - ItemActionsRunnersItemLabelsItemWithNameDeleteResponse: *NewItemActionsRunnersItemLabelsItemWithNameDeleteResponse(), - } - return m -} -// CreateItemActionsRunnersItemLabelsItemWithNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsRunnersItemLabelsItemWithNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsRunnersItemLabelsItemWithNameResponse(), nil -} -// ItemActionsRunnersItemLabelsItemWithNameResponseable -// Deprecated: This class is obsolete. Use WithNameDeleteResponse instead. -type ItemActionsRunnersItemLabelsItemWithNameResponseable interface { - ItemActionsRunnersItemLabelsItemWithNameDeleteResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_runners_item_labels_response.go b/pkg/github/orgs/item_actions_runners_item_labels_response.go deleted file mode 100644 index de085b1c..00000000 --- a/pkg/github/orgs/item_actions_runners_item_labels_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsRunnersItemLabelsResponse -// Deprecated: This class is obsolete. Use labelsGetResponse instead. -type ItemActionsRunnersItemLabelsResponse struct { - ItemActionsRunnersItemLabelsGetResponse -} -// NewItemActionsRunnersItemLabelsResponse instantiates a new ItemActionsRunnersItemLabelsResponse and sets the default values. -func NewItemActionsRunnersItemLabelsResponse()(*ItemActionsRunnersItemLabelsResponse) { - m := &ItemActionsRunnersItemLabelsResponse{ - ItemActionsRunnersItemLabelsGetResponse: *NewItemActionsRunnersItemLabelsGetResponse(), - } - return m -} -// CreateItemActionsRunnersItemLabelsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsRunnersItemLabelsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsRunnersItemLabelsResponse(), nil -} -// ItemActionsRunnersItemLabelsResponseable -// Deprecated: This class is obsolete. Use labelsGetResponse instead. -type ItemActionsRunnersItemLabelsResponseable interface { - ItemActionsRunnersItemLabelsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_runners_response.go b/pkg/github/orgs/item_actions_runners_response.go deleted file mode 100644 index ea1e0194..00000000 --- a/pkg/github/orgs/item_actions_runners_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsRunnersResponse -// Deprecated: This class is obsolete. Use runnersGetResponse instead. -type ItemActionsRunnersResponse struct { - ItemActionsRunnersGetResponse -} -// NewItemActionsRunnersResponse instantiates a new ItemActionsRunnersResponse and sets the default values. -func NewItemActionsRunnersResponse()(*ItemActionsRunnersResponse) { - m := &ItemActionsRunnersResponse{ - ItemActionsRunnersGetResponse: *NewItemActionsRunnersGetResponse(), - } - return m -} -// CreateItemActionsRunnersResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsRunnersResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsRunnersResponse(), nil -} -// ItemActionsRunnersResponseable -// Deprecated: This class is obsolete. Use runnersGetResponse instead. -type ItemActionsRunnersResponseable interface { - ItemActionsRunnersGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_secrets_item_repositories_response.go b/pkg/github/orgs/item_actions_secrets_item_repositories_response.go deleted file mode 100644 index 6486a530..00000000 --- a/pkg/github/orgs/item_actions_secrets_item_repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsSecretsItemRepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemActionsSecretsItemRepositoriesResponse struct { - ItemActionsSecretsItemRepositoriesGetResponse -} -// NewItemActionsSecretsItemRepositoriesResponse instantiates a new ItemActionsSecretsItemRepositoriesResponse and sets the default values. -func NewItemActionsSecretsItemRepositoriesResponse()(*ItemActionsSecretsItemRepositoriesResponse) { - m := &ItemActionsSecretsItemRepositoriesResponse{ - ItemActionsSecretsItemRepositoriesGetResponse: *NewItemActionsSecretsItemRepositoriesGetResponse(), - } - return m -} -// CreateItemActionsSecretsItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsSecretsItemRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsSecretsItemRepositoriesResponse(), nil -} -// ItemActionsSecretsItemRepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemActionsSecretsItemRepositoriesResponseable interface { - ItemActionsSecretsItemRepositoriesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_secrets_response.go b/pkg/github/orgs/item_actions_secrets_response.go deleted file mode 100644 index 6a0a6ed8..00000000 --- a/pkg/github/orgs/item_actions_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemActionsSecretsResponse struct { - ItemActionsSecretsGetResponse -} -// NewItemActionsSecretsResponse instantiates a new ItemActionsSecretsResponse and sets the default values. -func NewItemActionsSecretsResponse()(*ItemActionsSecretsResponse) { - m := &ItemActionsSecretsResponse{ - ItemActionsSecretsGetResponse: *NewItemActionsSecretsGetResponse(), - } - return m -} -// CreateItemActionsSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsSecretsResponse(), nil -} -// ItemActionsSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemActionsSecretsResponseable interface { - ItemActionsSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_variables_item_repositories_response.go b/pkg/github/orgs/item_actions_variables_item_repositories_response.go deleted file mode 100644 index 10958901..00000000 --- a/pkg/github/orgs/item_actions_variables_item_repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsVariablesItemRepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemActionsVariablesItemRepositoriesResponse struct { - ItemActionsVariablesItemRepositoriesGetResponse -} -// NewItemActionsVariablesItemRepositoriesResponse instantiates a new ItemActionsVariablesItemRepositoriesResponse and sets the default values. -func NewItemActionsVariablesItemRepositoriesResponse()(*ItemActionsVariablesItemRepositoriesResponse) { - m := &ItemActionsVariablesItemRepositoriesResponse{ - ItemActionsVariablesItemRepositoriesGetResponse: *NewItemActionsVariablesItemRepositoriesGetResponse(), - } - return m -} -// CreateItemActionsVariablesItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsVariablesItemRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsVariablesItemRepositoriesResponse(), nil -} -// ItemActionsVariablesItemRepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemActionsVariablesItemRepositoriesResponseable interface { - ItemActionsVariablesItemRepositoriesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_actions_variables_response.go b/pkg/github/orgs/item_actions_variables_response.go deleted file mode 100644 index b8620dbd..00000000 --- a/pkg/github/orgs/item_actions_variables_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemActionsVariablesResponse -// Deprecated: This class is obsolete. Use variablesGetResponse instead. -type ItemActionsVariablesResponse struct { - ItemActionsVariablesGetResponse -} -// NewItemActionsVariablesResponse instantiates a new ItemActionsVariablesResponse and sets the default values. -func NewItemActionsVariablesResponse()(*ItemActionsVariablesResponse) { - m := &ItemActionsVariablesResponse{ - ItemActionsVariablesGetResponse: *NewItemActionsVariablesGetResponse(), - } - return m -} -// CreateItemActionsVariablesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemActionsVariablesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemActionsVariablesResponse(), nil -} -// ItemActionsVariablesResponseable -// Deprecated: This class is obsolete. Use variablesGetResponse instead. -type ItemActionsVariablesResponseable interface { - ItemActionsVariablesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_codespaces_response.go b/pkg/github/orgs/item_codespaces_response.go deleted file mode 100644 index d6e4dfb4..00000000 --- a/pkg/github/orgs/item_codespaces_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemCodespacesResponse -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type ItemCodespacesResponse struct { - ItemCodespacesGetResponse -} -// NewItemCodespacesResponse instantiates a new ItemCodespacesResponse and sets the default values. -func NewItemCodespacesResponse()(*ItemCodespacesResponse) { - m := &ItemCodespacesResponse{ - ItemCodespacesGetResponse: *NewItemCodespacesGetResponse(), - } - return m -} -// CreateItemCodespacesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemCodespacesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemCodespacesResponse(), nil -} -// ItemCodespacesResponseable -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type ItemCodespacesResponseable interface { - ItemCodespacesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_codespaces_secrets_item_repositories_response.go b/pkg/github/orgs/item_codespaces_secrets_item_repositories_response.go deleted file mode 100644 index a66aa8ef..00000000 --- a/pkg/github/orgs/item_codespaces_secrets_item_repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemCodespacesSecretsItemRepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemCodespacesSecretsItemRepositoriesResponse struct { - ItemCodespacesSecretsItemRepositoriesGetResponse -} -// NewItemCodespacesSecretsItemRepositoriesResponse instantiates a new ItemCodespacesSecretsItemRepositoriesResponse and sets the default values. -func NewItemCodespacesSecretsItemRepositoriesResponse()(*ItemCodespacesSecretsItemRepositoriesResponse) { - m := &ItemCodespacesSecretsItemRepositoriesResponse{ - ItemCodespacesSecretsItemRepositoriesGetResponse: *NewItemCodespacesSecretsItemRepositoriesGetResponse(), - } - return m -} -// CreateItemCodespacesSecretsItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemCodespacesSecretsItemRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemCodespacesSecretsItemRepositoriesResponse(), nil -} -// ItemCodespacesSecretsItemRepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemCodespacesSecretsItemRepositoriesResponseable interface { - ItemCodespacesSecretsItemRepositoriesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_codespaces_secrets_response.go b/pkg/github/orgs/item_codespaces_secrets_response.go deleted file mode 100644 index 88fcfc4c..00000000 --- a/pkg/github/orgs/item_codespaces_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemCodespacesSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemCodespacesSecretsResponse struct { - ItemCodespacesSecretsGetResponse -} -// NewItemCodespacesSecretsResponse instantiates a new ItemCodespacesSecretsResponse and sets the default values. -func NewItemCodespacesSecretsResponse()(*ItemCodespacesSecretsResponse) { - m := &ItemCodespacesSecretsResponse{ - ItemCodespacesSecretsGetResponse: *NewItemCodespacesSecretsGetResponse(), - } - return m -} -// CreateItemCodespacesSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemCodespacesSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemCodespacesSecretsResponse(), nil -} -// ItemCodespacesSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemCodespacesSecretsResponseable interface { - ItemCodespacesSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_copilot_billing_seats_response.go b/pkg/github/orgs/item_copilot_billing_seats_response.go deleted file mode 100644 index 67a3f3a9..00000000 --- a/pkg/github/orgs/item_copilot_billing_seats_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemCopilotBillingSeatsResponse -// Deprecated: This class is obsolete. Use seatsGetResponse instead. -type ItemCopilotBillingSeatsResponse struct { - ItemCopilotBillingSeatsGetResponse -} -// NewItemCopilotBillingSeatsResponse instantiates a new ItemCopilotBillingSeatsResponse and sets the default values. -func NewItemCopilotBillingSeatsResponse()(*ItemCopilotBillingSeatsResponse) { - m := &ItemCopilotBillingSeatsResponse{ - ItemCopilotBillingSeatsGetResponse: *NewItemCopilotBillingSeatsGetResponse(), - } - return m -} -// CreateItemCopilotBillingSeatsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemCopilotBillingSeatsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemCopilotBillingSeatsResponse(), nil -} -// ItemCopilotBillingSeatsResponseable -// Deprecated: This class is obsolete. Use seatsGetResponse instead. -type ItemCopilotBillingSeatsResponseable interface { - ItemCopilotBillingSeatsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_copilot_billing_selected_teams_response.go b/pkg/github/orgs/item_copilot_billing_selected_teams_response.go deleted file mode 100644 index 2440a7b4..00000000 --- a/pkg/github/orgs/item_copilot_billing_selected_teams_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemCopilotBillingSelected_teamsResponse the total number of seat assignments created. -// Deprecated: This class is obsolete. Use selected_teamsPostResponse instead. -type ItemCopilotBillingSelected_teamsResponse struct { - ItemCopilotBillingSelected_teamsPostResponse -} -// NewItemCopilotBillingSelected_teamsResponse instantiates a new ItemCopilotBillingSelected_teamsResponse and sets the default values. -func NewItemCopilotBillingSelected_teamsResponse()(*ItemCopilotBillingSelected_teamsResponse) { - m := &ItemCopilotBillingSelected_teamsResponse{ - ItemCopilotBillingSelected_teamsPostResponse: *NewItemCopilotBillingSelected_teamsPostResponse(), - } - return m -} -// CreateItemCopilotBillingSelected_teamsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemCopilotBillingSelected_teamsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemCopilotBillingSelected_teamsResponse(), nil -} -// ItemCopilotBillingSelected_teamsResponseable -// Deprecated: This class is obsolete. Use selected_teamsPostResponse instead. -type ItemCopilotBillingSelected_teamsResponseable interface { - ItemCopilotBillingSelected_teamsPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_copilot_billing_selected_users_response.go b/pkg/github/orgs/item_copilot_billing_selected_users_response.go deleted file mode 100644 index 441fe86a..00000000 --- a/pkg/github/orgs/item_copilot_billing_selected_users_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemCopilotBillingSelected_usersResponse the total number of seat assignments created. -// Deprecated: This class is obsolete. Use selected_usersPostResponse instead. -type ItemCopilotBillingSelected_usersResponse struct { - ItemCopilotBillingSelected_usersPostResponse -} -// NewItemCopilotBillingSelected_usersResponse instantiates a new ItemCopilotBillingSelected_usersResponse and sets the default values. -func NewItemCopilotBillingSelected_usersResponse()(*ItemCopilotBillingSelected_usersResponse) { - m := &ItemCopilotBillingSelected_usersResponse{ - ItemCopilotBillingSelected_usersPostResponse: *NewItemCopilotBillingSelected_usersPostResponse(), - } - return m -} -// CreateItemCopilotBillingSelected_usersResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemCopilotBillingSelected_usersResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemCopilotBillingSelected_usersResponse(), nil -} -// ItemCopilotBillingSelected_usersResponseable -// Deprecated: This class is obsolete. Use selected_usersPostResponse instead. -type ItemCopilotBillingSelected_usersResponseable interface { - ItemCopilotBillingSelected_usersPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_dependabot_secrets_item_repositories_response.go b/pkg/github/orgs/item_dependabot_secrets_item_repositories_response.go deleted file mode 100644 index 96965ac8..00000000 --- a/pkg/github/orgs/item_dependabot_secrets_item_repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemDependabotSecretsItemRepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemDependabotSecretsItemRepositoriesResponse struct { - ItemDependabotSecretsItemRepositoriesGetResponse -} -// NewItemDependabotSecretsItemRepositoriesResponse instantiates a new ItemDependabotSecretsItemRepositoriesResponse and sets the default values. -func NewItemDependabotSecretsItemRepositoriesResponse()(*ItemDependabotSecretsItemRepositoriesResponse) { - m := &ItemDependabotSecretsItemRepositoriesResponse{ - ItemDependabotSecretsItemRepositoriesGetResponse: *NewItemDependabotSecretsItemRepositoriesGetResponse(), - } - return m -} -// CreateItemDependabotSecretsItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemDependabotSecretsItemRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemDependabotSecretsItemRepositoriesResponse(), nil -} -// ItemDependabotSecretsItemRepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type ItemDependabotSecretsItemRepositoriesResponseable interface { - ItemDependabotSecretsItemRepositoriesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_dependabot_secrets_response.go b/pkg/github/orgs/item_dependabot_secrets_response.go deleted file mode 100644 index f2bcb157..00000000 --- a/pkg/github/orgs/item_dependabot_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemDependabotSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemDependabotSecretsResponse struct { - ItemDependabotSecretsGetResponse -} -// NewItemDependabotSecretsResponse instantiates a new ItemDependabotSecretsResponse and sets the default values. -func NewItemDependabotSecretsResponse()(*ItemDependabotSecretsResponse) { - m := &ItemDependabotSecretsResponse{ - ItemDependabotSecretsGetResponse: *NewItemDependabotSecretsGetResponse(), - } - return m -} -// CreateItemDependabotSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemDependabotSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemDependabotSecretsResponse(), nil -} -// ItemDependabotSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemDependabotSecretsResponseable interface { - ItemDependabotSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_hooks_item_deliveries_item_attempts_response.go b/pkg/github/orgs/item_hooks_item_deliveries_item_attempts_response.go deleted file mode 100644 index d3a45704..00000000 --- a/pkg/github/orgs/item_hooks_item_deliveries_item_attempts_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemHooksItemDeliveriesItemAttemptsResponse -// Deprecated: This class is obsolete. Use attemptsPostResponse instead. -type ItemHooksItemDeliveriesItemAttemptsResponse struct { - ItemHooksItemDeliveriesItemAttemptsPostResponse -} -// NewItemHooksItemDeliveriesItemAttemptsResponse instantiates a new ItemHooksItemDeliveriesItemAttemptsResponse and sets the default values. -func NewItemHooksItemDeliveriesItemAttemptsResponse()(*ItemHooksItemDeliveriesItemAttemptsResponse) { - m := &ItemHooksItemDeliveriesItemAttemptsResponse{ - ItemHooksItemDeliveriesItemAttemptsPostResponse: *NewItemHooksItemDeliveriesItemAttemptsPostResponse(), - } - return m -} -// CreateItemHooksItemDeliveriesItemAttemptsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemHooksItemDeliveriesItemAttemptsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemHooksItemDeliveriesItemAttemptsResponse(), nil -} -// ItemHooksItemDeliveriesItemAttemptsResponseable -// Deprecated: This class is obsolete. Use attemptsPostResponse instead. -type ItemHooksItemDeliveriesItemAttemptsResponseable interface { - ItemHooksItemDeliveriesItemAttemptsPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_installations_response.go b/pkg/github/orgs/item_installations_response.go deleted file mode 100644 index a9c4ceec..00000000 --- a/pkg/github/orgs/item_installations_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemInstallationsResponse -// Deprecated: This class is obsolete. Use installationsGetResponse instead. -type ItemInstallationsResponse struct { - ItemInstallationsGetResponse -} -// NewItemInstallationsResponse instantiates a new ItemInstallationsResponse and sets the default values. -func NewItemInstallationsResponse()(*ItemInstallationsResponse) { - m := &ItemInstallationsResponse{ - ItemInstallationsGetResponse: *NewItemInstallationsGetResponse(), - } - return m -} -// CreateItemInstallationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemInstallationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemInstallationsResponse(), nil -} -// ItemInstallationsResponseable -// Deprecated: This class is obsolete. Use installationsGetResponse instead. -type ItemInstallationsResponseable interface { - ItemInstallationsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_interaction_limits_get_response_member1.go b/pkg/github/orgs/item_interaction_limits_get_response_member1.go deleted file mode 100644 index 45f51b35..00000000 --- a/pkg/github/orgs/item_interaction_limits_get_response_member1.go +++ /dev/null @@ -1,32 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemInteractionLimitsGetResponseMember1 -type ItemInteractionLimitsGetResponseMember1 struct { -} -// NewItemInteractionLimitsGetResponseMember1 instantiates a new ItemInteractionLimitsGetResponseMember1 and sets the default values. -func NewItemInteractionLimitsGetResponseMember1()(*ItemInteractionLimitsGetResponseMember1) { - m := &ItemInteractionLimitsGetResponseMember1{ - } - return m -} -// CreateItemInteractionLimitsGetResponseMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemInteractionLimitsGetResponseMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemInteractionLimitsGetResponseMember1(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemInteractionLimitsGetResponseMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - return res -} -// Serialize serializes information the current object -func (m *ItemInteractionLimitsGetResponseMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - return nil -} -// ItemInteractionLimitsGetResponseMember1able -type ItemInteractionLimitsGetResponseMember1able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_members_item_codespaces_item_with_codespace_name_response.go b/pkg/github/orgs/item_members_item_codespaces_item_with_codespace_name_response.go deleted file mode 100644 index 256b6a27..00000000 --- a/pkg/github/orgs/item_members_item_codespaces_item_with_codespace_name_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemMembersItemCodespacesItemWithCodespace_nameResponse -// Deprecated: This class is obsolete. Use WithCodespace_nameDeleteResponse instead. -type ItemMembersItemCodespacesItemWithCodespace_nameResponse struct { - ItemMembersItemCodespacesItemWithCodespace_nameDeleteResponse -} -// NewItemMembersItemCodespacesItemWithCodespace_nameResponse instantiates a new ItemMembersItemCodespacesItemWithCodespace_nameResponse and sets the default values. -func NewItemMembersItemCodespacesItemWithCodespace_nameResponse()(*ItemMembersItemCodespacesItemWithCodespace_nameResponse) { - m := &ItemMembersItemCodespacesItemWithCodespace_nameResponse{ - ItemMembersItemCodespacesItemWithCodespace_nameDeleteResponse: *NewItemMembersItemCodespacesItemWithCodespace_nameDeleteResponse(), - } - return m -} -// CreateItemMembersItemCodespacesItemWithCodespace_nameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemMembersItemCodespacesItemWithCodespace_nameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemMembersItemCodespacesItemWithCodespace_nameResponse(), nil -} -// ItemMembersItemCodespacesItemWithCodespace_nameResponseable -// Deprecated: This class is obsolete. Use WithCodespace_nameDeleteResponse instead. -type ItemMembersItemCodespacesItemWithCodespace_nameResponseable interface { - ItemMembersItemCodespacesItemWithCodespace_nameDeleteResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_members_item_codespaces_response.go b/pkg/github/orgs/item_members_item_codespaces_response.go deleted file mode 100644 index f5d84470..00000000 --- a/pkg/github/orgs/item_members_item_codespaces_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemMembersItemCodespacesResponse -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type ItemMembersItemCodespacesResponse struct { - ItemMembersItemCodespacesGetResponse -} -// NewItemMembersItemCodespacesResponse instantiates a new ItemMembersItemCodespacesResponse and sets the default values. -func NewItemMembersItemCodespacesResponse()(*ItemMembersItemCodespacesResponse) { - m := &ItemMembersItemCodespacesResponse{ - ItemMembersItemCodespacesGetResponse: *NewItemMembersItemCodespacesGetResponse(), - } - return m -} -// CreateItemMembersItemCodespacesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemMembersItemCodespacesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemMembersItemCodespacesResponse(), nil -} -// ItemMembersItemCodespacesResponseable -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type ItemMembersItemCodespacesResponseable interface { - ItemMembersItemCodespacesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_organization_fine_grained_permissions_request_builder.go b/pkg/github/orgs/item_organization_fine_grained_permissions_request_builder.go deleted file mode 100644 index 3523b1b2..00000000 --- a/pkg/github/orgs/item_organization_fine_grained_permissions_request_builder.go +++ /dev/null @@ -1,66 +0,0 @@ -package orgs - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemOrganizationFineGrainedPermissionsRequestBuilder builds and executes requests for operations under \orgs\{org}\organization-fine-grained-permissions -type ItemOrganizationFineGrainedPermissionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemOrganizationFineGrainedPermissionsRequestBuilderInternal instantiates a new ItemOrganizationFineGrainedPermissionsRequestBuilder and sets the default values. -func NewItemOrganizationFineGrainedPermissionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOrganizationFineGrainedPermissionsRequestBuilder) { - m := &ItemOrganizationFineGrainedPermissionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/organization-fine-grained-permissions", pathParameters), - } - return m -} -// NewItemOrganizationFineGrainedPermissionsRequestBuilder instantiates a new ItemOrganizationFineGrainedPermissionsRequestBuilder and sets the default values. -func NewItemOrganizationFineGrainedPermissionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOrganizationFineGrainedPermissionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemOrganizationFineGrainedPermissionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get lists the fine-grained permissions that can be used in custom organization roles for an organization. For more information, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To list the fine-grained permissions that can be used in custom repository roles for an organization, see "[List repository fine-grained permissions for an organization](https://docs.github.com/rest/orgs/organization-roles#list-repository-fine-grained-permissions-for-an-organization)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a []OrganizationFineGrainedPermissionable when successful -// returns a BasicError error when the service returns a 404 status code -// returns a ValidationError error when the service returns a 422 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#list-organization-fine-grained-permissions-for-an-organization -func (m *ItemOrganizationFineGrainedPermissionsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationFineGrainedPermissionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendCollection(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateOrganizationFineGrainedPermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - val := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationFineGrainedPermissionable, len(res)) - for i, v := range res { - if v != nil { - val[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationFineGrainedPermissionable) - } - } - return val, nil -} -// ToGetRequestInformation lists the fine-grained permissions that can be used in custom organization roles for an organization. For more information, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To list the fine-grained permissions that can be used in custom repository roles for an organization, see "[List repository fine-grained permissions for an organization](https://docs.github.com/rest/orgs/organization-roles#list-repository-fine-grained-permissions-for-an-organization)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemOrganizationFineGrainedPermissionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemOrganizationFineGrainedPermissionsRequestBuilder when successful -func (m *ItemOrganizationFineGrainedPermissionsRequestBuilder) WithUrl(rawUrl string)(*ItemOrganizationFineGrainedPermissionsRequestBuilder) { - return NewItemOrganizationFineGrainedPermissionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go b/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go index 91f804e5..ef9d113c 100644 --- a/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemOrganizationRolesItemTeamsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOrganizationRolesItemTeamsRequestBuilderGetQueryParameters lists the teams that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ItemOrganizationRolesItemTeamsRequestBuilderGetQueryParameters lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. type ItemOrganizationRolesItemTeamsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemOrganizationRolesItemTeamsRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesItemTeamsRequestBuilderInternal(urlParams, requestAdapter) } -// Get lists the teams that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Get lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a []TeamRoleAssignmentable when successful // [API method documentation] // @@ -52,7 +52,7 @@ func (m *ItemOrganizationRolesItemTeamsRequestBuilder) Get(ctx context.Context, } return val, nil } -// ToGetRequestInformation lists the teams that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToGetRequestInformation lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesItemTeamsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemOrganizationRolesItemTeamsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/orgs/item_organization_roles_item_users_request_builder.go b/pkg/github/orgs/item_organization_roles_item_users_request_builder.go index f7cc70ee..7b08c3f3 100644 --- a/pkg/github/orgs/item_organization_roles_item_users_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_item_users_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemOrganizationRolesItemUsersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOrganizationRolesItemUsersRequestBuilderGetQueryParameters lists organization members that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ItemOrganizationRolesItemUsersRequestBuilderGetQueryParameters lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. type ItemOrganizationRolesItemUsersRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemOrganizationRolesItemUsersRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesItemUsersRequestBuilderInternal(urlParams, requestAdapter) } -// Get lists organization members that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Get lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a []UserRoleAssignmentable when successful // [API method documentation] // @@ -52,7 +52,7 @@ func (m *ItemOrganizationRolesItemUsersRequestBuilder) Get(ctx context.Context, } return val, nil } -// ToGetRequestInformation lists organization members that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToGetRequestInformation lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesItemUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemOrganizationRolesItemUsersRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/orgs/item_organization_roles_item_with_role_patch_request_body.go b/pkg/github/orgs/item_organization_roles_item_with_role_patch_request_body.go deleted file mode 100644 index 67399c17..00000000 --- a/pkg/github/orgs/item_organization_roles_item_with_role_patch_request_body.go +++ /dev/null @@ -1,144 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type ItemOrganizationRolesItemWithRole_PatchRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // A short description about the intended usage of this role or what permissions it grants. - description *string - // The name of the custom role. - name *string - // A list of additional permissions included in this role. - permissions []string -} -// NewItemOrganizationRolesItemWithRole_PatchRequestBody instantiates a new ItemOrganizationRolesItemWithRole_PatchRequestBody and sets the default values. -func NewItemOrganizationRolesItemWithRole_PatchRequestBody()(*ItemOrganizationRolesItemWithRole_PatchRequestBody) { - m := &ItemOrganizationRolesItemWithRole_PatchRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemOrganizationRolesItemWithRole_PatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemOrganizationRolesItemWithRole_PatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemOrganizationRolesItemWithRole_PatchRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetDescription gets the description property value. A short description about the intended usage of this role or what permissions it grants. -// returns a *string when successful -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) GetDescription()(*string) { - return m.description -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDescription(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["permissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetPermissions(res) - } - return nil - } - return res -} -// GetName gets the name property value. The name of the custom role. -// returns a *string when successful -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) GetName()(*string) { - return m.name -} -// GetPermissions gets the permissions property value. A list of additional permissions included in this role. -// returns a []string when successful -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) GetPermissions()([]string) { - return m.permissions -} -// Serialize serializes information the current object -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("description", m.GetDescription()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - if m.GetPermissions() != nil { - err := writer.WriteCollectionOfStringValues("permissions", m.GetPermissions()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetDescription sets the description property value. A short description about the intended usage of this role or what permissions it grants. -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) SetDescription(value *string)() { - m.description = value -} -// SetName sets the name property value. The name of the custom role. -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) SetName(value *string)() { - m.name = value -} -// SetPermissions sets the permissions property value. A list of additional permissions included in this role. -func (m *ItemOrganizationRolesItemWithRole_PatchRequestBody) SetPermissions(value []string)() { - m.permissions = value -} -type ItemOrganizationRolesItemWithRole_PatchRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDescription()(*string) - GetName()(*string) - GetPermissions()([]string) - SetDescription(value *string)() - SetName(value *string)() - SetPermissions(value []string)() -} diff --git a/pkg/github/orgs/item_organization_roles_post_request_body.go b/pkg/github/orgs/item_organization_roles_post_request_body.go deleted file mode 100644 index 03f51083..00000000 --- a/pkg/github/orgs/item_organization_roles_post_request_body.go +++ /dev/null @@ -1,144 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type ItemOrganizationRolesPostRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // A short description about the intended usage of this role or what permissions it grants. - description *string - // The name of the custom role. - name *string - // A list of additional permissions included in this role. - permissions []string -} -// NewItemOrganizationRolesPostRequestBody instantiates a new ItemOrganizationRolesPostRequestBody and sets the default values. -func NewItemOrganizationRolesPostRequestBody()(*ItemOrganizationRolesPostRequestBody) { - m := &ItemOrganizationRolesPostRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemOrganizationRolesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemOrganizationRolesPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemOrganizationRolesPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemOrganizationRolesPostRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetDescription gets the description property value. A short description about the intended usage of this role or what permissions it grants. -// returns a *string when successful -func (m *ItemOrganizationRolesPostRequestBody) GetDescription()(*string) { - return m.description -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemOrganizationRolesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDescription(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["permissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetPermissions(res) - } - return nil - } - return res -} -// GetName gets the name property value. The name of the custom role. -// returns a *string when successful -func (m *ItemOrganizationRolesPostRequestBody) GetName()(*string) { - return m.name -} -// GetPermissions gets the permissions property value. A list of additional permissions included in this role. -// returns a []string when successful -func (m *ItemOrganizationRolesPostRequestBody) GetPermissions()([]string) { - return m.permissions -} -// Serialize serializes information the current object -func (m *ItemOrganizationRolesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("description", m.GetDescription()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - if m.GetPermissions() != nil { - err := writer.WriteCollectionOfStringValues("permissions", m.GetPermissions()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemOrganizationRolesPostRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetDescription sets the description property value. A short description about the intended usage of this role or what permissions it grants. -func (m *ItemOrganizationRolesPostRequestBody) SetDescription(value *string)() { - m.description = value -} -// SetName sets the name property value. The name of the custom role. -func (m *ItemOrganizationRolesPostRequestBody) SetName(value *string)() { - m.name = value -} -// SetPermissions sets the permissions property value. A list of additional permissions included in this role. -func (m *ItemOrganizationRolesPostRequestBody) SetPermissions(value []string)() { - m.permissions = value -} -type ItemOrganizationRolesPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDescription()(*string) - GetName()(*string) - GetPermissions()([]string) - SetDescription(value *string)() - SetName(value *string)() - SetPermissions(value []string)() -} diff --git a/pkg/github/orgs/item_organization_roles_request_builder.go b/pkg/github/orgs/item_organization_roles_request_builder.go index 8a7ddf96..ae0c56cb 100644 --- a/pkg/github/orgs/item_organization_roles_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_request_builder.go @@ -34,7 +34,7 @@ func NewItemOrganizationRolesRequestBuilder(rawUrl string, requestAdapter i2ae41 urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesRequestBuilderInternal(urlParams, requestAdapter) } -// Get lists the organization roles available in this organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Get lists the organization roles available in this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a ItemOrganizationRolesGetResponseable when successful // returns a BasicError error when the service returns a 404 status code // returns a ValidationError error when the service returns a 422 status code @@ -59,39 +59,12 @@ func (m *ItemOrganizationRolesRequestBuilder) Get(ctx context.Context, requestCo } return res.(ItemOrganizationRolesGetResponseable), nil } -// Post creates a custom organization role that can be assigned to users and teams, granting them specific permissions over the organization. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a OrganizationRoleable when successful -// returns a BasicError error when the service returns a 404 status code -// returns a BasicError error when the service returns a 409 status code -// returns a ValidationError error when the service returns a 422 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#create-a-custom-organization-role -func (m *ItemOrganizationRolesRequestBuilder) Post(ctx context.Context, body ItemOrganizationRolesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationRoleable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "409": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateOrganizationRoleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationRoleable), nil -} // Teams the teams property // returns a *ItemOrganizationRolesTeamsRequestBuilder when successful func (m *ItemOrganizationRolesRequestBuilder) Teams()(*ItemOrganizationRolesTeamsRequestBuilder) { return NewItemOrganizationRolesTeamsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation lists the organization roles available in this organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToGetRequestInformation lists the organization roles available in this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,18 +72,6 @@ func (m *ItemOrganizationRolesRequestBuilder) ToGetRequestInformation(ctx contex requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation creates a custom organization role that can be assigned to users and teams, granting them specific permissions over the organization. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemOrganizationRolesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOrganizationRolesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} // Users the users property // returns a *ItemOrganizationRolesUsersRequestBuilder when successful func (m *ItemOrganizationRolesRequestBuilder) Users()(*ItemOrganizationRolesUsersRequestBuilder) { diff --git a/pkg/github/orgs/item_organization_roles_response.go b/pkg/github/orgs/item_organization_roles_response.go deleted file mode 100644 index bda5702d..00000000 --- a/pkg/github/orgs/item_organization_roles_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemOrganizationRolesResponse -// Deprecated: This class is obsolete. Use organizationRolesGetResponse instead. -type ItemOrganizationRolesResponse struct { - ItemOrganizationRolesGetResponse -} -// NewItemOrganizationRolesResponse instantiates a new ItemOrganizationRolesResponse and sets the default values. -func NewItemOrganizationRolesResponse()(*ItemOrganizationRolesResponse) { - m := &ItemOrganizationRolesResponse{ - ItemOrganizationRolesGetResponse: *NewItemOrganizationRolesGetResponse(), - } - return m -} -// CreateItemOrganizationRolesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemOrganizationRolesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemOrganizationRolesResponse(), nil -} -// ItemOrganizationRolesResponseable -// Deprecated: This class is obsolete. Use organizationRolesGetResponse instead. -type ItemOrganizationRolesResponseable interface { - ItemOrganizationRolesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_organization_roles_teams_item_with_role_item_request_builder.go b/pkg/github/orgs/item_organization_roles_teams_item_with_role_item_request_builder.go index a819e4e1..b9eba3cf 100644 --- a/pkg/github/orgs/item_organization_roles_teams_item_with_role_item_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_teams_item_with_role_item_request_builder.go @@ -22,7 +22,7 @@ func NewItemOrganizationRolesTeamsItemWithRole_ItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesTeamsItemWithRole_ItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete removes an organization role from a team. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Delete removes an organization role from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-team @@ -37,7 +37,7 @@ func (m *ItemOrganizationRolesTeamsItemWithRole_ItemRequestBuilder) Delete(ctx c } return nil } -// Put assigns an organization role to a team in an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Put assigns an organization role to a team in an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-team @@ -52,14 +52,14 @@ func (m *ItemOrganizationRolesTeamsItemWithRole_ItemRequestBuilder) Put(ctx cont } return nil } -// ToDeleteRequestInformation removes an organization role from a team. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToDeleteRequestInformation removes an organization role from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesTeamsItemWithRole_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) return requestInfo, nil } -// ToPutRequestInformation assigns an organization role to a team in an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToPutRequestInformation assigns an organization role to a team in an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesTeamsItemWithRole_ItemRequestBuilder) ToPutRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/orgs/item_organization_roles_teams_with_team_slug_item_request_builder.go b/pkg/github/orgs/item_organization_roles_teams_with_team_slug_item_request_builder.go index 86f6cfb6..c648dc7c 100644 --- a/pkg/github/orgs/item_organization_roles_teams_with_team_slug_item_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_teams_with_team_slug_item_request_builder.go @@ -33,7 +33,7 @@ func NewItemOrganizationRolesTeamsWithTeam_slugItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesTeamsWithTeam_slugItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete removes all assigned organization roles from a team. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Delete removes all assigned organization roles from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-team @@ -48,7 +48,7 @@ func (m *ItemOrganizationRolesTeamsWithTeam_slugItemRequestBuilder) Delete(ctx c } return nil } -// ToDeleteRequestInformation removes all assigned organization roles from a team. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToDeleteRequestInformation removes all assigned organization roles from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesTeamsWithTeam_slugItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/orgs/item_organization_roles_users_item_with_role_item_request_builder.go b/pkg/github/orgs/item_organization_roles_users_item_with_role_item_request_builder.go index 924a38a5..d85cd7bb 100644 --- a/pkg/github/orgs/item_organization_roles_users_item_with_role_item_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_users_item_with_role_item_request_builder.go @@ -22,7 +22,7 @@ func NewItemOrganizationRolesUsersItemWithRole_ItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesUsersItemWithRole_ItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove an organization role from a user. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Delete remove an organization role from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-user @@ -37,7 +37,7 @@ func (m *ItemOrganizationRolesUsersItemWithRole_ItemRequestBuilder) Delete(ctx c } return nil } -// Put assigns an organization role to a member of an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Put assigns an organization role to a member of an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-user @@ -52,14 +52,14 @@ func (m *ItemOrganizationRolesUsersItemWithRole_ItemRequestBuilder) Put(ctx cont } return nil } -// ToDeleteRequestInformation remove an organization role from a user. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToDeleteRequestInformation remove an organization role from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesUsersItemWithRole_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) return requestInfo, nil } -// ToPutRequestInformation assigns an organization role to a member of an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToPutRequestInformation assigns an organization role to a member of an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesUsersItemWithRole_ItemRequestBuilder) ToPutRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/orgs/item_organization_roles_users_with_username_item_request_builder.go b/pkg/github/orgs/item_organization_roles_users_with_username_item_request_builder.go index bfa7d5f3..eeb7afd6 100644 --- a/pkg/github/orgs/item_organization_roles_users_with_username_item_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_users_with_username_item_request_builder.go @@ -33,7 +33,7 @@ func NewItemOrganizationRolesUsersWithUsernameItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesUsersWithUsernameItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete revokes all assigned organization roles from a user. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Delete revokes all assigned organization roles from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-user @@ -48,7 +48,7 @@ func (m *ItemOrganizationRolesUsersWithUsernameItemRequestBuilder) Delete(ctx co } return nil } -// ToDeleteRequestInformation revokes all assigned organization roles from a user. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToDeleteRequestInformation revokes all assigned organization roles from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesUsersWithUsernameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/orgs/item_organization_roles_with_role_item_request_builder.go b/pkg/github/orgs/item_organization_roles_with_role_item_request_builder.go index af989f80..dadb5bff 100644 --- a/pkg/github/orgs/item_organization_roles_with_role_item_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_with_role_item_request_builder.go @@ -23,22 +23,7 @@ func NewItemOrganizationRolesWithRole_ItemRequestBuilder(rawUrl string, requestA urlParams["request-raw-url"] = rawUrl return NewItemOrganizationRolesWithRole_ItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a custom organization role. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#delete-a-custom-organization-role -func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, nil) - if err != nil { - return err - } - return nil -} -// Get gets an organization role that is available to this organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// Get gets an organization role that is available to this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a OrganizationRoleable when successful // returns a BasicError error when the service returns a 404 status code // returns a ValidationError error when the service returns a 422 status code @@ -63,46 +48,12 @@ func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) Get(ctx context.Conte } return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationRoleable), nil } -// Patch updates an existing custom organization role. Permission changes will apply to all assignees. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a OrganizationRoleable when successful -// returns a BasicError error when the service returns a 404 status code -// returns a BasicError error when the service returns a 409 status code -// returns a ValidationError error when the service returns a 422 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#update-a-custom-organization-role -func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) Patch(ctx context.Context, body ItemOrganizationRolesItemWithRole_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationRoleable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "409": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateOrganizationRoleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrganizationRoleable), nil -} // Teams the teams property // returns a *ItemOrganizationRolesItemTeamsRequestBuilder when successful func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) Teams()(*ItemOrganizationRolesItemTeamsRequestBuilder) { return NewItemOrganizationRolesItemTeamsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation deletes a custom organization role. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - return requestInfo, nil -} -// ToGetRequestInformation gets an organization role that is available to this organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. +// ToGetRequestInformation gets an organization role that is available to this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -110,18 +61,6 @@ func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) ToGetRequestInformati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation updates an existing custom organization role. Permission changes will apply to all assignees. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemOrganizationRolesItemWithRole_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} // Users the users property // returns a *ItemOrganizationRolesItemUsersRequestBuilder when successful func (m *ItemOrganizationRolesWithRole_ItemRequestBuilder) Users()(*ItemOrganizationRolesItemUsersRequestBuilder) { diff --git a/pkg/github/orgs/item_outside_collaborators_item_with_username_response.go b/pkg/github/orgs/item_outside_collaborators_item_with_username_response.go deleted file mode 100644 index c02f5138..00000000 --- a/pkg/github/orgs/item_outside_collaborators_item_with_username_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemOutside_collaboratorsItemWithUsernameResponse -// Deprecated: This class is obsolete. Use WithUsernamePutResponse instead. -type ItemOutside_collaboratorsItemWithUsernameResponse struct { - ItemOutside_collaboratorsItemWithUsernamePutResponse -} -// NewItemOutside_collaboratorsItemWithUsernameResponse instantiates a new ItemOutside_collaboratorsItemWithUsernameResponse and sets the default values. -func NewItemOutside_collaboratorsItemWithUsernameResponse()(*ItemOutside_collaboratorsItemWithUsernameResponse) { - m := &ItemOutside_collaboratorsItemWithUsernameResponse{ - ItemOutside_collaboratorsItemWithUsernamePutResponse: *NewItemOutside_collaboratorsItemWithUsernamePutResponse(), - } - return m -} -// CreateItemOutside_collaboratorsItemWithUsernameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemOutside_collaboratorsItemWithUsernameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemOutside_collaboratorsItemWithUsernameResponse(), nil -} -// ItemOutside_collaboratorsItemWithUsernameResponseable -// Deprecated: This class is obsolete. Use WithUsernamePutResponse instead. -type ItemOutside_collaboratorsItemWithUsernameResponseable interface { - ItemOutside_collaboratorsItemWithUsernamePutResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_personal_access_token_requests_response.go b/pkg/github/orgs/item_personal_access_token_requests_response.go deleted file mode 100644 index 91e94e14..00000000 --- a/pkg/github/orgs/item_personal_access_token_requests_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemPersonalAccessTokenRequestsResponse -// Deprecated: This class is obsolete. Use personalAccessTokenRequestsPostResponse instead. -type ItemPersonalAccessTokenRequestsResponse struct { - ItemPersonalAccessTokenRequestsPostResponse -} -// NewItemPersonalAccessTokenRequestsResponse instantiates a new ItemPersonalAccessTokenRequestsResponse and sets the default values. -func NewItemPersonalAccessTokenRequestsResponse()(*ItemPersonalAccessTokenRequestsResponse) { - m := &ItemPersonalAccessTokenRequestsResponse{ - ItemPersonalAccessTokenRequestsPostResponse: *NewItemPersonalAccessTokenRequestsPostResponse(), - } - return m -} -// CreateItemPersonalAccessTokenRequestsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemPersonalAccessTokenRequestsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemPersonalAccessTokenRequestsResponse(), nil -} -// ItemPersonalAccessTokenRequestsResponseable -// Deprecated: This class is obsolete. Use personalAccessTokenRequestsPostResponse instead. -type ItemPersonalAccessTokenRequestsResponseable interface { - ItemPersonalAccessTokenRequestsPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_personal_access_tokens_response.go b/pkg/github/orgs/item_personal_access_tokens_response.go deleted file mode 100644 index 5a7d9f32..00000000 --- a/pkg/github/orgs/item_personal_access_tokens_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemPersonalAccessTokensResponse -// Deprecated: This class is obsolete. Use personalAccessTokensPostResponse instead. -type ItemPersonalAccessTokensResponse struct { - ItemPersonalAccessTokensPostResponse -} -// NewItemPersonalAccessTokensResponse instantiates a new ItemPersonalAccessTokensResponse and sets the default values. -func NewItemPersonalAccessTokensResponse()(*ItemPersonalAccessTokensResponse) { - m := &ItemPersonalAccessTokensResponse{ - ItemPersonalAccessTokensPostResponse: *NewItemPersonalAccessTokensPostResponse(), - } - return m -} -// CreateItemPersonalAccessTokensResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemPersonalAccessTokensResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemPersonalAccessTokensResponse(), nil -} -// ItemPersonalAccessTokensResponseable -// Deprecated: This class is obsolete. Use personalAccessTokensPostResponse instead. -type ItemPersonalAccessTokensResponseable interface { - ItemPersonalAccessTokensPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/item_rulesets_rule_suites_request_builder.go b/pkg/github/orgs/item_rulesets_rule_suites_request_builder.go index 532f0f15..f30ab829 100644 --- a/pkg/github/orgs/item_rulesets_rule_suites_request_builder.go +++ b/pkg/github/orgs/item_rulesets_rule_suites_request_builder.go @@ -20,6 +20,8 @@ type ItemRulesetsRuleSuitesRequestBuilderGetQueryParameters struct { Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` + // The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. + Ref *string `uriparametername:"ref"` // The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. Repository_name *int32 `uriparametername:"repository_name"` // The rule results to filter on. When specified, only suites with this result will be returned. @@ -40,7 +42,7 @@ func (m *ItemRulesetsRuleSuitesRequestBuilder) ByRule_suite_id(rule_suite_id int // NewItemRulesetsRuleSuitesRequestBuilderInternal instantiates a new ItemRulesetsRuleSuitesRequestBuilder and sets the default values. func NewItemRulesetsRuleSuitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRulesetsRuleSuitesRequestBuilder) { m := &ItemRulesetsRuleSuitesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/rulesets/rule-suites{?actor_name*,page*,per_page*,repository_name*,rule_suite_result*,time_period*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/rulesets/rule-suites{?actor_name*,page*,per_page*,ref*,repository_name*,rule_suite_result*,time_period*}", pathParameters), } return m } diff --git a/pkg/github/orgs/item_team_item_copilot_request_builder.go b/pkg/github/orgs/item_team_item_copilot_request_builder.go deleted file mode 100644 index 184e910c..00000000 --- a/pkg/github/orgs/item_team_item_copilot_request_builder.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// ItemTeamItemCopilotRequestBuilder builds and executes requests for operations under \orgs\{org}\team\{team_slug}\copilot -type ItemTeamItemCopilotRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemTeamItemCopilotRequestBuilderInternal instantiates a new ItemTeamItemCopilotRequestBuilder and sets the default values. -func NewItemTeamItemCopilotRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamItemCopilotRequestBuilder) { - m := &ItemTeamItemCopilotRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/team/{team_slug}/copilot", pathParameters), - } - return m -} -// NewItemTeamItemCopilotRequestBuilder instantiates a new ItemTeamItemCopilotRequestBuilder and sets the default values. -func NewItemTeamItemCopilotRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamItemCopilotRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemTeamItemCopilotRequestBuilderInternal(urlParams, requestAdapter) -} -// Usage the usage property -// returns a *ItemTeamItemCopilotUsageRequestBuilder when successful -func (m *ItemTeamItemCopilotRequestBuilder) Usage()(*ItemTeamItemCopilotUsageRequestBuilder) { - return NewItemTeamItemCopilotUsageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/pkg/github/orgs/item_team_item_copilot_usage_request_builder.go b/pkg/github/orgs/item_team_item_copilot_usage_request_builder.go deleted file mode 100644 index b885199b..00000000 --- a/pkg/github/orgs/item_team_item_copilot_usage_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package orgs - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemTeamItemCopilotUsageRequestBuilder builds and executes requests for operations under \orgs\{org}\team\{team_slug}\copilot\usage -type ItemTeamItemCopilotUsageRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemTeamItemCopilotUsageRequestBuilderGetQueryParameters **Note**: This endpoint is in beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for the prior 28 days. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.**Note**: This endpoint will only return results for a given day if the team had five or more members on that day.Copilot Business or Copilot Enterprise organization owners for the organization that contains this team,and owners and billing managers of their parent enterprises, can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint. -type ItemTeamItemCopilotUsageRequestBuilderGetQueryParameters struct { - // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Page *int32 `uriparametername:"page"` - // The number of days of metrics to display per page (max 28). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Per_page *int32 `uriparametername:"per_page"` - // Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago. - Since *string `uriparametername:"since"` - // Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed. - Until *string `uriparametername:"until"` -} -// NewItemTeamItemCopilotUsageRequestBuilderInternal instantiates a new ItemTeamItemCopilotUsageRequestBuilder and sets the default values. -func NewItemTeamItemCopilotUsageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamItemCopilotUsageRequestBuilder) { - m := &ItemTeamItemCopilotUsageRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/team/{team_slug}/copilot/usage{?page*,per_page*,since*,until*}", pathParameters), - } - return m -} -// NewItemTeamItemCopilotUsageRequestBuilder instantiates a new ItemTeamItemCopilotUsageRequestBuilder and sets the default values. -func NewItemTeamItemCopilotUsageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamItemCopilotUsageRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemTeamItemCopilotUsageRequestBuilderInternal(urlParams, requestAdapter) -} -// Get **Note**: This endpoint is in beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for the prior 28 days. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.**Note**: This endpoint will only return results for a given day if the team had five or more members on that day.Copilot Business or Copilot Enterprise organization owners for the organization that contains this team,and owners and billing managers of their parent enterprises, can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint. -// returns a []CopilotUsageMetricsable when successful -// returns a BasicError error when the service returns a 401 status code -// returns a BasicError error when the service returns a 403 status code -// returns a BasicError error when the service returns a 404 status code -// returns a BasicError error when the service returns a 500 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team -func (m *ItemTeamItemCopilotUsageRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemTeamItemCopilotUsageRequestBuilderGetQueryParameters])([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CopilotUsageMetricsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "401": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "500": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendCollection(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateCopilotUsageMetricsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - val := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CopilotUsageMetricsable, len(res)) - for i, v := range res { - if v != nil { - val[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CopilotUsageMetricsable) - } - } - return val, nil -} -// ToGetRequestInformation **Note**: This endpoint is in beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for the prior 28 days. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.**Note**: This endpoint will only return results for a given day if the team had five or more members on that day.Copilot Business or Copilot Enterprise organization owners for the organization that contains this team,and owners and billing managers of their parent enterprises, can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemTeamItemCopilotUsageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemTeamItemCopilotUsageRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemTeamItemCopilotUsageRequestBuilder when successful -func (m *ItemTeamItemCopilotUsageRequestBuilder) WithUrl(rawUrl string)(*ItemTeamItemCopilotUsageRequestBuilder) { - return NewItemTeamItemCopilotUsageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/orgs/item_team_request_builder.go b/pkg/github/orgs/item_team_request_builder.go deleted file mode 100644 index 173b4f23..00000000 --- a/pkg/github/orgs/item_team_request_builder.go +++ /dev/null @@ -1,35 +0,0 @@ -package orgs - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// ItemTeamRequestBuilder builds and executes requests for operations under \orgs\{org}\team -type ItemTeamRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ByTeam_slug gets an item from the github.com/octokit/go-sdk/pkg/github/.orgs.item.team.item collection -// returns a *ItemTeamWithTeam_slugItemRequestBuilder when successful -func (m *ItemTeamRequestBuilder) ByTeam_slug(team_slug string)(*ItemTeamWithTeam_slugItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if team_slug != "" { - urlTplParams["team_slug"] = team_slug - } - return NewItemTeamWithTeam_slugItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemTeamRequestBuilderInternal instantiates a new ItemTeamRequestBuilder and sets the default values. -func NewItemTeamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamRequestBuilder) { - m := &ItemTeamRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/team", pathParameters), - } - return m -} -// NewItemTeamRequestBuilder instantiates a new ItemTeamRequestBuilder and sets the default values. -func NewItemTeamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemTeamRequestBuilderInternal(urlParams, requestAdapter) -} diff --git a/pkg/github/orgs/item_team_with_team_slug_item_request_builder.go b/pkg/github/orgs/item_team_with_team_slug_item_request_builder.go deleted file mode 100644 index 744397dd..00000000 --- a/pkg/github/orgs/item_team_with_team_slug_item_request_builder.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// ItemTeamWithTeam_slugItemRequestBuilder builds and executes requests for operations under \orgs\{org}\team\{team_slug} -type ItemTeamWithTeam_slugItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemTeamWithTeam_slugItemRequestBuilderInternal instantiates a new ItemTeamWithTeam_slugItemRequestBuilder and sets the default values. -func NewItemTeamWithTeam_slugItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamWithTeam_slugItemRequestBuilder) { - m := &ItemTeamWithTeam_slugItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/team/{team_slug}", pathParameters), - } - return m -} -// NewItemTeamWithTeam_slugItemRequestBuilder instantiates a new ItemTeamWithTeam_slugItemRequestBuilder and sets the default values. -func NewItemTeamWithTeam_slugItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamWithTeam_slugItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemTeamWithTeam_slugItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Copilot the copilot property -// returns a *ItemTeamItemCopilotRequestBuilder when successful -func (m *ItemTeamWithTeam_slugItemRequestBuilder) Copilot()(*ItemTeamItemCopilotRequestBuilder) { - return NewItemTeamItemCopilotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/pkg/github/orgs/item_with_org_response.go b/pkg/github/orgs/item_with_org_response.go deleted file mode 100644 index 784339b4..00000000 --- a/pkg/github/orgs/item_with_org_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package orgs - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemWithOrgResponse -// Deprecated: This class is obsolete. Use WithOrgDeleteResponse instead. -type ItemWithOrgResponse struct { - ItemWithOrgDeleteResponse -} -// NewItemWithOrgResponse instantiates a new ItemWithOrgResponse and sets the default values. -func NewItemWithOrgResponse()(*ItemWithOrgResponse) { - m := &ItemWithOrgResponse{ - ItemWithOrgDeleteResponse: *NewItemWithOrgDeleteResponse(), - } - return m -} -// CreateItemWithOrgResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemWithOrgResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemWithOrgResponse(), nil -} -// ItemWithOrgResponseable -// Deprecated: This class is obsolete. Use WithOrgDeleteResponse instead. -type ItemWithOrgResponseable interface { - ItemWithOrgDeleteResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/orgs/with_org_item_request_builder.go b/pkg/github/orgs/with_org_item_request_builder.go index d5f9e689..ea5c4907 100644 --- a/pkg/github/orgs/with_org_item_request_builder.go +++ b/pkg/github/orgs/with_org_item_request_builder.go @@ -183,11 +183,6 @@ func (m *WithOrgItemRequestBuilder) Memberships()(*ItemMembershipsRequestBuilder func (m *WithOrgItemRequestBuilder) Migrations()(*ItemMigrationsRequestBuilder) { return NewItemMigrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// OrganizationFineGrainedPermissions the organizationFineGrainedPermissions property -// returns a *ItemOrganizationFineGrainedPermissionsRequestBuilder when successful -func (m *WithOrgItemRequestBuilder) OrganizationFineGrainedPermissions()(*ItemOrganizationFineGrainedPermissionsRequestBuilder) { - return NewItemOrganizationFineGrainedPermissionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // OrganizationRoles the organizationRoles property // returns a *ItemOrganizationRolesRequestBuilder when successful func (m *WithOrgItemRequestBuilder) OrganizationRoles()(*ItemOrganizationRolesRequestBuilder) { diff --git a/pkg/github/projects/columns_cards_item_moves_response.go b/pkg/github/projects/columns_cards_item_moves_response.go deleted file mode 100644 index 00e10c7a..00000000 --- a/pkg/github/projects/columns_cards_item_moves_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package projects - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ColumnsCardsItemMovesResponse -// Deprecated: This class is obsolete. Use movesPostResponse instead. -type ColumnsCardsItemMovesResponse struct { - ColumnsCardsItemMovesPostResponse -} -// NewColumnsCardsItemMovesResponse instantiates a new ColumnsCardsItemMovesResponse and sets the default values. -func NewColumnsCardsItemMovesResponse()(*ColumnsCardsItemMovesResponse) { - m := &ColumnsCardsItemMovesResponse{ - ColumnsCardsItemMovesPostResponse: *NewColumnsCardsItemMovesPostResponse(), - } - return m -} -// CreateColumnsCardsItemMovesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateColumnsCardsItemMovesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewColumnsCardsItemMovesResponse(), nil -} -// ColumnsCardsItemMovesResponseable -// Deprecated: This class is obsolete. Use movesPostResponse instead. -type ColumnsCardsItemMovesResponseable interface { - ColumnsCardsItemMovesPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/projects/columns_item_moves_response.go b/pkg/github/projects/columns_item_moves_response.go deleted file mode 100644 index cb2dffb2..00000000 --- a/pkg/github/projects/columns_item_moves_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package projects - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ColumnsItemMovesResponse -// Deprecated: This class is obsolete. Use movesPostResponse instead. -type ColumnsItemMovesResponse struct { - ColumnsItemMovesPostResponse -} -// NewColumnsItemMovesResponse instantiates a new ColumnsItemMovesResponse and sets the default values. -func NewColumnsItemMovesResponse()(*ColumnsItemMovesResponse) { - m := &ColumnsItemMovesResponse{ - ColumnsItemMovesPostResponse: *NewColumnsItemMovesPostResponse(), - } - return m -} -// CreateColumnsItemMovesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateColumnsItemMovesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewColumnsItemMovesResponse(), nil -} -// ColumnsItemMovesResponseable -// Deprecated: This class is obsolete. Use movesPostResponse instead. -type ColumnsItemMovesResponseable interface { - ColumnsItemMovesPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item/item/owner_patch_request_body_merge_commit_message.go b/pkg/github/repos/item/item/owner_patch_request_body_merge_commit_message.go deleted file mode 100644 index 8797cff9..00000000 --- a/pkg/github/repos/item/item/owner_patch_request_body_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -type OwnerPatchRequestBody_merge_commit_message int - -const ( - PR_BODY_OWNERPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE OwnerPatchRequestBody_merge_commit_message = iota - PR_TITLE_OWNERPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - BLANK_OWNERPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE -) - -func (i OwnerPatchRequestBody_merge_commit_message) String() string { - return []string{"PR_BODY", "PR_TITLE", "BLANK"}[i] -} -func ParseOwnerPatchRequestBody_merge_commit_message(v string) (any, error) { - result := PR_BODY_OWNERPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_OWNERPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - case "PR_TITLE": - result = PR_TITLE_OWNERPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_OWNERPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown OwnerPatchRequestBody_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeOwnerPatchRequestBody_merge_commit_message(values []OwnerPatchRequestBody_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OwnerPatchRequestBody_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/owner_patch_request_body_merge_commit_title.go b/pkg/github/repos/item/item/owner_patch_request_body_merge_commit_title.go deleted file mode 100644 index b41820cb..00000000 --- a/pkg/github/repos/item/item/owner_patch_request_body_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -type OwnerPatchRequestBody_merge_commit_title int - -const ( - PR_TITLE_OWNERPATCHREQUESTBODY_MERGE_COMMIT_TITLE OwnerPatchRequestBody_merge_commit_title = iota - MERGE_MESSAGE_OWNERPATCHREQUESTBODY_MERGE_COMMIT_TITLE -) - -func (i OwnerPatchRequestBody_merge_commit_title) String() string { - return []string{"PR_TITLE", "MERGE_MESSAGE"}[i] -} -func ParseOwnerPatchRequestBody_merge_commit_title(v string) (any, error) { - result := PR_TITLE_OWNERPATCHREQUESTBODY_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_OWNERPATCHREQUESTBODY_MERGE_COMMIT_TITLE - case "MERGE_MESSAGE": - result = MERGE_MESSAGE_OWNERPATCHREQUESTBODY_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown OwnerPatchRequestBody_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeOwnerPatchRequestBody_merge_commit_title(values []OwnerPatchRequestBody_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OwnerPatchRequestBody_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_message.go b/pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_message.go deleted file mode 100644 index 895f9e30..00000000 --- a/pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -type OwnerPatchRequestBody_squash_merge_commit_message int - -const ( - PR_BODY_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE OwnerPatchRequestBody_squash_merge_commit_message = iota - COMMIT_MESSAGES_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - BLANK_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE -) - -func (i OwnerPatchRequestBody_squash_merge_commit_message) String() string { - return []string{"PR_BODY", "COMMIT_MESSAGES", "BLANK"}[i] -} -func ParseOwnerPatchRequestBody_squash_merge_commit_message(v string) (any, error) { - result := PR_BODY_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - case "COMMIT_MESSAGES": - result = COMMIT_MESSAGES_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown OwnerPatchRequestBody_squash_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeOwnerPatchRequestBody_squash_merge_commit_message(values []OwnerPatchRequestBody_squash_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OwnerPatchRequestBody_squash_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_title.go b/pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_title.go deleted file mode 100644 index c4d9fbc0..00000000 --- a/pkg/github/repos/item/item/owner_patch_request_body_squash_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -type OwnerPatchRequestBody_squash_merge_commit_title int - -const ( - PR_TITLE_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE OwnerPatchRequestBody_squash_merge_commit_title = iota - COMMIT_OR_PR_TITLE_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE -) - -func (i OwnerPatchRequestBody_squash_merge_commit_title) String() string { - return []string{"PR_TITLE", "COMMIT_OR_PR_TITLE"}[i] -} -func ParseOwnerPatchRequestBody_squash_merge_commit_title(v string) (any, error) { - result := PR_TITLE_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE - case "COMMIT_OR_PR_TITLE": - result = COMMIT_OR_PR_TITLE_OWNERPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown OwnerPatchRequestBody_squash_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeOwnerPatchRequestBody_squash_merge_commit_title(values []OwnerPatchRequestBody_squash_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OwnerPatchRequestBody_squash_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/owner_patch_request_body_visibility.go b/pkg/github/repos/item/item/owner_patch_request_body_visibility.go deleted file mode 100644 index 8ffdba10..00000000 --- a/pkg/github/repos/item/item/owner_patch_request_body_visibility.go +++ /dev/null @@ -1,37 +0,0 @@ -package item -import ( - "errors" -) -// The visibility of the repository. -type OwnerPatchRequestBody_visibility int - -const ( - PUBLIC_OWNERPATCHREQUESTBODY_VISIBILITY OwnerPatchRequestBody_visibility = iota - PRIVATE_OWNERPATCHREQUESTBODY_VISIBILITY -) - -func (i OwnerPatchRequestBody_visibility) String() string { - return []string{"public", "private"}[i] -} -func ParseOwnerPatchRequestBody_visibility(v string) (any, error) { - result := PUBLIC_OWNERPATCHREQUESTBODY_VISIBILITY - switch v { - case "public": - result = PUBLIC_OWNERPATCHREQUESTBODY_VISIBILITY - case "private": - result = PRIVATE_OWNERPATCHREQUESTBODY_VISIBILITY - default: - return 0, errors.New("Unknown OwnerPatchRequestBody_visibility value: " + v) - } - return &result, nil -} -func SerializeOwnerPatchRequestBody_visibility(values []OwnerPatchRequestBody_visibility) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OwnerPatchRequestBody_visibility) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_message.go b/pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_message.go deleted file mode 100644 index 37fa392a..00000000 --- a/pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. -type WithRepoPatchRequestBody_merge_commit_message int - -const ( - PR_BODY_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE WithRepoPatchRequestBody_merge_commit_message = iota - PR_TITLE_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - BLANK_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE -) - -func (i WithRepoPatchRequestBody_merge_commit_message) String() string { - return []string{"PR_BODY", "PR_TITLE", "BLANK"}[i] -} -func ParseWithRepoPatchRequestBody_merge_commit_message(v string) (any, error) { - result := PR_BODY_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - case "PR_TITLE": - result = PR_TITLE_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown WithRepoPatchRequestBody_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeWithRepoPatchRequestBody_merge_commit_message(values []WithRepoPatchRequestBody_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WithRepoPatchRequestBody_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_title.go b/pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_title.go deleted file mode 100644 index 4636e290..00000000 --- a/pkg/github/repos/item/item/with_repo_patch_request_body_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). -type WithRepoPatchRequestBody_merge_commit_title int - -const ( - PR_TITLE_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE WithRepoPatchRequestBody_merge_commit_title = iota - MERGE_MESSAGE_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE -) - -func (i WithRepoPatchRequestBody_merge_commit_title) String() string { - return []string{"PR_TITLE", "MERGE_MESSAGE"}[i] -} -func ParseWithRepoPatchRequestBody_merge_commit_title(v string) (any, error) { - result := PR_TITLE_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE - case "MERGE_MESSAGE": - result = MERGE_MESSAGE_WITHREPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown WithRepoPatchRequestBody_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeWithRepoPatchRequestBody_merge_commit_title(values []WithRepoPatchRequestBody_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WithRepoPatchRequestBody_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_message.go b/pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_message.go deleted file mode 100644 index 04d661a2..00000000 --- a/pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_message.go +++ /dev/null @@ -1,40 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. -type WithRepoPatchRequestBody_squash_merge_commit_message int - -const ( - PR_BODY_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE WithRepoPatchRequestBody_squash_merge_commit_message = iota - COMMIT_MESSAGES_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - BLANK_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE -) - -func (i WithRepoPatchRequestBody_squash_merge_commit_message) String() string { - return []string{"PR_BODY", "COMMIT_MESSAGES", "BLANK"}[i] -} -func ParseWithRepoPatchRequestBody_squash_merge_commit_message(v string) (any, error) { - result := PR_BODY_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - switch v { - case "PR_BODY": - result = PR_BODY_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - case "COMMIT_MESSAGES": - result = COMMIT_MESSAGES_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - case "BLANK": - result = BLANK_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE - default: - return 0, errors.New("Unknown WithRepoPatchRequestBody_squash_merge_commit_message value: " + v) - } - return &result, nil -} -func SerializeWithRepoPatchRequestBody_squash_merge_commit_message(values []WithRepoPatchRequestBody_squash_merge_commit_message) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WithRepoPatchRequestBody_squash_merge_commit_message) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_title.go b/pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_title.go deleted file mode 100644 index 4dba762a..00000000 --- a/pkg/github/repos/item/item/with_repo_patch_request_body_squash_merge_commit_title.go +++ /dev/null @@ -1,37 +0,0 @@ -package item -import ( - "errors" -) -// The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). -type WithRepoPatchRequestBody_squash_merge_commit_title int - -const ( - PR_TITLE_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE WithRepoPatchRequestBody_squash_merge_commit_title = iota - COMMIT_OR_PR_TITLE_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE -) - -func (i WithRepoPatchRequestBody_squash_merge_commit_title) String() string { - return []string{"PR_TITLE", "COMMIT_OR_PR_TITLE"}[i] -} -func ParseWithRepoPatchRequestBody_squash_merge_commit_title(v string) (any, error) { - result := PR_TITLE_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE - switch v { - case "PR_TITLE": - result = PR_TITLE_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE - case "COMMIT_OR_PR_TITLE": - result = COMMIT_OR_PR_TITLE_WITHREPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE - default: - return 0, errors.New("Unknown WithRepoPatchRequestBody_squash_merge_commit_title value: " + v) - } - return &result, nil -} -func SerializeWithRepoPatchRequestBody_squash_merge_commit_title(values []WithRepoPatchRequestBody_squash_merge_commit_title) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WithRepoPatchRequestBody_squash_merge_commit_title) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item/item/with_repo_patch_request_body_visibility.go b/pkg/github/repos/item/item/with_repo_patch_request_body_visibility.go deleted file mode 100644 index 0d2e7c91..00000000 --- a/pkg/github/repos/item/item/with_repo_patch_request_body_visibility.go +++ /dev/null @@ -1,37 +0,0 @@ -package item -import ( - "errors" -) -// The visibility of the repository. -type WithRepoPatchRequestBody_visibility int - -const ( - PUBLIC_WITHREPOPATCHREQUESTBODY_VISIBILITY WithRepoPatchRequestBody_visibility = iota - PRIVATE_WITHREPOPATCHREQUESTBODY_VISIBILITY -) - -func (i WithRepoPatchRequestBody_visibility) String() string { - return []string{"public", "private"}[i] -} -func ParseWithRepoPatchRequestBody_visibility(v string) (any, error) { - result := PUBLIC_WITHREPOPATCHREQUESTBODY_VISIBILITY - switch v { - case "public": - result = PUBLIC_WITHREPOPATCHREQUESTBODY_VISIBILITY - case "private": - result = PRIVATE_WITHREPOPATCHREQUESTBODY_VISIBILITY - default: - return 0, errors.New("Unknown WithRepoPatchRequestBody_visibility value: " + v) - } - return &result, nil -} -func SerializeWithRepoPatchRequestBody_visibility(values []WithRepoPatchRequestBody_visibility) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WithRepoPatchRequestBody_visibility) isMultiValue() bool { - return false -} diff --git a/pkg/github/repos/item_item_actions_artifacts_response.go b/pkg/github/repos/item_item_actions_artifacts_response.go deleted file mode 100644 index b72f5f25..00000000 --- a/pkg/github/repos/item_item_actions_artifacts_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsArtifactsResponse -// Deprecated: This class is obsolete. Use artifactsGetResponse instead. -type ItemItemActionsArtifactsResponse struct { - ItemItemActionsArtifactsGetResponse -} -// NewItemItemActionsArtifactsResponse instantiates a new ItemItemActionsArtifactsResponse and sets the default values. -func NewItemItemActionsArtifactsResponse()(*ItemItemActionsArtifactsResponse) { - m := &ItemItemActionsArtifactsResponse{ - ItemItemActionsArtifactsGetResponse: *NewItemItemActionsArtifactsGetResponse(), - } - return m -} -// CreateItemItemActionsArtifactsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsArtifactsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsArtifactsResponse(), nil -} -// ItemItemActionsArtifactsResponseable -// Deprecated: This class is obsolete. Use artifactsGetResponse instead. -type ItemItemActionsArtifactsResponseable interface { - ItemItemActionsArtifactsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_organization_secrets_response.go b/pkg/github/repos/item_item_actions_organization_secrets_response.go deleted file mode 100644 index 494c7e8a..00000000 --- a/pkg/github/repos/item_item_actions_organization_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsOrganizationSecretsResponse -// Deprecated: This class is obsolete. Use organizationSecretsGetResponse instead. -type ItemItemActionsOrganizationSecretsResponse struct { - ItemItemActionsOrganizationSecretsGetResponse -} -// NewItemItemActionsOrganizationSecretsResponse instantiates a new ItemItemActionsOrganizationSecretsResponse and sets the default values. -func NewItemItemActionsOrganizationSecretsResponse()(*ItemItemActionsOrganizationSecretsResponse) { - m := &ItemItemActionsOrganizationSecretsResponse{ - ItemItemActionsOrganizationSecretsGetResponse: *NewItemItemActionsOrganizationSecretsGetResponse(), - } - return m -} -// CreateItemItemActionsOrganizationSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsOrganizationSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsOrganizationSecretsResponse(), nil -} -// ItemItemActionsOrganizationSecretsResponseable -// Deprecated: This class is obsolete. Use organizationSecretsGetResponse instead. -type ItemItemActionsOrganizationSecretsResponseable interface { - ItemItemActionsOrganizationSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_organization_variables_response.go b/pkg/github/repos/item_item_actions_organization_variables_response.go deleted file mode 100644 index c2df1266..00000000 --- a/pkg/github/repos/item_item_actions_organization_variables_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsOrganizationVariablesResponse -// Deprecated: This class is obsolete. Use organizationVariablesGetResponse instead. -type ItemItemActionsOrganizationVariablesResponse struct { - ItemItemActionsOrganizationVariablesGetResponse -} -// NewItemItemActionsOrganizationVariablesResponse instantiates a new ItemItemActionsOrganizationVariablesResponse and sets the default values. -func NewItemItemActionsOrganizationVariablesResponse()(*ItemItemActionsOrganizationVariablesResponse) { - m := &ItemItemActionsOrganizationVariablesResponse{ - ItemItemActionsOrganizationVariablesGetResponse: *NewItemItemActionsOrganizationVariablesGetResponse(), - } - return m -} -// CreateItemItemActionsOrganizationVariablesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsOrganizationVariablesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsOrganizationVariablesResponse(), nil -} -// ItemItemActionsOrganizationVariablesResponseable -// Deprecated: This class is obsolete. Use organizationVariablesGetResponse instead. -type ItemItemActionsOrganizationVariablesResponseable interface { - ItemItemActionsOrganizationVariablesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runners_generate_jitconfig_response.go b/pkg/github/repos/item_item_actions_runners_generate_jitconfig_response.go deleted file mode 100644 index d8a21e26..00000000 --- a/pkg/github/repos/item_item_actions_runners_generate_jitconfig_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunnersGenerateJitconfigResponse -// Deprecated: This class is obsolete. Use generateJitconfigPostResponse instead. -type ItemItemActionsRunnersGenerateJitconfigResponse struct { - ItemItemActionsRunnersGenerateJitconfigPostResponse -} -// NewItemItemActionsRunnersGenerateJitconfigResponse instantiates a new ItemItemActionsRunnersGenerateJitconfigResponse and sets the default values. -func NewItemItemActionsRunnersGenerateJitconfigResponse()(*ItemItemActionsRunnersGenerateJitconfigResponse) { - m := &ItemItemActionsRunnersGenerateJitconfigResponse{ - ItemItemActionsRunnersGenerateJitconfigPostResponse: *NewItemItemActionsRunnersGenerateJitconfigPostResponse(), - } - return m -} -// CreateItemItemActionsRunnersGenerateJitconfigResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunnersGenerateJitconfigResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunnersGenerateJitconfigResponse(), nil -} -// ItemItemActionsRunnersGenerateJitconfigResponseable -// Deprecated: This class is obsolete. Use generateJitconfigPostResponse instead. -type ItemItemActionsRunnersGenerateJitconfigResponseable interface { - ItemItemActionsRunnersGenerateJitconfigPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runners_item_labels_item_with_name_response.go b/pkg/github/repos/item_item_actions_runners_item_labels_item_with_name_response.go deleted file mode 100644 index 40d5a2d1..00000000 --- a/pkg/github/repos/item_item_actions_runners_item_labels_item_with_name_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunnersItemLabelsItemWithNameResponse -// Deprecated: This class is obsolete. Use WithNameDeleteResponse instead. -type ItemItemActionsRunnersItemLabelsItemWithNameResponse struct { - ItemItemActionsRunnersItemLabelsItemWithNameDeleteResponse -} -// NewItemItemActionsRunnersItemLabelsItemWithNameResponse instantiates a new ItemItemActionsRunnersItemLabelsItemWithNameResponse and sets the default values. -func NewItemItemActionsRunnersItemLabelsItemWithNameResponse()(*ItemItemActionsRunnersItemLabelsItemWithNameResponse) { - m := &ItemItemActionsRunnersItemLabelsItemWithNameResponse{ - ItemItemActionsRunnersItemLabelsItemWithNameDeleteResponse: *NewItemItemActionsRunnersItemLabelsItemWithNameDeleteResponse(), - } - return m -} -// CreateItemItemActionsRunnersItemLabelsItemWithNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunnersItemLabelsItemWithNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunnersItemLabelsItemWithNameResponse(), nil -} -// ItemItemActionsRunnersItemLabelsItemWithNameResponseable -// Deprecated: This class is obsolete. Use WithNameDeleteResponse instead. -type ItemItemActionsRunnersItemLabelsItemWithNameResponseable interface { - ItemItemActionsRunnersItemLabelsItemWithNameDeleteResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runners_item_labels_response.go b/pkg/github/repos/item_item_actions_runners_item_labels_response.go deleted file mode 100644 index 6f3cf377..00000000 --- a/pkg/github/repos/item_item_actions_runners_item_labels_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunnersItemLabelsResponse -// Deprecated: This class is obsolete. Use labelsGetResponse instead. -type ItemItemActionsRunnersItemLabelsResponse struct { - ItemItemActionsRunnersItemLabelsGetResponse -} -// NewItemItemActionsRunnersItemLabelsResponse instantiates a new ItemItemActionsRunnersItemLabelsResponse and sets the default values. -func NewItemItemActionsRunnersItemLabelsResponse()(*ItemItemActionsRunnersItemLabelsResponse) { - m := &ItemItemActionsRunnersItemLabelsResponse{ - ItemItemActionsRunnersItemLabelsGetResponse: *NewItemItemActionsRunnersItemLabelsGetResponse(), - } - return m -} -// CreateItemItemActionsRunnersItemLabelsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunnersItemLabelsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunnersItemLabelsResponse(), nil -} -// ItemItemActionsRunnersItemLabelsResponseable -// Deprecated: This class is obsolete. Use labelsGetResponse instead. -type ItemItemActionsRunnersItemLabelsResponseable interface { - ItemItemActionsRunnersItemLabelsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runners_response.go b/pkg/github/repos/item_item_actions_runners_response.go deleted file mode 100644 index 44399414..00000000 --- a/pkg/github/repos/item_item_actions_runners_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunnersResponse -// Deprecated: This class is obsolete. Use runnersGetResponse instead. -type ItemItemActionsRunnersResponse struct { - ItemItemActionsRunnersGetResponse -} -// NewItemItemActionsRunnersResponse instantiates a new ItemItemActionsRunnersResponse and sets the default values. -func NewItemItemActionsRunnersResponse()(*ItemItemActionsRunnersResponse) { - m := &ItemItemActionsRunnersResponse{ - ItemItemActionsRunnersGetResponse: *NewItemItemActionsRunnersGetResponse(), - } - return m -} -// CreateItemItemActionsRunnersResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunnersResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunnersResponse(), nil -} -// ItemItemActionsRunnersResponseable -// Deprecated: This class is obsolete. Use runnersGetResponse instead. -type ItemItemActionsRunnersResponseable interface { - ItemItemActionsRunnersGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runs_item_artifacts_response.go b/pkg/github/repos/item_item_actions_runs_item_artifacts_response.go deleted file mode 100644 index 1f8ac626..00000000 --- a/pkg/github/repos/item_item_actions_runs_item_artifacts_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunsItemArtifactsResponse -// Deprecated: This class is obsolete. Use artifactsGetResponse instead. -type ItemItemActionsRunsItemArtifactsResponse struct { - ItemItemActionsRunsItemArtifactsGetResponse -} -// NewItemItemActionsRunsItemArtifactsResponse instantiates a new ItemItemActionsRunsItemArtifactsResponse and sets the default values. -func NewItemItemActionsRunsItemArtifactsResponse()(*ItemItemActionsRunsItemArtifactsResponse) { - m := &ItemItemActionsRunsItemArtifactsResponse{ - ItemItemActionsRunsItemArtifactsGetResponse: *NewItemItemActionsRunsItemArtifactsGetResponse(), - } - return m -} -// CreateItemItemActionsRunsItemArtifactsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunsItemArtifactsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunsItemArtifactsResponse(), nil -} -// ItemItemActionsRunsItemArtifactsResponseable -// Deprecated: This class is obsolete. Use artifactsGetResponse instead. -type ItemItemActionsRunsItemArtifactsResponseable interface { - ItemItemActionsRunsItemArtifactsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_response.go b/pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_response.go deleted file mode 100644 index a4389d74..00000000 --- a/pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunsItemAttemptsItemJobsResponse -// Deprecated: This class is obsolete. Use jobsGetResponse instead. -type ItemItemActionsRunsItemAttemptsItemJobsResponse struct { - ItemItemActionsRunsItemAttemptsItemJobsGetResponse -} -// NewItemItemActionsRunsItemAttemptsItemJobsResponse instantiates a new ItemItemActionsRunsItemAttemptsItemJobsResponse and sets the default values. -func NewItemItemActionsRunsItemAttemptsItemJobsResponse()(*ItemItemActionsRunsItemAttemptsItemJobsResponse) { - m := &ItemItemActionsRunsItemAttemptsItemJobsResponse{ - ItemItemActionsRunsItemAttemptsItemJobsGetResponse: *NewItemItemActionsRunsItemAttemptsItemJobsGetResponse(), - } - return m -} -// CreateItemItemActionsRunsItemAttemptsItemJobsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunsItemAttemptsItemJobsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunsItemAttemptsItemJobsResponse(), nil -} -// ItemItemActionsRunsItemAttemptsItemJobsResponseable -// Deprecated: This class is obsolete. Use jobsGetResponse instead. -type ItemItemActionsRunsItemAttemptsItemJobsResponseable interface { - ItemItemActionsRunsItemAttemptsItemJobsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runs_item_jobs_response.go b/pkg/github/repos/item_item_actions_runs_item_jobs_response.go deleted file mode 100644 index 91b13816..00000000 --- a/pkg/github/repos/item_item_actions_runs_item_jobs_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunsItemJobsResponse -// Deprecated: This class is obsolete. Use jobsGetResponse instead. -type ItemItemActionsRunsItemJobsResponse struct { - ItemItemActionsRunsItemJobsGetResponse -} -// NewItemItemActionsRunsItemJobsResponse instantiates a new ItemItemActionsRunsItemJobsResponse and sets the default values. -func NewItemItemActionsRunsItemJobsResponse()(*ItemItemActionsRunsItemJobsResponse) { - m := &ItemItemActionsRunsItemJobsResponse{ - ItemItemActionsRunsItemJobsGetResponse: *NewItemItemActionsRunsItemJobsGetResponse(), - } - return m -} -// CreateItemItemActionsRunsItemJobsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunsItemJobsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunsItemJobsResponse(), nil -} -// ItemItemActionsRunsItemJobsResponseable -// Deprecated: This class is obsolete. Use jobsGetResponse instead. -type ItemItemActionsRunsItemJobsResponseable interface { - ItemItemActionsRunsItemJobsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_runs_response.go b/pkg/github/repos/item_item_actions_runs_response.go deleted file mode 100644 index d9bbfc64..00000000 --- a/pkg/github/repos/item_item_actions_runs_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsRunsResponse -// Deprecated: This class is obsolete. Use runsGetResponse instead. -type ItemItemActionsRunsResponse struct { - ItemItemActionsRunsGetResponse -} -// NewItemItemActionsRunsResponse instantiates a new ItemItemActionsRunsResponse and sets the default values. -func NewItemItemActionsRunsResponse()(*ItemItemActionsRunsResponse) { - m := &ItemItemActionsRunsResponse{ - ItemItemActionsRunsGetResponse: *NewItemItemActionsRunsGetResponse(), - } - return m -} -// CreateItemItemActionsRunsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsRunsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsRunsResponse(), nil -} -// ItemItemActionsRunsResponseable -// Deprecated: This class is obsolete. Use runsGetResponse instead. -type ItemItemActionsRunsResponseable interface { - ItemItemActionsRunsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_secrets_response.go b/pkg/github/repos/item_item_actions_secrets_response.go deleted file mode 100644 index cb0576f3..00000000 --- a/pkg/github/repos/item_item_actions_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemItemActionsSecretsResponse struct { - ItemItemActionsSecretsGetResponse -} -// NewItemItemActionsSecretsResponse instantiates a new ItemItemActionsSecretsResponse and sets the default values. -func NewItemItemActionsSecretsResponse()(*ItemItemActionsSecretsResponse) { - m := &ItemItemActionsSecretsResponse{ - ItemItemActionsSecretsGetResponse: *NewItemItemActionsSecretsGetResponse(), - } - return m -} -// CreateItemItemActionsSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsSecretsResponse(), nil -} -// ItemItemActionsSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemItemActionsSecretsResponseable interface { - ItemItemActionsSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_variables_response.go b/pkg/github/repos/item_item_actions_variables_response.go deleted file mode 100644 index c425e0a5..00000000 --- a/pkg/github/repos/item_item_actions_variables_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsVariablesResponse -// Deprecated: This class is obsolete. Use variablesGetResponse instead. -type ItemItemActionsVariablesResponse struct { - ItemItemActionsVariablesGetResponse -} -// NewItemItemActionsVariablesResponse instantiates a new ItemItemActionsVariablesResponse and sets the default values. -func NewItemItemActionsVariablesResponse()(*ItemItemActionsVariablesResponse) { - m := &ItemItemActionsVariablesResponse{ - ItemItemActionsVariablesGetResponse: *NewItemItemActionsVariablesGetResponse(), - } - return m -} -// CreateItemItemActionsVariablesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsVariablesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsVariablesResponse(), nil -} -// ItemItemActionsVariablesResponseable -// Deprecated: This class is obsolete. Use variablesGetResponse instead. -type ItemItemActionsVariablesResponseable interface { - ItemItemActionsVariablesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_workflows_item_runs_response.go b/pkg/github/repos/item_item_actions_workflows_item_runs_response.go deleted file mode 100644 index b29f6208..00000000 --- a/pkg/github/repos/item_item_actions_workflows_item_runs_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsWorkflowsItemRunsResponse -// Deprecated: This class is obsolete. Use runsGetResponse instead. -type ItemItemActionsWorkflowsItemRunsResponse struct { - ItemItemActionsWorkflowsItemRunsGetResponse -} -// NewItemItemActionsWorkflowsItemRunsResponse instantiates a new ItemItemActionsWorkflowsItemRunsResponse and sets the default values. -func NewItemItemActionsWorkflowsItemRunsResponse()(*ItemItemActionsWorkflowsItemRunsResponse) { - m := &ItemItemActionsWorkflowsItemRunsResponse{ - ItemItemActionsWorkflowsItemRunsGetResponse: *NewItemItemActionsWorkflowsItemRunsGetResponse(), - } - return m -} -// CreateItemItemActionsWorkflowsItemRunsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsWorkflowsItemRunsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsWorkflowsItemRunsResponse(), nil -} -// ItemItemActionsWorkflowsItemRunsResponseable -// Deprecated: This class is obsolete. Use runsGetResponse instead. -type ItemItemActionsWorkflowsItemRunsResponseable interface { - ItemItemActionsWorkflowsItemRunsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_actions_workflows_response.go b/pkg/github/repos/item_item_actions_workflows_response.go deleted file mode 100644 index 74971b96..00000000 --- a/pkg/github/repos/item_item_actions_workflows_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemActionsWorkflowsResponse -// Deprecated: This class is obsolete. Use workflowsGetResponse instead. -type ItemItemActionsWorkflowsResponse struct { - ItemItemActionsWorkflowsGetResponse -} -// NewItemItemActionsWorkflowsResponse instantiates a new ItemItemActionsWorkflowsResponse and sets the default values. -func NewItemItemActionsWorkflowsResponse()(*ItemItemActionsWorkflowsResponse) { - m := &ItemItemActionsWorkflowsResponse{ - ItemItemActionsWorkflowsGetResponse: *NewItemItemActionsWorkflowsGetResponse(), - } - return m -} -// CreateItemItemActionsWorkflowsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemActionsWorkflowsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemActionsWorkflowsResponse(), nil -} -// ItemItemActionsWorkflowsResponseable -// Deprecated: This class is obsolete. Use workflowsGetResponse instead. -type ItemItemActionsWorkflowsResponseable interface { - ItemItemActionsWorkflowsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_check_suites_item_check_runs_response.go b/pkg/github/repos/item_item_check_suites_item_check_runs_response.go deleted file mode 100644 index 923c1f6f..00000000 --- a/pkg/github/repos/item_item_check_suites_item_check_runs_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCheckSuitesItemCheckRunsResponse -// Deprecated: This class is obsolete. Use checkRunsGetResponse instead. -type ItemItemCheckSuitesItemCheckRunsResponse struct { - ItemItemCheckSuitesItemCheckRunsGetResponse -} -// NewItemItemCheckSuitesItemCheckRunsResponse instantiates a new ItemItemCheckSuitesItemCheckRunsResponse and sets the default values. -func NewItemItemCheckSuitesItemCheckRunsResponse()(*ItemItemCheckSuitesItemCheckRunsResponse) { - m := &ItemItemCheckSuitesItemCheckRunsResponse{ - ItemItemCheckSuitesItemCheckRunsGetResponse: *NewItemItemCheckSuitesItemCheckRunsGetResponse(), - } - return m -} -// CreateItemItemCheckSuitesItemCheckRunsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCheckSuitesItemCheckRunsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCheckSuitesItemCheckRunsResponse(), nil -} -// ItemItemCheckSuitesItemCheckRunsResponseable -// Deprecated: This class is obsolete. Use checkRunsGetResponse instead. -type ItemItemCheckSuitesItemCheckRunsResponseable interface { - ItemItemCheckSuitesItemCheckRunsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_codespaces_devcontainers_response.go b/pkg/github/repos/item_item_codespaces_devcontainers_response.go deleted file mode 100644 index 3f60054a..00000000 --- a/pkg/github/repos/item_item_codespaces_devcontainers_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCodespacesDevcontainersResponse -// Deprecated: This class is obsolete. Use devcontainersGetResponse instead. -type ItemItemCodespacesDevcontainersResponse struct { - ItemItemCodespacesDevcontainersGetResponse -} -// NewItemItemCodespacesDevcontainersResponse instantiates a new ItemItemCodespacesDevcontainersResponse and sets the default values. -func NewItemItemCodespacesDevcontainersResponse()(*ItemItemCodespacesDevcontainersResponse) { - m := &ItemItemCodespacesDevcontainersResponse{ - ItemItemCodespacesDevcontainersGetResponse: *NewItemItemCodespacesDevcontainersGetResponse(), - } - return m -} -// CreateItemItemCodespacesDevcontainersResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCodespacesDevcontainersResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCodespacesDevcontainersResponse(), nil -} -// ItemItemCodespacesDevcontainersResponseable -// Deprecated: This class is obsolete. Use devcontainersGetResponse instead. -type ItemItemCodespacesDevcontainersResponseable interface { - ItemItemCodespacesDevcontainersGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_codespaces_machines_response.go b/pkg/github/repos/item_item_codespaces_machines_response.go deleted file mode 100644 index 32626b2d..00000000 --- a/pkg/github/repos/item_item_codespaces_machines_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCodespacesMachinesResponse -// Deprecated: This class is obsolete. Use machinesGetResponse instead. -type ItemItemCodespacesMachinesResponse struct { - ItemItemCodespacesMachinesGetResponse -} -// NewItemItemCodespacesMachinesResponse instantiates a new ItemItemCodespacesMachinesResponse and sets the default values. -func NewItemItemCodespacesMachinesResponse()(*ItemItemCodespacesMachinesResponse) { - m := &ItemItemCodespacesMachinesResponse{ - ItemItemCodespacesMachinesGetResponse: *NewItemItemCodespacesMachinesGetResponse(), - } - return m -} -// CreateItemItemCodespacesMachinesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCodespacesMachinesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCodespacesMachinesResponse(), nil -} -// ItemItemCodespacesMachinesResponseable -// Deprecated: This class is obsolete. Use machinesGetResponse instead. -type ItemItemCodespacesMachinesResponseable interface { - ItemItemCodespacesMachinesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_codespaces_new_response.go b/pkg/github/repos/item_item_codespaces_new_response.go deleted file mode 100644 index 2b7101ee..00000000 --- a/pkg/github/repos/item_item_codespaces_new_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCodespacesNewResponse -// Deprecated: This class is obsolete. Use newGetResponse instead. -type ItemItemCodespacesNewResponse struct { - ItemItemCodespacesNewGetResponse -} -// NewItemItemCodespacesNewResponse instantiates a new ItemItemCodespacesNewResponse and sets the default values. -func NewItemItemCodespacesNewResponse()(*ItemItemCodespacesNewResponse) { - m := &ItemItemCodespacesNewResponse{ - ItemItemCodespacesNewGetResponse: *NewItemItemCodespacesNewGetResponse(), - } - return m -} -// CreateItemItemCodespacesNewResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCodespacesNewResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCodespacesNewResponse(), nil -} -// ItemItemCodespacesNewResponseable -// Deprecated: This class is obsolete. Use newGetResponse instead. -type ItemItemCodespacesNewResponseable interface { - ItemItemCodespacesNewGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_codespaces_response.go b/pkg/github/repos/item_item_codespaces_response.go deleted file mode 100644 index 02a5a3f2..00000000 --- a/pkg/github/repos/item_item_codespaces_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCodespacesResponse -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type ItemItemCodespacesResponse struct { - ItemItemCodespacesGetResponse -} -// NewItemItemCodespacesResponse instantiates a new ItemItemCodespacesResponse and sets the default values. -func NewItemItemCodespacesResponse()(*ItemItemCodespacesResponse) { - m := &ItemItemCodespacesResponse{ - ItemItemCodespacesGetResponse: *NewItemItemCodespacesGetResponse(), - } - return m -} -// CreateItemItemCodespacesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCodespacesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCodespacesResponse(), nil -} -// ItemItemCodespacesResponseable -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type ItemItemCodespacesResponseable interface { - ItemItemCodespacesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_codespaces_secrets_response.go b/pkg/github/repos/item_item_codespaces_secrets_response.go deleted file mode 100644 index 29dbe97d..00000000 --- a/pkg/github/repos/item_item_codespaces_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCodespacesSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemItemCodespacesSecretsResponse struct { - ItemItemCodespacesSecretsGetResponse -} -// NewItemItemCodespacesSecretsResponse instantiates a new ItemItemCodespacesSecretsResponse and sets the default values. -func NewItemItemCodespacesSecretsResponse()(*ItemItemCodespacesSecretsResponse) { - m := &ItemItemCodespacesSecretsResponse{ - ItemItemCodespacesSecretsGetResponse: *NewItemItemCodespacesSecretsGetResponse(), - } - return m -} -// CreateItemItemCodespacesSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCodespacesSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCodespacesSecretsResponse(), nil -} -// ItemItemCodespacesSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemItemCodespacesSecretsResponseable interface { - ItemItemCodespacesSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_commits_commits_item_request_builder.go b/pkg/github/repos/item_item_commits_commits_item_request_builder.go deleted file mode 100644 index a99752ec..00000000 --- a/pkg/github/repos/item_item_commits_commits_item_request_builder.go +++ /dev/null @@ -1,109 +0,0 @@ -package repos - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemItemCommitsCommitsItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id} -type ItemItemCommitsCommitsItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemItemCommitsCommitsItemRequestBuilderGetQueryParameters returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | -type ItemItemCommitsCommitsItemRequestBuilderGetQueryParameters struct { - // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Page *int32 `uriparametername:"page"` - // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Per_page *int32 `uriparametername:"per_page"` -} -// BranchesWhereHead the branchesWhereHead property -// returns a *ItemItemCommitsItemBranchesWhereHeadRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) BranchesWhereHead()(*ItemItemCommitsItemBranchesWhereHeadRequestBuilder) { - return NewItemItemCommitsItemBranchesWhereHeadRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckRuns the checkRuns property -// returns a *ItemItemCommitsItemCheckRunsRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) CheckRuns()(*ItemItemCommitsItemCheckRunsRequestBuilder) { - return NewItemItemCommitsItemCheckRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckSuites the checkSuites property -// returns a *ItemItemCommitsItemCheckSuitesRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) CheckSuites()(*ItemItemCommitsItemCheckSuitesRequestBuilder) { - return NewItemItemCommitsItemCheckSuitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Comments the comments property -// returns a *ItemItemCommitsItemCommentsRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) Comments()(*ItemItemCommitsItemCommentsRequestBuilder) { - return NewItemItemCommitsItemCommentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemItemCommitsCommitsItemRequestBuilderInternal instantiates a new ItemItemCommitsCommitsItemRequestBuilder and sets the default values. -func NewItemItemCommitsCommitsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsCommitsItemRequestBuilder) { - m := &ItemItemCommitsCommitsItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}{?page*,per_page*}", pathParameters), - } - return m -} -// NewItemItemCommitsCommitsItemRequestBuilder instantiates a new ItemItemCommitsCommitsItemRequestBuilder and sets the default values. -func NewItemItemCommitsCommitsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsCommitsItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemItemCommitsCommitsItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Get returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | -// returns a Commitable when successful -// returns a BasicError error when the service returns a 404 status code -// returns a ValidationError error when the service returns a 422 status code -// returns a BasicError error when the service returns a 500 status code -// returns a Commit503Error error when the service returns a 503 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/commits/commits#get-a-commit -func (m *ItemItemCommitsCommitsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemCommitsCommitsItemRequestBuilderGetQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Commitable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - "500": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "503": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateCommit503ErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateCommitFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Commitable), nil -} -// Pulls the pulls property -// returns a *ItemItemCommitsItemPullsRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) Pulls()(*ItemItemCommitsItemPullsRequestBuilder) { - return NewItemItemCommitsItemPullsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Status the status property -// returns a *ItemItemCommitsItemStatusRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) Status()(*ItemItemCommitsItemStatusRequestBuilder) { - return NewItemItemCommitsItemStatusRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Statuses the statuses property -// returns a *ItemItemCommitsItemStatusesRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) Statuses()(*ItemItemCommitsItemStatusesRequestBuilder) { - return NewItemItemCommitsItemStatusesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | -// returns a *RequestInformation when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemCommitsCommitsItemRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemItemCommitsCommitsItemRequestBuilder when successful -func (m *ItemItemCommitsCommitsItemRequestBuilder) WithUrl(rawUrl string)(*ItemItemCommitsCommitsItemRequestBuilder) { - return NewItemItemCommitsCommitsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repos/item_item_commits_item_check_runs_response.go b/pkg/github/repos/item_item_commits_item_check_runs_response.go deleted file mode 100644 index f501d5f7..00000000 --- a/pkg/github/repos/item_item_commits_item_check_runs_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCommitsItemCheckRunsResponse -// Deprecated: This class is obsolete. Use checkRunsGetResponse instead. -type ItemItemCommitsItemCheckRunsResponse struct { - ItemItemCommitsItemCheckRunsGetResponse -} -// NewItemItemCommitsItemCheckRunsResponse instantiates a new ItemItemCommitsItemCheckRunsResponse and sets the default values. -func NewItemItemCommitsItemCheckRunsResponse()(*ItemItemCommitsItemCheckRunsResponse) { - m := &ItemItemCommitsItemCheckRunsResponse{ - ItemItemCommitsItemCheckRunsGetResponse: *NewItemItemCommitsItemCheckRunsGetResponse(), - } - return m -} -// CreateItemItemCommitsItemCheckRunsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCommitsItemCheckRunsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCommitsItemCheckRunsResponse(), nil -} -// ItemItemCommitsItemCheckRunsResponseable -// Deprecated: This class is obsolete. Use checkRunsGetResponse instead. -type ItemItemCommitsItemCheckRunsResponseable interface { - ItemItemCommitsItemCheckRunsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_commits_item_check_suites_response.go b/pkg/github/repos/item_item_commits_item_check_suites_response.go deleted file mode 100644 index e6024162..00000000 --- a/pkg/github/repos/item_item_commits_item_check_suites_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemCommitsItemCheckSuitesResponse -// Deprecated: This class is obsolete. Use checkSuitesGetResponse instead. -type ItemItemCommitsItemCheckSuitesResponse struct { - ItemItemCommitsItemCheckSuitesGetResponse -} -// NewItemItemCommitsItemCheckSuitesResponse instantiates a new ItemItemCommitsItemCheckSuitesResponse and sets the default values. -func NewItemItemCommitsItemCheckSuitesResponse()(*ItemItemCommitsItemCheckSuitesResponse) { - m := &ItemItemCommitsItemCheckSuitesResponse{ - ItemItemCommitsItemCheckSuitesGetResponse: *NewItemItemCommitsItemCheckSuitesGetResponse(), - } - return m -} -// CreateItemItemCommitsItemCheckSuitesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemCommitsItemCheckSuitesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemCommitsItemCheckSuitesResponse(), nil -} -// ItemItemCommitsItemCheckSuitesResponseable -// Deprecated: This class is obsolete. Use checkSuitesGetResponse instead. -type ItemItemCommitsItemCheckSuitesResponseable interface { - ItemItemCommitsItemCheckSuitesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_commits_with_commit_sha_item_request_builder.go b/pkg/github/repos/item_item_commits_with_commit_sha_item_request_builder.go deleted file mode 100644 index c117dcd8..00000000 --- a/pkg/github/repos/item_item_commits_with_commit_sha_item_request_builder.go +++ /dev/null @@ -1,110 +0,0 @@ -package repos - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemItemCommitsWithCommit_shaItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id} -type ItemItemCommitsWithCommit_shaItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemItemCommitsWithCommit_shaItemRequestBuilderGetQueryParameters returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.You can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | -type ItemItemCommitsWithCommit_shaItemRequestBuilderGetQueryParameters struct { - // Page number of the results to fetch. - Page *int32 `uriparametername:"page"` - // The number of results per page (max 100). - Per_page *int32 `uriparametername:"per_page"` -} -// ItemItemCommitsWithCommit_shaItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemItemCommitsWithCommit_shaItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemItemCommitsWithCommit_shaItemRequestBuilderGetQueryParameters -} -// BranchesWhereHead the branchesWhereHead property -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) BranchesWhereHead()(*ItemItemCommitsItemBranchesWhereHeadRequestBuilder) { - return NewItemItemCommitsItemBranchesWhereHeadRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckRuns the checkRuns property -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) CheckRuns()(*ItemItemCommitsItemCheckRunsRequestBuilder) { - return NewItemItemCommitsItemCheckRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckSuites the checkSuites property -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) CheckSuites()(*ItemItemCommitsItemCheckSuitesRequestBuilder) { - return NewItemItemCommitsItemCheckSuitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Comments the comments property -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) Comments()(*ItemItemCommitsItemCommentsRequestBuilder) { - return NewItemItemCommitsItemCommentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemItemCommitsWithCommit_shaItemRequestBuilderInternal instantiates a new WithCommit_shaItemRequestBuilder and sets the default values. -func NewItemItemCommitsWithCommit_shaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsWithCommit_shaItemRequestBuilder) { - m := &ItemItemCommitsWithCommit_shaItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}{?page*,per_page*}", pathParameters), - } - return m -} -// NewItemItemCommitsWithCommit_shaItemRequestBuilder instantiates a new WithCommit_shaItemRequestBuilder and sets the default values. -func NewItemItemCommitsWithCommit_shaItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsWithCommit_shaItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemItemCommitsWithCommit_shaItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Get returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.You can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/commits/commits#get-a-commit -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemCommitsWithCommit_shaItemRequestBuilderGetRequestConfiguration)(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Commitable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - "500": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "503": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateCommit503ErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateCommitFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Commitable), nil -} -// Pulls the pulls property -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) Pulls()(*ItemItemCommitsItemPullsRequestBuilder) { - return NewItemItemCommitsItemPullsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Status the status property -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) Status()(*ItemItemCommitsItemStatusRequestBuilder) { - return NewItemItemCommitsItemStatusRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Statuses the statuses property -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) Statuses()(*ItemItemCommitsItemStatusesRequestBuilder) { - return NewItemItemCommitsItemStatusesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.You can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemCommitsWithCommit_shaItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -func (m *ItemItemCommitsWithCommit_shaItemRequestBuilder) WithUrl(rawUrl string)(*ItemItemCommitsWithCommit_shaItemRequestBuilder) { - return NewItemItemCommitsWithCommit_shaItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repos/item_item_dependabot_secrets_response.go b/pkg/github/repos/item_item_dependabot_secrets_response.go deleted file mode 100644 index dfdaa7bb..00000000 --- a/pkg/github/repos/item_item_dependabot_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemDependabotSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemItemDependabotSecretsResponse struct { - ItemItemDependabotSecretsGetResponse -} -// NewItemItemDependabotSecretsResponse instantiates a new ItemItemDependabotSecretsResponse and sets the default values. -func NewItemItemDependabotSecretsResponse()(*ItemItemDependabotSecretsResponse) { - m := &ItemItemDependabotSecretsResponse{ - ItemItemDependabotSecretsGetResponse: *NewItemItemDependabotSecretsGetResponse(), - } - return m -} -// CreateItemItemDependabotSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemDependabotSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemDependabotSecretsResponse(), nil -} -// ItemItemDependabotSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemItemDependabotSecretsResponseable interface { - ItemItemDependabotSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_dependency_graph_snapshots_response.go b/pkg/github/repos/item_item_dependency_graph_snapshots_response.go deleted file mode 100644 index 79ddb502..00000000 --- a/pkg/github/repos/item_item_dependency_graph_snapshots_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemDependencyGraphSnapshotsResponse -// Deprecated: This class is obsolete. Use snapshotsPostResponse instead. -type ItemItemDependencyGraphSnapshotsResponse struct { - ItemItemDependencyGraphSnapshotsPostResponse -} -// NewItemItemDependencyGraphSnapshotsResponse instantiates a new ItemItemDependencyGraphSnapshotsResponse and sets the default values. -func NewItemItemDependencyGraphSnapshotsResponse()(*ItemItemDependencyGraphSnapshotsResponse) { - m := &ItemItemDependencyGraphSnapshotsResponse{ - ItemItemDependencyGraphSnapshotsPostResponse: *NewItemItemDependencyGraphSnapshotsPostResponse(), - } - return m -} -// CreateItemItemDependencyGraphSnapshotsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemDependencyGraphSnapshotsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemDependencyGraphSnapshotsResponse(), nil -} -// ItemItemDependencyGraphSnapshotsResponseable -// Deprecated: This class is obsolete. Use snapshotsPostResponse instead. -type ItemItemDependencyGraphSnapshotsResponseable interface { - ItemItemDependencyGraphSnapshotsPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_deployments_post_request_body_payload_member1.go b/pkg/github/repos/item_item_deployments_post_request_body_payload_member1.go deleted file mode 100644 index 68363b37..00000000 --- a/pkg/github/repos/item_item_deployments_post_request_body_payload_member1.go +++ /dev/null @@ -1,50 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemDeploymentsPostRequestBody_payloadMember1 -type ItemItemDeploymentsPostRequestBody_payloadMember1 struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any -} -// NewItemItemDeploymentsPostRequestBody_payloadMember1 instantiates a new ItemItemDeploymentsPostRequestBody_payloadMember1 and sets the default values. -func NewItemItemDeploymentsPostRequestBody_payloadMember1()(*ItemItemDeploymentsPostRequestBody_payloadMember1) { - m := &ItemItemDeploymentsPostRequestBody_payloadMember1{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemDeploymentsPostRequestBody_payloadMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemDeploymentsPostRequestBody_payloadMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemDeploymentsPostRequestBody_payloadMember1(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemDeploymentsPostRequestBody_payloadMember1) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemDeploymentsPostRequestBody_payloadMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - return res -} -// Serialize serializes information the current object -func (m *ItemItemDeploymentsPostRequestBody_payloadMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemDeploymentsPostRequestBody_payloadMember1) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// ItemItemDeploymentsPostRequestBody_payloadMember1able -type ItemItemDeploymentsPostRequestBody_payloadMember1able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_environments_item_deployment_branch_policies_response.go b/pkg/github/repos/item_item_environments_item_deployment_branch_policies_response.go deleted file mode 100644 index 791b5f7d..00000000 --- a/pkg/github/repos/item_item_environments_item_deployment_branch_policies_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemEnvironmentsItemDeploymentBranchPoliciesResponse -// Deprecated: This class is obsolete. Use deploymentBranchPoliciesGetResponse instead. -type ItemItemEnvironmentsItemDeploymentBranchPoliciesResponse struct { - ItemItemEnvironmentsItemDeploymentBranchPoliciesGetResponse -} -// NewItemItemEnvironmentsItemDeploymentBranchPoliciesResponse instantiates a new ItemItemEnvironmentsItemDeploymentBranchPoliciesResponse and sets the default values. -func NewItemItemEnvironmentsItemDeploymentBranchPoliciesResponse()(*ItemItemEnvironmentsItemDeploymentBranchPoliciesResponse) { - m := &ItemItemEnvironmentsItemDeploymentBranchPoliciesResponse{ - ItemItemEnvironmentsItemDeploymentBranchPoliciesGetResponse: *NewItemItemEnvironmentsItemDeploymentBranchPoliciesGetResponse(), - } - return m -} -// CreateItemItemEnvironmentsItemDeploymentBranchPoliciesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemEnvironmentsItemDeploymentBranchPoliciesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemEnvironmentsItemDeploymentBranchPoliciesResponse(), nil -} -// ItemItemEnvironmentsItemDeploymentBranchPoliciesResponseable -// Deprecated: This class is obsolete. Use deploymentBranchPoliciesGetResponse instead. -type ItemItemEnvironmentsItemDeploymentBranchPoliciesResponseable interface { - ItemItemEnvironmentsItemDeploymentBranchPoliciesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go index 84e9b282..44f291fe 100644 --- a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go +++ b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go @@ -9,7 +9,7 @@ import ( type ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderGetQueryParameters gets all custom deployment protection rule integrations that are available for an environment. Anyone with read access to the repository can use this endpoint.For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. +// ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderGetQueryParameters gets all custom deployment protection rule integrations that are available for an environment.The authenticated user must have admin or owner permissions to the repository to use this endpoint.For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. type ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -29,7 +29,7 @@ func NewItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderInternal(urlParams, requestAdapter) } -// Get gets all custom deployment protection rule integrations that are available for an environment. Anyone with read access to the repository can use this endpoint.For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. +// Get gets all custom deployment protection rule integrations that are available for an environment.The authenticated user must have admin or owner permissions to the repository to use this endpoint.For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. // returns a ItemItemEnvironmentsItemDeployment_protection_rulesAppsGetResponseable when successful // [API method documentation] // @@ -48,7 +48,7 @@ func (m *ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder) } return res.(ItemItemEnvironmentsItemDeployment_protection_rulesAppsGetResponseable), nil } -// ToGetRequestInformation gets all custom deployment protection rule integrations that are available for an environment. Anyone with read access to the repository can use this endpoint.For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. +// ToGetRequestInformation gets all custom deployment protection rule integrations that are available for an environment.The authenticated user must have admin or owner permissions to the repository to use this endpoint.For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. // returns a *RequestInformation when successful func (m *ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_response.go b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_response.go deleted file mode 100644 index 906c5102..00000000 --- a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse -// Deprecated: This class is obsolete. Use appsGetResponse instead. -type ItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse struct { - ItemItemEnvironmentsItemDeployment_protection_rulesAppsGetResponse -} -// NewItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse instantiates a new ItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse and sets the default values. -func NewItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse()(*ItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse) { - m := &ItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse{ - ItemItemEnvironmentsItemDeployment_protection_rulesAppsGetResponse: *NewItemItemEnvironmentsItemDeployment_protection_rulesAppsGetResponse(), - } - return m -} -// CreateItemItemEnvironmentsItemDeployment_protection_rulesAppsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemEnvironmentsItemDeployment_protection_rulesAppsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemEnvironmentsItemDeployment_protection_rulesAppsResponse(), nil -} -// ItemItemEnvironmentsItemDeployment_protection_rulesAppsResponseable -// Deprecated: This class is obsolete. Use appsGetResponse instead. -type ItemItemEnvironmentsItemDeployment_protection_rulesAppsResponseable interface { - ItemItemEnvironmentsItemDeployment_protection_rulesAppsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_response.go b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_response.go deleted file mode 100644 index 80dd9638..00000000 --- a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemEnvironmentsItemDeployment_protection_rulesResponse -// Deprecated: This class is obsolete. Use deployment_protection_rulesGetResponse instead. -type ItemItemEnvironmentsItemDeployment_protection_rulesResponse struct { - ItemItemEnvironmentsItemDeployment_protection_rulesGetResponse -} -// NewItemItemEnvironmentsItemDeployment_protection_rulesResponse instantiates a new ItemItemEnvironmentsItemDeployment_protection_rulesResponse and sets the default values. -func NewItemItemEnvironmentsItemDeployment_protection_rulesResponse()(*ItemItemEnvironmentsItemDeployment_protection_rulesResponse) { - m := &ItemItemEnvironmentsItemDeployment_protection_rulesResponse{ - ItemItemEnvironmentsItemDeployment_protection_rulesGetResponse: *NewItemItemEnvironmentsItemDeployment_protection_rulesGetResponse(), - } - return m -} -// CreateItemItemEnvironmentsItemDeployment_protection_rulesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemEnvironmentsItemDeployment_protection_rulesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemEnvironmentsItemDeployment_protection_rulesResponse(), nil -} -// ItemItemEnvironmentsItemDeployment_protection_rulesResponseable -// Deprecated: This class is obsolete. Use deployment_protection_rulesGetResponse instead. -type ItemItemEnvironmentsItemDeployment_protection_rulesResponseable interface { - ItemItemEnvironmentsItemDeployment_protection_rulesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_environments_response.go b/pkg/github/repos/item_item_environments_response.go deleted file mode 100644 index 73809956..00000000 --- a/pkg/github/repos/item_item_environments_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemEnvironmentsResponse -// Deprecated: This class is obsolete. Use environmentsGetResponse instead. -type ItemItemEnvironmentsResponse struct { - ItemItemEnvironmentsGetResponse -} -// NewItemItemEnvironmentsResponse instantiates a new ItemItemEnvironmentsResponse and sets the default values. -func NewItemItemEnvironmentsResponse()(*ItemItemEnvironmentsResponse) { - m := &ItemItemEnvironmentsResponse{ - ItemItemEnvironmentsGetResponse: *NewItemItemEnvironmentsGetResponse(), - } - return m -} -// CreateItemItemEnvironmentsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemEnvironmentsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemEnvironmentsResponse(), nil -} -// ItemItemEnvironmentsResponseable -// Deprecated: This class is obsolete. Use environmentsGetResponse instead. -type ItemItemEnvironmentsResponseable interface { - ItemItemEnvironmentsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_git_commits_post_request_body.go b/pkg/github/repos/item_item_git_commits_post_request_body.go index 76c2644c..0b047c9c 100644 --- a/pkg/github/repos/item_item_git_commits_post_request_body.go +++ b/pkg/github/repos/item_item_git_commits_post_request_body.go @@ -13,7 +13,7 @@ type ItemItemGitCommitsPostRequestBody struct { committer ItemItemGitCommitsPostRequestBody_committerable // The commit message message *string - // The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. + // The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. parents []string // The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits. signature *string @@ -124,7 +124,7 @@ func (m *ItemItemGitCommitsPostRequestBody) GetFieldDeserializers()(map[string]f func (m *ItemItemGitCommitsPostRequestBody) GetMessage()(*string) { return m.message } -// GetParents gets the parents property value. The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. +// GetParents gets the parents property value. The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. // returns a []string when successful func (m *ItemItemGitCommitsPostRequestBody) GetParents()([]string) { return m.parents @@ -201,7 +201,7 @@ func (m *ItemItemGitCommitsPostRequestBody) SetCommitter(value ItemItemGitCommit func (m *ItemItemGitCommitsPostRequestBody) SetMessage(value *string)() { m.message = value } -// SetParents sets the parents property value. The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. +// SetParents sets the parents property value. The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. func (m *ItemItemGitCommitsPostRequestBody) SetParents(value []string)() { m.parents = value } diff --git a/pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_response.go b/pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_response.go deleted file mode 100644 index e663029c..00000000 --- a/pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemHooksItemDeliveriesItemAttemptsResponse -// Deprecated: This class is obsolete. Use attemptsPostResponse instead. -type ItemItemHooksItemDeliveriesItemAttemptsResponse struct { - ItemItemHooksItemDeliveriesItemAttemptsPostResponse -} -// NewItemItemHooksItemDeliveriesItemAttemptsResponse instantiates a new ItemItemHooksItemDeliveriesItemAttemptsResponse and sets the default values. -func NewItemItemHooksItemDeliveriesItemAttemptsResponse()(*ItemItemHooksItemDeliveriesItemAttemptsResponse) { - m := &ItemItemHooksItemDeliveriesItemAttemptsResponse{ - ItemItemHooksItemDeliveriesItemAttemptsPostResponse: *NewItemItemHooksItemDeliveriesItemAttemptsPostResponse(), - } - return m -} -// CreateItemItemHooksItemDeliveriesItemAttemptsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemHooksItemDeliveriesItemAttemptsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemHooksItemDeliveriesItemAttemptsResponse(), nil -} -// ItemItemHooksItemDeliveriesItemAttemptsResponseable -// Deprecated: This class is obsolete. Use attemptsPostResponse instead. -type ItemItemHooksItemDeliveriesItemAttemptsResponseable interface { - ItemItemHooksItemDeliveriesItemAttemptsPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_hooks_item_with_hook_patch_request_body_config.go b/pkg/github/repos/item_item_hooks_item_with_hook_patch_request_body_config.go deleted file mode 100644 index d1e9ba3f..00000000 --- a/pkg/github/repos/item_item_hooks_item_with_hook_patch_request_body_config.go +++ /dev/null @@ -1,219 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemItemHooksItemWithHook_PatchRequestBody_config key/value pairs to provide settings for this webhook. -type ItemItemHooksItemWithHook_PatchRequestBody_config struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The address property - address *string - // The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. - content_type *string - // The insecure_ssl property - insecure_ssl i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable - // The room property - room *string - // If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). - secret *string - // The URL to which the payloads will be delivered. - url *string -} -// NewItemItemHooksItemWithHook_PatchRequestBody_config instantiates a new ItemItemHooksItemWithHook_PatchRequestBody_config and sets the default values. -func NewItemItemHooksItemWithHook_PatchRequestBody_config()(*ItemItemHooksItemWithHook_PatchRequestBody_config) { - m := &ItemItemHooksItemWithHook_PatchRequestBody_config{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemHooksItemWithHook_PatchRequestBody_configFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemHooksItemWithHook_PatchRequestBody_configFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemHooksItemWithHook_PatchRequestBody_config(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAddress gets the address property value. The address property -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetAddress()(*string) { - return m.address -} -// GetContentType gets the content_type property value. The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetContentType()(*string) { - return m.content_type -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAddress(val) - } - return nil - } - res["content_type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContentType(val) - } - return nil - } - res["insecure_ssl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateWebhookConfigInsecureSslFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInsecureSsl(val.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable)) - } - return nil - } - res["room"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetRoom(val) - } - return nil - } - res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSecret(val) - } - return nil - } - res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUrl(val) - } - return nil - } - return res -} -// GetInsecureSsl gets the insecure_ssl property value. The insecure_ssl property -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetInsecureSsl()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable) { - return m.insecure_ssl -} -// GetRoom gets the room property value. The room property -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetRoom()(*string) { - return m.room -} -// GetSecret gets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetSecret()(*string) { - return m.secret -} -// GetUrl gets the url property value. The URL to which the payloads will be delivered. -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) GetUrl()(*string) { - return m.url -} -// Serialize serializes information the current object -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("address", m.GetAddress()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("content_type", m.GetContentType()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("insecure_ssl", m.GetInsecureSsl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("room", m.GetRoom()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("secret", m.GetSecret()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("url", m.GetUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAddress sets the address property value. The address property -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) SetAddress(value *string)() { - m.address = value -} -// SetContentType sets the content_type property value. The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) SetContentType(value *string)() { - m.content_type = value -} -// SetInsecureSsl sets the insecure_ssl property value. The insecure_ssl property -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) SetInsecureSsl(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable)() { - m.insecure_ssl = value -} -// SetRoom sets the room property value. The room property -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) SetRoom(value *string)() { - m.room = value -} -// SetSecret sets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) SetSecret(value *string)() { - m.secret = value -} -// SetUrl sets the url property value. The URL to which the payloads will be delivered. -func (m *ItemItemHooksItemWithHook_PatchRequestBody_config) SetUrl(value *string)() { - m.url = value -} -// ItemItemHooksItemWithHook_PatchRequestBody_configable -type ItemItemHooksItemWithHook_PatchRequestBody_configable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAddress()(*string) - GetContentType()(*string) - GetInsecureSsl()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable) - GetRoom()(*string) - GetSecret()(*string) - GetUrl()(*string) - SetAddress(value *string)() - SetContentType(value *string)() - SetInsecureSsl(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable)() - SetRoom(value *string)() - SetSecret(value *string)() - SetUrl(value *string)() -} diff --git a/pkg/github/repos/item_item_interaction_limits_get_response_member1.go b/pkg/github/repos/item_item_interaction_limits_get_response_member1.go deleted file mode 100644 index c244505a..00000000 --- a/pkg/github/repos/item_item_interaction_limits_get_response_member1.go +++ /dev/null @@ -1,32 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemInteractionLimitsGetResponseMember1 -type ItemItemInteractionLimitsGetResponseMember1 struct { -} -// NewItemItemInteractionLimitsGetResponseMember1 instantiates a new ItemItemInteractionLimitsGetResponseMember1 and sets the default values. -func NewItemItemInteractionLimitsGetResponseMember1()(*ItemItemInteractionLimitsGetResponseMember1) { - m := &ItemItemInteractionLimitsGetResponseMember1{ - } - return m -} -// CreateItemItemInteractionLimitsGetResponseMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemInteractionLimitsGetResponseMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemInteractionLimitsGetResponseMember1(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemInteractionLimitsGetResponseMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - return res -} -// Serialize serializes information the current object -func (m *ItemItemInteractionLimitsGetResponseMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - return nil -} -// ItemItemInteractionLimitsGetResponseMember1able -type ItemItemInteractionLimitsGetResponseMember1able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_notifications_response.go b/pkg/github/repos/item_item_notifications_response.go deleted file mode 100644 index d5434357..00000000 --- a/pkg/github/repos/item_item_notifications_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemNotificationsResponse -// Deprecated: This class is obsolete. Use notificationsPutResponse instead. -type ItemItemNotificationsResponse struct { - ItemItemNotificationsPutResponse -} -// NewItemItemNotificationsResponse instantiates a new ItemItemNotificationsResponse and sets the default values. -func NewItemItemNotificationsResponse()(*ItemItemNotificationsResponse) { - m := &ItemItemNotificationsResponse{ - ItemItemNotificationsPutResponse: *NewItemItemNotificationsPutResponse(), - } - return m -} -// CreateItemItemNotificationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemNotificationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemNotificationsResponse(), nil -} -// ItemItemNotificationsResponseable -// Deprecated: This class is obsolete. Use notificationsPutResponse instead. -type ItemItemNotificationsResponseable interface { - ItemItemNotificationsPutResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_owner403_error.go b/pkg/github/repos/item_item_owner403_error.go deleted file mode 100644 index 95f5e5d1..00000000 --- a/pkg/github/repos/item_item_owner403_error.go +++ /dev/null @@ -1,117 +0,0 @@ -package repos - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type ItemItemOwner403Error struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The documentation_url property - documentation_url *string - // The message property - message *string -} -// NewItemItemOwner403Error instantiates a new ItemItemOwner403Error and sets the default values. -func NewItemItemOwner403Error()(*ItemItemOwner403Error) { - m := &ItemItemOwner403Error{ - ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemOwner403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemItemOwner403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemOwner403Error(), nil -} -// Error the primary error message. -// returns a string when successful -func (m *ItemItemOwner403Error) Error()(string) { - return m.ApiError.Error() -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemItemOwner403Error) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetDocumentationUrl gets the documentation_url property value. The documentation_url property -// returns a *string when successful -func (m *ItemItemOwner403Error) GetDocumentationUrl()(*string) { - return m.documentation_url -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemItemOwner403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["documentation_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDocumentationUrl(val) - } - return nil - } - res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMessage(val) - } - return nil - } - return res -} -// GetMessage gets the message property value. The message property -// returns a *string when successful -func (m *ItemItemOwner403Error) GetMessage()(*string) { - return m.message -} -// Serialize serializes information the current object -func (m *ItemItemOwner403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("documentation_url", m.GetDocumentationUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("message", m.GetMessage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemOwner403Error) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetDocumentationUrl sets the documentation_url property value. The documentation_url property -func (m *ItemItemOwner403Error) SetDocumentationUrl(value *string)() { - m.documentation_url = value -} -// SetMessage sets the message property value. The message property -func (m *ItemItemOwner403Error) SetMessage(value *string)() { - m.message = value -} -type ItemItemOwner403Errorable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDocumentationUrl()(*string) - GetMessage()(*string) - SetDocumentationUrl(value *string)() - SetMessage(value *string)() -} diff --git a/pkg/github/repos/item_item_owner_patch_request_body.go b/pkg/github/repos/item_item_owner_patch_request_body.go deleted file mode 100644 index 030f0655..00000000 --- a/pkg/github/repos/item_item_owner_patch_request_body.go +++ /dev/null @@ -1,634 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type ItemItemOwnerPatchRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. - allow_auto_merge *bool - // Either `true` to allow private forks, or `false` to prevent private forks. - allow_forking *bool - // Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - allow_merge_commit *bool - // Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - allow_rebase_merge *bool - // Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - allow_squash_merge *bool - // Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. - allow_update_branch *bool - // Whether to archive this repository. `false` will unarchive a previously archived repository. - archived *bool - // Updates the default branch for this repository. - default_branch *string - // Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - delete_branch_on_merge *bool - // A short description of the repository. - description *string - // Either `true` to enable issues for this repository or `false` to disable them. - has_issues *bool - // Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. - has_projects *bool - // Either `true` to enable the wiki for this repository or `false` to disable it. - has_wiki *bool - // A URL with more information about the repository. - homepage *string - // Either `true` to make this repo available as a template repository or `false` to prevent it. - is_template *bool - // The name of the repository. - name *string - // Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. - private *bool - // Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. - security_and_analysis ItemItemOwnerPatchRequestBody_security_and_analysisable - // Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. - // Deprecated: - use_squash_pr_title_as_default *bool - // Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. - web_commit_signoff_required *bool -} -// NewItemItemOwnerPatchRequestBody instantiates a new ItemItemOwnerPatchRequestBody and sets the default values. -func NewItemItemOwnerPatchRequestBody()(*ItemItemOwnerPatchRequestBody) { - m := &ItemItemOwnerPatchRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemOwnerPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemItemOwnerPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemOwnerPatchRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemItemOwnerPatchRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAllowAutoMerge gets the allow_auto_merge property value. Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetAllowAutoMerge()(*bool) { - return m.allow_auto_merge -} -// GetAllowForking gets the allow_forking property value. Either `true` to allow private forks, or `false` to prevent private forks. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetAllowForking()(*bool) { - return m.allow_forking -} -// GetAllowMergeCommit gets the allow_merge_commit property value. Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetAllowMergeCommit()(*bool) { - return m.allow_merge_commit -} -// GetAllowRebaseMerge gets the allow_rebase_merge property value. Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetAllowRebaseMerge()(*bool) { - return m.allow_rebase_merge -} -// GetAllowSquashMerge gets the allow_squash_merge property value. Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetAllowSquashMerge()(*bool) { - return m.allow_squash_merge -} -// GetAllowUpdateBranch gets the allow_update_branch property value. Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetAllowUpdateBranch()(*bool) { - return m.allow_update_branch -} -// GetArchived gets the archived property value. Whether to archive this repository. `false` will unarchive a previously archived repository. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetArchived()(*bool) { - return m.archived -} -// GetDefaultBranch gets the default_branch property value. Updates the default branch for this repository. -// returns a *string when successful -func (m *ItemItemOwnerPatchRequestBody) GetDefaultBranch()(*string) { - return m.default_branch -} -// GetDeleteBranchOnMerge gets the delete_branch_on_merge property value. Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetDeleteBranchOnMerge()(*bool) { - return m.delete_branch_on_merge -} -// GetDescription gets the description property value. A short description of the repository. -// returns a *string when successful -func (m *ItemItemOwnerPatchRequestBody) GetDescription()(*string) { - return m.description -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemItemOwnerPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allow_auto_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowAutoMerge(val) - } - return nil - } - res["allow_forking"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowForking(val) - } - return nil - } - res["allow_merge_commit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowMergeCommit(val) - } - return nil - } - res["allow_rebase_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowRebaseMerge(val) - } - return nil - } - res["allow_squash_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowSquashMerge(val) - } - return nil - } - res["allow_update_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowUpdateBranch(val) - } - return nil - } - res["archived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetArchived(val) - } - return nil - } - res["default_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDefaultBranch(val) - } - return nil - } - res["delete_branch_on_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetDeleteBranchOnMerge(val) - } - return nil - } - res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDescription(val) - } - return nil - } - res["has_issues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasIssues(val) - } - return nil - } - res["has_projects"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasProjects(val) - } - return nil - } - res["has_wiki"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasWiki(val) - } - return nil - } - res["homepage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHomepage(val) - } - return nil - } - res["is_template"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetIsTemplate(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["private"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPrivate(val) - } - return nil - } - res["security_and_analysis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemOwnerPatchRequestBody_security_and_analysisFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSecurityAndAnalysis(val.(ItemItemOwnerPatchRequestBody_security_and_analysisable)) - } - return nil - } - res["use_squash_pr_title_as_default"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetUseSquashPrTitleAsDefault(val) - } - return nil - } - res["web_commit_signoff_required"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetWebCommitSignoffRequired(val) - } - return nil - } - return res -} -// GetHasIssues gets the has_issues property value. Either `true` to enable issues for this repository or `false` to disable them. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetHasIssues()(*bool) { - return m.has_issues -} -// GetHasProjects gets the has_projects property value. Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetHasProjects()(*bool) { - return m.has_projects -} -// GetHasWiki gets the has_wiki property value. Either `true` to enable the wiki for this repository or `false` to disable it. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetHasWiki()(*bool) { - return m.has_wiki -} -// GetHomepage gets the homepage property value. A URL with more information about the repository. -// returns a *string when successful -func (m *ItemItemOwnerPatchRequestBody) GetHomepage()(*string) { - return m.homepage -} -// GetIsTemplate gets the is_template property value. Either `true` to make this repo available as a template repository or `false` to prevent it. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetIsTemplate()(*bool) { - return m.is_template -} -// GetName gets the name property value. The name of the repository. -// returns a *string when successful -func (m *ItemItemOwnerPatchRequestBody) GetName()(*string) { - return m.name -} -// GetPrivate gets the private property value. Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetPrivate()(*bool) { - return m.private -} -// GetSecurityAndAnalysis gets the security_and_analysis property value. Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. -// returns a ItemItemOwnerPatchRequestBody_security_and_analysisable when successful -func (m *ItemItemOwnerPatchRequestBody) GetSecurityAndAnalysis()(ItemItemOwnerPatchRequestBody_security_and_analysisable) { - return m.security_and_analysis -} -// GetUseSquashPrTitleAsDefault gets the use_squash_pr_title_as_default property value. Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. -// Deprecated: -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetUseSquashPrTitleAsDefault()(*bool) { - return m.use_squash_pr_title_as_default -} -// GetWebCommitSignoffRequired gets the web_commit_signoff_required property value. Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. -// returns a *bool when successful -func (m *ItemItemOwnerPatchRequestBody) GetWebCommitSignoffRequired()(*bool) { - return m.web_commit_signoff_required -} -// Serialize serializes information the current object -func (m *ItemItemOwnerPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("allow_auto_merge", m.GetAllowAutoMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_forking", m.GetAllowForking()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_merge_commit", m.GetAllowMergeCommit()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_rebase_merge", m.GetAllowRebaseMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_squash_merge", m.GetAllowSquashMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_update_branch", m.GetAllowUpdateBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("archived", m.GetArchived()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("default_branch", m.GetDefaultBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("delete_branch_on_merge", m.GetDeleteBranchOnMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("description", m.GetDescription()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_issues", m.GetHasIssues()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_projects", m.GetHasProjects()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_wiki", m.GetHasWiki()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("homepage", m.GetHomepage()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("is_template", m.GetIsTemplate()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("private", m.GetPrivate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("security_and_analysis", m.GetSecurityAndAnalysis()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("use_squash_pr_title_as_default", m.GetUseSquashPrTitleAsDefault()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("web_commit_signoff_required", m.GetWebCommitSignoffRequired()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemOwnerPatchRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAllowAutoMerge sets the allow_auto_merge property value. Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. -func (m *ItemItemOwnerPatchRequestBody) SetAllowAutoMerge(value *bool)() { - m.allow_auto_merge = value -} -// SetAllowForking sets the allow_forking property value. Either `true` to allow private forks, or `false` to prevent private forks. -func (m *ItemItemOwnerPatchRequestBody) SetAllowForking(value *bool)() { - m.allow_forking = value -} -// SetAllowMergeCommit sets the allow_merge_commit property value. Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. -func (m *ItemItemOwnerPatchRequestBody) SetAllowMergeCommit(value *bool)() { - m.allow_merge_commit = value -} -// SetAllowRebaseMerge sets the allow_rebase_merge property value. Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. -func (m *ItemItemOwnerPatchRequestBody) SetAllowRebaseMerge(value *bool)() { - m.allow_rebase_merge = value -} -// SetAllowSquashMerge sets the allow_squash_merge property value. Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. -func (m *ItemItemOwnerPatchRequestBody) SetAllowSquashMerge(value *bool)() { - m.allow_squash_merge = value -} -// SetAllowUpdateBranch sets the allow_update_branch property value. Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. -func (m *ItemItemOwnerPatchRequestBody) SetAllowUpdateBranch(value *bool)() { - m.allow_update_branch = value -} -// SetArchived sets the archived property value. Whether to archive this repository. `false` will unarchive a previously archived repository. -func (m *ItemItemOwnerPatchRequestBody) SetArchived(value *bool)() { - m.archived = value -} -// SetDefaultBranch sets the default_branch property value. Updates the default branch for this repository. -func (m *ItemItemOwnerPatchRequestBody) SetDefaultBranch(value *string)() { - m.default_branch = value -} -// SetDeleteBranchOnMerge sets the delete_branch_on_merge property value. Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. -func (m *ItemItemOwnerPatchRequestBody) SetDeleteBranchOnMerge(value *bool)() { - m.delete_branch_on_merge = value -} -// SetDescription sets the description property value. A short description of the repository. -func (m *ItemItemOwnerPatchRequestBody) SetDescription(value *string)() { - m.description = value -} -// SetHasIssues sets the has_issues property value. Either `true` to enable issues for this repository or `false` to disable them. -func (m *ItemItemOwnerPatchRequestBody) SetHasIssues(value *bool)() { - m.has_issues = value -} -// SetHasProjects sets the has_projects property value. Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. -func (m *ItemItemOwnerPatchRequestBody) SetHasProjects(value *bool)() { - m.has_projects = value -} -// SetHasWiki sets the has_wiki property value. Either `true` to enable the wiki for this repository or `false` to disable it. -func (m *ItemItemOwnerPatchRequestBody) SetHasWiki(value *bool)() { - m.has_wiki = value -} -// SetHomepage sets the homepage property value. A URL with more information about the repository. -func (m *ItemItemOwnerPatchRequestBody) SetHomepage(value *string)() { - m.homepage = value -} -// SetIsTemplate sets the is_template property value. Either `true` to make this repo available as a template repository or `false` to prevent it. -func (m *ItemItemOwnerPatchRequestBody) SetIsTemplate(value *bool)() { - m.is_template = value -} -// SetName sets the name property value. The name of the repository. -func (m *ItemItemOwnerPatchRequestBody) SetName(value *string)() { - m.name = value -} -// SetPrivate sets the private property value. Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. -func (m *ItemItemOwnerPatchRequestBody) SetPrivate(value *bool)() { - m.private = value -} -// SetSecurityAndAnalysis sets the security_and_analysis property value. Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. -func (m *ItemItemOwnerPatchRequestBody) SetSecurityAndAnalysis(value ItemItemOwnerPatchRequestBody_security_and_analysisable)() { - m.security_and_analysis = value -} -// SetUseSquashPrTitleAsDefault sets the use_squash_pr_title_as_default property value. Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. -// Deprecated: -func (m *ItemItemOwnerPatchRequestBody) SetUseSquashPrTitleAsDefault(value *bool)() { - m.use_squash_pr_title_as_default = value -} -// SetWebCommitSignoffRequired sets the web_commit_signoff_required property value. Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. -func (m *ItemItemOwnerPatchRequestBody) SetWebCommitSignoffRequired(value *bool)() { - m.web_commit_signoff_required = value -} -type ItemItemOwnerPatchRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowAutoMerge()(*bool) - GetAllowForking()(*bool) - GetAllowMergeCommit()(*bool) - GetAllowRebaseMerge()(*bool) - GetAllowSquashMerge()(*bool) - GetAllowUpdateBranch()(*bool) - GetArchived()(*bool) - GetDefaultBranch()(*string) - GetDeleteBranchOnMerge()(*bool) - GetDescription()(*string) - GetHasIssues()(*bool) - GetHasProjects()(*bool) - GetHasWiki()(*bool) - GetHomepage()(*string) - GetIsTemplate()(*bool) - GetName()(*string) - GetPrivate()(*bool) - GetSecurityAndAnalysis()(ItemItemOwnerPatchRequestBody_security_and_analysisable) - GetUseSquashPrTitleAsDefault()(*bool) - GetWebCommitSignoffRequired()(*bool) - SetAllowAutoMerge(value *bool)() - SetAllowForking(value *bool)() - SetAllowMergeCommit(value *bool)() - SetAllowRebaseMerge(value *bool)() - SetAllowSquashMerge(value *bool)() - SetAllowUpdateBranch(value *bool)() - SetArchived(value *bool)() - SetDefaultBranch(value *string)() - SetDeleteBranchOnMerge(value *bool)() - SetDescription(value *string)() - SetHasIssues(value *bool)() - SetHasProjects(value *bool)() - SetHasWiki(value *bool)() - SetHomepage(value *string)() - SetIsTemplate(value *bool)() - SetName(value *string)() - SetPrivate(value *bool)() - SetSecurityAndAnalysis(value ItemItemOwnerPatchRequestBody_security_and_analysisable)() - SetUseSquashPrTitleAsDefault(value *bool)() - SetWebCommitSignoffRequired(value *bool)() -} diff --git a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis.go b/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis.go deleted file mode 100644 index a3fa50dd..00000000 --- a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis.go +++ /dev/null @@ -1,139 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemOwnerPatchRequestBody_security_and_analysis specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. -type ItemItemOwnerPatchRequestBody_security_and_analysis struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." - advanced_security ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable - // Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." - secret_scanning ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable - // Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." - secret_scanning_push_protection ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable -} -// NewItemItemOwnerPatchRequestBody_security_and_analysis instantiates a new ItemItemOwnerPatchRequestBody_security_and_analysis and sets the default values. -func NewItemItemOwnerPatchRequestBody_security_and_analysis()(*ItemItemOwnerPatchRequestBody_security_and_analysis) { - m := &ItemItemOwnerPatchRequestBody_security_and_analysis{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemOwnerPatchRequestBody_security_and_analysisFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemItemOwnerPatchRequestBody_security_and_analysisFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemOwnerPatchRequestBody_security_and_analysis(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAdvancedSecurity gets the advanced_security property value. Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." -// returns a ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) GetAdvancedSecurity()(ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable) { - return m.advanced_security -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["advanced_security"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAdvancedSecurity(val.(ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable)) - } - return nil - } - res["secret_scanning"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSecretScanning(val.(ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable)) - } - return nil - } - res["secret_scanning_push_protection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSecretScanningPushProtection(val.(ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)) - } - return nil - } - return res -} -// GetSecretScanning gets the secret_scanning property value. Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." -// returns a ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) GetSecretScanning()(ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable) { - return m.secret_scanning -} -// GetSecretScanningPushProtection gets the secret_scanning_push_protection property value. Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." -// returns a ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) GetSecretScanningPushProtection()(ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable) { - return m.secret_scanning_push_protection -} -// Serialize serializes information the current object -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("advanced_security", m.GetAdvancedSecurity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("secret_scanning", m.GetSecretScanning()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("secret_scanning_push_protection", m.GetSecretScanningPushProtection()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAdvancedSecurity sets the advanced_security property value. Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) SetAdvancedSecurity(value ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable)() { - m.advanced_security = value -} -// SetSecretScanning sets the secret_scanning property value. Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) SetSecretScanning(value ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable)() { - m.secret_scanning = value -} -// SetSecretScanningPushProtection sets the secret_scanning_push_protection property value. Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis) SetSecretScanningPushProtection(value ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)() { - m.secret_scanning_push_protection = value -} -type ItemItemOwnerPatchRequestBody_security_and_analysisable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdvancedSecurity()(ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable) - GetSecretScanning()(ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable) - GetSecretScanningPushProtection()(ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable) - SetAdvancedSecurity(value ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable)() - SetSecretScanning(value ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable)() - SetSecretScanningPushProtection(value ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)() -} diff --git a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_advanced_security.go b/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_advanced_security.go deleted file mode 100644 index 2b6ace09..00000000 --- a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_advanced_security.go +++ /dev/null @@ -1,81 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." -type ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Can be `enabled` or `disabled`. - status *string -} -// NewItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security instantiates a new ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security and sets the default values. -func NewItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security()(*ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security) { - m := &ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatus(val) - } - return nil - } - return res -} -// GetStatus gets the status property value. Can be `enabled` or `disabled`. -// returns a *string when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security) GetStatus()(*string) { - return m.status -} -// Serialize serializes information the current object -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("status", m.GetStatus()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetStatus sets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_security) SetStatus(value *string)() { - m.status = value -} -type ItemItemOwnerPatchRequestBody_security_and_analysis_advanced_securityable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetStatus()(*string) - SetStatus(value *string)() -} diff --git a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning.go b/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning.go deleted file mode 100644 index ea6d88ca..00000000 --- a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning.go +++ /dev/null @@ -1,81 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." -type ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Can be `enabled` or `disabled`. - status *string -} -// NewItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning instantiates a new ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning and sets the default values. -func NewItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning()(*ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning) { - m := &ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatus(val) - } - return nil - } - return res -} -// GetStatus gets the status property value. Can be `enabled` or `disabled`. -// returns a *string when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning) GetStatus()(*string) { - return m.status -} -// Serialize serializes information the current object -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("status", m.GetStatus()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetStatus sets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning) SetStatus(value *string)() { - m.status = value -} -type ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanningable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetStatus()(*string) - SetStatus(value *string)() -} diff --git a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning_push_protection.go b/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning_push_protection.go deleted file mode 100644 index 1211e784..00000000 --- a/pkg/github/repos/item_item_owner_patch_request_body_security_and_analysis_secret_scanning_push_protection.go +++ /dev/null @@ -1,81 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." -type ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Can be `enabled` or `disabled`. - status *string -} -// NewItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection instantiates a new ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection and sets the default values. -func NewItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection()(*ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection) { - m := &ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatus(val) - } - return nil - } - return res -} -// GetStatus gets the status property value. Can be `enabled` or `disabled`. -// returns a *string when successful -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetStatus()(*string) { - return m.status -} -// Serialize serializes information the current object -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("status", m.GetStatus()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetStatus sets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protection) SetStatus(value *string)() { - m.status = value -} -type ItemItemOwnerPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetStatus()(*string) - SetStatus(value *string)() -} diff --git a/pkg/github/repos/item_item_pages_deployment_post_request_body.go b/pkg/github/repos/item_item_pages_deployment_post_request_body.go deleted file mode 100644 index f0ea72e2..00000000 --- a/pkg/github/repos/item_item_pages_deployment_post_request_body.go +++ /dev/null @@ -1,166 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemPagesDeploymentPostRequestBody the object used to create GitHub Pages deployment -type ItemItemPagesDeploymentPostRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. - artifact_url *string - // The target environment for this GitHub Pages deployment. - environment *string - // The OIDC token issued by GitHub Actions certifying the origin of the deployment. - oidc_token *string - // A unique string that represents the version of the build for this deployment. - pages_build_version *string -} -// NewItemItemPagesDeploymentPostRequestBody instantiates a new ItemItemPagesDeploymentPostRequestBody and sets the default values. -func NewItemItemPagesDeploymentPostRequestBody()(*ItemItemPagesDeploymentPostRequestBody) { - m := &ItemItemPagesDeploymentPostRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - environmentValue := "github-pages" - m.SetEnvironment(&environmentValue) - pages_build_versionValue := "GITHUB_SHA" - m.SetPagesBuildVersion(&pages_build_versionValue) - return m -} -// CreateItemItemPagesDeploymentPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemPagesDeploymentPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemPagesDeploymentPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemPagesDeploymentPostRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetArtifactUrl gets the artifact_url property value. The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. -func (m *ItemItemPagesDeploymentPostRequestBody) GetArtifactUrl()(*string) { - return m.artifact_url -} -// GetEnvironment gets the environment property value. The target environment for this GitHub Pages deployment. -func (m *ItemItemPagesDeploymentPostRequestBody) GetEnvironment()(*string) { - return m.environment -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemPagesDeploymentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["artifact_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetArtifactUrl(val) - } - return nil - } - res["environment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEnvironment(val) - } - return nil - } - res["oidc_token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOidcToken(val) - } - return nil - } - res["pages_build_version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPagesBuildVersion(val) - } - return nil - } - return res -} -// GetOidcToken gets the oidc_token property value. The OIDC token issued by GitHub Actions certifying the origin of the deployment. -func (m *ItemItemPagesDeploymentPostRequestBody) GetOidcToken()(*string) { - return m.oidc_token -} -// GetPagesBuildVersion gets the pages_build_version property value. A unique string that represents the version of the build for this deployment. -func (m *ItemItemPagesDeploymentPostRequestBody) GetPagesBuildVersion()(*string) { - return m.pages_build_version -} -// Serialize serializes information the current object -func (m *ItemItemPagesDeploymentPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("artifact_url", m.GetArtifactUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("environment", m.GetEnvironment()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("oidc_token", m.GetOidcToken()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("pages_build_version", m.GetPagesBuildVersion()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemPagesDeploymentPostRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetArtifactUrl sets the artifact_url property value. The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. -func (m *ItemItemPagesDeploymentPostRequestBody) SetArtifactUrl(value *string)() { - m.artifact_url = value -} -// SetEnvironment sets the environment property value. The target environment for this GitHub Pages deployment. -func (m *ItemItemPagesDeploymentPostRequestBody) SetEnvironment(value *string)() { - m.environment = value -} -// SetOidcToken sets the oidc_token property value. The OIDC token issued by GitHub Actions certifying the origin of the deployment. -func (m *ItemItemPagesDeploymentPostRequestBody) SetOidcToken(value *string)() { - m.oidc_token = value -} -// SetPagesBuildVersion sets the pages_build_version property value. A unique string that represents the version of the build for this deployment. -func (m *ItemItemPagesDeploymentPostRequestBody) SetPagesBuildVersion(value *string)() { - m.pages_build_version = value -} -// ItemItemPagesDeploymentPostRequestBodyable -type ItemItemPagesDeploymentPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArtifactUrl()(*string) - GetEnvironment()(*string) - GetOidcToken()(*string) - GetPagesBuildVersion()(*string) - SetArtifactUrl(value *string)() - SetEnvironment(value *string)() - SetOidcToken(value *string)() - SetPagesBuildVersion(value *string)() -} diff --git a/pkg/github/repos/item_item_pages_deployment_request_builder.go b/pkg/github/repos/item_item_pages_deployment_request_builder.go deleted file mode 100644 index 4ae49d3b..00000000 --- a/pkg/github/repos/item_item_pages_deployment_request_builder.go +++ /dev/null @@ -1,63 +0,0 @@ -package repos - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemItemPagesDeploymentRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\deployment -type ItemItemPagesDeploymentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemItemPagesDeploymentRequestBuilderInternal instantiates a new DeploymentRequestBuilder and sets the default values. -func NewItemItemPagesDeploymentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesDeploymentRequestBuilder) { - m := &ItemItemPagesDeploymentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/deployment", pathParameters), - } - return m -} -// NewItemItemPagesDeploymentRequestBuilder instantiates a new DeploymentRequestBuilder and sets the default values. -func NewItemItemPagesDeploymentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesDeploymentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemItemPagesDeploymentRequestBuilderInternal(urlParams, requestAdapter) -} -// Post create a GitHub Pages deployment for a repository.Users must have write permissions. GitHub Apps must have the `pages:write` permission to use this endpoint. -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/pages/pages#create-a-github-pages-deployment -func (m *ItemItemPagesDeploymentRequestBuilder) Post(ctx context.Context, body ItemItemPagesDeploymentPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PageDeploymentable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "400": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreatePageDeploymentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PageDeploymentable), nil -} -// ToPostRequestInformation create a GitHub Pages deployment for a repository.Users must have write permissions. GitHub Apps must have the `pages:write` permission to use this endpoint. -func (m *ItemItemPagesDeploymentRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemPagesDeploymentPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -func (m *ItemItemPagesDeploymentRequestBuilder) WithUrl(rawUrl string)(*ItemItemPagesDeploymentRequestBuilder) { - return NewItemItemPagesDeploymentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repos/item_item_pulls_item_update_branch_response.go b/pkg/github/repos/item_item_pulls_item_update_branch_response.go deleted file mode 100644 index 061a3286..00000000 --- a/pkg/github/repos/item_item_pulls_item_update_branch_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemPullsItemUpdateBranchResponse -// Deprecated: This class is obsolete. Use updateBranchPutResponse instead. -type ItemItemPullsItemUpdateBranchResponse struct { - ItemItemPullsItemUpdateBranchPutResponse -} -// NewItemItemPullsItemUpdateBranchResponse instantiates a new ItemItemPullsItemUpdateBranchResponse and sets the default values. -func NewItemItemPullsItemUpdateBranchResponse()(*ItemItemPullsItemUpdateBranchResponse) { - m := &ItemItemPullsItemUpdateBranchResponse{ - ItemItemPullsItemUpdateBranchPutResponse: *NewItemItemPullsItemUpdateBranchPutResponse(), - } - return m -} -// CreateItemItemPullsItemUpdateBranchResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemPullsItemUpdateBranchResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemPullsItemUpdateBranchResponse(), nil -} -// ItemItemPullsItemUpdateBranchResponseable -// Deprecated: This class is obsolete. Use updateBranchPutResponse instead. -type ItemItemPullsItemUpdateBranchResponseable interface { - ItemItemPullsItemUpdateBranchPutResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go b/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go index 10adbfda..f2c2072a 100644 --- a/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go +++ b/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go @@ -20,7 +20,7 @@ type ItemItemRulesetsRuleSuitesRequestBuilderGetQueryParameters struct { Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` - // The name of the ref. Cannot contain wildcard characters. When specified, only rule evaluations triggered for this ref will be returned. + // The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. Ref *string `uriparametername:"ref"` // The rule results to filter on. When specified, only suites with this result will be returned. Rule_suite_result *i49541909782daeed2b70c270599a2d0c588ee37e976ebe46c3c799c2e46d3043.GetRule_suite_resultQueryParameterType `uriparametername:"rule_suite_result"` diff --git a/pkg/github/repos/item_item_security_advisories_item_cve_response.go b/pkg/github/repos/item_item_security_advisories_item_cve_response.go deleted file mode 100644 index d44226c4..00000000 --- a/pkg/github/repos/item_item_security_advisories_item_cve_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemSecurityAdvisoriesItemCveResponse -// Deprecated: This class is obsolete. Use cvePostResponse instead. -type ItemItemSecurityAdvisoriesItemCveResponse struct { - ItemItemSecurityAdvisoriesItemCvePostResponse -} -// NewItemItemSecurityAdvisoriesItemCveResponse instantiates a new ItemItemSecurityAdvisoriesItemCveResponse and sets the default values. -func NewItemItemSecurityAdvisoriesItemCveResponse()(*ItemItemSecurityAdvisoriesItemCveResponse) { - m := &ItemItemSecurityAdvisoriesItemCveResponse{ - ItemItemSecurityAdvisoriesItemCvePostResponse: *NewItemItemSecurityAdvisoriesItemCvePostResponse(), - } - return m -} -// CreateItemItemSecurityAdvisoriesItemCveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemSecurityAdvisoriesItemCveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemSecurityAdvisoriesItemCveResponse(), nil -} -// ItemItemSecurityAdvisoriesItemCveResponseable -// Deprecated: This class is obsolete. Use cvePostResponse instead. -type ItemItemSecurityAdvisoriesItemCveResponseable interface { - ItemItemSecurityAdvisoriesItemCvePostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repos/item_item_with_repo403_error.go b/pkg/github/repos/item_item_with_repo403_error.go deleted file mode 100644 index f243f115..00000000 --- a/pkg/github/repos/item_item_with_repo403_error.go +++ /dev/null @@ -1,113 +0,0 @@ -package repos - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemWithRepo403Error -type ItemItemWithRepo403Error struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The documentation_url property - documentation_url *string - // The message property - message *string -} -// NewItemItemWithRepo403Error instantiates a new ItemItemWithRepo403Error and sets the default values. -func NewItemItemWithRepo403Error()(*ItemItemWithRepo403Error) { - m := &ItemItemWithRepo403Error{ - ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemWithRepo403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemWithRepo403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemWithRepo403Error(), nil -} -// Error the primary error message. -func (m *ItemItemWithRepo403Error) Error()(string) { - return m.ApiError.Error() -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepo403Error) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetDocumentationUrl gets the documentation_url property value. The documentation_url property -func (m *ItemItemWithRepo403Error) GetDocumentationUrl()(*string) { - return m.documentation_url -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemWithRepo403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["documentation_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDocumentationUrl(val) - } - return nil - } - res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMessage(val) - } - return nil - } - return res -} -// GetMessage gets the message property value. The message property -func (m *ItemItemWithRepo403Error) GetMessage()(*string) { - return m.message -} -// Serialize serializes information the current object -func (m *ItemItemWithRepo403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("documentation_url", m.GetDocumentationUrl()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("message", m.GetMessage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepo403Error) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetDocumentationUrl sets the documentation_url property value. The documentation_url property -func (m *ItemItemWithRepo403Error) SetDocumentationUrl(value *string)() { - m.documentation_url = value -} -// SetMessage sets the message property value. The message property -func (m *ItemItemWithRepo403Error) SetMessage(value *string)() { - m.message = value -} -// ItemItemWithRepo403Errorable -type ItemItemWithRepo403Errorable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDocumentationUrl()(*string) - GetMessage()(*string) - SetDocumentationUrl(value *string)() - SetMessage(value *string)() -} diff --git a/pkg/github/repos/item_item_with_repo_patch_request_body.go b/pkg/github/repos/item_item_with_repo_patch_request_body.go deleted file mode 100644 index 7d49aaa9..00000000 --- a/pkg/github/repos/item_item_with_repo_patch_request_body.go +++ /dev/null @@ -1,613 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemWithRepoPatchRequestBody -type ItemItemWithRepoPatchRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. - allow_auto_merge *bool - // Either `true` to allow private forks, or `false` to prevent private forks. - allow_forking *bool - // Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - allow_merge_commit *bool - // Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - allow_rebase_merge *bool - // Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - allow_squash_merge *bool - // Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. - allow_update_branch *bool - // Whether to archive this repository. `false` will unarchive a previously archived repository. - archived *bool - // Updates the default branch for this repository. - default_branch *string - // Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - delete_branch_on_merge *bool - // A short description of the repository. - description *string - // Either `true` to enable issues for this repository or `false` to disable them. - has_issues *bool - // Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. - has_projects *bool - // Either `true` to enable the wiki for this repository or `false` to disable it. - has_wiki *bool - // A URL with more information about the repository. - homepage *string - // Either `true` to make this repo available as a template repository or `false` to prevent it. - is_template *bool - // The name of the repository. - name *string - // Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. - private *bool - // Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. - security_and_analysis ItemItemWithRepoPatchRequestBody_security_and_analysisable - // Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. - // Deprecated: - use_squash_pr_title_as_default *bool - // Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. - web_commit_signoff_required *bool -} -// NewItemItemWithRepoPatchRequestBody instantiates a new ItemItemWithRepoPatchRequestBody and sets the default values. -func NewItemItemWithRepoPatchRequestBody()(*ItemItemWithRepoPatchRequestBody) { - m := &ItemItemWithRepoPatchRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemWithRepoPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemWithRepoPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemWithRepoPatchRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAllowAutoMerge gets the allow_auto_merge property value. Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. -func (m *ItemItemWithRepoPatchRequestBody) GetAllowAutoMerge()(*bool) { - return m.allow_auto_merge -} -// GetAllowForking gets the allow_forking property value. Either `true` to allow private forks, or `false` to prevent private forks. -func (m *ItemItemWithRepoPatchRequestBody) GetAllowForking()(*bool) { - return m.allow_forking -} -// GetAllowMergeCommit gets the allow_merge_commit property value. Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. -func (m *ItemItemWithRepoPatchRequestBody) GetAllowMergeCommit()(*bool) { - return m.allow_merge_commit -} -// GetAllowRebaseMerge gets the allow_rebase_merge property value. Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. -func (m *ItemItemWithRepoPatchRequestBody) GetAllowRebaseMerge()(*bool) { - return m.allow_rebase_merge -} -// GetAllowSquashMerge gets the allow_squash_merge property value. Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. -func (m *ItemItemWithRepoPatchRequestBody) GetAllowSquashMerge()(*bool) { - return m.allow_squash_merge -} -// GetAllowUpdateBranch gets the allow_update_branch property value. Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. -func (m *ItemItemWithRepoPatchRequestBody) GetAllowUpdateBranch()(*bool) { - return m.allow_update_branch -} -// GetArchived gets the archived property value. Whether to archive this repository. `false` will unarchive a previously archived repository. -func (m *ItemItemWithRepoPatchRequestBody) GetArchived()(*bool) { - return m.archived -} -// GetDefaultBranch gets the default_branch property value. Updates the default branch for this repository. -func (m *ItemItemWithRepoPatchRequestBody) GetDefaultBranch()(*string) { - return m.default_branch -} -// GetDeleteBranchOnMerge gets the delete_branch_on_merge property value. Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. -func (m *ItemItemWithRepoPatchRequestBody) GetDeleteBranchOnMerge()(*bool) { - return m.delete_branch_on_merge -} -// GetDescription gets the description property value. A short description of the repository. -func (m *ItemItemWithRepoPatchRequestBody) GetDescription()(*string) { - return m.description -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemWithRepoPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allow_auto_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowAutoMerge(val) - } - return nil - } - res["allow_forking"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowForking(val) - } - return nil - } - res["allow_merge_commit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowMergeCommit(val) - } - return nil - } - res["allow_rebase_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowRebaseMerge(val) - } - return nil - } - res["allow_squash_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowSquashMerge(val) - } - return nil - } - res["allow_update_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetAllowUpdateBranch(val) - } - return nil - } - res["archived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetArchived(val) - } - return nil - } - res["default_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDefaultBranch(val) - } - return nil - } - res["delete_branch_on_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetDeleteBranchOnMerge(val) - } - return nil - } - res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDescription(val) - } - return nil - } - res["has_issues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasIssues(val) - } - return nil - } - res["has_projects"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasProjects(val) - } - return nil - } - res["has_wiki"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasWiki(val) - } - return nil - } - res["homepage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetHomepage(val) - } - return nil - } - res["is_template"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetIsTemplate(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["private"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPrivate(val) - } - return nil - } - res["security_and_analysis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemWithRepoPatchRequestBody_security_and_analysisFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSecurityAndAnalysis(val.(ItemItemWithRepoPatchRequestBody_security_and_analysisable)) - } - return nil - } - res["use_squash_pr_title_as_default"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetUseSquashPrTitleAsDefault(val) - } - return nil - } - res["web_commit_signoff_required"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetWebCommitSignoffRequired(val) - } - return nil - } - return res -} -// GetHasIssues gets the has_issues property value. Either `true` to enable issues for this repository or `false` to disable them. -func (m *ItemItemWithRepoPatchRequestBody) GetHasIssues()(*bool) { - return m.has_issues -} -// GetHasProjects gets the has_projects property value. Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. -func (m *ItemItemWithRepoPatchRequestBody) GetHasProjects()(*bool) { - return m.has_projects -} -// GetHasWiki gets the has_wiki property value. Either `true` to enable the wiki for this repository or `false` to disable it. -func (m *ItemItemWithRepoPatchRequestBody) GetHasWiki()(*bool) { - return m.has_wiki -} -// GetHomepage gets the homepage property value. A URL with more information about the repository. -func (m *ItemItemWithRepoPatchRequestBody) GetHomepage()(*string) { - return m.homepage -} -// GetIsTemplate gets the is_template property value. Either `true` to make this repo available as a template repository or `false` to prevent it. -func (m *ItemItemWithRepoPatchRequestBody) GetIsTemplate()(*bool) { - return m.is_template -} -// GetName gets the name property value. The name of the repository. -func (m *ItemItemWithRepoPatchRequestBody) GetName()(*string) { - return m.name -} -// GetPrivate gets the private property value. Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. -func (m *ItemItemWithRepoPatchRequestBody) GetPrivate()(*bool) { - return m.private -} -// GetSecurityAndAnalysis gets the security_and_analysis property value. Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. -func (m *ItemItemWithRepoPatchRequestBody) GetSecurityAndAnalysis()(ItemItemWithRepoPatchRequestBody_security_and_analysisable) { - return m.security_and_analysis -} -// GetUseSquashPrTitleAsDefault gets the use_squash_pr_title_as_default property value. Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. -// Deprecated: -func (m *ItemItemWithRepoPatchRequestBody) GetUseSquashPrTitleAsDefault()(*bool) { - return m.use_squash_pr_title_as_default -} -// GetWebCommitSignoffRequired gets the web_commit_signoff_required property value. Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. -func (m *ItemItemWithRepoPatchRequestBody) GetWebCommitSignoffRequired()(*bool) { - return m.web_commit_signoff_required -} -// Serialize serializes information the current object -func (m *ItemItemWithRepoPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("allow_auto_merge", m.GetAllowAutoMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_forking", m.GetAllowForking()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_merge_commit", m.GetAllowMergeCommit()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_rebase_merge", m.GetAllowRebaseMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_squash_merge", m.GetAllowSquashMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("allow_update_branch", m.GetAllowUpdateBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("archived", m.GetArchived()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("default_branch", m.GetDefaultBranch()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("delete_branch_on_merge", m.GetDeleteBranchOnMerge()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("description", m.GetDescription()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_issues", m.GetHasIssues()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_projects", m.GetHasProjects()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("has_wiki", m.GetHasWiki()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("homepage", m.GetHomepage()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("is_template", m.GetIsTemplate()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("private", m.GetPrivate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("security_and_analysis", m.GetSecurityAndAnalysis()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("use_squash_pr_title_as_default", m.GetUseSquashPrTitleAsDefault()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("web_commit_signoff_required", m.GetWebCommitSignoffRequired()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAllowAutoMerge sets the allow_auto_merge property value. Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. -func (m *ItemItemWithRepoPatchRequestBody) SetAllowAutoMerge(value *bool)() { - m.allow_auto_merge = value -} -// SetAllowForking sets the allow_forking property value. Either `true` to allow private forks, or `false` to prevent private forks. -func (m *ItemItemWithRepoPatchRequestBody) SetAllowForking(value *bool)() { - m.allow_forking = value -} -// SetAllowMergeCommit sets the allow_merge_commit property value. Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. -func (m *ItemItemWithRepoPatchRequestBody) SetAllowMergeCommit(value *bool)() { - m.allow_merge_commit = value -} -// SetAllowRebaseMerge sets the allow_rebase_merge property value. Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. -func (m *ItemItemWithRepoPatchRequestBody) SetAllowRebaseMerge(value *bool)() { - m.allow_rebase_merge = value -} -// SetAllowSquashMerge sets the allow_squash_merge property value. Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. -func (m *ItemItemWithRepoPatchRequestBody) SetAllowSquashMerge(value *bool)() { - m.allow_squash_merge = value -} -// SetAllowUpdateBranch sets the allow_update_branch property value. Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. -func (m *ItemItemWithRepoPatchRequestBody) SetAllowUpdateBranch(value *bool)() { - m.allow_update_branch = value -} -// SetArchived sets the archived property value. Whether to archive this repository. `false` will unarchive a previously archived repository. -func (m *ItemItemWithRepoPatchRequestBody) SetArchived(value *bool)() { - m.archived = value -} -// SetDefaultBranch sets the default_branch property value. Updates the default branch for this repository. -func (m *ItemItemWithRepoPatchRequestBody) SetDefaultBranch(value *string)() { - m.default_branch = value -} -// SetDeleteBranchOnMerge sets the delete_branch_on_merge property value. Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. -func (m *ItemItemWithRepoPatchRequestBody) SetDeleteBranchOnMerge(value *bool)() { - m.delete_branch_on_merge = value -} -// SetDescription sets the description property value. A short description of the repository. -func (m *ItemItemWithRepoPatchRequestBody) SetDescription(value *string)() { - m.description = value -} -// SetHasIssues sets the has_issues property value. Either `true` to enable issues for this repository or `false` to disable them. -func (m *ItemItemWithRepoPatchRequestBody) SetHasIssues(value *bool)() { - m.has_issues = value -} -// SetHasProjects sets the has_projects property value. Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. -func (m *ItemItemWithRepoPatchRequestBody) SetHasProjects(value *bool)() { - m.has_projects = value -} -// SetHasWiki sets the has_wiki property value. Either `true` to enable the wiki for this repository or `false` to disable it. -func (m *ItemItemWithRepoPatchRequestBody) SetHasWiki(value *bool)() { - m.has_wiki = value -} -// SetHomepage sets the homepage property value. A URL with more information about the repository. -func (m *ItemItemWithRepoPatchRequestBody) SetHomepage(value *string)() { - m.homepage = value -} -// SetIsTemplate sets the is_template property value. Either `true` to make this repo available as a template repository or `false` to prevent it. -func (m *ItemItemWithRepoPatchRequestBody) SetIsTemplate(value *bool)() { - m.is_template = value -} -// SetName sets the name property value. The name of the repository. -func (m *ItemItemWithRepoPatchRequestBody) SetName(value *string)() { - m.name = value -} -// SetPrivate sets the private property value. Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. -func (m *ItemItemWithRepoPatchRequestBody) SetPrivate(value *bool)() { - m.private = value -} -// SetSecurityAndAnalysis sets the security_and_analysis property value. Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. -func (m *ItemItemWithRepoPatchRequestBody) SetSecurityAndAnalysis(value ItemItemWithRepoPatchRequestBody_security_and_analysisable)() { - m.security_and_analysis = value -} -// SetUseSquashPrTitleAsDefault sets the use_squash_pr_title_as_default property value. Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. -// Deprecated: -func (m *ItemItemWithRepoPatchRequestBody) SetUseSquashPrTitleAsDefault(value *bool)() { - m.use_squash_pr_title_as_default = value -} -// SetWebCommitSignoffRequired sets the web_commit_signoff_required property value. Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. -func (m *ItemItemWithRepoPatchRequestBody) SetWebCommitSignoffRequired(value *bool)() { - m.web_commit_signoff_required = value -} -// ItemItemWithRepoPatchRequestBodyable -type ItemItemWithRepoPatchRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowAutoMerge()(*bool) - GetAllowForking()(*bool) - GetAllowMergeCommit()(*bool) - GetAllowRebaseMerge()(*bool) - GetAllowSquashMerge()(*bool) - GetAllowUpdateBranch()(*bool) - GetArchived()(*bool) - GetDefaultBranch()(*string) - GetDeleteBranchOnMerge()(*bool) - GetDescription()(*string) - GetHasIssues()(*bool) - GetHasProjects()(*bool) - GetHasWiki()(*bool) - GetHomepage()(*string) - GetIsTemplate()(*bool) - GetName()(*string) - GetPrivate()(*bool) - GetSecurityAndAnalysis()(ItemItemWithRepoPatchRequestBody_security_and_analysisable) - GetUseSquashPrTitleAsDefault()(*bool) - GetWebCommitSignoffRequired()(*bool) - SetAllowAutoMerge(value *bool)() - SetAllowForking(value *bool)() - SetAllowMergeCommit(value *bool)() - SetAllowRebaseMerge(value *bool)() - SetAllowSquashMerge(value *bool)() - SetAllowUpdateBranch(value *bool)() - SetArchived(value *bool)() - SetDefaultBranch(value *string)() - SetDeleteBranchOnMerge(value *bool)() - SetDescription(value *string)() - SetHasIssues(value *bool)() - SetHasProjects(value *bool)() - SetHasWiki(value *bool)() - SetHomepage(value *string)() - SetIsTemplate(value *bool)() - SetName(value *string)() - SetPrivate(value *bool)() - SetSecurityAndAnalysis(value ItemItemWithRepoPatchRequestBody_security_and_analysisable)() - SetUseSquashPrTitleAsDefault(value *bool)() - SetWebCommitSignoffRequired(value *bool)() -} diff --git a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis.go b/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis.go deleted file mode 100644 index a2ae1f26..00000000 --- a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis.go +++ /dev/null @@ -1,134 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemWithRepoPatchRequestBody_security_and_analysis specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. -type ItemItemWithRepoPatchRequestBody_security_and_analysis struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." - advanced_security ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable - // Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." - secret_scanning ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable - // Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." - secret_scanning_push_protection ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable -} -// NewItemItemWithRepoPatchRequestBody_security_and_analysis instantiates a new ItemItemWithRepoPatchRequestBody_security_and_analysis and sets the default values. -func NewItemItemWithRepoPatchRequestBody_security_and_analysis()(*ItemItemWithRepoPatchRequestBody_security_and_analysis) { - m := &ItemItemWithRepoPatchRequestBody_security_and_analysis{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemWithRepoPatchRequestBody_security_and_analysisFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemWithRepoPatchRequestBody_security_and_analysisFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemWithRepoPatchRequestBody_security_and_analysis(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetAdvancedSecurity gets the advanced_security property value. Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) GetAdvancedSecurity()(ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable) { - return m.advanced_security -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["advanced_security"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAdvancedSecurity(val.(ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable)) - } - return nil - } - res["secret_scanning"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSecretScanning(val.(ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable)) - } - return nil - } - res["secret_scanning_push_protection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSecretScanningPushProtection(val.(ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)) - } - return nil - } - return res -} -// GetSecretScanning gets the secret_scanning property value. Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) GetSecretScanning()(ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable) { - return m.secret_scanning -} -// GetSecretScanningPushProtection gets the secret_scanning_push_protection property value. Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) GetSecretScanningPushProtection()(ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable) { - return m.secret_scanning_push_protection -} -// Serialize serializes information the current object -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("advanced_security", m.GetAdvancedSecurity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("secret_scanning", m.GetSecretScanning()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("secret_scanning_push_protection", m.GetSecretScanningPushProtection()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetAdvancedSecurity sets the advanced_security property value. Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) SetAdvancedSecurity(value ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable)() { - m.advanced_security = value -} -// SetSecretScanning sets the secret_scanning property value. Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) SetSecretScanning(value ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable)() { - m.secret_scanning = value -} -// SetSecretScanningPushProtection sets the secret_scanning_push_protection property value. Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis) SetSecretScanningPushProtection(value ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)() { - m.secret_scanning_push_protection = value -} -// ItemItemWithRepoPatchRequestBody_security_and_analysisable -type ItemItemWithRepoPatchRequestBody_security_and_analysisable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdvancedSecurity()(ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable) - GetSecretScanning()(ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable) - GetSecretScanningPushProtection()(ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable) - SetAdvancedSecurity(value ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable)() - SetSecretScanning(value ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable)() - SetSecretScanningPushProtection(value ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)() -} diff --git a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_advanced_security.go b/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_advanced_security.go deleted file mode 100644 index 10bde9ee..00000000 --- a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_advanced_security.go +++ /dev/null @@ -1,78 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." -type ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Can be `enabled` or `disabled`. - status *string -} -// NewItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security instantiates a new ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security and sets the default values. -func NewItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security()(*ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security) { - m := &ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatus(val) - } - return nil - } - return res -} -// GetStatus gets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security) GetStatus()(*string) { - return m.status -} -// Serialize serializes information the current object -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("status", m.GetStatus()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetStatus sets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_security) SetStatus(value *string)() { - m.status = value -} -// ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable -type ItemItemWithRepoPatchRequestBody_security_and_analysis_advanced_securityable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetStatus()(*string) - SetStatus(value *string)() -} diff --git a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning.go b/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning.go deleted file mode 100644 index 97ec6e4b..00000000 --- a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning.go +++ /dev/null @@ -1,78 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." -type ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Can be `enabled` or `disabled`. - status *string -} -// NewItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning instantiates a new ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning and sets the default values. -func NewItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning()(*ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning) { - m := &ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatus(val) - } - return nil - } - return res -} -// GetStatus gets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning) GetStatus()(*string) { - return m.status -} -// Serialize serializes information the current object -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("status", m.GetStatus()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetStatus sets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning) SetStatus(value *string)() { - m.status = value -} -// ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable -type ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanningable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetStatus()(*string) - SetStatus(value *string)() -} diff --git a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning_push_protection.go b/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning_push_protection.go deleted file mode 100644 index 8e4fa99e..00000000 --- a/pkg/github/repos/item_item_with_repo_patch_request_body_security_and_analysis_secret_scanning_push_protection.go +++ /dev/null @@ -1,78 +0,0 @@ -package repos - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." -type ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Can be `enabled` or `disabled`. - status *string -} -// NewItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection instantiates a new ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection and sets the default values. -func NewItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection()(*ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) { - m := &ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetStatus(val) - } - return nil - } - return res -} -// GetStatus gets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetStatus()(*string) { - return m.status -} -// Serialize serializes information the current object -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("status", m.GetStatus()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetStatus sets the status property value. Can be `enabled` or `disabled`. -func (m *ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) SetStatus(value *string)() { - m.status = value -} -// ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable -type ItemItemWithRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetStatus()(*string) - SetStatus(value *string)() -} diff --git a/pkg/github/repos/item_owner_item_request_builder.go b/pkg/github/repos/item_owner_item_request_builder.go deleted file mode 100644 index b6e0e00a..00000000 --- a/pkg/github/repos/item_owner_item_request_builder.go +++ /dev/null @@ -1,456 +0,0 @@ -package repos - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemOwnerItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id} -type ItemOwnerItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// Actions the actions property -// returns a *ItemItemActionsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Actions()(*ItemItemActionsRequestBuilder) { - return NewItemItemActionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Activity the activity property -// returns a *ItemItemActivityRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Activity()(*ItemItemActivityRequestBuilder) { - return NewItemItemActivityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Assignees the assignees property -// returns a *ItemItemAssigneesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Assignees()(*ItemItemAssigneesRequestBuilder) { - return NewItemItemAssigneesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Autolinks the autolinks property -// returns a *ItemItemAutolinksRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Autolinks()(*ItemItemAutolinksRequestBuilder) { - return NewItemItemAutolinksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AutomatedSecurityFixes the automatedSecurityFixes property -// returns a *ItemItemAutomatedSecurityFixesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) AutomatedSecurityFixes()(*ItemItemAutomatedSecurityFixesRequestBuilder) { - return NewItemItemAutomatedSecurityFixesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Branches the branches property -// returns a *ItemItemBranchesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Branches()(*ItemItemBranchesRequestBuilder) { - return NewItemItemBranchesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckRuns the checkRuns property -// returns a *ItemItemCheckRunsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) CheckRuns()(*ItemItemCheckRunsRequestBuilder) { - return NewItemItemCheckRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckSuites the checkSuites property -// returns a *ItemItemCheckSuitesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) CheckSuites()(*ItemItemCheckSuitesRequestBuilder) { - return NewItemItemCheckSuitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Codeowners the codeowners property -// returns a *ItemItemCodeownersRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Codeowners()(*ItemItemCodeownersRequestBuilder) { - return NewItemItemCodeownersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CodeScanning the codeScanning property -// returns a *ItemItemCodeScanningRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) CodeScanning()(*ItemItemCodeScanningRequestBuilder) { - return NewItemItemCodeScanningRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Codespaces the codespaces property -// returns a *ItemItemCodespacesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Codespaces()(*ItemItemCodespacesRequestBuilder) { - return NewItemItemCodespacesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Collaborators the collaborators property -// returns a *ItemItemCollaboratorsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Collaborators()(*ItemItemCollaboratorsRequestBuilder) { - return NewItemItemCollaboratorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Comments the comments property -// returns a *ItemItemCommentsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Comments()(*ItemItemCommentsRequestBuilder) { - return NewItemItemCommentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Commits the commits property -// returns a *ItemItemCommitsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Commits()(*ItemItemCommitsRequestBuilder) { - return NewItemItemCommitsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Community the community property -// returns a *ItemItemCommunityRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Community()(*ItemItemCommunityRequestBuilder) { - return NewItemItemCommunityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Compare the compare property -// returns a *ItemItemCompareRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Compare()(*ItemItemCompareRequestBuilder) { - return NewItemItemCompareRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemOwnerItemRequestBuilderInternal instantiates a new ItemOwnerItemRequestBuilder and sets the default values. -func NewItemOwnerItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOwnerItemRequestBuilder) { - m := &ItemOwnerItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}", pathParameters), - } - return m -} -// NewItemOwnerItemRequestBuilder instantiates a new ItemOwnerItemRequestBuilder and sets the default values. -func NewItemOwnerItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOwnerItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemOwnerItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Contents the contents property -// returns a *ItemItemContentsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Contents()(*ItemItemContentsRequestBuilder) { - return NewItemItemContentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Contributors the contributors property -// returns a *ItemItemContributorsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Contributors()(*ItemItemContributorsRequestBuilder) { - return NewItemItemContributorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete deleting a repository requires admin access.If an organization owner has configured the organization to prevent members from deleting organization-ownedrepositories, you will get a `403 Forbidden` response.OAuth app tokens and personal access tokens (classic) need the `delete_repo` scope to use this endpoint. -// returns a ItemItemOwner403Error error when the service returns a 403 status code -// returns a BasicError error when the service returns a 404 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/repos/repos#delete-a-repository -func (m *ItemOwnerItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "403": CreateItemItemOwner403ErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Dependabot the dependabot property -// returns a *ItemItemDependabotRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Dependabot()(*ItemItemDependabotRequestBuilder) { - return NewItemItemDependabotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DependencyGraph the dependencyGraph property -// returns a *ItemItemDependencyGraphRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) DependencyGraph()(*ItemItemDependencyGraphRequestBuilder) { - return NewItemItemDependencyGraphRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Deployments the deployments property -// returns a *ItemItemDeploymentsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Deployments()(*ItemItemDeploymentsRequestBuilder) { - return NewItemItemDeploymentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dispatches the dispatches property -// returns a *ItemItemDispatchesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Dispatches()(*ItemItemDispatchesRequestBuilder) { - return NewItemItemDispatchesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Environments the environments property -// returns a *ItemItemEnvironmentsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Environments()(*ItemItemEnvironmentsRequestBuilder) { - return NewItemItemEnvironmentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Events the events property -// returns a *ItemItemEventsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Events()(*ItemItemEventsRequestBuilder) { - return NewItemItemEventsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Forks the forks property -// returns a *ItemItemForksRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Forks()(*ItemItemForksRequestBuilder) { - return NewItemItemForksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Generate the generate property -// returns a *ItemItemGenerateRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Generate()(*ItemItemGenerateRequestBuilder) { - return NewItemItemGenerateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.**Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." -// returns a FullRepositoryable when successful -// returns a BasicError error when the service returns a 403 status code -// returns a BasicError error when the service returns a 404 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/repos/repos#get-a-repository -func (m *ItemOwnerItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFullRepositoryFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable), nil -} -// Git the git property -// returns a *ItemItemGitRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Git()(*ItemItemGitRequestBuilder) { - return NewItemItemGitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hooks the hooks property -// returns a *ItemItemHooksRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Hooks()(*ItemItemHooksRequestBuilder) { - return NewItemItemHooksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImportEscaped the import property -// returns a *ItemItemImportRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) ImportEscaped()(*ItemItemImportRequestBuilder) { - return NewItemItemImportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Installation the installation property -// returns a *ItemItemInstallationRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Installation()(*ItemItemInstallationRequestBuilder) { - return NewItemItemInstallationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// InteractionLimits the interactionLimits property -// returns a *ItemItemInteractionLimitsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) InteractionLimits()(*ItemItemInteractionLimitsRequestBuilder) { - return NewItemItemInteractionLimitsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Invitations the invitations property -// returns a *ItemItemInvitationsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Invitations()(*ItemItemInvitationsRequestBuilder) { - return NewItemItemInvitationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Issues the issues property -// returns a *ItemItemIssuesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Issues()(*ItemItemIssuesRequestBuilder) { - return NewItemItemIssuesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Keys the keys property -// returns a *ItemItemKeysRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Keys()(*ItemItemKeysRequestBuilder) { - return NewItemItemKeysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Labels the labels property -// returns a *ItemItemLabelsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Labels()(*ItemItemLabelsRequestBuilder) { - return NewItemItemLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Languages the languages property -// returns a *ItemItemLanguagesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Languages()(*ItemItemLanguagesRequestBuilder) { - return NewItemItemLanguagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// License the license property -// returns a *ItemItemLicenseRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) License()(*ItemItemLicenseRequestBuilder) { - return NewItemItemLicenseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Merges the merges property -// returns a *ItemItemMergesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Merges()(*ItemItemMergesRequestBuilder) { - return NewItemItemMergesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MergeUpstream the mergeUpstream property -// returns a *ItemItemMergeUpstreamRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) MergeUpstream()(*ItemItemMergeUpstreamRequestBuilder) { - return NewItemItemMergeUpstreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Milestones the milestones property -// returns a *ItemItemMilestonesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Milestones()(*ItemItemMilestonesRequestBuilder) { - return NewItemItemMilestonesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Notifications the notifications property -// returns a *ItemItemNotificationsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Notifications()(*ItemItemNotificationsRequestBuilder) { - return NewItemItemNotificationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pages the pages property -// returns a *ItemItemPagesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Pages()(*ItemItemPagesRequestBuilder) { - return NewItemItemPagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. -// returns a FullRepositoryable when successful -// returns a BasicError error when the service returns a 403 status code -// returns a BasicError error when the service returns a 404 status code -// returns a ValidationError error when the service returns a 422 status code -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/repos/repos#update-a-repository -func (m *ItemOwnerItemRequestBuilder) Patch(ctx context.Context, body ItemItemOwnerPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFullRepositoryFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable), nil -} -// PrivateVulnerabilityReporting the privateVulnerabilityReporting property -// returns a *ItemItemPrivateVulnerabilityReportingRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) PrivateVulnerabilityReporting()(*ItemItemPrivateVulnerabilityReportingRequestBuilder) { - return NewItemItemPrivateVulnerabilityReportingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Projects the projects property -// returns a *ItemItemProjectsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Projects()(*ItemItemProjectsRequestBuilder) { - return NewItemItemProjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Properties the properties property -// returns a *ItemItemPropertiesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Properties()(*ItemItemPropertiesRequestBuilder) { - return NewItemItemPropertiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pulls the pulls property -// returns a *ItemItemPullsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Pulls()(*ItemItemPullsRequestBuilder) { - return NewItemItemPullsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Readme the readme property -// returns a *ItemItemReadmeRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Readme()(*ItemItemReadmeRequestBuilder) { - return NewItemItemReadmeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Releases the releases property -// returns a *ItemItemReleasesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Releases()(*ItemItemReleasesRequestBuilder) { - return NewItemItemReleasesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rules the rules property -// returns a *ItemItemRulesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Rules()(*ItemItemRulesRequestBuilder) { - return NewItemItemRulesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rulesets the rulesets property -// returns a *ItemItemRulesetsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Rulesets()(*ItemItemRulesetsRequestBuilder) { - return NewItemItemRulesetsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SecretScanning the secretScanning property -// returns a *ItemItemSecretScanningRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) SecretScanning()(*ItemItemSecretScanningRequestBuilder) { - return NewItemItemSecretScanningRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SecurityAdvisories the securityAdvisories property -// returns a *ItemItemSecurityAdvisoriesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) SecurityAdvisories()(*ItemItemSecurityAdvisoriesRequestBuilder) { - return NewItemItemSecurityAdvisoriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Stargazers the stargazers property -// returns a *ItemItemStargazersRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Stargazers()(*ItemItemStargazersRequestBuilder) { - return NewItemItemStargazersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Stats the stats property -// returns a *ItemItemStatsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Stats()(*ItemItemStatsRequestBuilder) { - return NewItemItemStatsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Statuses the statuses property -// returns a *ItemItemStatusesRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Statuses()(*ItemItemStatusesRequestBuilder) { - return NewItemItemStatusesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Subscribers the subscribers property -// returns a *ItemItemSubscribersRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Subscribers()(*ItemItemSubscribersRequestBuilder) { - return NewItemItemSubscribersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Subscription the subscription property -// returns a *ItemItemSubscriptionRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Subscription()(*ItemItemSubscriptionRequestBuilder) { - return NewItemItemSubscriptionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Tags the tags property -// returns a *ItemItemTagsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Tags()(*ItemItemTagsRequestBuilder) { - return NewItemItemTagsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Tarball the tarball property -// returns a *ItemItemTarballRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Tarball()(*ItemItemTarballRequestBuilder) { - return NewItemItemTarballRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Teams the teams property -// returns a *ItemItemTeamsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Teams()(*ItemItemTeamsRequestBuilder) { - return NewItemItemTeamsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation deleting a repository requires admin access.If an organization owner has configured the organization to prevent members from deleting organization-ownedrepositories, you will get a `403 Forbidden` response.OAuth app tokens and personal access tokens (classic) need the `delete_repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemOwnerItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.**Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." -// returns a *RequestInformation when successful -func (m *ItemOwnerItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. -// returns a *RequestInformation when successful -func (m *ItemOwnerItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemItemOwnerPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// Topics the topics property -// returns a *ItemItemTopicsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Topics()(*ItemItemTopicsRequestBuilder) { - return NewItemItemTopicsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Traffic the traffic property -// returns a *ItemItemTrafficRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Traffic()(*ItemItemTrafficRequestBuilder) { - return NewItemItemTrafficRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Transfer the transfer property -// returns a *ItemItemTransferRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Transfer()(*ItemItemTransferRequestBuilder) { - return NewItemItemTransferRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// VulnerabilityAlerts the vulnerabilityAlerts property -// returns a *ItemItemVulnerabilityAlertsRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) VulnerabilityAlerts()(*ItemItemVulnerabilityAlertsRequestBuilder) { - return NewItemItemVulnerabilityAlertsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemOwnerItemRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) WithUrl(rawUrl string)(*ItemOwnerItemRequestBuilder) { - return NewItemOwnerItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Zipball the zipball property -// returns a *ItemItemZipballRequestBuilder when successful -func (m *ItemOwnerItemRequestBuilder) Zipball()(*ItemItemZipballRequestBuilder) { - return NewItemItemZipballRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/pkg/github/repos/item_with_repo_item_request_builder.go b/pkg/github/repos/item_with_repo_item_request_builder.go deleted file mode 100644 index bcc9d589..00000000 --- a/pkg/github/repos/item_with_repo_item_request_builder.go +++ /dev/null @@ -1,408 +0,0 @@ -package repos - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemWithRepoItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id} -type ItemWithRepoItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemWithRepoItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemWithRepoItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemWithRepoItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemWithRepoItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemWithRepoItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemWithRepoItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Actions the actions property -func (m *ItemWithRepoItemRequestBuilder) Actions()(*ItemItemActionsRequestBuilder) { - return NewItemItemActionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Activity the activity property -func (m *ItemWithRepoItemRequestBuilder) Activity()(*ItemItemActivityRequestBuilder) { - return NewItemItemActivityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Assignees the assignees property -func (m *ItemWithRepoItemRequestBuilder) Assignees()(*ItemItemAssigneesRequestBuilder) { - return NewItemItemAssigneesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Autolinks the autolinks property -func (m *ItemWithRepoItemRequestBuilder) Autolinks()(*ItemItemAutolinksRequestBuilder) { - return NewItemItemAutolinksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AutomatedSecurityFixes the automatedSecurityFixes property -func (m *ItemWithRepoItemRequestBuilder) AutomatedSecurityFixes()(*ItemItemAutomatedSecurityFixesRequestBuilder) { - return NewItemItemAutomatedSecurityFixesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Branches the branches property -func (m *ItemWithRepoItemRequestBuilder) Branches()(*ItemItemBranchesRequestBuilder) { - return NewItemItemBranchesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckRuns the checkRuns property -func (m *ItemWithRepoItemRequestBuilder) CheckRuns()(*ItemItemCheckRunsRequestBuilder) { - return NewItemItemCheckRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CheckSuites the checkSuites property -func (m *ItemWithRepoItemRequestBuilder) CheckSuites()(*ItemItemCheckSuitesRequestBuilder) { - return NewItemItemCheckSuitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Codeowners the codeowners property -func (m *ItemWithRepoItemRequestBuilder) Codeowners()(*ItemItemCodeownersRequestBuilder) { - return NewItemItemCodeownersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CodeScanning the codeScanning property -func (m *ItemWithRepoItemRequestBuilder) CodeScanning()(*ItemItemCodeScanningRequestBuilder) { - return NewItemItemCodeScanningRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Codespaces the codespaces property -func (m *ItemWithRepoItemRequestBuilder) Codespaces()(*ItemItemCodespacesRequestBuilder) { - return NewItemItemCodespacesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Collaborators the collaborators property -func (m *ItemWithRepoItemRequestBuilder) Collaborators()(*ItemItemCollaboratorsRequestBuilder) { - return NewItemItemCollaboratorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Comments the comments property -func (m *ItemWithRepoItemRequestBuilder) Comments()(*ItemItemCommentsRequestBuilder) { - return NewItemItemCommentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Commits the commits property -func (m *ItemWithRepoItemRequestBuilder) Commits()(*ItemItemCommitsRequestBuilder) { - return NewItemItemCommitsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Community the community property -func (m *ItemWithRepoItemRequestBuilder) Community()(*ItemItemCommunityRequestBuilder) { - return NewItemItemCommunityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Compare the compare property -func (m *ItemWithRepoItemRequestBuilder) Compare()(*ItemItemCompareRequestBuilder) { - return NewItemItemCompareRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemWithRepoItemRequestBuilderInternal instantiates a new WithRepoItemRequestBuilder and sets the default values. -func NewItemWithRepoItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemWithRepoItemRequestBuilder) { - m := &ItemWithRepoItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}", pathParameters), - } - return m -} -// NewItemWithRepoItemRequestBuilder instantiates a new WithRepoItemRequestBuilder and sets the default values. -func NewItemWithRepoItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemWithRepoItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemWithRepoItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Contents the contents property -func (m *ItemWithRepoItemRequestBuilder) Contents()(*ItemItemContentsRequestBuilder) { - return NewItemItemContentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Contributors the contributors property -func (m *ItemWithRepoItemRequestBuilder) Contributors()(*ItemItemContributorsRequestBuilder) { - return NewItemItemContributorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.If an organization owner has configured the organization to prevent members from deleting organization-ownedrepositories, you will get a `403 Forbidden` response. -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/repos/repos#delete-a-repository -func (m *ItemWithRepoItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemWithRepoItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "403": CreateItemItemWithRepo403ErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Dependabot the dependabot property -func (m *ItemWithRepoItemRequestBuilder) Dependabot()(*ItemItemDependabotRequestBuilder) { - return NewItemItemDependabotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DependencyGraph the dependencyGraph property -func (m *ItemWithRepoItemRequestBuilder) DependencyGraph()(*ItemItemDependencyGraphRequestBuilder) { - return NewItemItemDependencyGraphRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Deployments the deployments property -func (m *ItemWithRepoItemRequestBuilder) Deployments()(*ItemItemDeploymentsRequestBuilder) { - return NewItemItemDeploymentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dispatches the dispatches property -func (m *ItemWithRepoItemRequestBuilder) Dispatches()(*ItemItemDispatchesRequestBuilder) { - return NewItemItemDispatchesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Environments the environments property -func (m *ItemWithRepoItemRequestBuilder) Environments()(*ItemItemEnvironmentsRequestBuilder) { - return NewItemItemEnvironmentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Events the events property -func (m *ItemWithRepoItemRequestBuilder) Events()(*ItemItemEventsRequestBuilder) { - return NewItemItemEventsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Forks the forks property -func (m *ItemWithRepoItemRequestBuilder) Forks()(*ItemItemForksRequestBuilder) { - return NewItemItemForksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Generate the generate property -func (m *ItemWithRepoItemRequestBuilder) Generate()(*ItemItemGenerateRequestBuilder) { - return NewItemItemGenerateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.**Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/repos/repos#get-a-repository -func (m *ItemWithRepoItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemWithRepoItemRequestBuilderGetRequestConfiguration)(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFullRepositoryFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable), nil -} -// Git the git property -func (m *ItemWithRepoItemRequestBuilder) Git()(*ItemItemGitRequestBuilder) { - return NewItemItemGitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hooks the hooks property -func (m *ItemWithRepoItemRequestBuilder) Hooks()(*ItemItemHooksRequestBuilder) { - return NewItemItemHooksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImportEscaped the import property -func (m *ItemWithRepoItemRequestBuilder) ImportEscaped()(*ItemItemImportRequestBuilder) { - return NewItemItemImportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Installation the installation property -func (m *ItemWithRepoItemRequestBuilder) Installation()(*ItemItemInstallationRequestBuilder) { - return NewItemItemInstallationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// InteractionLimits the interactionLimits property -func (m *ItemWithRepoItemRequestBuilder) InteractionLimits()(*ItemItemInteractionLimitsRequestBuilder) { - return NewItemItemInteractionLimitsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Invitations the invitations property -func (m *ItemWithRepoItemRequestBuilder) Invitations()(*ItemItemInvitationsRequestBuilder) { - return NewItemItemInvitationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Issues the issues property -func (m *ItemWithRepoItemRequestBuilder) Issues()(*ItemItemIssuesRequestBuilder) { - return NewItemItemIssuesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Keys the keys property -func (m *ItemWithRepoItemRequestBuilder) Keys()(*ItemItemKeysRequestBuilder) { - return NewItemItemKeysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Labels the labels property -func (m *ItemWithRepoItemRequestBuilder) Labels()(*ItemItemLabelsRequestBuilder) { - return NewItemItemLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Languages the languages property -func (m *ItemWithRepoItemRequestBuilder) Languages()(*ItemItemLanguagesRequestBuilder) { - return NewItemItemLanguagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// License the license property -func (m *ItemWithRepoItemRequestBuilder) License()(*ItemItemLicenseRequestBuilder) { - return NewItemItemLicenseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Merges the merges property -func (m *ItemWithRepoItemRequestBuilder) Merges()(*ItemItemMergesRequestBuilder) { - return NewItemItemMergesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MergeUpstream the mergeUpstream property -func (m *ItemWithRepoItemRequestBuilder) MergeUpstream()(*ItemItemMergeUpstreamRequestBuilder) { - return NewItemItemMergeUpstreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Milestones the milestones property -func (m *ItemWithRepoItemRequestBuilder) Milestones()(*ItemItemMilestonesRequestBuilder) { - return NewItemItemMilestonesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Notifications the notifications property -func (m *ItemWithRepoItemRequestBuilder) Notifications()(*ItemItemNotificationsRequestBuilder) { - return NewItemItemNotificationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pages the pages property -func (m *ItemWithRepoItemRequestBuilder) Pages()(*ItemItemPagesRequestBuilder) { - return NewItemItemPagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/repos/repos#update-a-repository -func (m *ItemWithRepoItemRequestBuilder) Patch(ctx context.Context, body ItemItemWithRepoPatchRequestBodyable, requestConfiguration *ItemWithRepoItemRequestBuilderPatchRequestConfiguration)(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFullRepositoryFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable), nil -} -// PrivateVulnerabilityReporting the privateVulnerabilityReporting property -func (m *ItemWithRepoItemRequestBuilder) PrivateVulnerabilityReporting()(*ItemItemPrivateVulnerabilityReportingRequestBuilder) { - return NewItemItemPrivateVulnerabilityReportingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Projects the projects property -func (m *ItemWithRepoItemRequestBuilder) Projects()(*ItemItemProjectsRequestBuilder) { - return NewItemItemProjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Properties the properties property -func (m *ItemWithRepoItemRequestBuilder) Properties()(*ItemItemPropertiesRequestBuilder) { - return NewItemItemPropertiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pulls the pulls property -func (m *ItemWithRepoItemRequestBuilder) Pulls()(*ItemItemPullsRequestBuilder) { - return NewItemItemPullsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Readme the readme property -func (m *ItemWithRepoItemRequestBuilder) Readme()(*ItemItemReadmeRequestBuilder) { - return NewItemItemReadmeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Releases the releases property -func (m *ItemWithRepoItemRequestBuilder) Releases()(*ItemItemReleasesRequestBuilder) { - return NewItemItemReleasesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rules the rules property -func (m *ItemWithRepoItemRequestBuilder) Rules()(*ItemItemRulesRequestBuilder) { - return NewItemItemRulesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rulesets the rulesets property -func (m *ItemWithRepoItemRequestBuilder) Rulesets()(*ItemItemRulesetsRequestBuilder) { - return NewItemItemRulesetsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SecretScanning the secretScanning property -func (m *ItemWithRepoItemRequestBuilder) SecretScanning()(*ItemItemSecretScanningRequestBuilder) { - return NewItemItemSecretScanningRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SecurityAdvisories the securityAdvisories property -func (m *ItemWithRepoItemRequestBuilder) SecurityAdvisories()(*ItemItemSecurityAdvisoriesRequestBuilder) { - return NewItemItemSecurityAdvisoriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Stargazers the stargazers property -func (m *ItemWithRepoItemRequestBuilder) Stargazers()(*ItemItemStargazersRequestBuilder) { - return NewItemItemStargazersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Stats the stats property -func (m *ItemWithRepoItemRequestBuilder) Stats()(*ItemItemStatsRequestBuilder) { - return NewItemItemStatsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Statuses the statuses property -func (m *ItemWithRepoItemRequestBuilder) Statuses()(*ItemItemStatusesRequestBuilder) { - return NewItemItemStatusesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Subscribers the subscribers property -func (m *ItemWithRepoItemRequestBuilder) Subscribers()(*ItemItemSubscribersRequestBuilder) { - return NewItemItemSubscribersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Subscription the subscription property -func (m *ItemWithRepoItemRequestBuilder) Subscription()(*ItemItemSubscriptionRequestBuilder) { - return NewItemItemSubscriptionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Tags the tags property -func (m *ItemWithRepoItemRequestBuilder) Tags()(*ItemItemTagsRequestBuilder) { - return NewItemItemTagsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Tarball the tarball property -func (m *ItemWithRepoItemRequestBuilder) Tarball()(*ItemItemTarballRequestBuilder) { - return NewItemItemTarballRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Teams the teams property -func (m *ItemWithRepoItemRequestBuilder) Teams()(*ItemItemTeamsRequestBuilder) { - return NewItemItemTeamsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.If an organization owner has configured the organization to prevent members from deleting organization-ownedrepositories, you will get a `403 Forbidden` response. -func (m *ItemWithRepoItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemWithRepoItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.**Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." -func (m *ItemWithRepoItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemWithRepoItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. -func (m *ItemWithRepoItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemItemWithRepoPatchRequestBodyable, requestConfiguration *ItemWithRepoItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// Topics the topics property -func (m *ItemWithRepoItemRequestBuilder) Topics()(*ItemItemTopicsRequestBuilder) { - return NewItemItemTopicsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Traffic the traffic property -func (m *ItemWithRepoItemRequestBuilder) Traffic()(*ItemItemTrafficRequestBuilder) { - return NewItemItemTrafficRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Transfer the transfer property -func (m *ItemWithRepoItemRequestBuilder) Transfer()(*ItemItemTransferRequestBuilder) { - return NewItemItemTransferRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// VulnerabilityAlerts the vulnerabilityAlerts property -func (m *ItemWithRepoItemRequestBuilder) VulnerabilityAlerts()(*ItemItemVulnerabilityAlertsRequestBuilder) { - return NewItemItemVulnerabilityAlertsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -func (m *ItemWithRepoItemRequestBuilder) WithUrl(rawUrl string)(*ItemWithRepoItemRequestBuilder) { - return NewItemWithRepoItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Zipball the zipball property -func (m *ItemWithRepoItemRequestBuilder) Zipball()(*ItemItemZipballRequestBuilder) { - return NewItemItemZipballRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/pkg/github/repos/repos_item_request_builder.go b/pkg/github/repos/repos_item_request_builder.go deleted file mode 100644 index 8f1d720f..00000000 --- a/pkg/github/repos/repos_item_request_builder.go +++ /dev/null @@ -1,35 +0,0 @@ -package repos - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// ReposItemRequestBuilder builds and executes requests for operations under \repos\{repos-id} -type ReposItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ByOwnerId gets an item from the github.com/octokit/go-sdk/pkg/github/.repos.item.item collection -// returns a *ItemOwnerItemRequestBuilder when successful -func (m *ReposItemRequestBuilder) ByOwnerId(ownerId string)(*ItemOwnerItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if ownerId != "" { - urlTplParams["Owner%2Did"] = ownerId - } - return NewItemOwnerItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewReposItemRequestBuilderInternal instantiates a new ReposItemRequestBuilder and sets the default values. -func NewReposItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReposItemRequestBuilder) { - m := &ReposItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}", pathParameters), - } - return m -} -// NewReposItemRequestBuilder instantiates a new ReposItemRequestBuilder and sets the default values. -func NewReposItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReposItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewReposItemRequestBuilderInternal(urlParams, requestAdapter) -} diff --git a/pkg/github/repos/with_owner_item_request_builder.go b/pkg/github/repos/with_owner_item_request_builder.go deleted file mode 100644 index 97577d7f..00000000 --- a/pkg/github/repos/with_owner_item_request_builder.go +++ /dev/null @@ -1,34 +0,0 @@ -package repos - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// WithOwnerItemRequestBuilder builds and executes requests for operations under \repos\{repos-id} -type WithOwnerItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ByRepo gets an item from the github.com/octokit/go-sdk/pkg/github/.repos.item.item collection -func (m *WithOwnerItemRequestBuilder) ByRepo(repo string)(*ItemWithRepoItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if repo != "" { - urlTplParams["repo"] = repo - } - return NewItemWithRepoItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewWithOwnerItemRequestBuilderInternal instantiates a new WithOwnerItemRequestBuilder and sets the default values. -func NewWithOwnerItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithOwnerItemRequestBuilder) { - m := &WithOwnerItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}", pathParameters), - } - return m -} -// NewWithOwnerItemRequestBuilder instantiates a new WithOwnerItemRequestBuilder and sets the default values. -func NewWithOwnerItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithOwnerItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewWithOwnerItemRequestBuilderInternal(urlParams, requestAdapter) -} diff --git a/pkg/github/repositories/item_environments_item_secrets_get_response.go b/pkg/github/repositories/item_environments_item_secrets_get_response.go deleted file mode 100644 index 5498f79a..00000000 --- a/pkg/github/repositories/item_environments_item_secrets_get_response.go +++ /dev/null @@ -1,122 +0,0 @@ -package repositories - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -type ItemEnvironmentsItemSecretsGetResponse struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The secrets property - secrets []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable - // The total_count property - total_count *int32 -} -// NewItemEnvironmentsItemSecretsGetResponse instantiates a new ItemEnvironmentsItemSecretsGetResponse and sets the default values. -func NewItemEnvironmentsItemSecretsGetResponse()(*ItemEnvironmentsItemSecretsGetResponse) { - m := &ItemEnvironmentsItemSecretsGetResponse{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemEnvironmentsItemSecretsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemEnvironmentsItemSecretsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemEnvironmentsItemSecretsGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemEnvironmentsItemSecretsGetResponse) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemEnvironmentsItemSecretsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["secrets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateActionsSecretFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable) - } - } - m.SetSecrets(res) - } - return nil - } - res["total_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetTotalCount(val) - } - return nil - } - return res -} -// GetSecrets gets the secrets property value. The secrets property -// returns a []ActionsSecretable when successful -func (m *ItemEnvironmentsItemSecretsGetResponse) GetSecrets()([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable) { - return m.secrets -} -// GetTotalCount gets the total_count property value. The total_count property -// returns a *int32 when successful -func (m *ItemEnvironmentsItemSecretsGetResponse) GetTotalCount()(*int32) { - return m.total_count -} -// Serialize serializes information the current object -func (m *ItemEnvironmentsItemSecretsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetSecrets() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSecrets())) - for i, v := range m.GetSecrets() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("secrets", cast) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("total_count", m.GetTotalCount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemEnvironmentsItemSecretsGetResponse) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetSecrets sets the secrets property value. The secrets property -func (m *ItemEnvironmentsItemSecretsGetResponse) SetSecrets(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable)() { - m.secrets = value -} -// SetTotalCount sets the total_count property value. The total_count property -func (m *ItemEnvironmentsItemSecretsGetResponse) SetTotalCount(value *int32)() { - m.total_count = value -} -type ItemEnvironmentsItemSecretsGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetSecrets()([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable) - GetTotalCount()(*int32) - SetSecrets(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable)() - SetTotalCount(value *int32)() -} diff --git a/pkg/github/repositories/item_environments_item_secrets_item_with_secret_name_put_request_body.go b/pkg/github/repositories/item_environments_item_secrets_item_with_secret_name_put_request_body.go deleted file mode 100644 index 58e84722..00000000 --- a/pkg/github/repositories/item_environments_item_secrets_item_with_secret_name_put_request_body.go +++ /dev/null @@ -1,109 +0,0 @@ -package repositories - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint. - encrypted_value *string - // ID of the key you used to encrypt the secret. - key_id *string -} -// NewItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody instantiates a new ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody and sets the default values. -func NewItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody()(*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) { - m := &ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetEncryptedValue gets the encrypted_value property value. Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint. -// returns a *string when successful -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetEncryptedValue()(*string) { - return m.encrypted_value -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["encrypted_value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEncryptedValue(val) - } - return nil - } - res["key_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetKeyId(val) - } - return nil - } - return res -} -// GetKeyId gets the key_id property value. ID of the key you used to encrypt the secret. -// returns a *string when successful -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetKeyId()(*string) { - return m.key_id -} -// Serialize serializes information the current object -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("encrypted_value", m.GetEncryptedValue()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("key_id", m.GetKeyId()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetEncryptedValue sets the encrypted_value property value. Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint. -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) SetEncryptedValue(value *string)() { - m.encrypted_value = value -} -// SetKeyId sets the key_id property value. ID of the key you used to encrypt the secret. -func (m *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) SetKeyId(value *string)() { - m.key_id = value -} -type ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetEncryptedValue()(*string) - GetKeyId()(*string) - SetEncryptedValue(value *string)() - SetKeyId(value *string)() -} diff --git a/pkg/github/repositories/item_environments_item_secrets_public_key_request_builder.go b/pkg/github/repositories/item_environments_item_secrets_public_key_request_builder.go deleted file mode 100644 index 3cb9c993..00000000 --- a/pkg/github/repositories/item_environments_item_secrets_public_key_request_builder.go +++ /dev/null @@ -1,57 +0,0 @@ -package repositories - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemEnvironmentsItemSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\secrets\public-key -type ItemEnvironmentsItemSecretsPublicKeyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemEnvironmentsItemSecretsPublicKeyRequestBuilderInternal instantiates a new ItemEnvironmentsItemSecretsPublicKeyRequestBuilder and sets the default values. -func NewItemEnvironmentsItemSecretsPublicKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) { - m := &ItemEnvironmentsItemSecretsPublicKeyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}/environments/{environment_name}/secrets/public-key", pathParameters), - } - return m -} -// NewItemEnvironmentsItemSecretsPublicKeyRequestBuilder instantiates a new ItemEnvironmentsItemSecretsPublicKeyRequestBuilder and sets the default values. -func NewItemEnvironmentsItemSecretsPublicKeyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemEnvironmentsItemSecretsPublicKeyRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the public key for an environment, which you need to encrypt environmentsecrets. You need to encrypt a secret before you can create or update secrets.Anyone with read access to the repository can use this endpoint.If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a ActionsPublicKeyable when successful -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/secrets#get-an-environment-public-key -func (m *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsPublicKeyable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateActionsPublicKeyFromDiscriminatorValue, nil) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsPublicKeyable), nil -} -// ToGetRequestInformation get the public key for an environment, which you need to encrypt environmentsecrets. You need to encrypt a secret before you can create or update secrets.Anyone with read access to the repository can use this endpoint.If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder when successful -func (m *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) WithUrl(rawUrl string)(*ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) { - return NewItemEnvironmentsItemSecretsPublicKeyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repositories/item_environments_item_secrets_request_builder.go b/pkg/github/repositories/item_environments_item_secrets_request_builder.go deleted file mode 100644 index 38d1210e..00000000 --- a/pkg/github/repositories/item_environments_item_secrets_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package repositories - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// ItemEnvironmentsItemSecretsRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\secrets -type ItemEnvironmentsItemSecretsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemEnvironmentsItemSecretsRequestBuilderGetQueryParameters lists all secrets available in an environment without revealing theirencrypted values.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -type ItemEnvironmentsItemSecretsRequestBuilderGetQueryParameters struct { - // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Page *int32 `uriparametername:"page"` - // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Per_page *int32 `uriparametername:"per_page"` -} -// BySecret_name gets an item from the github.com/octokit/go-sdk/pkg/github/.repositories.item.environments.item.secrets.item collection -// returns a *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder when successful -func (m *ItemEnvironmentsItemSecretsRequestBuilder) BySecret_name(secret_name string)(*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if secret_name != "" { - urlTplParams["secret_name"] = secret_name - } - return NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemEnvironmentsItemSecretsRequestBuilderInternal instantiates a new ItemEnvironmentsItemSecretsRequestBuilder and sets the default values. -func NewItemEnvironmentsItemSecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemSecretsRequestBuilder) { - m := &ItemEnvironmentsItemSecretsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}/environments/{environment_name}/secrets{?page*,per_page*}", pathParameters), - } - return m -} -// NewItemEnvironmentsItemSecretsRequestBuilder instantiates a new ItemEnvironmentsItemSecretsRequestBuilder and sets the default values. -func NewItemEnvironmentsItemSecretsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemSecretsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemEnvironmentsItemSecretsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get lists all secrets available in an environment without revealing theirencrypted values.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a ItemEnvironmentsItemSecretsGetResponseable when successful -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/secrets#list-environment-secrets -func (m *ItemEnvironmentsItemSecretsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEnvironmentsItemSecretsRequestBuilderGetQueryParameters])(ItemEnvironmentsItemSecretsGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemEnvironmentsItemSecretsGetResponseFromDiscriminatorValue, nil) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemEnvironmentsItemSecretsGetResponseable), nil -} -// PublicKey the publicKey property -// returns a *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder when successful -func (m *ItemEnvironmentsItemSecretsRequestBuilder) PublicKey()(*ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) { - return NewItemEnvironmentsItemSecretsPublicKeyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation lists all secrets available in an environment without revealing theirencrypted values.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemSecretsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEnvironmentsItemSecretsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemEnvironmentsItemSecretsRequestBuilder when successful -func (m *ItemEnvironmentsItemSecretsRequestBuilder) WithUrl(rawUrl string)(*ItemEnvironmentsItemSecretsRequestBuilder) { - return NewItemEnvironmentsItemSecretsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repositories/item_environments_item_secrets_response.go b/pkg/github/repositories/item_environments_item_secrets_response.go deleted file mode 100644 index 4bbc2f58..00000000 --- a/pkg/github/repositories/item_environments_item_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repositories - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemEnvironmentsItemSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemEnvironmentsItemSecretsResponse struct { - ItemEnvironmentsItemSecretsGetResponse -} -// NewItemEnvironmentsItemSecretsResponse instantiates a new ItemEnvironmentsItemSecretsResponse and sets the default values. -func NewItemEnvironmentsItemSecretsResponse()(*ItemEnvironmentsItemSecretsResponse) { - m := &ItemEnvironmentsItemSecretsResponse{ - ItemEnvironmentsItemSecretsGetResponse: *NewItemEnvironmentsItemSecretsGetResponse(), - } - return m -} -// CreateItemEnvironmentsItemSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemEnvironmentsItemSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemEnvironmentsItemSecretsResponse(), nil -} -// ItemEnvironmentsItemSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type ItemEnvironmentsItemSecretsResponseable interface { - ItemEnvironmentsItemSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repositories/item_environments_item_secrets_with_secret_name_item_request_builder.go b/pkg/github/repositories/item_environments_item_secrets_with_secret_name_item_request_builder.go deleted file mode 100644 index e3c82078..00000000 --- a/pkg/github/repositories/item_environments_item_secrets_with_secret_name_item_request_builder.go +++ /dev/null @@ -1,110 +0,0 @@ -package repositories - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\secrets\{secret_name} -type ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilderInternal instantiates a new ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder and sets the default values. -func NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) { - m := &ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}", pathParameters), - } - return m -} -// NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder instantiates a new ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder and sets the default values. -func NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete deletes a secret in an environment using the secret name.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/secrets#delete-an-environment-secret -func (m *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, nil) - if err != nil { - return err - } - return nil -} -// Get gets a single environment secret without revealing its encrypted value.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a ActionsSecretable when successful -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/secrets#get-an-environment-secret -func (m *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateActionsSecretFromDiscriminatorValue, nil) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsSecretable), nil -} -// Put creates or updates an environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a EmptyObjectable when successful -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/secrets#create-or-update-an-environment-secret -func (m *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) Put(ctx context.Context, body ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.EmptyObjectable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateEmptyObjectFromDiscriminatorValue, nil) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.EmptyObjectable), nil -} -// ToDeleteRequestInformation deletes a secret in an environment using the secret name.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - return requestInfo, nil -} -// ToGetRequestInformation gets a single environment secret without revealing its encrypted value.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPutRequestInformation creates or updates an environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder when successful -func (m *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) WithUrl(rawUrl string)(*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) { - return NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repositories/item_environments_item_variables_get_response.go b/pkg/github/repositories/item_environments_item_variables_get_response.go deleted file mode 100644 index 79f395ea..00000000 --- a/pkg/github/repositories/item_environments_item_variables_get_response.go +++ /dev/null @@ -1,122 +0,0 @@ -package repositories - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -type ItemEnvironmentsItemVariablesGetResponse struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The total_count property - total_count *int32 - // The variables property - variables []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable -} -// NewItemEnvironmentsItemVariablesGetResponse instantiates a new ItemEnvironmentsItemVariablesGetResponse and sets the default values. -func NewItemEnvironmentsItemVariablesGetResponse()(*ItemEnvironmentsItemVariablesGetResponse) { - m := &ItemEnvironmentsItemVariablesGetResponse{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemEnvironmentsItemVariablesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemEnvironmentsItemVariablesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemEnvironmentsItemVariablesGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemEnvironmentsItemVariablesGetResponse) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemEnvironmentsItemVariablesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["total_count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetTotalCount(val) - } - return nil - } - res["variables"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateActionsVariableFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable) - } - } - m.SetVariables(res) - } - return nil - } - return res -} -// GetTotalCount gets the total_count property value. The total_count property -// returns a *int32 when successful -func (m *ItemEnvironmentsItemVariablesGetResponse) GetTotalCount()(*int32) { - return m.total_count -} -// GetVariables gets the variables property value. The variables property -// returns a []ActionsVariableable when successful -func (m *ItemEnvironmentsItemVariablesGetResponse) GetVariables()([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable) { - return m.variables -} -// Serialize serializes information the current object -func (m *ItemEnvironmentsItemVariablesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("total_count", m.GetTotalCount()) - if err != nil { - return err - } - } - if m.GetVariables() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetVariables())) - for i, v := range m.GetVariables() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("variables", cast) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemEnvironmentsItemVariablesGetResponse) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetTotalCount sets the total_count property value. The total_count property -func (m *ItemEnvironmentsItemVariablesGetResponse) SetTotalCount(value *int32)() { - m.total_count = value -} -// SetVariables sets the variables property value. The variables property -func (m *ItemEnvironmentsItemVariablesGetResponse) SetVariables(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable)() { - m.variables = value -} -type ItemEnvironmentsItemVariablesGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetTotalCount()(*int32) - GetVariables()([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable) - SetTotalCount(value *int32)() - SetVariables(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable)() -} diff --git a/pkg/github/repositories/item_environments_item_variables_item_with_name_patch_request_body.go b/pkg/github/repositories/item_environments_item_variables_item_with_name_patch_request_body.go deleted file mode 100644 index 62b242ba..00000000 --- a/pkg/github/repositories/item_environments_item_variables_item_with_name_patch_request_body.go +++ /dev/null @@ -1,109 +0,0 @@ -package repositories - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The name of the variable. - name *string - // The value of the variable. - value *string -} -// NewItemEnvironmentsItemVariablesItemWithNamePatchRequestBody instantiates a new ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody and sets the default values. -func NewItemEnvironmentsItemVariablesItemWithNamePatchRequestBody()(*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) { - m := &ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemEnvironmentsItemVariablesItemWithNamePatchRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetName gets the name property value. The name of the variable. -// returns a *string when successful -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetName()(*string) { - return m.name -} -// GetValue gets the value property value. The value of the variable. -// returns a *string when successful -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetValue()(*string) { - return m.value -} -// Serialize serializes information the current object -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetName sets the name property value. The name of the variable. -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) SetName(value *string)() { - m.name = value -} -// SetValue sets the value property value. The value of the variable. -func (m *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) SetValue(value *string)() { - m.value = value -} -type ItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetName()(*string) - GetValue()(*string) - SetName(value *string)() - SetValue(value *string)() -} diff --git a/pkg/github/repositories/item_environments_item_variables_post_request_body.go b/pkg/github/repositories/item_environments_item_variables_post_request_body.go deleted file mode 100644 index 121dc7a4..00000000 --- a/pkg/github/repositories/item_environments_item_variables_post_request_body.go +++ /dev/null @@ -1,109 +0,0 @@ -package repositories - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type ItemEnvironmentsItemVariablesPostRequestBody struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The name of the variable. - name *string - // The value of the variable. - value *string -} -// NewItemEnvironmentsItemVariablesPostRequestBody instantiates a new ItemEnvironmentsItemVariablesPostRequestBody and sets the default values. -func NewItemEnvironmentsItemVariablesPostRequestBody()(*ItemEnvironmentsItemVariablesPostRequestBody) { - m := &ItemEnvironmentsItemVariablesPostRequestBody{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateItemEnvironmentsItemVariablesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemEnvironmentsItemVariablesPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemEnvironmentsItemVariablesPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *ItemEnvironmentsItemVariablesPostRequestBody) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemEnvironmentsItemVariablesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetName gets the name property value. The name of the variable. -// returns a *string when successful -func (m *ItemEnvironmentsItemVariablesPostRequestBody) GetName()(*string) { - return m.name -} -// GetValue gets the value property value. The value of the variable. -// returns a *string when successful -func (m *ItemEnvironmentsItemVariablesPostRequestBody) GetValue()(*string) { - return m.value -} -// Serialize serializes information the current object -func (m *ItemEnvironmentsItemVariablesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemEnvironmentsItemVariablesPostRequestBody) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetName sets the name property value. The name of the variable. -func (m *ItemEnvironmentsItemVariablesPostRequestBody) SetName(value *string)() { - m.name = value -} -// SetValue sets the value property value. The value of the variable. -func (m *ItemEnvironmentsItemVariablesPostRequestBody) SetValue(value *string)() { - m.value = value -} -type ItemEnvironmentsItemVariablesPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetName()(*string) - GetValue()(*string) - SetName(value *string)() - SetValue(value *string)() -} diff --git a/pkg/github/repositories/item_environments_item_variables_request_builder.go b/pkg/github/repositories/item_environments_item_variables_request_builder.go deleted file mode 100644 index faf5905c..00000000 --- a/pkg/github/repositories/item_environments_item_variables_request_builder.go +++ /dev/null @@ -1,107 +0,0 @@ -package repositories - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemEnvironmentsItemVariablesRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\variables -type ItemEnvironmentsItemVariablesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemEnvironmentsItemVariablesRequestBuilderGetQueryParameters lists all environment variables.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -type ItemEnvironmentsItemVariablesRequestBuilderGetQueryParameters struct { - // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Page *int32 `uriparametername:"page"` - // The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Per_page *int32 `uriparametername:"per_page"` -} -// ByName gets an item from the github.com/octokit/go-sdk/pkg/github/.repositories.item.environments.item.variables.item collection -// returns a *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder when successful -func (m *ItemEnvironmentsItemVariablesRequestBuilder) ByName(name string)(*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if name != "" { - urlTplParams["name"] = name - } - return NewItemEnvironmentsItemVariablesWithNameItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemEnvironmentsItemVariablesRequestBuilderInternal instantiates a new ItemEnvironmentsItemVariablesRequestBuilder and sets the default values. -func NewItemEnvironmentsItemVariablesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemVariablesRequestBuilder) { - m := &ItemEnvironmentsItemVariablesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}/environments/{environment_name}/variables{?page*,per_page*}", pathParameters), - } - return m -} -// NewItemEnvironmentsItemVariablesRequestBuilder instantiates a new ItemEnvironmentsItemVariablesRequestBuilder and sets the default values. -func NewItemEnvironmentsItemVariablesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemVariablesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemEnvironmentsItemVariablesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get lists all environment variables.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a ItemEnvironmentsItemVariablesGetResponseable when successful -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/variables#list-environment-variables -func (m *ItemEnvironmentsItemVariablesRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEnvironmentsItemVariablesRequestBuilderGetQueryParameters])(ItemEnvironmentsItemVariablesGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemEnvironmentsItemVariablesGetResponseFromDiscriminatorValue, nil) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemEnvironmentsItemVariablesGetResponseable), nil -} -// Post create an environment variable that you can reference in a GitHub Actions workflow.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a EmptyObjectable when successful -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/variables#create-an-environment-variable -func (m *ItemEnvironmentsItemVariablesRequestBuilder) Post(ctx context.Context, body ItemEnvironmentsItemVariablesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.EmptyObjectable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateEmptyObjectFromDiscriminatorValue, nil) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.EmptyObjectable), nil -} -// ToGetRequestInformation lists all environment variables.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemVariablesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEnvironmentsItemVariablesRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create an environment variable that you can reference in a GitHub Actions workflow.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemVariablesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEnvironmentsItemVariablesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repositories/{repository_id}/environments/{environment_name}/variables", m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemEnvironmentsItemVariablesRequestBuilder when successful -func (m *ItemEnvironmentsItemVariablesRequestBuilder) WithUrl(rawUrl string)(*ItemEnvironmentsItemVariablesRequestBuilder) { - return NewItemEnvironmentsItemVariablesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repositories/item_environments_item_variables_response.go b/pkg/github/repositories/item_environments_item_variables_response.go deleted file mode 100644 index f02f46c3..00000000 --- a/pkg/github/repositories/item_environments_item_variables_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package repositories - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// ItemEnvironmentsItemVariablesResponse -// Deprecated: This class is obsolete. Use variablesGetResponse instead. -type ItemEnvironmentsItemVariablesResponse struct { - ItemEnvironmentsItemVariablesGetResponse -} -// NewItemEnvironmentsItemVariablesResponse instantiates a new ItemEnvironmentsItemVariablesResponse and sets the default values. -func NewItemEnvironmentsItemVariablesResponse()(*ItemEnvironmentsItemVariablesResponse) { - m := &ItemEnvironmentsItemVariablesResponse{ - ItemEnvironmentsItemVariablesGetResponse: *NewItemEnvironmentsItemVariablesGetResponse(), - } - return m -} -// CreateItemEnvironmentsItemVariablesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateItemEnvironmentsItemVariablesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemEnvironmentsItemVariablesResponse(), nil -} -// ItemEnvironmentsItemVariablesResponseable -// Deprecated: This class is obsolete. Use variablesGetResponse instead. -type ItemEnvironmentsItemVariablesResponseable interface { - ItemEnvironmentsItemVariablesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/repositories/item_environments_item_variables_with_name_item_request_builder.go b/pkg/github/repositories/item_environments_item_variables_with_name_item_request_builder.go deleted file mode 100644 index 44e810bd..00000000 --- a/pkg/github/repositories/item_environments_item_variables_with_name_item_request_builder.go +++ /dev/null @@ -1,105 +0,0 @@ -package repositories - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" -) - -// ItemEnvironmentsItemVariablesWithNameItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\variables\{name} -type ItemEnvironmentsItemVariablesWithNameItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemEnvironmentsItemVariablesWithNameItemRequestBuilderInternal instantiates a new ItemEnvironmentsItemVariablesWithNameItemRequestBuilder and sets the default values. -func NewItemEnvironmentsItemVariablesWithNameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) { - m := &ItemEnvironmentsItemVariablesWithNameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}/environments/{environment_name}/variables/{name}", pathParameters), - } - return m -} -// NewItemEnvironmentsItemVariablesWithNameItemRequestBuilder instantiates a new ItemEnvironmentsItemVariablesWithNameItemRequestBuilder and sets the default values. -func NewItemEnvironmentsItemVariablesWithNameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemEnvironmentsItemVariablesWithNameItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete deletes an environment variable using the variable name.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/variables#delete-an-environment-variable -func (m *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, nil) - if err != nil { - return err - } - return nil -} -// Get gets a specific variable in an environment.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a ActionsVariableable when successful -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/variables#get-an-environment-variable -func (m *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateActionsVariableFromDiscriminatorValue, nil) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.ActionsVariableable), nil -} -// Patch updates an environment variable that you can reference in a GitHub Actions workflow.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// [API method documentation] -// -// [API method documentation]: https://docs.github.com/rest/actions/variables#update-an-environment-variable -func (m *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) Patch(ctx context.Context, body ItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, nil) - if err != nil { - return err - } - return nil -} -// ToDeleteRequestInformation deletes an environment variable using the variable name.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - return requestInfo, nil -} -// ToGetRequestInformation gets a specific variable in an environment.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation updates an environment variable that you can reference in a GitHub Actions workflow.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. -// returns a *RequestInformation when successful -func (m *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder when successful -func (m *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) WithUrl(rawUrl string)(*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) { - return NewItemEnvironmentsItemVariablesWithNameItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/pkg/github/repositories/item_environments_request_builder.go b/pkg/github/repositories/item_environments_request_builder.go deleted file mode 100644 index d951708e..00000000 --- a/pkg/github/repositories/item_environments_request_builder.go +++ /dev/null @@ -1,35 +0,0 @@ -package repositories - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// ItemEnvironmentsRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments -type ItemEnvironmentsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ByEnvironment_name gets an item from the github.com/octokit/go-sdk/pkg/github/.repositories.item.environments.item collection -// returns a *ItemEnvironmentsWithEnvironment_nameItemRequestBuilder when successful -func (m *ItemEnvironmentsRequestBuilder) ByEnvironment_name(environment_name string)(*ItemEnvironmentsWithEnvironment_nameItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if environment_name != "" { - urlTplParams["environment_name"] = environment_name - } - return NewItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemEnvironmentsRequestBuilderInternal instantiates a new ItemEnvironmentsRequestBuilder and sets the default values. -func NewItemEnvironmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsRequestBuilder) { - m := &ItemEnvironmentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}/environments", pathParameters), - } - return m -} -// NewItemEnvironmentsRequestBuilder instantiates a new ItemEnvironmentsRequestBuilder and sets the default values. -func NewItemEnvironmentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemEnvironmentsRequestBuilderInternal(urlParams, requestAdapter) -} diff --git a/pkg/github/repositories/item_environments_with_environment_name_item_request_builder.go b/pkg/github/repositories/item_environments_with_environment_name_item_request_builder.go deleted file mode 100644 index e8572a07..00000000 --- a/pkg/github/repositories/item_environments_with_environment_name_item_request_builder.go +++ /dev/null @@ -1,33 +0,0 @@ -package repositories - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// ItemEnvironmentsWithEnvironment_nameItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name} -type ItemEnvironmentsWithEnvironment_nameItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal instantiates a new ItemEnvironmentsWithEnvironment_nameItemRequestBuilder and sets the default values. -func NewItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsWithEnvironment_nameItemRequestBuilder) { - m := &ItemEnvironmentsWithEnvironment_nameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}/environments/{environment_name}", pathParameters), - } - return m -} -// NewItemEnvironmentsWithEnvironment_nameItemRequestBuilder instantiates a new ItemEnvironmentsWithEnvironment_nameItemRequestBuilder and sets the default values. -func NewItemEnvironmentsWithEnvironment_nameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEnvironmentsWithEnvironment_nameItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Secrets the secrets property -// returns a *ItemEnvironmentsItemSecretsRequestBuilder when successful -func (m *ItemEnvironmentsWithEnvironment_nameItemRequestBuilder) Secrets()(*ItemEnvironmentsItemSecretsRequestBuilder) { - return NewItemEnvironmentsItemSecretsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Variables the variables property -// returns a *ItemEnvironmentsItemVariablesRequestBuilder when successful -func (m *ItemEnvironmentsWithEnvironment_nameItemRequestBuilder) Variables()(*ItemEnvironmentsItemVariablesRequestBuilder) { - return NewItemEnvironmentsItemVariablesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/pkg/github/repositories/with_repository_item_request_builder.go b/pkg/github/repositories/with_repository_item_request_builder.go deleted file mode 100644 index 519c9987..00000000 --- a/pkg/github/repositories/with_repository_item_request_builder.go +++ /dev/null @@ -1,28 +0,0 @@ -package repositories - -import ( - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" -) - -// WithRepository_ItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id} -type WithRepository_ItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// NewWithRepository_ItemRequestBuilderInternal instantiates a new WithRepository_ItemRequestBuilder and sets the default values. -func NewWithRepository_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithRepository_ItemRequestBuilder) { - m := &WithRepository_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repositories/{repository_id}", pathParameters), - } - return m -} -// NewWithRepository_ItemRequestBuilder instantiates a new WithRepository_ItemRequestBuilder and sets the default values. -func NewWithRepository_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WithRepository_ItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewWithRepository_ItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Environments the environments property -// returns a *ItemEnvironmentsRequestBuilder when successful -func (m *WithRepository_ItemRequestBuilder) Environments()(*ItemEnvironmentsRequestBuilder) { - return NewItemEnvironmentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/pkg/github/search/code_response.go b/pkg/github/search/code_response.go deleted file mode 100644 index ea556c63..00000000 --- a/pkg/github/search/code_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package search - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CodeResponse -// Deprecated: This class is obsolete. Use codeGetResponse instead. -type CodeResponse struct { - CodeGetResponse -} -// NewCodeResponse instantiates a new CodeResponse and sets the default values. -func NewCodeResponse()(*CodeResponse) { - m := &CodeResponse{ - CodeGetResponse: *NewCodeGetResponse(), - } - return m -} -// CreateCodeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCodeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCodeResponse(), nil -} -// CodeResponseable -// Deprecated: This class is obsolete. Use codeGetResponse instead. -type CodeResponseable interface { - CodeGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/search/commits_response.go b/pkg/github/search/commits_response.go deleted file mode 100644 index b50590dc..00000000 --- a/pkg/github/search/commits_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package search - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CommitsResponse -// Deprecated: This class is obsolete. Use commitsGetResponse instead. -type CommitsResponse struct { - CommitsGetResponse -} -// NewCommitsResponse instantiates a new CommitsResponse and sets the default values. -func NewCommitsResponse()(*CommitsResponse) { - m := &CommitsResponse{ - CommitsGetResponse: *NewCommitsGetResponse(), - } - return m -} -// CreateCommitsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCommitsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCommitsResponse(), nil -} -// CommitsResponseable -// Deprecated: This class is obsolete. Use commitsGetResponse instead. -type CommitsResponseable interface { - CommitsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/search/issues_response.go b/pkg/github/search/issues_response.go deleted file mode 100644 index 1b7ae0a6..00000000 --- a/pkg/github/search/issues_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package search - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// IssuesResponse -// Deprecated: This class is obsolete. Use issuesGetResponse instead. -type IssuesResponse struct { - IssuesGetResponse -} -// NewIssuesResponse instantiates a new IssuesResponse and sets the default values. -func NewIssuesResponse()(*IssuesResponse) { - m := &IssuesResponse{ - IssuesGetResponse: *NewIssuesGetResponse(), - } - return m -} -// CreateIssuesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateIssuesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewIssuesResponse(), nil -} -// IssuesResponseable -// Deprecated: This class is obsolete. Use issuesGetResponse instead. -type IssuesResponseable interface { - IssuesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/search/labels_response.go b/pkg/github/search/labels_response.go deleted file mode 100644 index d3655fea..00000000 --- a/pkg/github/search/labels_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package search - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// LabelsResponse -// Deprecated: This class is obsolete. Use labelsGetResponse instead. -type LabelsResponse struct { - LabelsGetResponse -} -// NewLabelsResponse instantiates a new LabelsResponse and sets the default values. -func NewLabelsResponse()(*LabelsResponse) { - m := &LabelsResponse{ - LabelsGetResponse: *NewLabelsGetResponse(), - } - return m -} -// CreateLabelsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateLabelsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewLabelsResponse(), nil -} -// LabelsResponseable -// Deprecated: This class is obsolete. Use labelsGetResponse instead. -type LabelsResponseable interface { - LabelsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/search/repositories_response.go b/pkg/github/search/repositories_response.go deleted file mode 100644 index c06d82b1..00000000 --- a/pkg/github/search/repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package search - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// RepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type RepositoriesResponse struct { - RepositoriesGetResponse -} -// NewRepositoriesResponse instantiates a new RepositoriesResponse and sets the default values. -func NewRepositoriesResponse()(*RepositoriesResponse) { - m := &RepositoriesResponse{ - RepositoriesGetResponse: *NewRepositoriesGetResponse(), - } - return m -} -// CreateRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewRepositoriesResponse(), nil -} -// RepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type RepositoriesResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - RepositoriesGetResponseable -} diff --git a/pkg/github/search/topics_response.go b/pkg/github/search/topics_response.go deleted file mode 100644 index 93b11fde..00000000 --- a/pkg/github/search/topics_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package search - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// TopicsResponse -// Deprecated: This class is obsolete. Use topicsGetResponse instead. -type TopicsResponse struct { - TopicsGetResponse -} -// NewTopicsResponse instantiates a new TopicsResponse and sets the default values. -func NewTopicsResponse()(*TopicsResponse) { - m := &TopicsResponse{ - TopicsGetResponse: *NewTopicsGetResponse(), - } - return m -} -// CreateTopicsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateTopicsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewTopicsResponse(), nil -} -// TopicsResponseable -// Deprecated: This class is obsolete. Use topicsGetResponse instead. -type TopicsResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - TopicsGetResponseable -} diff --git a/pkg/github/search/users_response.go b/pkg/github/search/users_response.go deleted file mode 100644 index 5f9298d1..00000000 --- a/pkg/github/search/users_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package search - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// UsersResponse -// Deprecated: This class is obsolete. Use usersGetResponse instead. -type UsersResponse struct { - UsersGetResponse -} -// NewUsersResponse instantiates a new UsersResponse and sets the default values. -func NewUsersResponse()(*UsersResponse) { - m := &UsersResponse{ - UsersGetResponse: *NewUsersGetResponse(), - } - return m -} -// CreateUsersResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateUsersResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewUsersResponse(), nil -} -// UsersResponseable -// Deprecated: This class is obsolete. Use usersGetResponse instead. -type UsersResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - UsersGetResponseable -} diff --git a/pkg/github/user/codespaces_item_machines_response.go b/pkg/github/user/codespaces_item_machines_response.go deleted file mode 100644 index d573702a..00000000 --- a/pkg/github/user/codespaces_item_machines_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CodespacesItemMachinesResponse -// Deprecated: This class is obsolete. Use machinesGetResponse instead. -type CodespacesItemMachinesResponse struct { - CodespacesItemMachinesGetResponse -} -// NewCodespacesItemMachinesResponse instantiates a new CodespacesItemMachinesResponse and sets the default values. -func NewCodespacesItemMachinesResponse()(*CodespacesItemMachinesResponse) { - m := &CodespacesItemMachinesResponse{ - CodespacesItemMachinesGetResponse: *NewCodespacesItemMachinesGetResponse(), - } - return m -} -// CreateCodespacesItemMachinesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCodespacesItemMachinesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCodespacesItemMachinesResponse(), nil -} -// CodespacesItemMachinesResponseable -// Deprecated: This class is obsolete. Use machinesGetResponse instead. -type CodespacesItemMachinesResponseable interface { - CodespacesItemMachinesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/user/codespaces_item_with_codespace_name_response.go b/pkg/github/user/codespaces_item_with_codespace_name_response.go deleted file mode 100644 index 9d1ed807..00000000 --- a/pkg/github/user/codespaces_item_with_codespace_name_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CodespacesItemWithCodespace_nameResponse -// Deprecated: This class is obsolete. Use WithCodespace_nameDeleteResponse instead. -type CodespacesItemWithCodespace_nameResponse struct { - CodespacesItemWithCodespace_nameDeleteResponse -} -// NewCodespacesItemWithCodespace_nameResponse instantiates a new CodespacesItemWithCodespace_nameResponse and sets the default values. -func NewCodespacesItemWithCodespace_nameResponse()(*CodespacesItemWithCodespace_nameResponse) { - m := &CodespacesItemWithCodespace_nameResponse{ - CodespacesItemWithCodespace_nameDeleteResponse: *NewCodespacesItemWithCodespace_nameDeleteResponse(), - } - return m -} -// CreateCodespacesItemWithCodespace_nameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCodespacesItemWithCodespace_nameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCodespacesItemWithCodespace_nameResponse(), nil -} -// CodespacesItemWithCodespace_nameResponseable -// Deprecated: This class is obsolete. Use WithCodespace_nameDeleteResponse instead. -type CodespacesItemWithCodespace_nameResponseable interface { - CodespacesItemWithCodespace_nameDeleteResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/user/codespaces_response.go b/pkg/github/user/codespaces_response.go deleted file mode 100644 index 3368a738..00000000 --- a/pkg/github/user/codespaces_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CodespacesResponse -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type CodespacesResponse struct { - CodespacesGetResponse -} -// NewCodespacesResponse instantiates a new CodespacesResponse and sets the default values. -func NewCodespacesResponse()(*CodespacesResponse) { - m := &CodespacesResponse{ - CodespacesGetResponse: *NewCodespacesGetResponse(), - } - return m -} -// CreateCodespacesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCodespacesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCodespacesResponse(), nil -} -// CodespacesResponseable -// Deprecated: This class is obsolete. Use codespacesGetResponse instead. -type CodespacesResponseable interface { - CodespacesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/user/codespaces_secrets_item_repositories_response.go b/pkg/github/user/codespaces_secrets_item_repositories_response.go deleted file mode 100644 index 67b98d86..00000000 --- a/pkg/github/user/codespaces_secrets_item_repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CodespacesSecretsItemRepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type CodespacesSecretsItemRepositoriesResponse struct { - CodespacesSecretsItemRepositoriesGetResponse -} -// NewCodespacesSecretsItemRepositoriesResponse instantiates a new CodespacesSecretsItemRepositoriesResponse and sets the default values. -func NewCodespacesSecretsItemRepositoriesResponse()(*CodespacesSecretsItemRepositoriesResponse) { - m := &CodespacesSecretsItemRepositoriesResponse{ - CodespacesSecretsItemRepositoriesGetResponse: *NewCodespacesSecretsItemRepositoriesGetResponse(), - } - return m -} -// CreateCodespacesSecretsItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCodespacesSecretsItemRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCodespacesSecretsItemRepositoriesResponse(), nil -} -// CodespacesSecretsItemRepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type CodespacesSecretsItemRepositoriesResponseable interface { - CodespacesSecretsItemRepositoriesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/user/codespaces_secrets_response.go b/pkg/github/user/codespaces_secrets_response.go deleted file mode 100644 index d0cf1a60..00000000 --- a/pkg/github/user/codespaces_secrets_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CodespacesSecretsResponse -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type CodespacesSecretsResponse struct { - CodespacesSecretsGetResponse -} -// NewCodespacesSecretsResponse instantiates a new CodespacesSecretsResponse and sets the default values. -func NewCodespacesSecretsResponse()(*CodespacesSecretsResponse) { - m := &CodespacesSecretsResponse{ - CodespacesSecretsGetResponse: *NewCodespacesSecretsGetResponse(), - } - return m -} -// CreateCodespacesSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCodespacesSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCodespacesSecretsResponse(), nil -} -// CodespacesSecretsResponseable -// Deprecated: This class is obsolete. Use secretsGetResponse instead. -type CodespacesSecretsResponseable interface { - CodespacesSecretsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/user/installations_item_repositories_response.go b/pkg/github/user/installations_item_repositories_response.go deleted file mode 100644 index ac6a7086..00000000 --- a/pkg/github/user/installations_item_repositories_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// InstallationsItemRepositoriesResponse -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type InstallationsItemRepositoriesResponse struct { - InstallationsItemRepositoriesGetResponse -} -// NewInstallationsItemRepositoriesResponse instantiates a new InstallationsItemRepositoriesResponse and sets the default values. -func NewInstallationsItemRepositoriesResponse()(*InstallationsItemRepositoriesResponse) { - m := &InstallationsItemRepositoriesResponse{ - InstallationsItemRepositoriesGetResponse: *NewInstallationsItemRepositoriesGetResponse(), - } - return m -} -// CreateInstallationsItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateInstallationsItemRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewInstallationsItemRepositoriesResponse(), nil -} -// InstallationsItemRepositoriesResponseable -// Deprecated: This class is obsolete. Use repositoriesGetResponse instead. -type InstallationsItemRepositoriesResponseable interface { - InstallationsItemRepositoriesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/user/installations_response.go b/pkg/github/user/installations_response.go deleted file mode 100644 index 2add5ad2..00000000 --- a/pkg/github/user/installations_response.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// InstallationsResponse -// Deprecated: This class is obsolete. Use installationsGetResponse instead. -type InstallationsResponse struct { - InstallationsGetResponse -} -// NewInstallationsResponse instantiates a new InstallationsResponse and sets the default values. -func NewInstallationsResponse()(*InstallationsResponse) { - m := &InstallationsResponse{ - InstallationsGetResponse: *NewInstallationsGetResponse(), - } - return m -} -// CreateInstallationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateInstallationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewInstallationsResponse(), nil -} -// InstallationsResponseable -// Deprecated: This class is obsolete. Use installationsGetResponse instead. -type InstallationsResponseable interface { - InstallationsGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/pkg/github/user/interaction_limits_get_response_member1.go b/pkg/github/user/interaction_limits_get_response_member1.go deleted file mode 100644 index 1f2341f3..00000000 --- a/pkg/github/user/interaction_limits_get_response_member1.go +++ /dev/null @@ -1,32 +0,0 @@ -package user - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// InteractionLimitsGetResponseMember1 -type InteractionLimitsGetResponseMember1 struct { -} -// NewInteractionLimitsGetResponseMember1 instantiates a new InteractionLimitsGetResponseMember1 and sets the default values. -func NewInteractionLimitsGetResponseMember1()(*InteractionLimitsGetResponseMember1) { - m := &InteractionLimitsGetResponseMember1{ - } - return m -} -// CreateInteractionLimitsGetResponseMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateInteractionLimitsGetResponseMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewInteractionLimitsGetResponseMember1(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *InteractionLimitsGetResponseMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - return res -} -// Serialize serializes information the current object -func (m *InteractionLimitsGetResponseMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - return nil -} -// InteractionLimitsGetResponseMember1able -type InteractionLimitsGetResponseMember1able interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -}